code
stringlengths 3
10M
| language
stringclasses 31
values |
|---|---|
in a stark manner
in sharp outline or contrast
in a blunt manner
|
D
|
module android.java.android.renderscript.Type_CubemapFace;
public import android.java.android.renderscript.Type_CubemapFace_d_interface;
import arsd.jni : ImportExportImpl;
mixin ImportExportImpl!Type_CubemapFace;
import import0 = android.java.android.renderscript.Type_CubemapFace;
import import2 = android.java.java.lang.Class;
|
D
|
import tamias.config;
import tamias.setup;
import tamias.util;
import tamias.repoloc;
import tamias.repo;
import tamias.user;
import std.string : split;
import std.format : format;
import std.array : join;
import std.process : environment, spawnProcess, wait;
/******************************************************************************
* CONFIGURATION INTERFACE
*****************************************************************************/
string[] parseOption(string txt) {
import std.regex : matchAll;
const auto re = `\s*([a-zA-Z0-9_.-]+)([-+=])([a-zA-Z0-9_.,-]*)`;
auto m = matchAll(txt, re);
if (m.empty()) {
throw new Exception("invalid format");
}
auto cap = m.captures();
return [cap[1], cap[2], cap[3]];
}
string[] arrayAddUnique(string)(string[] s, string[] t) {
import std.algorithm: canFind;
string[] result;
foreach (string c; s)
if (!result.canFind(c))
result ~= c;
foreach (string c; t)
if (!result.canFind(c))
result ~= c;
return result;
}
string[] arrayRemove(string)(string[] s, string[] t) {
import std.algorithm: canFind;
string[] result;
foreach (string c; s) {
if (!t.canFind(c)) {
result ~= c;
}
}
return result;
}
string[] arraySetUnique(string[] s) {
import std.algorithm: canFind;
string[] result;
foreach (string c; s)
if (!result.canFind(c))
result ~= c;
return result;
}
string[] arrayUpdate(string[] s, string op, string[] t) {
switch (op) {
case "+":
return arrayAddUnique(s, t);
case "=":
return arraySetUnique(t);
case "-":
return arrayRemove(s, t);
default:
failf("invalid array operand: %s", op);
}
return [];
}
RepoConfig repoConfigUpdateFromOption(RepoConfig conf, string option) {
import std.string : toLower;
RepoConfig updated = conf;
auto parsed = parseOption(option);
switch (parsed[0]) {
case "owner":
enforcef(parsed[1] == "=", "can only assign owner, not add or remove");
enforcef(confirm("really change owner?"), "aborted by user");
conf.owner = parsed[2];
break;
case "read":
auto users = (split(parsed[2], ","));
conf.read = arrayUpdate(conf.read, parsed[1], users);
break;
case "write":
auto users = (split(parsed[2], ","));
conf.write = arrayUpdate(conf.write, parsed[1], users);
break;
case "config":
auto users = (split(parsed[2], ","));
conf.config = arrayUpdate(conf.config, parsed[1], users);
break;
default:
failf("not an option: %s", parsed[0]);
}
return conf;
}
/******************************************************************************
* GIT COMMANDS
*****************************************************************************/
void gitCommand(string op, RepoLoc loc) {
auto path = repoLocToPath(loc);
auto pid = spawnProcess([op, path]);
auto res = wait(pid);
enforcef(res == 0, "return '%s' returned code %d", op ~ " " ~ path, res);
}
void help() {
msg("usage:");
msg(" %s command [arguments]", appName);
msg("");
msg("commands:");
msg(" --- local+ssh commands ---");
msg(" version print version number");
msg(" whoami print user name and roles");
msg(" list [filter] print repository available to you");
msg(" add <repository> add new repository");
msg(" rm <repository> remove existing repository");
msg(" config <repository> [settings...");
msg(" update repository settings, example:");
msg(" config myrepo write+staff read=all config-myuser");
msg(" --- local only commands ---");
msg(" install <keyfile..> install tamias using provided key");
msg(" update-keys invoke manual key update");
msg(" --- ssh only commands ---");
msg(" git-upload-pack,");
msg(" git-upload-archive,");
msg(" git-receive-pack git internal commands implementing clone/push/pull etc.");
}
int main(string[] args) {
alias getEnv = environment.get;
bool isLocal;
string[] command;
string username;
if (getEnv("SSH_CONNECTION", "") != "") {
// called from ssh, retrieve user from command line
// and command from environment variable
command = split(getEnv("SSH_ORIGINAL_COMMAND", ""));
username = args[1];
isLocal = false;
} else {
// called from command line, retrieve user from env
// and command from command line
command = args[1..$];
username = getEnv("USER", "nobody");
if (getEnv("NOSTAFF", "") == "") {
isLocal = true;
}
}
if (command.length < 1) {
msg("error: no command specified");
help();
return 1;
}
// in case we're locking, unlock on exit. function checks whether lock was acquired
scope(exit) lockUnlock();
try {
User user;
try {
user = userRead(username, isLocal);
} catch (Exception e) {
msgErr("warning: %s, using defaults", e.msg);
user = userDefault(username, isLocal);
}
// command dispatcher
switch (command[0]) {
case "version":
msg(buildString);
break;
case "list":
lockLock();
enforcef(command.length <= 2, "usage: list [pattern]");
auto pattern = "";
if (command.length > 1) {
pattern = command[1];
}
auto list = repoList(pattern);
if (list.length == 0) {
msg("no available repositories");
break;
}
foreach (loc; list) {
auto conf = repoGetConfig(loc);
if (canRead(conf, user)) {
auto path = repoLocToPath(loc);
string info;
try {
info = sexecute(["git", "show", "-s", "--format=%h @ %cr - %s", "HEAD"], path)[0];
} catch (Exception e) {
info = "no commits";
}
msg("%s", repoLocToPretty(loc));
msg(" owner: %s", conf.owner);
msg(" commit: %s", info);
string[] rights = ["read"];
if (canWrite(conf, user)) rights ~= "write";
if (canConfig(conf, user)) rights ~= "config";
msg(" rights: %s", join(rights, ","));
}
}
break;
case "add":
lockLock();
enforcef(command.length == 2, "usage: add <repository>");
auto loc = repoLocFromString(command[1]);
auto conf = repoConfigDefault(user.name);
repoAdd(loc, conf);
break;
case "rm":
lockLock();
enforcef(command.length >= 2, "usage: rm <repository> [repositories...]");
auto loc = repoLocFromString(command[1]);
auto conf = repoGetConfig(loc);
enforcef(canConfig(conf, user), "insufficient permissions");
repoRemove(loc);
break;
case "config":
lockLock();
enforcef(command.length >= 2, "usage: config <repository> [settings...]");
auto loc = repoLocFromString(command[1]);
auto conf = repoGetConfig(loc);
enforcef(canConfig(conf, user), "insufficient permissions");
auto settings = command[2..$];
foreach (setting; settings) {
conf = repoConfigUpdateFromOption(conf, setting);
}
repoSetConfig(loc, conf);
msg("configuration of %s:", repoLocToPretty(loc));
msg(" owner: %s", conf.owner);
msg(" read: %s", join(conf.read, ","));
msg(" write: %s", join(conf.write, ","));
msg(" config: %s", join(conf.config, ","));
break;
case "whoami":
enforcef(command.length == 1, "usage: whoami");
msg("username: %s", user.name);
msg("roles: %s", join(user.roles, ", "));
break;
case "install":
enforcef(isLocal, "installation only from local command line");
enforcef(command.length >= 2, "usage: install <keyfile..>");
install(command[1..$]);
break;
case "update-keys":
lockLock();
enforcef(command.length == 1, "usage: updatekeys");
enforcef(isLocal, "manual key update only from local command line");
updateKeys();
break;
// upload-pack + upload-archive are read accesses
case "git-upload-pack":
case "git-upload-archive":
lockLock();
try {
enforcef(!isLocal, "git commands only via ssh");
enforcef(command.length == 2, "command expects an argument");
auto loc = repoLocFromString(command[1]);
auto conf = repoGetConfig(loc);
// no read access, so dont hand out information about existence
enforcef(repoExists(loc), "insufficient permissions or not a repository");
enforcef(canRead(conf, user), "insufficient permissions or not a repository");
gitCommand(command[0], loc);
} catch (Exception e) {
msgErr("error: %s", e.msg);
}
break;
// receive-pack is write access
case "git-receive-pack":
lockLock();
try {
enforcef(!isLocal, "git commands only via ssh");
enforcef(command.length == 2, "command expects an argument");
auto loc = repoLocFromString(command[1]);
auto conf = repoGetConfig(loc);
enforcef(repoExists(loc), "insufficient permissions or not a repository");
enforcef(canRead(conf, user), "insufficient permissions or not a repository");
enforcef(canWrite(conf, user), "insufficient permissions");
gitCommand(command[0], loc);
// trigger key update if keys repository is uploaded
if (loc[0] == "" && loc[1] == "keys") {
msgErr("update keys");
updateKeys();
}
} catch (Exception e) {
msgErr("error: %s", e.msg);
}
break;
case "help":
help();
break;
default:
throw new Exception(format("unsupported command '%s', try '%s help'", command[0], appName));
}
} catch (Exception e) {
msgErr("error: %s", e.msg);
return 1;
}
return 0;
}
|
D
|
the condition of belonging to a particular place or group by virtue of social or ethnic or cultural lineage
(botany) the usually underground organ that lacks buds or leaves or nodes
the place where something begins, where it springs into being
(linguistics) the form of a word after all affixes are removed
a number that, when multiplied by itself some number of times, equals a given number
the set of values that give a true statement when substituted into an equation
someone from whom you are descended (but usually more remote than a grandparent)
a simple form inferred as the common basis from which related words in several languages can be derived by linguistic processes
the part of a tooth that is embedded in the jaw and serves as support
take root and begin to grow
come into existence, originate
plant by the roots
dig with the snout
become settled or established and stable in one's residence or life style
cause to take roots
|
D
|
/**
* DCPU-16 CPU
*
* See_Also:
* http://pastebin.com/raw.php?i=Q4JvQvnM
*/
module dcpu.cpu;
/+
import std.array, std.random;
//import std.string, std.conv, std.stdio;
import dcpu.microcode, dcpu.machine, dcpu.hardware;
/**
* CPU State
*/
enum CpuState {
DECO, /// Decoding an instrucction
OPA, /// Get Operator A value
OPB, /// Get Operator B value
EXECUTE /// Execute the OpCode
}
/**
* CPU public information of his actual state
*/
struct CpuInfo {
union {
struct {ushort a, b, c, x, y, z, i, j;}
ushort[8] registers; /// General registers
}
ushort pc; /// Program Counter register
ushort sp; /// Stack Pointer register
ushort ex; /// Excess register
ushort ia; /// Interrupt Address register
bool read_queue = true; /// FrontPop interrupt queue ?
bool wait_hwd; /// Waiting because to end an Interrup to Hardware
bool f_fire; /// CPU cath fire
bool skip; /// Skip next instrucction
CpuState state; /// Actual state of CPU
ushort word; /// Value of [PC] when begin ready state
int cycles; /// Cycles to do in execute
}
final class DCpu {
private:
Random gen; // Used when get fire
/**
* Operator
* Params:
* opt = Type of operator (OpA or OpB)
*/
final class Operator(string opt) {
static assert (opt == "OpA" || opt == "OpB", "Invalid operator");
private:
ushort val; // Value read
ushort op; // Operand Type
ushort ptr; // Where are pointing the pointer
bool _next_word; // Uses the next word and so need a extra cycle
public:
this(ubyte op) {
this.op = op;
switch (op) { // Need to read the next word ?
case Operand.Aptr_word:
case Operand.Bptr_word:
case Operand.Cptr_word:
case Operand.Xptr_word:
case Operand.Yptr_word:
case Operand.Zptr_word:
case Operand.Iptr_word:
case Operand.Jptr_word:
case Operand.PICK_word:
case Operand.NWord_ptr:
case Operand.NWord:
_next_word = true;
break;
default:
_next_word = false;
}
if (!info.skip)
switch (op) { // Read it
case Operand.A: // General Registers
case Operand.B:
case Operand.C:
case Operand.X:
case Operand.Y:
case Operand.Z:
case Operand.I:
case Operand.J:
val = info.registers[op];
break;
case Operand.Aptr: // General Registers Pointer
case Operand.Bptr:
case Operand.Cptr:
case Operand.Xptr:
case Operand.Yptr:
case Operand.Zptr:
case Operand.Iptr:
case Operand.Jptr:
ptr = info.registers[op- Operand.Aptr];
//synchronized (machine) {
val = machine.ram[ptr];
//}
break;
case Operand.Aptr_word: // [Reg + next word litreal]
case Operand.Bptr_word:
case Operand.Cptr_word:
case Operand.Xptr_word:
case Operand.Yptr_word:
case Operand.Zptr_word:
case Operand.Iptr_word:
case Operand.Jptr_word:
//synchronized (machine) {
ptr = cast(ushort)(info.registers[op- Operand.Aptr_word] + machine.ram[info.pc +1]);
val = machine.ram[ptr];
//}
break;
case Operand.POP_PUSH: // a Pop [SP++] | b PUSH [--SP]
static if (opt == "OpA") {
//synchronized (machine) { // To read the value
val = machine.ram[cast(ushort)(info.sp++)];
//}
} else { // TODO Need confirmation if this is correct
//synchronized (machine) {
val = machine.ram[cast(ushort)(info.sp-1)];
//}
}
break;
case Operand.PEEK: // [SP]
//synchronized (machine) {
ptr = info.sp;
val = machine.ram[info.sp];
//}
break;
case Operand.PICK_word: // [SP + next word litreal]
//synchronized (machine) {
ptr = cast(ushort)(info.sp + machine.ram[info.pc +1]);
val = machine.ram[ptr];
//}
break;
case Operand.SP: // SP
val = info.sp;
break;
case Operand.PC: // PC
val = info.pc;
break;
case Operand.EX: // EXcess
val = info.ex;
break;
case Operand.NWord_ptr: // Ptr [next word literal ]
//synchronized (machine) {
ptr = machine.ram[info.pc +1];
val = machine.ram[ptr];
//}
break;
case Operand.NWord: // next word literal
//synchronized (machine) {
ptr = cast(ushort)(info.pc +1);
val = machine.ram[ptr];
//}
break;
default: // Literal
static if (opt == "OpA") {
val = cast(ushort)((op -1) - Operand.Literal); //(op - (Operand.Literal +1));
} else {
assert(false, "This code never should be executed. Operator B can't have literals");
}
}
//writeln(opt, "=> ", format("0x%04X",val), " ", val, " op:", format("0x%04X",op));
}
/**
* Uses next word, so need to increase PC value ?
*/
@property bool next_word() {
return _next_word;
}
/**
* Returns: Value of the operator
*/
ushort read () @property {
return val;
}
/**
* Writes the new value to his place
*/
void write(ushort v) @property {
if (!info.skip)
switch (op) { // Read it
case Operand.A: // General Registers
case Operand.B:
case Operand.C:
case Operand.X:
case Operand.Y:
case Operand.Z:
case Operand.I:
case Operand.J:
info.registers[op] = v;
break;
case Operand.Aptr: // General Registers Pointer
case Operand.Bptr:
case Operand.Cptr:
case Operand.Xptr:
case Operand.Yptr:
case Operand.Zptr:
case Operand.Iptr:
case Operand.Jptr:
case Operand.Aptr_word: // [Reg + next word litreal]
case Operand.Bptr_word:
case Operand.Cptr_word:
case Operand.Xptr_word:
case Operand.Yptr_word:
case Operand.Zptr_word:
case Operand.Iptr_word:
case Operand.Jptr_word:
case Operand.NWord_ptr: // Ptr [next word literal ]
case Operand.PEEK: // [SP]
case Operand.PICK_word: // [SP + next word litreal]
//synchronized (machine) {
machine.ram[ptr] = v;
//}
break;
case Operand.POP_PUSH: // a Pop [SP++] | b PUSH [--SP]
static if (opt == "OpB") {
//synchronized (machine) { // To read the value
machine.ram[cast(ushort)(--info.sp)] = v;
//}
break;
} else {
assert (false, "This code must never executed. OpA PUSH can be writted");
}
case Operand.SP: // SP
info.sp = v;
break;
case Operand.PC: // PC
info.pc = cast(ushort)(v -1); // Compesate pc++ of execute
break;
case Operand.EX: // EXcess
info.ex = v;
break;
default: // Literal and Next_Word literal or pointer
assert(false, "This code never should be executed. Literasl can be writed");
}
}
}
Machine machine; /// Self-reference to the machine
ushort[] int_queue; /// Interrupt queue
bool new_skip; /// New value of skip
// Stores state between clock cycles
ubyte opcode; /// OpCode
ubyte ext_opcode; /// Extendend Opcode if OpCode == 0
bool do_inmediate = true; /// Do an inmediate operand or next word operand
ubyte opa; /// Operand A
ubyte opb; /// Operand B
Operator!"OpA" val_a; /// Value of operand A
Operator!"OpB" val_b; /// Value of operand B
ushort val; /// Result of an operation
bool write_val; /// Must write val to a register or ram
CpuInfo info; /// CPU actual state
public:
this(ref Machine machine) {
this.machine = machine;
gen = Random(unpredictableSeed);
}
/**
* Returns CPU actual mutable state (used by hardware to alter CPU registers and state)
*/
package ref CpuInfo state() @property {
return info;
}
/**
* Returns a no muttable copy of CPU actual state
*/
auto actual_state() @property {
immutable(CpuInfo) i = info;
return i;
}
/**
* Steps one cycle
* Returns: True if executed an instrucction. False if not ended the execution of a instrucction
*/
bool step() {
//writeln(to!string(state));
if (info.f_fire) { // Swap a random bit of a random address
enum bits = [ 1, 2^^1, 2^^2, 2^^3, 2^^4, 2^^5, 2^^6, 2^^7, 2^^8, 2^^9, 2^^10, 2^^11, 2^^12, 2^^13, 2^^14, 2^^15 ];
auto rbit = randomCover(bits, gen);
ushort pos = cast(ushort)uniform(0, ushort.max, gen);
machine.ram[pos] = cast(ushort)(machine.ram[pos] ^ rbit.front);
}
if (info.state == CpuState.DECO) { // Feth [PC] and extract operands and opcodes
if (int_queue.length > 255) { // Catch fire
info.f_fire = true;
}
if (info.read_queue && !int_queue.empty) { // Try to do a int in the queue
if (info.ia != 0 ) {
info.read_queue = false;
machine.ram[--info.sp] = info.pc; // Push PC and A
machine.ram[--info.sp] = info.a;
info.pc = info.ia;
info.a = int_queue[0];
int_queue = int_queue[1..$];
} else {
// If IA is set to 0, a triggered interrupt does nothing. A queued interrupt is considered triggered when it leaves the queue, not when it enters it.
int_queue = int_queue[1..$];
}
}
//synchronized (machine) {
info.word = machine.ram[info.pc];
//}
opcode = decode!"OpCode"(info.word);
opa = decode!"OpA"(info.word);
opb = decode!"OpB"(info.word);
ext_opcode = decode!"ExtOpCode"(info.word);
info.state = CpuState.OPA;
return step(); // Jump to OPA to try to get a not "next word" operand
} else if (info.state == CpuState.OPA) { // Get Operand A
if (do_inmediate) {
val_a = new Operator!"OpA"(opa);
if (val_a.next_word && !info.skip) { // Take a extra cycle
do_inmediate = false;
return false;
} else if (val_a.next_word) {
info.pc++;
}
} else {
do_inmediate = true;
info.pc++;
}
if (opcode == 0) {
info.state = CpuState.EXECUTE;
info.cycles = -1; // Say to Execute to calc it
return step(); // Jump to Execute state
} else {
info.state = CpuState.OPB;
return step(); // Jump to OPB to try to get a not "next word" operand
}
} else if (info.state == CpuState.OPB) { // Get Operand B
if (do_inmediate) {
val_b = new Operator!"OpB"(opb);
if (val_b.next_word && !info.skip) { // Take a extra cycle
do_inmediate = false;
return false;
} else if (val_b.next_word) {
info.pc++;
}
} else {
do_inmediate = true;
info.pc++;
}
info.state = CpuState.EXECUTE;
info.cycles = -1; // It will be calculated in Execute mode
return step(); // Jump to Execute state
} else { // Execute the OpCode
return execute_op(); // I will increase pc when the last cycle is made
}
}
/**
* Send to the CPU a hardware interrupt
*/
void hardware_int(ushort msg) {
// Asumes that when IA == 0, incoming hardware interrupts are ignored
if (info.ia != 0 && int_queue.length < 256) {
int_queue ~= msg;
}
}
private:
/**
* Execute a OpCode
*/
bool execute_op() {
if (opcode != 0 && info.cycles < 0) { // Execute Not extended opcode
if (!info.skip) {
write_val = true;
switch (opcode) {
case OpCode.SET:
val = val_a.read;
info.cycles = 1;
break;
case OpCode.ADD:
uint tmp = val_b.read + val_a.read;
val = cast(ushort)(tmp & 0xFFFF);
info.ex = tmp > 0xFFFF; // Overflow
info.cycles = 2;
break;
case OpCode.SUB:
int tmp = val_b.read - val_a.read;
val = cast(ushort)(tmp & 0xFFFF);
if ( val & 0x800 ) { // val < 0
info.ex = 0xFFFF; // Underflow
} else {
info.ex = 0;
}
info.cycles = 2;
break;
case OpCode.MUL:
uint tmp = val_b.read * val_a.read;
val = cast(ushort)(tmp & 0xFFFF);
info.ex = cast(ushort)(tmp >> 16);
info.cycles = 2;
break;
case OpCode.MLI: // Mul with sign
int tmp = cast(short)val_b.read * cast(short)val_a.read;
val = cast(ushort)(tmp & 0xFFFF);
info.ex = cast(ushort)(tmp >> 16);
info.cycles = 2;
break;
case OpCode.DIV:
if (val_a.read == 0) {
val = 0;
} else {
uint tmp = val_b.read / val_a.read;
uint tmp2 = (val_b.read << 16) / val_a.read;
val = cast(ushort)(tmp & 0xFFFF);
info.ex = cast(ushort)(tmp2 & 0xFFFF);
}
info.cycles = 3;
break;
case OpCode.DVI: // Div with sign
if (val_a.read == 0) {
val = 0;
} else {
int tmp = cast(short)val_b.read / cast(short)val_a.read;
int tmp2 = (cast(short)val_b.read << 16) / cast(short)val_a.read;
val = cast(ushort)(tmp & 0xFFFF);
info.ex = cast(ushort)(tmp2 & 0xFFFF);
}
info.cycles = 3;
break;
case OpCode.MOD:
if (val_a.read == 0) {
val = 0;
} else {
val = val_b.read % val_a.read;
}
info.cycles = 3;
break;
case OpCode.MDI: // Mod with sign
if (val_a.read == 0) {
val = 0;
} else {
val = cast(short)val_b.read % cast(short)val_a.read;
}
info.cycles = 3;
break;
case OpCode.AND:
val = val_b.read & val_a.read;
info.cycles = 1;
break;
case OpCode.BOR:
val = val_b.read | val_a.read;
info.cycles = 1;
break;
case OpCode.XOR:
val = val_b.read ^ val_a.read;
info.cycles = 1;
break;
case OpCode.SHR: // Logical Shift
uint tmp = val_b.read >>> val_a.read;
auto tmp2 = (val_b.read << 16) >> val_a.read;
val = cast(ushort)(tmp & 0xFFFF);
info.ex = cast(ushort)(tmp2 & 0xFFFF);
info.cycles = 1;
break;
case OpCode.ASR: // Arthmetic shift
int tmp2 = ((cast(short)val_b.read <<16) >>> cast(short)val_a.read);
auto tmp = cast(short)val_b.read >> cast(short)val_a.read;
val = cast(ushort)(tmp & 0xFFFF);
info.ex = cast(ushort)(tmp2 & 0xFFFF);
info.cycles = 1;
break;
case OpCode.SHL:
uint tmp = (val_b.read << val_a.read) >> 16;
val = cast(ushort)(val_b.read << val_a.read);
info.ex = cast(ushort)(tmp & 0xFFFF);
info.cycles = 1;
break;
case OpCode.IFB:
info.cycles = 2;
write_val = false;
new_skip = !((val_b.read & val_a.read) != 0); // Skip next instrucction
break;
case OpCode.IFC:
info.cycles = 2;
write_val = false;
new_skip = !((val_b.read & val_a.read) == 0);
break;
case OpCode.IFE:
new_skip = !(val_b.read == val_a.read);
write_val = false;
info.cycles = 2;
break;
case OpCode.IFN:
info.cycles = 2;
write_val = false;
new_skip = !(val_b.read != val_a.read);
break;
case OpCode.IFG:
info.cycles = 2;
write_val = false;
new_skip = !(val_b.read > val_a.read);
break;
case OpCode.IFA:
info.cycles = 2;
write_val = false;
new_skip = !(cast(short)val_b.read > cast(short)val_a.read);
break;
case OpCode.IFL:
info.cycles = 2;
write_val = false;
new_skip = !(val_b.read < val_a.read);
break;
case OpCode.IFU:
info.cycles = 2;
write_val = false;
new_skip = !(cast(short)val_b.read < cast(short)val_a.read);
break;
case OpCode.ADX:
uint tmp = val_b.read + val_a.read + info.ex;
val = cast(ushort)(tmp & 0xFFFF);
info.ex = tmp > 0xFFFF; // Overflow
info.cycles = 3;
break;
case OpCode.SBX:
int tmp = val_b.read - val_a.read + info.ex;
val = cast(ushort)(tmp & 0xFFFF);
if ( val & 0x800 ) { // val < 0
info.ex = 0xFFFF; // Underflow
} else {
info.ex = 0;
}
info.cycles = 3;
break;
case OpCode.STI:
val = val_a.read;
info.i++;
info.j++;
info.cycles = 2;
break;
case OpCode.STD:
val = val_a.read;
info.i--;
info.j--;
info.cycles = 2;
break;
default: // Unknow OpCode
// Do Nothing (I should do a random OpCode ?)
write_val = false;
info.cycles = 1;
}
} else { // Skip next basic OpCode instrucction
info.cycles = 1;
write_val = false;
switch (opcode) { // Skipe chained branchs
case OpCode.IFB:
case OpCode.IFC:
case OpCode.IFE:
case OpCode.IFN:
case OpCode.IFG:
case OpCode.IFA:
case OpCode.IFL:
case OpCode.IFU:
new_skip = true;
break;
default:
new_skip = false;
}
}
} else if (info.cycles < 0) { // Extended OpCode
write_val = false;
new_skip = false;
if (!info.skip) {
switch (ext_opcode) {
case ExtOpCode.JSR:
//synchronized (machine) {
machine.ram[--info.sp] = cast(ushort)(info.pc +1);
//}
info.pc = cast(ushort)(val_a.read -1); // Compesate later pc++
info.cycles = 3;
break;
case ExtOpCode.HCF:
info.cycles = 9;
info.f_fire = true;
break;
case ExtOpCode.INT: // Software Interruption
info.cycles = 4;
// NOTE This implementations asumes that INTs bypass the queue
if (info.ia != 0) {
info.read_queue = false;
machine.ram[--info.sp] = cast(ushort)(info.pc +1); // Push PC and A
machine.ram[--info.sp] = info.a;
info.pc = cast(ushort)(info.ia -1);
}
break;
case ExtOpCode.IAG: // Get IA
write_val = true;
val = info.ia;
info.cycles = 1;
break;
case ExtOpCode.IAS: // Set IA
info.ia = val_a.read;
info.cycles = 1;
break;
case ExtOpCode.RFI: // Return From Interrupt
info.read_queue = true;
//synchronized (machine) {
info.a = machine.ram[info.sp++];
info.pc = cast(ushort)(machine.ram[info.sp++] -1);
//}
info.cycles = 3;
break;
case ExtOpCode.IAQ: // Enable pop front of interrupt queue
info.read_queue = val_a.read == 0; // if val_a != 0 Not read the interrupt queue
info.cycles = 2;
break;
case ExtOpCode.HWN: // Number of devices
write_val = true;
val = cast(ushort)machine.dev.length;
info.cycles = 2;
break;
case ExtOpCode.HWQ: // Get Hardware IDs
info.cycles = 4;
if (val_a.read in machine.dev) {
auto dev = machine.dev[val_a.read];
info.a = dev.id_lsb;
info.b = dev.id_msb;
info.c = dev.dev_ver;
info.x = dev.vendor_lsb;
info.y = dev.vendor_msb;
} else { // Unspecific behaviour
info.a = info.b = info.c = info.x = info.y = 0xFFFF;
}
break;
case ExtOpCode.HWI: // Send a hardware interrupt to device A
info.cycles = 4; // Or more
if (val_a.read in machine.dev) {
machine.dev[val_a.read].interrupt(info, machine.ram);
}
break;
default: // Unknow OpCode
// Do Nothing (I should do a random OpCode ?)
info.cycles = 1;
}
} else {
info.cycles = 1;
new_skip = false;
}
}
if (!info.wait_hwd) // Some hardware when receive a HWI can make to wait more cycles
info.cycles--;
if (info.cycles == 0) { // Only increment PC and set Ready when cycle count == 0
if (!info.skip) {
if (opcode != 0 && write_val) { // Basic OpCode
// OpB <= OpA Operation OpA = val
val_b.write = val;
} else if (write_val) { // Extended OpCode
// OpA <= val
val_a.write = val;
}
}
info.skip = new_skip;
info.state = CpuState.DECO;
info.pc++;
return true;
}
return false;
}
}
+/
|
D
|
/*
* This file was automatically generated by sel-utils and
* released under the MIT License.
*
* License: https://github.com/sel-project/sel-utils/blob/master/LICENSE
* Repository: https://github.com/sel-project/sel-utils
* Generated from https://github.com/sel-project/sel-utils/blob/master/xml/protocol/java338.xml
*/
module sul.protocol.java338.status;
import std.bitmanip : write, peek;
static import std.conv;
import std.system : Endian;
import std.typetuple : TypeTuple;
import std.typecons : Tuple;
import std.uuid : UUID;
import sul.utils.buffer;
import sul.utils.var;
static import sul.protocol.java338.types;
static if(__traits(compiles, { import sul.metadata.java338; })) import sul.metadata.java338;
alias Packets = TypeTuple!(Handshake, Request, Response, Latency);
class Handshake : Buffer {
public enum uint ID = 0;
public enum bool CLIENTBOUND = false;
public enum bool SERVERBOUND = true;
// next
public enum uint STATUS = 1;
public enum uint LOGIN = 2;
public enum string[] FIELDS = ["protocol", "serverAddress", "serverPort", "next"];
public uint protocol = 338;
public string serverAddress;
public ushort serverPort;
public uint next;
public pure nothrow @safe @nogc this() {}
public pure nothrow @safe @nogc this(uint protocol, string serverAddress=string.init, ushort serverPort=ushort.init, uint next=uint.init) {
this.protocol = protocol;
this.serverAddress = serverAddress;
this.serverPort = serverPort;
this.next = next;
}
public pure nothrow @safe ubyte[] encode(bool writeId=true)() {
_buffer.length = 0;
static if(writeId){ writeBytes(varuint.encode(ID)); }
writeBytes(varuint.encode(protocol));
writeBytes(varuint.encode(cast(uint)serverAddress.length)); writeString(serverAddress);
writeBigEndianUshort(serverPort);
writeBytes(varuint.encode(next));
return _buffer;
}
public pure nothrow @safe void decode(bool readId=true)() {
static if(readId){ uint _id; _id=varuint.decode(_buffer, &_index); }
protocol=varuint.decode(_buffer, &_index);
uint cvdvqrcv=varuint.decode(_buffer, &_index); serverAddress=readString(cvdvqrcv);
serverPort=readBigEndianUshort();
next=varuint.decode(_buffer, &_index);
}
public static pure nothrow @safe Handshake fromBuffer(bool readId=true)(ubyte[] buffer) {
Handshake ret = new Handshake();
ret._buffer = buffer;
ret.decode!readId();
return ret;
}
public override string toString() {
return "Handshake(protocol: " ~ std.conv.to!string(this.protocol) ~ ", serverAddress: " ~ std.conv.to!string(this.serverAddress) ~ ", serverPort: " ~ std.conv.to!string(this.serverPort) ~ ", next: " ~ std.conv.to!string(this.next) ~ ")";
}
}
class Request : Buffer {
public enum uint ID = 0;
public enum bool CLIENTBOUND = false;
public enum bool SERVERBOUND = true;
public enum string[] FIELDS = [];
public pure nothrow @safe ubyte[] encode(bool writeId=true)() {
_buffer.length = 0;
static if(writeId){ writeBytes(varuint.encode(ID)); }
return _buffer;
}
public pure nothrow @safe void decode(bool readId=true)() {
static if(readId){ uint _id; _id=varuint.decode(_buffer, &_index); }
}
public static pure nothrow @safe Request fromBuffer(bool readId=true)(ubyte[] buffer) {
Request ret = new Request();
ret._buffer = buffer;
ret.decode!readId();
return ret;
}
public override string toString() {
return "Request()";
}
}
class Response : Buffer {
public enum uint ID = 0;
public enum bool CLIENTBOUND = true;
public enum bool SERVERBOUND = false;
public enum string[] FIELDS = ["json"];
public string json;
public pure nothrow @safe @nogc this() {}
public pure nothrow @safe @nogc this(string json) {
this.json = json;
}
public pure nothrow @safe ubyte[] encode(bool writeId=true)() {
_buffer.length = 0;
static if(writeId){ writeBytes(varuint.encode(ID)); }
writeBytes(varuint.encode(cast(uint)json.length)); writeString(json);
return _buffer;
}
public pure nothrow @safe void decode(bool readId=true)() {
static if(readId){ uint _id; _id=varuint.decode(_buffer, &_index); }
uint anb=varuint.decode(_buffer, &_index); json=readString(anb);
}
public static pure nothrow @safe Response fromBuffer(bool readId=true)(ubyte[] buffer) {
Response ret = new Response();
ret._buffer = buffer;
ret.decode!readId();
return ret;
}
public override string toString() {
return "Response(json: " ~ std.conv.to!string(this.json) ~ ")";
}
}
class Latency : Buffer {
public enum uint ID = 1;
public enum bool CLIENTBOUND = true;
public enum bool SERVERBOUND = true;
public enum string[] FIELDS = ["id"];
public long id;
public pure nothrow @safe @nogc this() {}
public pure nothrow @safe @nogc this(long id) {
this.id = id;
}
public pure nothrow @safe ubyte[] encode(bool writeId=true)() {
_buffer.length = 0;
static if(writeId){ writeBytes(varuint.encode(ID)); }
writeBigEndianLong(id);
return _buffer;
}
public pure nothrow @safe void decode(bool readId=true)() {
static if(readId){ uint _id; _id=varuint.decode(_buffer, &_index); }
id=readBigEndianLong();
}
public static pure nothrow @safe Latency fromBuffer(bool readId=true)(ubyte[] buffer) {
Latency ret = new Latency();
ret._buffer = buffer;
ret.decode!readId();
return ret;
}
public override string toString() {
return "Latency(id: " ~ std.conv.to!string(this.id) ~ ")";
}
}
|
D
|
// REQUIRED_ARGS: -de
/* TEST_OUTPUT:
---
fail_compilation/b19691.d(18): Deprecation: constructor `b19691.S2.this` all parameters have default arguments, but structs cannot have default constructors.
---
*/
// https://issues.dlang.org/show_bug.cgi?id=19691
module b19691;
struct S1 {
this(T...)(T) {
S2("");
}
}
struct S2 {
this(string) {}
this(S1 s = null) {}
}
|
D
|
/**
* Windows API header module
*
* Translated from MinGW API for MS-Windows 3.10
*
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(DRUNTIMESRC core/sys/windows/_servprov.d)
*/
module core.sys.windows.servprov;
version (Windows):
import core.sys.windows.basetyps, core.sys.windows.unknwn, core.sys.windows.windef, core.sys.windows.wtypes;
interface IServiceProvider : IUnknown {
HRESULT QueryService(REFGUID, REFIID, void**);
}
|
D
|
/**
File handling functions and types.
Copyright: © 2012-2019 Sönke Ludwig
License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
Authors: Sönke Ludwig
*/
module vibe.core.file;
import eventcore.core : NativeEventDriver, eventDriver;
import eventcore.driver;
import vibe.core.internal.release;
import vibe.core.log;
import vibe.core.path;
import vibe.core.stream;
import vibe.core.task : Task, TaskSettings;
import vibe.internal.async : asyncAwait, asyncAwaitUninterruptible;
import core.stdc.stdio;
import core.sys.posix.unistd;
import core.sys.posix.fcntl;
import core.sys.posix.sys.stat;
import core.time;
import std.conv : octal;
import std.datetime;
import std.exception;
import std.file;
import std.path;
import std.string;
import std.typecons : Flag, No;
version(Posix){
private extern(C) int mkstemps(char* templ, int suffixlen);
}
@safe:
/**
Opens a file stream with the specified mode.
*/
FileStream openFile(NativePath path, FileMode mode = FileMode.read)
{
auto fil = eventDriver.files.open(path.toNativeString(), cast(FileOpenMode)mode);
enforce(fil != FileFD.invalid, "Failed to open file '"~path.toNativeString~"'");
return FileStream(fil, path, mode);
}
/// ditto
FileStream openFile(string path, FileMode mode = FileMode.read)
{
return openFile(NativePath(path), mode);
}
/**
Read a whole file into a buffer.
If the supplied buffer is large enough, it will be used to store the
contents of the file. Otherwise, a new buffer will be allocated.
Params:
path = The path of the file to read
buffer = An optional buffer to use for storing the file contents
*/
ubyte[] readFile(NativePath path, ubyte[] buffer = null, size_t max_size = size_t.max)
{
auto fil = openFile(path);
scope (exit) fil.close();
enforce(fil.size <= max_size, "File is too big.");
auto sz = cast(size_t)fil.size;
auto ret = sz <= buffer.length ? buffer[0 .. sz] : new ubyte[sz];
fil.read(ret);
return ret;
}
/// ditto
ubyte[] readFile(string path, ubyte[] buffer = null, size_t max_size = size_t.max)
{
return readFile(NativePath(path), buffer, max_size);
}
/**
Write a whole file at once.
*/
void writeFile(NativePath path, in ubyte[] contents)
{
auto fil = openFile(path, FileMode.createTrunc);
scope (exit) fil.close();
fil.write(contents);
}
/// ditto
void writeFile(string path, in ubyte[] contents)
{
writeFile(NativePath(path), contents);
}
/**
Convenience function to append to a file.
*/
void appendToFile(NativePath path, string data) {
auto fil = openFile(path, FileMode.append);
scope(exit) fil.close();
fil.write(data);
}
/// ditto
void appendToFile(string path, string data)
{
appendToFile(NativePath(path), data);
}
/**
Read a whole UTF-8 encoded file into a string.
The resulting string will be sanitized and will have the
optional byte order mark (BOM) removed.
*/
string readFileUTF8(NativePath path)
{
import vibe.internal.string;
auto data = readFile(path);
auto idata = () @trusted { return data.assumeUnique; } ();
return stripUTF8Bom(sanitizeUTF8(idata));
}
/// ditto
string readFileUTF8(string path)
{
return readFileUTF8(NativePath(path));
}
/**
Write a string into a UTF-8 encoded file.
The file will have a byte order mark (BOM) prepended.
*/
void writeFileUTF8(NativePath path, string contents)
{
static immutable ubyte[] bom = [0xEF, 0xBB, 0xBF];
auto fil = openFile(path, FileMode.createTrunc);
scope (exit) fil.close();
fil.write(bom);
fil.write(contents);
}
/**
Creates and opens a temporary file for writing.
*/
FileStream createTempFile(string suffix = null)
{
version(Windows){
import std.conv : to;
string tmpname;
() @trusted {
auto fn = tmpnam(null);
enforce(fn !is null, "Failed to generate temporary name.");
tmpname = to!string(fn);
} ();
if (tmpname.startsWith("\\")) tmpname = tmpname[1 .. $];
tmpname ~= suffix;
return openFile(tmpname, FileMode.createTrunc);
} else {
enum pattern ="/tmp/vtmp.XXXXXX";
scope templ = new char[pattern.length+suffix.length+1];
templ[0 .. pattern.length] = pattern;
templ[pattern.length .. $-1] = (suffix)[];
templ[$-1] = '\0';
assert(suffix.length <= int.max);
auto fd = () @trusted { return mkstemps(templ.ptr, cast(int)suffix.length); } ();
enforce(fd >= 0, "Failed to create temporary file.");
auto efd = eventDriver.files.adopt(fd);
return FileStream(efd, NativePath(templ[0 .. $-1].idup), FileMode.createTrunc);
}
}
/**
Moves or renames a file.
Params:
from = Path to the file/directory to move/rename.
to = The target path
copy_fallback = Determines if copy/remove should be used in case of the
source and destination path pointing to different devices.
*/
void moveFile(NativePath from, NativePath to, bool copy_fallback = false)
{
moveFile(from.toNativeString(), to.toNativeString(), copy_fallback);
}
/// ditto
void moveFile(string from, string to, bool copy_fallback = false)
{
auto fail = performInWorker((string from, string to) {
try {
std.file.rename(from, to);
} catch (Exception e) {
return e.msg.length ? e.msg : "Failed to move file.";
}
return null;
}, from, to);
if (!fail.length) return;
if (!copy_fallback) throw new Exception(fail);
copyFile(from, to);
removeFile(from);
}
/**
Copies a file.
Note that attributes and time stamps are currently not retained.
Params:
from = Path of the source file
to = Path for the destination file
overwrite = If true, any file existing at the destination path will be
overwritten. If this is false, an exception will be thrown should
a file already exist at the destination path.
Throws:
An Exception if the copy operation fails for some reason.
*/
void copyFile(NativePath from, NativePath to, bool overwrite = false)
{
DirEntry info;
static if (__VERSION__ < 2078) {
() @trusted {
info = DirEntry(from.toString);
enforce(info.isFile, "The source path is not a file and cannot be copied.");
} ();
} else {
info = DirEntry(from.toString);
enforce(info.isFile, "The source path is not a file and cannot be copied.");
}
{
auto src = openFile(from, FileMode.read);
scope(exit) src.close();
enforce(overwrite || !existsFile(to), "Destination file already exists.");
auto dst = openFile(to, FileMode.createTrunc);
scope(exit) dst.close();
dst.truncate(src.size);
dst.write(src);
}
// TODO: also retain creation time on windows
static if (__VERSION__ < 2078) {
() @trusted {
setTimes(to.toString, info.timeLastAccessed, info.timeLastModified);
setAttributes(to.toString, info.attributes);
} ();
} else {
setTimes(to.toString, info.timeLastAccessed, info.timeLastModified);
setAttributes(to.toString, info.attributes);
}
}
/// ditto
void copyFile(string from, string to)
{
copyFile(NativePath(from), NativePath(to));
}
/**
Removes a file
*/
void removeFile(NativePath path)
{
removeFile(path.toNativeString());
}
/// ditto
void removeFile(string path)
{
auto fail = performInWorker((string path) {
try {
std.file.remove(path);
} catch (Exception e) {
return e.msg.length ? e.msg : "Failed to delete file.";
}
return null;
}, path);
if (fail.length) throw new Exception(fail);
}
/**
Checks if a file exists
*/
bool existsFile(NativePath path) nothrow
{
return existsFile(path.toNativeString());
}
/// ditto
bool existsFile(string path) nothrow
{
// This was *annotated* nothrow in 2.067.
static if (__VERSION__ < 2067)
scope(failure) assert(0, "Error: existsFile should never throw");
try return performInWorker((string p) => std.file.exists(p), path);
catch (Exception e) {
logDebug("Failed to determine file existence for '%s': %s", path, e.msg);
return false;
}
}
/** Stores information about the specified file/directory into 'info'
Throws: A `FileException` is thrown if the file does not exist.
*/
FileInfo getFileInfo(NativePath path)
@trusted {
return getFileInfo(path.toNativeString);
}
/// ditto
FileInfo getFileInfo(string path)
{
import std.typecons : tuple;
auto ret = performInWorker((string p) {
try {
auto ent = DirEntry(p);
return tuple(makeFileInfo(ent), "");
} catch (Exception e) {
return tuple(FileInfo.init, e.msg.length ? e.msg : "Failed to get file information");
}
}, path);
if (ret[1].length) throw new Exception(ret[1]);
return ret[0];
}
/**
Creates a new directory.
*/
void createDirectory(NativePath path)
{
createDirectory(path.toNativeString);
}
/// ditto
void createDirectory(string path, Flag!"recursive" recursive = No.recursive)
{
auto fail = performInWorker((string p, bool rec) {
try {
if (rec) mkdirRecurse(p);
else mkdir(p);
} catch (Exception e) {
return e.msg.length ? e.msg : "Failed to create directory.";
}
return null;
}, path, !!recursive);
if (fail) throw new Exception(fail);
}
/**
Enumerates all files in the specified directory.
*/
void listDirectory(NativePath path, scope bool delegate(FileInfo info) @safe del)
{
listDirectory(path.toNativeString, del);
}
/// ditto
void listDirectory(string path, scope bool delegate(FileInfo info) @safe del)
{
import vibe.core.core : runWorkerTaskH;
import vibe.core.channel : Channel, createChannel;
struct S {
FileInfo info;
string error;
}
auto ch = createChannel!S();
TaskSettings ts;
ts.priority = 10 * Task.basePriority;
runWorkerTaskH(ioTaskSettings, (string path, Channel!S ch) nothrow {
scope (exit) ch.close();
try {
foreach (DirEntry ent; dirEntries(path, SpanMode.shallow)) {
auto nfo = makeFileInfo(ent);
try ch.put(S(nfo, null));
catch (Exception e) break; // channel got closed
}
} catch (Exception e) {
try ch.put(S(FileInfo.init, e.msg.length ? e.msg : "Failed to iterate directory"));
catch (Exception e) {} // channel got closed
}
}, path, ch);
S itm;
while (ch.tryConsumeOne(itm)) {
if (itm.error.length)
throw new Exception(itm.error);
if (!del(itm.info)) {
ch.close();
break;
}
}
}
/// ditto
void listDirectory(NativePath path, scope bool delegate(FileInfo info) @system del)
@system {
listDirectory(path, (nfo) @trusted => del(nfo));
}
/// ditto
void listDirectory(string path, scope bool delegate(FileInfo info) @system del)
@system {
listDirectory(path, (nfo) @trusted => del(nfo));
}
/// ditto
int delegate(scope int delegate(ref FileInfo)) iterateDirectory(NativePath path)
{
int iterator(scope int delegate(ref FileInfo) del){
int ret = 0;
listDirectory(path, (fi){
ret = del(fi);
return ret == 0;
});
return ret;
}
return &iterator;
}
/// ditto
int delegate(scope int delegate(ref FileInfo)) iterateDirectory(string path)
{
return iterateDirectory(NativePath(path));
}
/**
Starts watching a directory for changes.
*/
DirectoryWatcher watchDirectory(NativePath path, bool recursive = true)
{
return DirectoryWatcher(path, recursive);
}
// ditto
DirectoryWatcher watchDirectory(string path, bool recursive = true)
{
return watchDirectory(NativePath(path), recursive);
}
/**
Returns the current working directory.
*/
NativePath getWorkingDirectory()
{
return NativePath(() @trusted { return std.file.getcwd(); } ());
}
/** Contains general information about a file.
*/
struct FileInfo {
/// Name of the file (not including the path)
string name;
/// Size of the file (zero for directories)
ulong size;
/// Time of the last modification
SysTime timeModified;
/// Time of creation (not available on all operating systems/file systems)
SysTime timeCreated;
/// True if this is a symlink to an actual file
bool isSymlink;
/// True if this is a directory or a symlink pointing to a directory
bool isDirectory;
/// True if this is a file. On POSIX if both isFile and isDirectory are false it is a special file.
bool isFile;
/** True if the file's hidden attribute is set.
On systems that don't support a hidden attribute, any file starting with
a single dot will be treated as hidden.
*/
bool hidden;
}
/**
Specifies how a file is manipulated on disk.
*/
enum FileMode {
/// The file is opened read-only.
read = FileOpenMode.read,
/// The file is opened for read-write random access.
readWrite = FileOpenMode.readWrite,
/// The file is truncated if it exists or created otherwise and then opened for read-write access.
createTrunc = FileOpenMode.createTrunc,
/// The file is opened for appending data to it and created if it does not exist.
append = FileOpenMode.append
}
/**
Accesses the contents of a file as a stream.
*/
struct FileStream {
@safe:
private struct CTX {
NativePath path;
ulong size;
FileMode mode;
ulong ptr;
shared(NativeEventDriver) driver;
}
private {
FileFD m_fd;
CTX* m_ctx;
}
private this(FileFD fd, NativePath path, FileMode mode)
{
assert(fd != FileFD.invalid, "Constructing FileStream from invalid file descriptor.");
m_fd = fd;
m_ctx = new CTX; // TODO: use FD custom storage
m_ctx.path = path;
m_ctx.mode = mode;
m_ctx.size = eventDriver.files.getSize(fd);
m_ctx.driver = () @trusted { return cast(shared)eventDriver; } ();
if (mode == FileMode.append)
m_ctx.ptr = m_ctx.size;
}
this(this)
{
if (m_fd != FileFD.invalid)
eventDriver.files.addRef(m_fd);
}
~this()
{
if (m_fd != FileFD.invalid)
releaseHandle!"files"(m_fd, m_ctx.driver);
}
@property int fd() { return cast(int)m_fd; }
/// The path of the file.
@property NativePath path() const { return ctx.path; }
/// Determines if the file stream is still open
@property bool isOpen() const { return m_fd != FileFD.invalid; }
@property ulong size() const nothrow { return ctx.size; }
@property bool readable() const nothrow { return ctx.mode != FileMode.append; }
@property bool writable() const nothrow { return ctx.mode != FileMode.read; }
bool opCast(T)() if (is (T == bool)) { return m_fd != FileFD.invalid; }
void takeOwnershipOfFD()
{
assert(false, "TODO!");
}
void seek(ulong offset)
{
enforce(ctx.mode != FileMode.append, "File opened for appending, not random access. Cannot seek.");
ctx.ptr = offset;
}
ulong tell() nothrow { return ctx.ptr; }
void truncate(ulong size)
{
enforce(ctx.mode != FileMode.append, "File opened for appending, not random access. Cannot truncate.");
auto res = asyncAwaitUninterruptible!(FileIOCallback,
cb => eventDriver.files.truncate(m_fd, size, cb)
);
enforce(res[1] == IOStatus.ok, "Failed to resize file.");
m_ctx.size = size;
}
/// Closes the file handle.
void close()
{
if (m_fd == FileFD.invalid) return;
if (!eventDriver.files.isValid(m_fd)) return;
auto res = asyncAwaitUninterruptible!(FileCloseCallback,
cb => eventDriver.files.close(m_fd, cb)
);
releaseHandle!"files"(m_fd, m_ctx.driver);
m_fd = FileFD.invalid;
m_ctx = null;
if (res[1] != CloseStatus.ok)
throw new Exception("Failed to close file");
}
@property bool empty() const { assert(this.readable); return ctx.ptr >= ctx.size; }
@property ulong leastSize() const { assert(this.readable); return ctx.size - ctx.ptr; }
@property bool dataAvailableForRead() { return true; }
const(ubyte)[] peek()
{
return null;
}
size_t read(ubyte[] dst, IOMode mode)
{
auto res = asyncAwait!(FileIOCallback,
cb => eventDriver.files.read(m_fd, ctx.ptr, dst, mode, cb),
cb => eventDriver.files.cancelRead(m_fd)
);
ctx.ptr += res[2];
enforce(res[1] == IOStatus.ok, "Failed to read data from disk.");
return res[2];
}
void read(ubyte[] dst)
{
auto ret = read(dst, IOMode.all);
assert(ret == dst.length, "File.read returned less data than requested for IOMode.all.");
}
size_t write(in ubyte[] bytes, IOMode mode)
{
auto res = asyncAwait!(FileIOCallback,
cb => eventDriver.files.write(m_fd, ctx.ptr, bytes, mode, cb),
cb => eventDriver.files.cancelWrite(m_fd)
);
ctx.ptr += res[2];
if (ctx.ptr > ctx.size) ctx.size = ctx.ptr;
enforce(res[1] == IOStatus.ok, "Failed to write data to disk.");
return res[2];
}
void write(in ubyte[] bytes)
{
write(bytes, IOMode.all);
}
void write(in char[] bytes)
{
write(cast(const(ubyte)[])bytes);
}
void write(InputStream)(InputStream stream, ulong nbytes = ulong.max)
if (isInputStream!InputStream)
{
writeDefault(this, stream, nbytes);
}
void flush()
{
assert(this.writable);
}
void finalize()
{
flush();
}
private inout(CTX)* ctx() inout nothrow { return m_ctx; }
}
mixin validateRandomAccessStream!FileStream;
private void writeDefault(OutputStream, InputStream)(ref OutputStream dst, InputStream stream, ulong nbytes = ulong.max)
if (isOutputStream!OutputStream && isInputStream!InputStream)
{
import vibe.internal.allocator : theAllocator, make, dispose;
import std.algorithm.comparison : min;
static struct Buffer { ubyte[64*1024] bytes = void; }
auto bufferobj = () @trusted { return theAllocator.make!Buffer(); } ();
scope (exit) () @trusted { theAllocator.dispose(bufferobj); } ();
auto buffer = bufferobj.bytes[];
//logTrace("default write %d bytes, empty=%s", nbytes, stream.empty);
if (nbytes == ulong.max) {
while (!stream.empty) {
size_t chunk = min(stream.leastSize, buffer.length);
assert(chunk > 0, "leastSize returned zero for non-empty stream.");
//logTrace("read pipe chunk %d", chunk);
stream.read(buffer[0 .. chunk]);
dst.write(buffer[0 .. chunk]);
}
} else {
while (nbytes > 0) {
size_t chunk = min(nbytes, buffer.length);
//logTrace("read pipe chunk %d", chunk);
stream.read(buffer[0 .. chunk]);
dst.write(buffer[0 .. chunk]);
nbytes -= chunk;
}
}
}
/**
Interface for directory watcher implementations.
Directory watchers monitor the contents of a directory (wither recursively or non-recursively)
for changes, such as file additions, deletions or modifications.
*/
struct DirectoryWatcher { // TODO: avoid all those heap allocations!
import std.array : Appender, appender;
import vibe.core.sync : LocalManualEvent, createManualEvent;
@safe:
private static struct Context {
NativePath path;
bool recursive;
Appender!(DirectoryChange[]) changes;
LocalManualEvent changeEvent;
shared(NativeEventDriver) driver;
// Support for `-preview=in`
static if (!is(typeof(mixin(q{(in ref int a) => a}))))
{
void onChange(WatcherID id, in FileChange change) nothrow {
this.onChangeImpl(id, change);
}
} else {
mixin(q{
void onChange(WatcherID id, in ref FileChange change) nothrow {
this.onChangeImpl(id, change);
}});
}
void onChangeImpl(WatcherID, const scope ref FileChange change)
nothrow {
DirectoryChangeType ct;
final switch (change.kind) {
case FileChangeKind.added: ct = DirectoryChangeType.added; break;
case FileChangeKind.removed: ct = DirectoryChangeType.removed; break;
case FileChangeKind.modified: ct = DirectoryChangeType.modified; break;
}
static if (is(typeof(change.baseDirectory))) {
// eventcore 0.8.23 and up
this.changes ~= DirectoryChange(ct, NativePath.fromTrustedString(change.baseDirectory) ~ NativePath.fromTrustedString(change.directory) ~ NativePath.fromTrustedString(change.name.idup));
} else {
this.changes ~= DirectoryChange(ct, NativePath.fromTrustedString(change.directory) ~ NativePath.fromTrustedString(change.name.idup));
}
this.changeEvent.emit();
}
}
private {
WatcherID m_watcher;
Context* m_context;
}
private this(NativePath path, bool recursive)
{
m_context = new Context; // FIME: avoid GC allocation (use FD user data slot)
m_context.changeEvent = createManualEvent();
m_watcher = eventDriver.watchers.watchDirectory(path.toNativeString, recursive, &m_context.onChange);
enforce(m_watcher != WatcherID.invalid, "Failed to watch directory.");
m_context.path = path;
m_context.recursive = recursive;
m_context.changes = appender!(DirectoryChange[]);
m_context.driver = () @trusted { return cast(shared)eventDriver; } ();
}
this(this) nothrow { if (m_watcher != WatcherID.invalid) eventDriver.watchers.addRef(m_watcher); }
~this()
nothrow {
if (m_watcher != WatcherID.invalid)
releaseHandle!"watchers"(m_watcher, m_context.driver);
}
/// The path of the watched directory
@property NativePath path() const nothrow { return m_context.path; }
/// Indicates if the directory is watched recursively
@property bool recursive() const nothrow { return m_context.recursive; }
/** Fills the destination array with all changes that occurred since the last call.
The function will block until either directory changes have occurred or until the
timeout has elapsed. Specifying a negative duration will cause the function to
wait without a timeout.
Params:
dst = The destination array to which the changes will be appended
timeout = Optional timeout for the read operation. A value of
`Duration.max` will wait indefinitely.
Returns:
If the call completed successfully, true is returned.
*/
bool readChanges(ref DirectoryChange[] dst, Duration timeout = Duration.max)
{
if (timeout == Duration.max) {
while (!m_context.changes.data.length)
m_context.changeEvent.wait(Duration.max, m_context.changeEvent.emitCount);
} else {
MonoTime now = MonoTime.currTime();
MonoTime final_time = now + timeout;
while (!m_context.changes.data.length) {
m_context.changeEvent.wait(final_time - now, m_context.changeEvent.emitCount);
now = MonoTime.currTime();
if (now >= final_time) break;
}
if (!m_context.changes.data.length) return false;
}
dst = m_context.changes.data;
m_context.changes = appender!(DirectoryChange[]);
return true;
}
}
/** Specifies the kind of change in a watched directory.
*/
enum DirectoryChangeType {
/// A file or directory was added
added,
/// A file or directory was deleted
removed,
/// A file or directory was modified
modified
}
/** Describes a single change in a watched directory.
*/
struct DirectoryChange {
/// The type of change
DirectoryChangeType type;
/// Path of the file/directory that was changed
NativePath path;
}
private FileInfo makeFileInfo(DirEntry ent)
@trusted nothrow {
import std.algorithm.comparison : among;
FileInfo ret;
string fullname = ent.name;
if (ent.name.length) {
if (ent.name[$-1].among('/', '\\'))
fullname = ent.name[0 .. $-1];
ret.name = baseName(fullname);
if (ret.name.length == 0) ret.name = fullname;
}
try {
ret.isFile = ent.isFile;
ret.isDirectory = ent.isDir;
ret.isSymlink = ent.isSymlink;
ret.timeModified = ent.timeLastModified;
version(Windows) ret.timeCreated = ent.timeCreated;
else ret.timeCreated = ent.timeLastModified;
ret.size = ent.size;
} catch (Exception e) {
logDebug("Failed to get information for file '%s': %s", fullname, e.msg);
}
version (Windows) {
import core.sys.windows.windows : FILE_ATTRIBUTE_HIDDEN;
ret.hidden = (ent.attributes & FILE_ATTRIBUTE_HIDDEN) != 0;
}
else ret.hidden = ret.name.length > 1 && ret.name[0] == '.' && ret.name != "..";
return ret;
}
version (Windows) {} else unittest {
void test(string name_in, string name_out, bool hidden) {
auto de = DirEntry(name_in);
assert(makeFileInfo(de).hidden == hidden);
assert(makeFileInfo(de).name == name_out);
}
void testCreate(string name_in, string name_out, bool hidden)
{
if (name_in.endsWith("/"))
createDirectory(name_in);
else writeFileUTF8(NativePath(name_in), name_in);
scope (exit) removeFile(name_in);
test(name_in, name_out, hidden);
}
test(".", ".", false);
test("..", "..", false);
testCreate(".test_foo", ".test_foo", true);
test("./", ".", false);
testCreate(".test_foo/", ".test_foo", true);
test("/", "", false);
}
unittest {
auto name = "toAppend.txt";
scope(exit) removeFile(name);
{
auto handle = openFile(name, FileMode.createTrunc);
handle.write("create,");
assert(handle.tell() == "create,".length);
handle.close();
}
{
auto handle = openFile(name, FileMode.append);
handle.write(" then append");
assert(handle.tell() == "create, then append".length);
handle.close();
}
assert(readFile(name) == "create, then append");
}
private auto performInWorker(C, ARGS...)(C callable, auto ref ARGS args)
{
version (none) {
import vibe.core.concurrency : asyncWork;
return asyncWork(callable, args).getResult();
} else {
import vibe.core.core : runWorkerTask;
import core.atomic : atomicFence;
import std.concurrency : Tid, send, receiveOnly, thisTid;
struct R {}
alias RET = typeof(callable(args));
shared(RET) ret;
runWorkerTask(ioTaskSettings, (shared(RET)* r, Tid caller, C c, ref ARGS a) nothrow {
*() @trusted { return cast(RET*)r; } () = c(a);
// Just as a precaution, because ManualEvent is not well defined in
// terms of fence semantics
atomicFence();
try caller.send(R.init);
catch (Exception e) assert(false, e.msg);
}, () @trusted { return &ret; } (), thisTid, callable, args);
() @trusted { receiveOnly!R(); } ();
atomicFence();
return ret;
}
}
private immutable TaskSettings ioTaskSettings = { priority: 20 * Task.basePriority };
|
D
|
/*******************************************************************************
* Copyright (c) 2000, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
* Port to the D programming language:
* Frank Benoit <benoit@tionex.de>
*******************************************************************************/
module dwt.events.TreeEvent;
import dwt.dwthelper.utils;
import dwt.events.SelectionEvent;
import dwt.widgets.Event;
/**
* Instances of this class are sent as a result of
* trees being expanded and collapsed.
*
* @see TreeListener
* @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
*/
public final class TreeEvent : SelectionEvent {
static const long serialVersionUID = 3257282548009677109L;
/**
* Constructs a new instance of this class based on the
* information in the given untyped event.
*
* @param e the untyped event containing the information
*/
public this(Event e) {
super(e);
}
}
|
D
|
/**
This module implements a singly-linked list container.
It can be used as a stack.
This module is a submodule of $(MREF std, container).
Source: $(PHOBOSSRC std/container/_slist.d)
Copyright: 2010- Andrei Alexandrescu. All rights reserved by the respective holders.
License: Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at $(HTTP
boost.org/LICENSE_1_0.txt)).
Authors: $(HTTP erdani.com, Andrei Alexandrescu)
$(SCRIPT inhibitQuickIndex = 1;)
*/
module std.container.slist;
///
@safe unittest
{
import std.algorithm.comparison : equal;
import std.container : SList;
auto s = SList!int(1, 2, 3);
assert(equal(s[], [1, 2, 3]));
s.removeFront();
assert(equal(s[], [2, 3]));
s.insertFront([5, 6]);
assert(equal(s[], [5, 6, 2, 3]));
// If you want to apply range operations, simply slice it.
import std.algorithm.searching : countUntil;
import std.range : popFrontN, walkLength;
auto sl = SList!int(1, 2, 3, 4, 5);
assert(countUntil(sl[], 2) == 1);
auto r = sl[];
popFrontN(r, 2);
assert(walkLength(r) == 3);
}
public import std.container.util;
/**
Implements a simple and fast singly-linked list.
It can be used as a stack.
`SList` uses reference semantics.
*/
struct SList(T)
if (!is(T == shared))
{
import std.exception : enforce;
import std.range : Take;
import std.range.primitives : isInputRange, isForwardRange, ElementType;
import std.traits : isImplicitlyConvertible;
private struct Node
{
Node * _next;
T _payload;
}
private struct NodeWithoutPayload
{
Node* _next;
}
static assert(NodeWithoutPayload._next.offsetof == Node._next.offsetof);
private Node * _root;
private void initialize() @trusted nothrow pure
{
if (_root) return;
_root = cast (Node*) new NodeWithoutPayload();
}
private ref inout(Node*) _first() @property @safe nothrow pure inout
{
assert(_root);
return _root._next;
}
private static Node * findLastNode(Node * n)
{
assert(n);
auto ahead = n._next;
while (ahead)
{
n = ahead;
ahead = n._next;
}
return n;
}
private static Node * findLastNode(Node * n, size_t limit)
{
assert(n && limit);
auto ahead = n._next;
while (ahead)
{
if (!--limit) break;
n = ahead;
ahead = n._next;
}
return n;
}
private static Node * findNode(Node * n, Node * findMe)
{
assert(n);
auto ahead = n._next;
while (ahead != findMe)
{
n = ahead;
enforce(n);
ahead = n._next;
}
return n;
}
private static Node* findNodeByValue(Node* n, T value)
{
if (!n) return null;
auto ahead = n._next;
while (ahead && ahead._payload != value)
{
n = ahead;
ahead = n._next;
}
return n;
}
private static auto createNodeChain(Stuff)(Stuff stuff)
if (isImplicitlyConvertible!(Stuff, T))
{
import std.range : only;
return createNodeChain(only(stuff));
}
private static auto createNodeChain(Stuff)(Stuff stuff)
if (isInputRange!Stuff && isImplicitlyConvertible!(ElementType!Stuff, T))
{
static struct Chain
{
Node* first;
Node* last;
size_t length;
}
Chain ch;
foreach (item; stuff)
{
auto newNode = new Node(null, item);
(ch.first ? ch.last._next : ch.first) = newNode;
ch.last = newNode;
++ch.length;
}
return ch;
}
private static size_t insertAfterNode(Stuff)(Node* n, Stuff stuff)
{
auto ch = createNodeChain(stuff);
if (!ch.length) return 0;
ch.last._next = n._next;
n._next = ch.first;
return ch.length;
}
/**
Constructor taking a number of nodes
*/
this(U)(U[] values...) if (isImplicitlyConvertible!(U, T))
{
insertFront(values);
}
/**
Constructor taking an input range
*/
this(Stuff)(Stuff stuff)
if (isInputRange!Stuff
&& isImplicitlyConvertible!(ElementType!Stuff, T)
&& !is(Stuff == T[]))
{
insertFront(stuff);
}
/**
Comparison for equality.
Complexity: $(BIGOH min(n, n1)) where `n1` is the number of
elements in `rhs`.
*/
bool opEquals(const SList rhs) const
{
return opEquals(rhs);
}
/// ditto
bool opEquals(ref const SList rhs) const
{
if (_root is rhs._root) return true;
if (_root is null) return rhs._root is null || rhs._first is null;
if (rhs._root is null) return _root is null || _first is null;
const(Node) * n1 = _first, n2 = rhs._first;
for (;; n1 = n1._next, n2 = n2._next)
{
if (!n1) return !n2;
if (!n2 || n1._payload != n2._payload) return false;
}
}
/**
Defines the container's primary range, which embodies a forward range.
*/
struct Range
{
private Node * _head;
private this(Node * p) { _head = p; }
/// Input range primitives.
@property bool empty() const { return !_head; }
/// ditto
@property ref T front()
{
assert(!empty, "SList.Range.front: Range is empty");
return _head._payload;
}
/// ditto
void popFront()
{
assert(!empty, "SList.Range.popFront: Range is empty");
_head = _head._next;
}
/// Forward range primitive.
@property Range save() { return this; }
T moveFront()
{
import std.algorithm.mutation : move;
assert(!empty, "SList.Range.moveFront: Range is empty");
return move(_head._payload);
}
bool sameHead(Range rhs)
{
return _head && _head == rhs._head;
}
}
@safe unittest
{
static assert(isForwardRange!Range);
}
/**
Property returning `true` if and only if the container has no
elements.
Complexity: $(BIGOH 1)
*/
@property bool empty() const
{
return _root is null || _first is null;
}
/**
Duplicates the container. The elements themselves are not transitively
duplicated.
Complexity: $(BIGOH n).
*/
@property SList dup()
{
return SList(this[]);
}
/**
Returns a range that iterates over all elements of the container, in
forward order.
Complexity: $(BIGOH 1)
*/
Range opSlice()
{
if (empty)
return Range(null);
else
return Range(_first);
}
/**
Forward to `opSlice().front`.
Complexity: $(BIGOH 1)
*/
@property ref T front()
{
assert(!empty, "SList.front: List is empty");
return _first._payload;
}
@safe unittest
{
auto s = SList!int(1, 2, 3);
s.front = 42;
assert(s == SList!int(42, 2, 3));
}
/**
Returns a new `SList` that's the concatenation of `this` and its
argument. `opBinaryRight` is only defined if `Stuff` does not
define `opBinary`.
*/
SList opBinary(string op, Stuff)(Stuff rhs)
if (op == "~" && is(typeof(SList(rhs))))
{
import std.range : chain, only;
static if (isInputRange!Stuff)
alias r = rhs;
else
auto r = only(rhs);
return SList(this[].chain(r));
}
/// ditto
SList opBinaryRight(string op, Stuff)(Stuff lhs)
if (op == "~" && !is(typeof(lhs.opBinary!"~"(this))) && is(typeof(SList(lhs))))
{
import std.range : chain, only;
static if (isInputRange!Stuff)
alias r = lhs;
else
auto r = only(lhs);
return SList(r.chain(this[]));
}
/**
Removes all contents from the `SList`.
Postcondition: `empty`
Complexity: $(BIGOH 1)
*/
void clear()
{
if (_root)
_first = null;
}
/**
Reverses SList in-place. Performs no memory allocation.
Complexity: $(BIGOH n)
*/
void reverse()
{
if (!empty)
{
Node* prev;
while (_first)
{
auto next = _first._next;
_first._next = prev;
prev = _first;
_first = next;
}
_first = prev;
}
}
/**
Inserts `stuff` to the front of the container. `stuff` can be a
value convertible to `T` or a range of objects convertible to $(D
T). The stable version behaves the same, but guarantees that ranges
iterating over the container are never invalidated.
Returns: The number of elements inserted
Complexity: $(BIGOH m), where `m` is the length of `stuff`
*/
size_t insertFront(Stuff)(Stuff stuff)
if (isInputRange!Stuff || isImplicitlyConvertible!(Stuff, T))
{
initialize();
return insertAfterNode(_root, stuff);
}
/// ditto
alias insert = insertFront;
/// ditto
alias stableInsert = insert;
/// ditto
alias stableInsertFront = insertFront;
/**
Picks one value in an unspecified position in the container, removes
it from the container, and returns it. The stable version behaves the same,
but guarantees that ranges iterating over the container are never invalidated.
Precondition: `!empty`
Returns: The element removed.
Complexity: $(BIGOH 1).
*/
T removeAny()
{
import std.algorithm.mutation : move;
assert(!empty, "SList.removeAny: List is empty");
auto result = move(_first._payload);
_first = _first._next;
return result;
}
/// ditto
alias stableRemoveAny = removeAny;
/**
Removes the value at the front of the container. The stable version
behaves the same, but guarantees that ranges iterating over the
container are never invalidated.
Precondition: `!empty`
Complexity: $(BIGOH 1).
*/
void removeFront()
{
assert(!empty, "SList.removeFront: List is empty");
_first = _first._next;
}
/// ditto
alias stableRemoveFront = removeFront;
/**
Removes `howMany` values at the front or back of the
container. Unlike the unparameterized versions above, these functions
do not throw if they could not remove `howMany` elements. Instead,
if $(D howMany > n), all elements are removed. The returned value is
the effective number of elements removed. The stable version behaves
the same, but guarantees that ranges iterating over the container are
never invalidated.
Returns: The number of elements removed
Complexity: $(BIGOH howMany * log(n)).
*/
size_t removeFront(size_t howMany)
{
size_t result;
while (_first && result < howMany)
{
_first = _first._next;
++result;
}
return result;
}
/// ditto
alias stableRemoveFront = removeFront;
/**
Inserts `stuff` after range `r`, which must be a range
previously extracted from this container. Given that all ranges for a
list end at the end of the list, this function essentially appends to
the list and uses `r` as a potentially fast way to reach the last
node in the list. Ideally `r` is positioned near or at the last
element of the list.
`stuff` can be a value convertible to `T` or a range of objects
convertible to `T`. The stable version behaves the same, but
guarantees that ranges iterating over the container are never
invalidated.
Returns: The number of values inserted.
Complexity: $(BIGOH k + m), where `k` is the number of elements in
`r` and `m` is the length of `stuff`.
Example:
--------------------
auto sl = SList!string(["a", "b", "d"]);
sl.insertAfter(sl[], "e"); // insert at the end (slowest)
assert(std.algorithm.equal(sl[], ["a", "b", "d", "e"]));
sl.insertAfter(std.range.take(sl[], 2), "c"); // insert after "b"
assert(std.algorithm.equal(sl[], ["a", "b", "c", "d", "e"]));
--------------------
*/
size_t insertAfter(Stuff)(Range r, Stuff stuff)
if (isInputRange!Stuff || isImplicitlyConvertible!(Stuff, T))
{
initialize();
if (!_first)
{
enforce(!r._head);
return insertFront(stuff);
}
enforce(r._head);
auto n = findLastNode(r._head);
return insertAfterNode(n, stuff);
}
/**
Similar to `insertAfter` above, but accepts a range bounded in
count. This is important for ensuring fast insertions in the middle of
the list. For fast insertions after a specified position `r`, use
$(D insertAfter(take(r, 1), stuff)). The complexity of that operation
only depends on the number of elements in `stuff`.
Precondition: $(D r.original.empty || r.maxLength > 0)
Returns: The number of values inserted.
Complexity: $(BIGOH k + m), where `k` is the number of elements in
`r` and `m` is the length of `stuff`.
*/
size_t insertAfter(Stuff)(Take!Range r, Stuff stuff)
if (isInputRange!Stuff || isImplicitlyConvertible!(Stuff, T))
{
auto orig = r.source;
if (!orig._head)
{
// Inserting after a null range counts as insertion to the
// front
return insertFront(stuff);
}
enforce(!r.empty);
// Find the last valid element in the range
foreach (i; 1 .. r.maxLength)
{
if (!orig._head._next) break;
orig.popFront();
}
// insert here
return insertAfterNode(orig._head, stuff);
}
/// ditto
alias stableInsertAfter = insertAfter;
/**
Removes a range from the list in linear time.
Returns: An empty range.
Complexity: $(BIGOH n)
*/
Range linearRemove(Range r)
{
if (!_first)
{
enforce(!r._head);
return this[];
}
auto n = findNode(_root, r._head);
n._next = null;
return Range(null);
}
/**
Removes a `Take!Range` from the list in linear time.
Returns: A range comprehending the elements after the removed range.
Complexity: $(BIGOH n)
*/
Range linearRemove(Take!Range r)
{
auto orig = r.source;
// We have something to remove here
if (orig._head == _first)
{
// remove straight from the head of the list
for (; !r.empty; r.popFront())
{
removeFront();
}
return this[];
}
if (!r.maxLength)
{
// Nothing to remove, return the range itself
return orig;
}
// Remove from somewhere in the middle of the list
enforce(_first);
auto n1 = findNode(_root, orig._head);
auto n2 = findLastNode(orig._head, r.maxLength);
n1._next = n2._next;
return Range(n1._next);
}
/// ditto
alias stableLinearRemove = linearRemove;
/**
Removes the first occurence of an element from the list in linear time.
Returns: True if the element existed and was successfully removed, false otherwise.
Params:
value = value of the node to be removed
Complexity: $(BIGOH n)
*/
bool linearRemoveElement(T value)
{
auto n1 = findNodeByValue(_root, value);
if (n1 && n1._next)
{
n1._next = n1._next._next;
return true;
}
return false;
}
}
@safe unittest
{
import std.algorithm.comparison : equal;
auto e = SList!int();
auto b = e.linearRemoveElement(2);
assert(b == false);
assert(e.empty());
auto a = SList!int(-1, 1, 2, 1, 3, 4);
b = a.linearRemoveElement(1);
assert(equal(a[], [-1, 2, 1, 3, 4]));
assert(b == true);
b = a.linearRemoveElement(-1);
assert(b == true);
assert(equal(a[], [2, 1, 3, 4]));
b = a.linearRemoveElement(1);
assert(b == true);
assert(equal(a[], [2, 3, 4]));
b = a.linearRemoveElement(2);
assert(b == true);
b = a.linearRemoveElement(20);
assert(b == false);
assert(equal(a[], [3, 4]));
b = a.linearRemoveElement(4);
assert(b == true);
assert(equal(a[], [3]));
b = a.linearRemoveElement(3);
assert(b == true);
assert(a.empty());
a.linearRemoveElement(3);
}
@safe unittest
{
import std.algorithm.comparison : equal;
auto a = SList!int(5);
auto b = a;
auto r = a[];
a.insertFront(1);
b.insertFront(2);
assert(equal(a[], [2, 1, 5]));
assert(equal(b[], [2, 1, 5]));
r.front = 9;
assert(equal(a[], [2, 1, 9]));
assert(equal(b[], [2, 1, 9]));
}
@safe unittest
{
auto s = SList!int(1, 2, 3);
auto n = s.findLastNode(s._root);
assert(n && n._payload == 3);
}
@safe unittest
{
import std.range.primitives;
auto s = SList!int(1, 2, 5, 10);
assert(walkLength(s[]) == 4);
}
@safe unittest
{
import std.range : take;
auto src = take([0, 1, 2, 3], 3);
auto s = SList!int(src);
assert(s == SList!int(0, 1, 2));
}
@safe unittest
{
auto a = SList!int();
auto b = SList!int();
auto c = a ~ b[];
assert(c.empty);
}
@safe unittest
{
auto a = SList!int(1, 2, 3);
auto b = SList!int(4, 5, 6);
auto c = a ~ b[];
assert(c == SList!int(1, 2, 3, 4, 5, 6));
}
@safe unittest
{
auto a = SList!int(1, 2, 3);
auto b = [4, 5, 6];
auto c = a ~ b;
assert(c == SList!int(1, 2, 3, 4, 5, 6));
}
@safe unittest
{
auto a = SList!int(1, 2, 3);
auto c = a ~ 4;
assert(c == SList!int(1, 2, 3, 4));
}
@safe unittest
{
auto a = SList!int(2, 3, 4);
auto b = 1 ~ a;
assert(b == SList!int(1, 2, 3, 4));
}
@safe unittest
{
auto a = [1, 2, 3];
auto b = SList!int(4, 5, 6);
auto c = a ~ b;
assert(c == SList!int(1, 2, 3, 4, 5, 6));
}
@safe unittest
{
auto s = SList!int(1, 2, 3, 4);
s.insertFront([ 42, 43 ]);
assert(s == SList!int(42, 43, 1, 2, 3, 4));
}
@safe unittest
{
auto s = SList!int(1, 2, 3);
assert(s.removeAny() == 1);
assert(s == SList!int(2, 3));
assert(s.stableRemoveAny() == 2);
assert(s == SList!int(3));
}
@safe unittest
{
import std.algorithm.comparison : equal;
auto s = SList!int(1, 2, 3);
s.removeFront();
assert(equal(s[], [2, 3]));
s.stableRemoveFront();
assert(equal(s[], [3]));
}
@safe unittest
{
auto s = SList!int(1, 2, 3, 4, 5, 6, 7);
assert(s.removeFront(3) == 3);
assert(s == SList!int(4, 5, 6, 7));
}
@safe unittest
{
auto a = SList!int(1, 2, 3);
auto b = SList!int(1, 2, 3);
assert(a.insertAfter(a[], b[]) == 3);
}
@safe unittest
{
import std.range : take;
auto s = SList!int(1, 2, 3, 4);
auto r = take(s[], 2);
assert(s.insertAfter(r, 5) == 1);
assert(s == SList!int(1, 2, 5, 3, 4));
}
@safe unittest
{
import std.algorithm.comparison : equal;
import std.range : take;
// insertAfter documentation example
auto sl = SList!string(["a", "b", "d"]);
sl.insertAfter(sl[], "e"); // insert at the end (slowest)
assert(equal(sl[], ["a", "b", "d", "e"]));
sl.insertAfter(take(sl[], 2), "c"); // insert after "b"
assert(equal(sl[], ["a", "b", "c", "d", "e"]));
}
@safe unittest
{
import std.range.primitives;
auto s = SList!int(1, 2, 3, 4, 5);
auto r = s[];
popFrontN(r, 3);
auto r1 = s.linearRemove(r);
assert(s == SList!int(1, 2, 3));
assert(r1.empty);
}
@safe unittest
{
auto s = SList!int(1, 2, 3, 4, 5);
auto r = s[];
auto r1 = s.linearRemove(r);
assert(s == SList!int());
assert(r1.empty);
}
@safe unittest
{
import std.algorithm.comparison : equal;
import std.range;
auto s = SList!int(1, 2, 3, 4, 5, 6, 7, 8, 9, 10);
auto r = s[];
popFrontN(r, 3);
auto r1 = take(r, 4);
assert(equal(r1, [4, 5, 6, 7]));
auto r2 = s.linearRemove(r1);
assert(s == SList!int(1, 2, 3, 8, 9, 10));
assert(equal(r2, [8, 9, 10]));
}
@safe unittest
{
import std.range.primitives;
auto lst = SList!int(1, 5, 42, 9);
assert(!lst.empty);
assert(lst.front == 1);
assert(walkLength(lst[]) == 4);
auto lst2 = lst ~ [ 1, 2, 3 ];
assert(walkLength(lst2[]) == 7);
auto lst3 = lst ~ [ 7 ];
assert(walkLength(lst3[]) == 5);
}
@safe unittest
{
auto s = make!(SList!int)(1, 2, 3);
}
@safe unittest
{
// 5193
static struct Data
{
const int val;
}
SList!Data list;
}
@safe unittest
{
auto s = SList!int([1, 2, 3]);
s.front = 5; //test frontAssign
assert(s.front == 5);
auto r = s[];
r.front = 1; //test frontAssign
assert(r.front == 1);
}
@safe unittest
{
// issue 14920
SList!int s;
s.insertAfter(s[], 1);
assert(s.front == 1);
}
@safe unittest
{
// issue 15659
SList!int s;
s.clear();
}
@safe unittest
{
SList!int s;
s.reverse();
}
@safe unittest
{
import std.algorithm.comparison : equal;
auto s = SList!int([1, 2, 3]);
assert(s[].equal([1, 2, 3]));
s.reverse();
assert(s[].equal([3, 2, 1]));
}
@safe unittest
{
auto s = SList!int([4, 6, 8, 12, 16]);
auto d = s.dup;
assert(d !is s);
assert(d == s);
}
|
D
|
# FIXED
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/utils/lwiplib.c
utils/lwiplib.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/stdint.h
utils/lwiplib.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/stdbool.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/utils/lwiplib.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/opt.h
utils/lwiplib.obj: C:/Users/Adriano/Documents/GitHub/EK-TM4C129EXL/Workspace/enet_weather/lwipopts.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/debug.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/arch.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/ports/tiva-tm4c129/include/arch/cc.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/opt.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/api.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/netifapi.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/tcp.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/mem.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/pbuf.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/err.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/ipv4/lwip/ip.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/def.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/ipv4/lwip/ip_addr.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/netif.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/ipv4/lwip/icmp.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/udp.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/tcpip.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/sockets.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/stats.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/memp.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/memp_std.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/tcp_impl.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/timers.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/api/api_lib.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/api/api_msg.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/api/err.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/api/netbuf.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/api/netdb.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/netdb.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/api/netifapi.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/api/sockets.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/api/tcpip.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/def.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/dhcp.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/dhcp.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/ipv4/lwip/autoip.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/netif/etharp.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/dns.h
utils/lwiplib.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h
utils/lwiplib.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/linkage.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/dns.c
utils/lwiplib.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/init.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/init.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/sys.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/raw.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/snmp_msg.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/snmp.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/snmp_structs.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/ipv4/lwip/igmp.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/mem.c
utils/lwiplib.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/memp.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/api_msg.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/ipv4/lwip/ip_frag.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/netif/ppp_oe.h
utils/lwiplib.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/memp_std.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/memp_std.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/memp_std.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/netif.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/pbuf.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/ports/tiva-tm4c129/include/arch/perf.h
utils/lwiplib.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/raw.c
utils/lwiplib.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/stats.c
utils/lwiplib.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/sys.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/tcp.c
utils/lwiplib.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/tcp_in.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/ipv4/lwip/inet_chksum.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/tcp_out.c
utils/lwiplib.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/timers.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/udp.c
utils/lwiplib.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/ipv4/autoip.c
utils/lwiplib.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/stdlib.h
utils/lwiplib.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/ipv4/icmp.c
utils/lwiplib.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/ipv4/igmp.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/ipv4/inet.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/ipv4/lwip/inet.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/ipv4/inet_chksum.c
utils/lwiplib.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/stddef.h
utils/lwiplib.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/ipv4/ip.c
utils/lwiplib.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/ipv4/ip_addr.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/ipv4/ip_frag.c
utils/lwiplib.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/snmp/asn1_dec.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/snmp/asn1_enc.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/snmp/mib2.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/snmp/mib_structs.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/snmp/msg_in.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/snmp/msg_out.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/netif/etharp.c
utils/lwiplib.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/netif/ppp/auth.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/netif/ppp/chap.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/netif/ppp/chpms.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/netif/ppp/fsm.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/netif/ppp/ipcp.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/netif/ppp/lcp.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/netif/ppp/magic.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/netif/ppp/md5.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/netif/ppp/pap.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/netif/ppp/ppp.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/netif/ppp/ppp_oe.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/netif/ppp/randm.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/netif/ppp/vj.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/ports/tiva-tm4c129/perf.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/ports/tiva-tm4c129/sys_arch.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/inc/hw_types.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/driverlib/interrupt.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/driverlib/rom.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/driverlib/rom_map.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/ports/tiva-tm4c129/netif/tiva-tm4c129.c
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/ports/tiva-tm4c129/include/netif/tivaif.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/inc/hw_emac.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/inc/hw_ints.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/inc/hw_memmap.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/driverlib/emac.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/driverlib/sysctl.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/inc/hw_nvic.h
utils/lwiplib.obj: C:/ti/TivaWare_C_Series-2.1.4.178/driverlib/debug.h
C:/ti/TivaWare_C_Series-2.1.4.178/utils/lwiplib.c:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/stdint.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/stdbool.h:
C:/ti/TivaWare_C_Series-2.1.4.178/utils/lwiplib.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/opt.h:
C:/Users/Adriano/Documents/GitHub/EK-TM4C129EXL/Workspace/enet_weather/lwipopts.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/debug.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/arch.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/ports/tiva-tm4c129/include/arch/cc.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/opt.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/api.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/netifapi.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/tcp.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/mem.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/pbuf.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/err.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/ipv4/lwip/ip.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/def.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/ipv4/lwip/ip_addr.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/netif.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/ipv4/lwip/icmp.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/udp.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/tcpip.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/sockets.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/stats.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/memp.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/memp_std.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/tcp_impl.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/timers.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/api/api_lib.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/api/api_msg.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/api/err.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/api/netbuf.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/api/netdb.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/netdb.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/api/netifapi.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/api/sockets.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/api/tcpip.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/def.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/dhcp.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/dhcp.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/ipv4/lwip/autoip.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/netif/etharp.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/dns.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/linkage.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/dns.c:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/init.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/init.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/sys.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/raw.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/snmp_msg.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/snmp.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/snmp_structs.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/ipv4/lwip/igmp.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/mem.c:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/memp.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/api_msg.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/ipv4/lwip/ip_frag.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/netif/ppp_oe.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/memp_std.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/memp_std.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/lwip/memp_std.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/netif.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/pbuf.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/ports/tiva-tm4c129/include/arch/perf.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/raw.c:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/stats.c:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/sys.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/tcp.c:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/tcp_in.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/ipv4/lwip/inet_chksum.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/tcp_out.c:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/timers.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/udp.c:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/ipv4/autoip.c:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/stdlib.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/ipv4/icmp.c:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/ipv4/igmp.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/ipv4/inet.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/include/ipv4/lwip/inet.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/ipv4/inet_chksum.c:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/stddef.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/ipv4/ip.c:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/ipv4/ip_addr.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/ipv4/ip_frag.c:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/snmp/asn1_dec.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/snmp/asn1_enc.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/snmp/mib2.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/snmp/mib_structs.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/snmp/msg_in.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/core/snmp/msg_out.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/netif/etharp.c:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include/string.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/netif/ppp/auth.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/netif/ppp/chap.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/netif/ppp/chpms.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/netif/ppp/fsm.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/netif/ppp/ipcp.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/netif/ppp/lcp.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/netif/ppp/magic.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/netif/ppp/md5.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/netif/ppp/pap.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/netif/ppp/ppp.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/netif/ppp/ppp_oe.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/netif/ppp/randm.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/src/netif/ppp/vj.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/ports/tiva-tm4c129/perf.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/ports/tiva-tm4c129/sys_arch.c:
C:/ti/TivaWare_C_Series-2.1.4.178/inc/hw_types.h:
C:/ti/TivaWare_C_Series-2.1.4.178/driverlib/interrupt.h:
C:/ti/TivaWare_C_Series-2.1.4.178/driverlib/rom.h:
C:/ti/TivaWare_C_Series-2.1.4.178/driverlib/rom_map.h:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/ports/tiva-tm4c129/netif/tiva-tm4c129.c:
C:/ti/TivaWare_C_Series-2.1.4.178/third_party/lwip-1.4.1/ports/tiva-tm4c129/include/netif/tivaif.h:
C:/ti/TivaWare_C_Series-2.1.4.178/inc/hw_emac.h:
C:/ti/TivaWare_C_Series-2.1.4.178/inc/hw_ints.h:
C:/ti/TivaWare_C_Series-2.1.4.178/inc/hw_memmap.h:
C:/ti/TivaWare_C_Series-2.1.4.178/driverlib/emac.h:
C:/ti/TivaWare_C_Series-2.1.4.178/driverlib/sysctl.h:
C:/ti/TivaWare_C_Series-2.1.4.178/inc/hw_nvic.h:
C:/ti/TivaWare_C_Series-2.1.4.178/driverlib/debug.h:
|
D
|
// Written in the D programming language.
/**
Classes and functions for handling and transcoding between various encodings.
For cases where the _encoding is known at compile-time, functions are provided
for arbitrary _encoding and decoding of characters, arbitrary transcoding
between strings of different type, as well as validation and sanitization.
Encodings currently supported are UTF-8, UTF-16, UTF-32, ASCII, ISO-8859-1
(also known as LATIN-1), ISO-8859-2 (LATIN-2), WINDOWS-1250 and WINDOWS-1252.
$(SCRIPT inhibitQuickIndex = 1;)
$(BOOKTABLE,
$(TR $(TH Category) $(TH Functions))
$(TR $(TD Decode) $(TD
$(LREF codePoints)
$(LREF decode)
$(LREF decodeReverse)
$(LREF safeDecode)
))
$(TR $(TD Conversion) $(TD
$(LREF codeUnits)
$(LREF sanitize)
$(LREF transcode)
))
$(TR $(TD Classification) $(TD
$(LREF canEncode)
$(LREF isValid)
$(LREF isValidCodePoint)
$(LREF isValidCodeUnit)
))
$(TR $(TD BOM) $(TD
$(LREF BOM)
$(LREF BOMSeq)
$(LREF getBOM)
$(LREF utfBOM)
))
$(TR $(TD Length & Index) $(TD
$(LREF firstSequence)
$(LREF encodedLength)
$(LREF index)
$(LREF lastSequence)
$(LREF validLength)
))
$(TR $(TD Encoding schemes) $(TD
$(LREF encodingName)
$(LREF EncodingScheme)
$(LREF EncodingSchemeASCII)
$(LREF EncodingSchemeLatin1)
$(LREF EncodingSchemeLatin2)
$(LREF EncodingSchemeUtf16Native)
$(LREF EncodingSchemeUtf32Native)
$(LREF EncodingSchemeUtf8)
$(LREF EncodingSchemeWindows1250)
$(LREF EncodingSchemeWindows1252)
))
$(TR $(TD Representation) $(TD
$(LREF AsciiChar)
$(LREF AsciiString)
$(LREF Latin1Char)
$(LREF Latin1String)
$(LREF Latin2Char)
$(LREF Latin2String)
$(LREF Windows1250Char)
$(LREF Windows1250String)
$(LREF Windows1252Char)
$(LREF Windows1252String)
))
$(TR $(TD Exceptions) $(TD
$(LREF INVALID_SEQUENCE)
$(LREF EncodingException)
))
)
For cases where the _encoding is not known at compile-time, but is
known at run-time, the abstract class $(LREF EncodingScheme)
and its subclasses is provided. To construct a run-time encoder/decoder,
one does e.g.
----------------------------------------------------
auto e = EncodingScheme.create("utf-8");
----------------------------------------------------
This library supplies $(LREF EncodingScheme) subclasses for ASCII,
ISO-8859-1 (also known as LATIN-1), ISO-8859-2 (LATIN-2), WINDOWS-1250,
WINDOWS-1252, UTF-8, and (on little-endian architectures) UTF-16LE and
UTF-32LE; or (on big-endian architectures) UTF-16BE and UTF-32BE.
This library provides a mechanism whereby other modules may add $(LREF
EncodingScheme) subclasses for any other _encoding.
Copyright: Copyright Janice Caron 2008 - 2009.
License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: Janice Caron
Source: $(PHOBOSSRC std/_encoding.d)
*/
/*
Copyright Janice Caron 2008 - 2009.
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
module std.encoding;
import std.traits;
import std.typecons;
import std.range.primitives;
import std.internal.encodinginit;
@system unittest
{
static ubyte[][] validStrings =
[
// Plain ASCII
cast(ubyte[])"hello",
// First possible sequence of a certain length
[ 0x00 ], // U+00000000 one byte
[ 0xC2, 0x80 ], // U+00000080 two bytes
[ 0xE0, 0xA0, 0x80 ], // U+00000800 three bytes
[ 0xF0, 0x90, 0x80, 0x80 ], // U+00010000 three bytes
// Last possible sequence of a certain length
[ 0x7F ], // U+0000007F one byte
[ 0xDF, 0xBF ], // U+000007FF two bytes
[ 0xEF, 0xBF, 0xBF ], // U+0000FFFF three bytes
// Other boundary conditions
[ 0xED, 0x9F, 0xBF ],
// U+0000D7FF Last character before surrogates
[ 0xEE, 0x80, 0x80 ],
// U+0000E000 First character after surrogates
[ 0xEF, 0xBF, 0xBD ],
// U+0000FFFD Unicode replacement character
[ 0xF4, 0x8F, 0xBF, 0xBF ],
// U+0010FFFF Very last character
// Non-character code points
/* NOTE: These are legal in UTF, and may be converted from
one UTF to another, however they do not represent Unicode
characters. These code points have been reserved by
Unicode as non-character code points. They are permissible
for data exchange within an application, but they are are
not permitted to be used as characters. Since this module
deals with UTF, and not with Unicode per se, we choose to
accept them here. */
[ 0xDF, 0xBE ], // U+0000FFFE
[ 0xDF, 0xBF ], // U+0000FFFF
];
static ubyte[][] invalidStrings =
[
// First possible sequence of a certain length, but greater
// than U+10FFFF
[ 0xF8, 0x88, 0x80, 0x80, 0x80 ], // U+00200000 five bytes
[ 0xFC, 0x84, 0x80, 0x80, 0x80, 0x80 ], // U+04000000 six bytes
// Last possible sequence of a certain length, but greater than U+10FFFF
[ 0xF7, 0xBF, 0xBF, 0xBF ], // U+001FFFFF four bytes
[ 0xFB, 0xBF, 0xBF, 0xBF, 0xBF ], // U+03FFFFFF five bytes
[ 0xFD, 0xBF, 0xBF, 0xBF, 0xBF, 0xBF ], // U+7FFFFFFF six bytes
// Other boundary conditions
[ 0xF4, 0x90, 0x80, 0x80 ], // U+00110000
// First code
// point after
// last character
// Unexpected continuation bytes
[ 0x80 ],
[ 0xBF ],
[ 0x20, 0x80, 0x20 ],
[ 0x20, 0xBF, 0x20 ],
[ 0x80, 0x9F, 0xA0 ],
// Lonely start bytes
[ 0xC0 ],
[ 0xCF ],
[ 0x20, 0xC0, 0x20 ],
[ 0x20, 0xCF, 0x20 ],
[ 0xD0 ],
[ 0xDF ],
[ 0x20, 0xD0, 0x20 ],
[ 0x20, 0xDF, 0x20 ],
[ 0xE0 ],
[ 0xEF ],
[ 0x20, 0xE0, 0x20 ],
[ 0x20, 0xEF, 0x20 ],
[ 0xF0 ],
[ 0xF1 ],
[ 0xF2 ],
[ 0xF3 ],
[ 0xF4 ],
[ 0xF5 ], // If this were legal it would start a character > U+10FFFF
[ 0xF6 ], // If this were legal it would start a character > U+10FFFF
[ 0xF7 ], // If this were legal it would start a character > U+10FFFF
[ 0xEF, 0xBF ], // Three byte sequence with third byte missing
[ 0xF7, 0xBF, 0xBF ], // Four byte sequence with fourth byte missing
[ 0xEF, 0xBF, 0xF7, 0xBF, 0xBF ], // Concatenation of the above
// Impossible bytes
[ 0xF8 ],
[ 0xF9 ],
[ 0xFA ],
[ 0xFB ],
[ 0xFC ],
[ 0xFD ],
[ 0xFE ],
[ 0xFF ],
[ 0x20, 0xF8, 0x20 ],
[ 0x20, 0xF9, 0x20 ],
[ 0x20, 0xFA, 0x20 ],
[ 0x20, 0xFB, 0x20 ],
[ 0x20, 0xFC, 0x20 ],
[ 0x20, 0xFD, 0x20 ],
[ 0x20, 0xFE, 0x20 ],
[ 0x20, 0xFF, 0x20 ],
// Overlong sequences, all representing U+002F
/* With a safe UTF-8 decoder, all of the following five overlong
representations of the ASCII character slash ("/") should be
rejected like a malformed UTF-8 sequence */
[ 0xC0, 0xAF ],
[ 0xE0, 0x80, 0xAF ],
[ 0xF0, 0x80, 0x80, 0xAF ],
[ 0xF8, 0x80, 0x80, 0x80, 0xAF ],
[ 0xFC, 0x80, 0x80, 0x80, 0x80, 0xAF ],
// Maximum overlong sequences
/* Below you see the highest Unicode value that is still resulting in
an overlong sequence if represented with the given number of bytes.
This is a boundary test for safe UTF-8 decoders. All five
characters should be rejected like malformed UTF-8 sequences. */
[ 0xC1, 0xBF ], // U+0000007F
[ 0xE0, 0x9F, 0xBF ], // U+000007FF
[ 0xF0, 0x8F, 0xBF, 0xBF ], // U+0000FFFF
[ 0xF8, 0x87, 0xBF, 0xBF, 0xBF ], // U+001FFFFF
[ 0xFC, 0x83, 0xBF, 0xBF, 0xBF, 0xBF ], // U+03FFFFFF
// Overlong representation of the NUL character
/* The following five sequences should also be rejected like malformed
UTF-8 sequences and should not be treated like the ASCII NUL
character. */
[ 0xC0, 0x80 ],
[ 0xE0, 0x80, 0x80 ],
[ 0xF0, 0x80, 0x80, 0x80 ],
[ 0xF8, 0x80, 0x80, 0x80, 0x80 ],
[ 0xFC, 0x80, 0x80, 0x80, 0x80, 0x80 ],
// Illegal code positions
/* The following UTF-8 sequences should be rejected like malformed
sequences, because they never represent valid ISO 10646 characters
and a UTF-8 decoder that accepts them might introduce security
problems comparable to overlong UTF-8 sequences. */
[ 0xED, 0xA0, 0x80 ], // U+D800
[ 0xED, 0xAD, 0xBF ], // U+DB7F
[ 0xED, 0xAE, 0x80 ], // U+DB80
[ 0xED, 0xAF, 0xBF ], // U+DBFF
[ 0xED, 0xB0, 0x80 ], // U+DC00
[ 0xED, 0xBE, 0x80 ], // U+DF80
[ 0xED, 0xBF, 0xBF ], // U+DFFF
];
static string[] sanitizedStrings =
[
"\uFFFD","\uFFFD",
"\uFFFD","\uFFFD","\uFFFD","\uFFFD","\uFFFD","\uFFFD"," \uFFFD ",
" \uFFFD ","\uFFFD\uFFFD\uFFFD","\uFFFD","\uFFFD"," \uFFFD "," \uFFFD ",
"\uFFFD","\uFFFD"," \uFFFD "," \uFFFD ","\uFFFD","\uFFFD"," \uFFFD ",
" \uFFFD ","\uFFFD","\uFFFD","\uFFFD","\uFFFD","\uFFFD","\uFFFD",
"\uFFFD","\uFFFD","\uFFFD","\uFFFD","\uFFFD\uFFFD","\uFFFD","\uFFFD",
"\uFFFD","\uFFFD","\uFFFD","\uFFFD","\uFFFD","\uFFFD"," \uFFFD ",
" \uFFFD "," \uFFFD "," \uFFFD "," \uFFFD "," \uFFFD "," \uFFFD ",
" \uFFFD ","\uFFFD","\uFFFD","\uFFFD","\uFFFD","\uFFFD","\uFFFD",
"\uFFFD","\uFFFD","\uFFFD","\uFFFD","\uFFFD","\uFFFD","\uFFFD","\uFFFD",
"\uFFFD","\uFFFD","\uFFFD","\uFFFD","\uFFFD","\uFFFD","\uFFFD","\uFFFD",
];
// Make sure everything that should be valid, is
foreach (a;validStrings)
{
string s = cast(string) a;
assert(isValid(s),"Failed to validate: "~makeReadable(s));
}
// Make sure everything that shouldn't be valid, isn't
foreach (a;invalidStrings)
{
string s = cast(string) a;
assert(!isValid(s),"Incorrectly validated: "~makeReadable(s));
}
// Make sure we can sanitize everything bad
assert(invalidStrings.length == sanitizedStrings.length);
for (int i=0; i<invalidStrings.length; ++i)
{
string s = cast(string) invalidStrings[i];
string t = sanitize(s);
assert(isValid(t));
assert(t == sanitizedStrings[i]);
ubyte[] u = cast(ubyte[]) t;
validStrings ~= u;
}
// Make sure all transcodings work in both directions, using both forward
// and reverse iteration
foreach (a; validStrings)
{
string s = cast(string) a;
string s2;
wstring ws, ws2;
dstring ds, ds2;
transcode(s,ws);
assert(isValid(ws));
transcode(ws,s2);
assert(s == s2);
transcode(s,ds);
assert(isValid(ds));
transcode(ds,s2);
assert(s == s2);
transcode(ws,s);
assert(isValid(s));
transcode(s,ws2);
assert(ws == ws2);
transcode(ws,ds);
assert(isValid(ds));
transcode(ds,ws2);
assert(ws == ws2);
transcode(ds,s);
assert(isValid(s));
transcode(s,ds2);
assert(ds == ds2);
transcode(ds,ws);
assert(isValid(ws));
transcode(ws,ds2);
assert(ds == ds2);
transcodeReverse(s,ws);
assert(isValid(ws));
transcodeReverse(ws,s2);
assert(s == s2);
transcodeReverse(s,ds);
assert(isValid(ds));
transcodeReverse(ds,s2);
assert(s == s2);
transcodeReverse(ws,s);
assert(isValid(s));
transcodeReverse(s,ws2);
assert(ws == ws2);
transcodeReverse(ws,ds);
assert(isValid(ds));
transcodeReverse(ds,ws2);
assert(ws == ws2);
transcodeReverse(ds,s);
assert(isValid(s));
transcodeReverse(s,ds2);
assert(ds == ds2);
transcodeReverse(ds,ws);
assert(isValid(ws));
transcodeReverse(ws,ds2);
assert(ds == ds2);
}
// Make sure the non-UTF encodings work too
{
auto s = "\u20AC100";
Windows1252String t;
transcode(s,t);
assert(t == cast(Windows1252Char[])[0x80, '1', '0', '0']);
string u;
transcode(s,u);
assert(s == u);
Latin1String v;
transcode(s,v);
assert(cast(string) v == "?100");
AsciiString w;
transcode(v,w);
assert(cast(string) w == "?100");
s = "\u017Dlu\u0165ou\u010Dk\u00FD k\u016F\u0148";
Latin2String x;
transcode(s,x);
assert(x == cast(Latin2Char[])[0xae, 'l', 'u', 0xbb, 'o', 'u', 0xe8, 'k', 0xfd, ' ', 'k', 0xf9, 0xf2]);
Windows1250String y;
transcode(s,y);
assert(y == cast(Windows1250Char[])[0x8e, 'l', 'u', 0x9d, 'o', 'u', 0xe8, 'k', 0xfd, ' ', 'k', 0xf9, 0xf2]);
}
// Make sure we can count properly
{
assert(encodedLength!(char)('A') == 1);
assert(encodedLength!(char)('\u00E3') == 2);
assert(encodedLength!(char)('\u2028') == 3);
assert(encodedLength!(char)('\U0010FFF0') == 4);
assert(encodedLength!(wchar)('A') == 1);
assert(encodedLength!(wchar)('\U0010FFF0') == 2);
}
// Make sure we can write into mutable arrays
{
char[4] buffer;
auto n = encode(cast(dchar)'\u00E3',buffer);
assert(n == 2);
assert(buffer[0] == 0xC3);
assert(buffer[1] == 0xA3);
}
}
//=============================================================================
/** Special value returned by $(D safeDecode) */
enum dchar INVALID_SEQUENCE = cast(dchar) 0xFFFFFFFF;
template EncoderFunctions()
{
// Various forms of read
template ReadFromString()
{
@property bool canRead() { return s.length != 0; }
E peek() @safe pure @nogc nothrow { return s[0]; }
E read() @safe pure @nogc nothrow { E t = s[0]; s = s[1..$]; return t; }
}
template ReverseReadFromString()
{
@property bool canRead() { return s.length != 0; }
E peek() @safe pure @nogc nothrow { return s[$-1]; }
E read() @safe pure @nogc nothrow { E t = s[$-1]; s = s[0..$-1]; return t; }
}
// Various forms of Write
template WriteToString()
{
E[] s;
void write(E c) @safe pure nothrow { s ~= c; }
}
template WriteToArray()
{
void write(E c) @safe pure @nogc nothrow { array[0] = c; array = array[1..$]; }
}
template WriteToDelegate()
{
void write(E c) { dg(c); }
}
// Functions we will export
template EncodeViaWrite()
{
mixin encodeViaWrite;
void encode(dchar c) { encodeViaWrite(c); }
}
template SkipViaRead()
{
mixin skipViaRead;
void skip() @safe pure @nogc nothrow { skipViaRead(); }
}
template DecodeViaRead()
{
mixin decodeViaRead;
dchar decode() @safe pure @nogc nothrow { return decodeViaRead(); }
}
template SafeDecodeViaRead()
{
mixin safeDecodeViaRead;
dchar safeDecode() @safe pure @nogc nothrow { return safeDecodeViaRead(); }
}
template DecodeReverseViaRead()
{
mixin decodeReverseViaRead;
dchar decodeReverse() @safe pure @nogc nothrow { return decodeReverseViaRead(); }
}
// Encoding to different destinations
template EncodeToString()
{
mixin WriteToString;
mixin EncodeViaWrite;
}
template EncodeToArray()
{
mixin WriteToArray;
mixin EncodeViaWrite;
}
template EncodeToDelegate()
{
mixin WriteToDelegate;
mixin EncodeViaWrite;
}
// Decoding functions
template SkipFromString()
{
mixin ReadFromString;
mixin SkipViaRead;
}
template DecodeFromString()
{
mixin ReadFromString;
mixin DecodeViaRead;
}
template SafeDecodeFromString()
{
mixin ReadFromString;
mixin SafeDecodeViaRead;
}
template DecodeReverseFromString()
{
mixin ReverseReadFromString;
mixin DecodeReverseViaRead;
}
//=========================================================================
// Below are the functions we will ultimately expose to the user
E[] encode(dchar c) @safe pure nothrow
{
mixin EncodeToString e;
e.encode(c);
return e.s;
}
void encode(dchar c, ref E[] array) @safe pure nothrow
{
mixin EncodeToArray e;
e.encode(c);
}
void encode(dchar c, void delegate(E) dg)
{
mixin EncodeToDelegate e;
e.encode(c);
}
void skip(ref const(E)[] s) @safe pure nothrow
{
mixin SkipFromString e;
e.skip();
}
dchar decode(S)(ref S s)
{
mixin DecodeFromString e;
return e.decode();
}
dchar safeDecode(S)(ref S s)
{
mixin SafeDecodeFromString e;
return e.safeDecode();
}
dchar decodeReverse(ref const(E)[] s) @safe pure nothrow
{
mixin DecodeReverseFromString e;
return e.decodeReverse();
}
}
//=========================================================================
struct CodePoints(E)
{
const(E)[] s;
this(const(E)[] s)
in
{
assert(isValid(s));
}
body
{
this.s = s;
}
int opApply(scope int delegate(ref dchar) dg)
{
int result = 0;
while (s.length != 0)
{
dchar c = decode(s);
result = dg(c);
if (result != 0) break;
}
return result;
}
int opApply(scope int delegate(ref size_t, ref dchar) dg)
{
size_t i = 0;
int result = 0;
while (s.length != 0)
{
immutable len = s.length;
dchar c = decode(s);
size_t j = i; // We don't want the delegate corrupting i
result = dg(j,c);
if (result != 0) break;
i += len - s.length;
}
return result;
}
int opApplyReverse(scope int delegate(ref dchar) dg)
{
int result = 0;
while (s.length != 0)
{
dchar c = decodeReverse(s);
result = dg(c);
if (result != 0) break;
}
return result;
}
int opApplyReverse(scope int delegate(ref size_t, ref dchar) dg)
{
int result = 0;
while (s.length != 0)
{
dchar c = decodeReverse(s);
size_t i = s.length;
result = dg(i,c);
if (result != 0) break;
}
return result;
}
}
struct CodeUnits(E)
{
E[] s;
this(dchar d)
in
{
assert(isValidCodePoint(d));
}
body
{
s = encode!(E)(d);
}
int opApply(scope int delegate(ref E) dg)
{
int result = 0;
foreach (E c;s)
{
result = dg(c);
if (result != 0) break;
}
return result;
}
int opApplyReverse(scope int delegate(ref E) dg)
{
int result = 0;
foreach_reverse (E c;s)
{
result = dg(c);
if (result != 0) break;
}
return result;
}
}
//=============================================================================
template EncoderInstance(E)
{
static assert(false,"Cannot instantiate EncoderInstance for type "
~ E.stringof);
}
private template GenericEncoder()
{
bool canEncode(dchar c) @safe pure @nogc nothrow
{
if (c < m_charMapStart || (c > m_charMapEnd && c < 0x100)) return true;
if (c >= 0xFFFD) return false;
auto idx = 0;
while (idx < bstMap.length)
{
if (bstMap[idx][0] == c) return true;
idx = bstMap[idx][0] > c ? 2 * idx + 1 : 2 * idx + 2; // next BST index
}
return false;
}
bool isValidCodeUnit(E c) @safe pure @nogc nothrow
{
if (c < m_charMapStart || c > m_charMapEnd) return true;
return charMap[c-m_charMapStart] != 0xFFFD;
}
size_t encodedLength(dchar c) @safe pure @nogc nothrow
in
{
assert(canEncode(c));
}
body
{
return 1;
}
void encodeViaWrite()(dchar c)
{
if (c < m_charMapStart || (c > m_charMapEnd && c < 0x100)) {}
else if (c >= 0xFFFD) { c = '?'; }
else
{
auto idx = 0;
while (idx < bstMap.length)
{
if (bstMap[idx][0] == c)
{
write(cast(E) bstMap[idx][1]);
return;
}
idx = bstMap[idx][0] > c ? 2 * idx + 1 : 2 * idx + 2; // next BST index
}
c = '?';
}
write(cast(E) c);
}
void skipViaRead()()
{
read();
}
dchar decodeViaRead()()
{
E c = read();
return (c >= m_charMapStart && c <= m_charMapEnd) ? charMap[c-m_charMapStart] : c;
}
dchar safeDecodeViaRead()()
{
immutable E c = read();
immutable d = (c >= m_charMapStart && c <= m_charMapEnd) ? charMap[c-m_charMapStart] : c;
return d == 0xFFFD ? INVALID_SEQUENCE : d;
}
dchar decodeReverseViaRead()()
{
E c = read();
return (c >= m_charMapStart && c <= m_charMapEnd) ? charMap[c-m_charMapStart] : c;
}
@property EString replacementSequence() @safe pure @nogc nothrow
{
return cast(EString)("?");
}
mixin EncoderFunctions;
}
//=============================================================================
// ASCII
//=============================================================================
/** Defines various character sets. */
enum AsciiChar : ubyte { init }
/// Ditto
alias AsciiString = immutable(AsciiChar)[];
template EncoderInstance(CharType : AsciiChar)
{
alias E = AsciiChar;
alias EString = AsciiString;
@property string encodingName() @safe pure nothrow @nogc
{
return "ASCII";
}
bool canEncode(dchar c) @safe pure nothrow @nogc
{
return c < 0x80;
}
bool isValidCodeUnit(AsciiChar c) @safe pure nothrow @nogc
{
return c < 0x80;
}
size_t encodedLength(dchar c) @safe pure nothrow @nogc
in
{
assert(canEncode(c));
}
body
{
return 1;
}
void encodeX(Range)(dchar c, Range r)
{
if (!canEncode(c)) c = '?';
r.write(cast(AsciiChar) c);
}
void encodeViaWrite()(dchar c)
{
if (!canEncode(c)) c = '?';
write(cast(AsciiChar) c);
}
void skipViaRead()()
{
read();
}
dchar decodeViaRead()()
{
return read();
}
dchar safeDecodeViaRead()()
{
immutable c = read();
return canEncode(c) ? c : INVALID_SEQUENCE;
}
dchar decodeReverseViaRead()()
{
return read();
}
@property EString replacementSequence() @safe pure nothrow @nogc
{
return cast(EString)("?");
}
mixin EncoderFunctions;
}
//=============================================================================
// ISO-8859-1
//=============================================================================
/** Defines an Latin1-encoded character. */
enum Latin1Char : ubyte { init }
/**
Defines an Latin1-encoded string (as an array of $(D
immutable(Latin1Char))).
*/
alias Latin1String = immutable(Latin1Char)[];
template EncoderInstance(CharType : Latin1Char)
{
alias E = Latin1Char;
alias EString = Latin1String;
@property string encodingName() @safe pure nothrow @nogc
{
return "ISO-8859-1";
}
bool canEncode(dchar c) @safe pure nothrow @nogc
{
return c < 0x100;
}
bool isValidCodeUnit(Latin1Char c) @safe pure nothrow @nogc
{
return true;
}
size_t encodedLength(dchar c) @safe pure nothrow @nogc
in
{
assert(canEncode(c));
}
body
{
return 1;
}
void encodeViaWrite()(dchar c)
{
if (!canEncode(c)) c = '?';
write(cast(Latin1Char) c);
}
void skipViaRead()()
{
read();
}
dchar decodeViaRead()()
{
return read();
}
dchar safeDecodeViaRead()()
{
return read();
}
dchar decodeReverseViaRead()()
{
return read();
}
@property EString replacementSequence() @safe pure nothrow @nogc
{
return cast(EString)("?");
}
mixin EncoderFunctions;
}
//=============================================================================
// ISO-8859-2
//=============================================================================
/// Defines a Latin2-encoded character.
enum Latin2Char : ubyte { init }
/**
* Defines an Latin2-encoded string (as an array of $(D
* immutable(Latin2Char))).
*/
alias Latin2String = immutable(Latin2Char)[];
private template EncoderInstance(CharType : Latin2Char)
{
import std.typecons : Tuple, tuple;
alias E = Latin2Char;
alias EString = Latin2String;
@property string encodingName() @safe pure nothrow @nogc
{
return "ISO-8859-2";
}
private static immutable dchar m_charMapStart = 0xa1;
private static immutable dchar m_charMapEnd = 0xff;
private immutable wstring charMap =
"\u0104\u02D8\u0141\u00A4\u013D\u015A\u00A7\u00A8"~
"\u0160\u015E\u0164\u0179\u00AD\u017D\u017B\u00B0"~
"\u0105\u02DB\u0142\u00B4\u013E\u015B\u02C7\u00B8"~
"\u0161\u015F\u0165\u017A\u02DD\u017E\u017C\u0154"~
"\u00C1\u00C2\u0102\u00C4\u0139\u0106\u00C7\u010C"~
"\u00C9\u0118\u00CB\u011A\u00CD\u00CE\u010E\u0110"~
"\u0143\u0147\u00D3\u00D4\u0150\u00D6\u00D7\u0158"~
"\u016E\u00DA\u0170\u00DC\u00DD\u0162\u00DF\u0155"~
"\u00E1\u00E2\u0103\u00E4\u013A\u0107\u00E7\u010D"~
"\u00E9\u0119\u00EB\u011B\u00ED\u00EE\u010F\u0111"~
"\u0144\u0148\u00F3\u00F4\u0151\u00F6\u00F7\u0159"~
"\u016F\u00FA\u0171\u00FC\u00FD\u0163\u02D9";
private immutable Tuple!(wchar, char)[] bstMap = [
tuple('\u0148','\xF2'), tuple('\u00F3','\xF3'), tuple('\u0165','\xBB'),
tuple('\u00D3','\xD3'), tuple('\u010F','\xEF'), tuple('\u015B','\xB6'),
tuple('\u017C','\xBF'), tuple('\u00C1','\xC1'), tuple('\u00E1','\xE1'),
tuple('\u0103','\xE3'), tuple('\u013A','\xE5'), tuple('\u0155','\xE0'),
tuple('\u0161','\xB9'), tuple('\u0171','\xFB'), tuple('\u02D8','\xA2'),
tuple('\u00AD','\xAD'), tuple('\u00C9','\xC9'), tuple('\u00DA','\xDA'),
tuple('\u00E9','\xE9'), tuple('\u00FA','\xFA'), tuple('\u0107','\xE6'),
tuple('\u0119','\xEA'), tuple('\u0142','\xB3'), tuple('\u0151','\xF5'),
tuple('\u0159','\xF8'), tuple('\u015F','\xBA'), tuple('\u0163','\xFE'),
tuple('\u016F','\xF9'), tuple('\u017A','\xBC'), tuple('\u017E','\xBE'),
tuple('\u02DB','\xB2'), tuple('\u00A7','\xA7'), tuple('\u00B4','\xB4'),
tuple('\u00C4','\xC4'), tuple('\u00CD','\xCD'), tuple('\u00D6','\xD6'),
tuple('\u00DD','\xDD'), tuple('\u00E4','\xE4'), tuple('\u00ED','\xED'),
tuple('\u00F6','\xF6'), tuple('\u00FD','\xFD'), tuple('\u0105','\xB1'),
tuple('\u010D','\xE8'), tuple('\u0111','\xF0'), tuple('\u011B','\xEC'),
tuple('\u013E','\xB5'), tuple('\u0144','\xF1'), tuple('\u0150','\xD5'),
tuple('\u0154','\xC0'), tuple('\u0158','\xD8'), tuple('\u015A','\xA6'),
tuple('\u015E','\xAA'), tuple('\u0160','\xA9'), tuple('\u0162','\xDE'),
tuple('\u0164','\xAB'), tuple('\u016E','\xD9'), tuple('\u0170','\xDB'),
tuple('\u0179','\xAC'), tuple('\u017B','\xAF'), tuple('\u017D','\xAE'),
tuple('\u02C7','\xB7'), tuple('\u02D9','\xFF'), tuple('\u02DD','\xBD'),
tuple('\u00A4','\xA4'), tuple('\u00A8','\xA8'), tuple('\u00B0','\xB0'),
tuple('\u00B8','\xB8'), tuple('\u00C2','\xC2'), tuple('\u00C7','\xC7'),
tuple('\u00CB','\xCB'), tuple('\u00CE','\xCE'), tuple('\u00D4','\xD4'),
tuple('\u00D7','\xD7'), tuple('\u00DC','\xDC'), tuple('\u00DF','\xDF'),
tuple('\u00E2','\xE2'), tuple('\u00E7','\xE7'), tuple('\u00EB','\xEB'),
tuple('\u00EE','\xEE'), tuple('\u00F4','\xF4'), tuple('\u00F7','\xF7'),
tuple('\u00FC','\xFC'), tuple('\u0102','\xC3'), tuple('\u0104','\xA1'),
tuple('\u0106','\xC6'), tuple('\u010C','\xC8'), tuple('\u010E','\xCF'),
tuple('\u0110','\xD0'), tuple('\u0118','\xCA'), tuple('\u011A','\xCC'),
tuple('\u0139','\xC5'), tuple('\u013D','\xA5'), tuple('\u0141','\xA3'),
tuple('\u0143','\xD1'), tuple('\u0147','\xD2')
];
mixin GenericEncoder!();
}
//=============================================================================
// WINDOWS-1250
//=============================================================================
/// Defines a Windows1250-encoded character.
enum Windows1250Char : ubyte { init }
/**
* Defines an Windows1250-encoded string (as an array of $(D
* immutable(Windows1250Char))).
*/
alias Windows1250String = immutable(Windows1250Char)[];
private template EncoderInstance(CharType : Windows1250Char)
{
import std.typecons : Tuple, tuple;
alias E = Windows1250Char;
alias EString = Windows1250String;
@property string encodingName() @safe pure nothrow @nogc
{
return "windows-1250";
}
private static immutable dchar m_charMapStart = 0x80;
private static immutable dchar m_charMapEnd = 0xff;
private immutable wstring charMap =
"\u20AC\uFFFD\u201A\uFFFD\u201E\u2026\u2020\u2021"~
"\uFFFD\u2030\u0160\u2039\u015A\u0164\u017D\u0179"~
"\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014"~
"\uFFFD\u2122\u0161\u203A\u015B\u0165\u017E\u017A"~
"\u00A0\u02C7\u02D8\u0141\u00A4\u0104\u00A6\u00A7"~
"\u00A8\u00A9\u015E\u00AB\u00AC\u00AD\u00AE\u017B"~
"\u00B0\u00B1\u02DB\u0142\u00B4\u00B5\u00B6\u00B7"~
"\u00B8\u0105\u015F\u00BB\u013D\u02DD\u013E\u017C"~
"\u0154\u00C1\u00C2\u0102\u00C4\u0139\u0106\u00C7"~
"\u010C\u00C9\u0118\u00CB\u011A\u00CD\u00CE\u010E"~
"\u0110\u0143\u0147\u00D3\u00D4\u0150\u00D6\u00D7"~
"\u0158\u016E\u00DA\u0170\u00DC\u00DD\u0162\u00DF"~
"\u0155\u00E1\u00E2\u0103\u00E4\u013A\u0107\u00E7"~
"\u010D\u00E9\u0119\u00EB\u011B\u00ED\u00EE\u010F"~
"\u0111\u0144\u0148\u00F3\u00F4\u0151\u00F6\u00F7"~
"\u0159\u016F\u00FA\u0171\u00FC\u00FD\u0163\u02D9";
private immutable Tuple!(wchar, char)[] bstMap = [
tuple('\u011A','\xCC'), tuple('\u00DC','\xDC'), tuple('\u0179','\x8F'),
tuple('\u00B7','\xB7'), tuple('\u00FC','\xFC'), tuple('\u0158','\xD8'),
tuple('\u201C','\x93'), tuple('\u00AC','\xAC'), tuple('\u00CB','\xCB'),
tuple('\u00EB','\xEB'), tuple('\u010C','\xC8'), tuple('\u0143','\xD1'),
tuple('\u0162','\xDE'), tuple('\u02D9','\xFF'), tuple('\u2039','\x8B'),
tuple('\u00A7','\xA7'), tuple('\u00B1','\xB1'), tuple('\u00C2','\xC2'),
tuple('\u00D4','\xD4'), tuple('\u00E2','\xE2'), tuple('\u00F4','\xF4'),
tuple('\u0104','\xA5'), tuple('\u0110','\xD0'), tuple('\u013D','\xBC'),
tuple('\u0150','\xD5'), tuple('\u015E','\xAA'), tuple('\u016E','\xD9'),
tuple('\u017D','\x8E'), tuple('\u2014','\x97'), tuple('\u2021','\x87'),
tuple('\u20AC','\x80'), tuple('\u00A4','\xA4'), tuple('\u00A9','\xA9'),
tuple('\u00AE','\xAE'), tuple('\u00B5','\xB5'), tuple('\u00BB','\xBB'),
tuple('\u00C7','\xC7'), tuple('\u00CE','\xCE'), tuple('\u00D7','\xD7'),
tuple('\u00DF','\xDF'), tuple('\u00E7','\xE7'), tuple('\u00EE','\xEE'),
tuple('\u00F7','\xF7'), tuple('\u0102','\xC3'), tuple('\u0106','\xC6'),
tuple('\u010E','\xCF'), tuple('\u0118','\xCA'), tuple('\u0139','\xC5'),
tuple('\u0141','\xA3'), tuple('\u0147','\xD2'), tuple('\u0154','\xC0'),
tuple('\u015A','\x8C'), tuple('\u0160','\x8A'), tuple('\u0164','\x8D'),
tuple('\u0170','\xDB'), tuple('\u017B','\xAF'), tuple('\u02C7','\xA1'),
tuple('\u02DD','\xBD'), tuple('\u2019','\x92'), tuple('\u201E','\x84'),
tuple('\u2026','\x85'), tuple('\u203A','\x9B'), tuple('\u2122','\x99'),
tuple('\u00A0','\xA0'), tuple('\u00A6','\xA6'), tuple('\u00A8','\xA8'),
tuple('\u00AB','\xAB'), tuple('\u00AD','\xAD'), tuple('\u00B0','\xB0'),
tuple('\u00B4','\xB4'), tuple('\u00B6','\xB6'), tuple('\u00B8','\xB8'),
tuple('\u00C1','\xC1'), tuple('\u00C4','\xC4'), tuple('\u00C9','\xC9'),
tuple('\u00CD','\xCD'), tuple('\u00D3','\xD3'), tuple('\u00D6','\xD6'),
tuple('\u00DA','\xDA'), tuple('\u00DD','\xDD'), tuple('\u00E1','\xE1'),
tuple('\u00E4','\xE4'), tuple('\u00E9','\xE9'), tuple('\u00ED','\xED'),
tuple('\u00F3','\xF3'), tuple('\u00F6','\xF6'), tuple('\u00FA','\xFA'),
tuple('\u00FD','\xFD'), tuple('\u0103','\xE3'), tuple('\u0105','\xB9'),
tuple('\u0107','\xE6'), tuple('\u010D','\xE8'), tuple('\u010F','\xEF'),
tuple('\u0111','\xF0'), tuple('\u0119','\xEA'), tuple('\u011B','\xEC'),
tuple('\u013A','\xE5'), tuple('\u013E','\xBE'), tuple('\u0142','\xB3'),
tuple('\u0144','\xF1'), tuple('\u0148','\xF2'), tuple('\u0151','\xF5'),
tuple('\u0155','\xE0'), tuple('\u0159','\xF8'), tuple('\u015B','\x9C'),
tuple('\u015F','\xBA'), tuple('\u0161','\x9A'), tuple('\u0163','\xFE'),
tuple('\u0165','\x9D'), tuple('\u016F','\xF9'), tuple('\u0171','\xFB'),
tuple('\u017A','\x9F'), tuple('\u017C','\xBF'), tuple('\u017E','\x9E'),
tuple('\u02D8','\xA2'), tuple('\u02DB','\xB2'), tuple('\u2013','\x96'),
tuple('\u2018','\x91'), tuple('\u201A','\x82'), tuple('\u201D','\x94'),
tuple('\u2020','\x86'), tuple('\u2022','\x95'), tuple('\u2030','\x89')
];
mixin GenericEncoder!();
}
//=============================================================================
// WINDOWS-1252
//=============================================================================
/// Defines a Windows1252-encoded character.
enum Windows1252Char : ubyte { init }
/**
* Defines an Windows1252-encoded string (as an array of $(D
* immutable(Windows1252Char))).
*/
alias Windows1252String = immutable(Windows1252Char)[];
template EncoderInstance(CharType : Windows1252Char)
{
import std.typecons : Tuple, tuple;
alias E = Windows1252Char;
alias EString = Windows1252String;
@property string encodingName() @safe pure nothrow @nogc
{
return "windows-1252";
}
private static immutable dchar m_charMapStart = 0x80;
private static immutable dchar m_charMapEnd = 0x9f;
private immutable wstring charMap =
"\u20AC\uFFFD\u201A\u0192\u201E\u2026\u2020\u2021"~
"\u02C6\u2030\u0160\u2039\u0152\uFFFD\u017D\uFFFD"~
"\uFFFD\u2018\u2019\u201C\u201D\u2022\u2013\u2014"~
"\u02DC\u2122\u0161\u203A\u0153\uFFFD\u017E\u0178";
private immutable Tuple!(wchar, char)[] bstMap = [
tuple('\u201C','\x93'), tuple('\u0192','\x83'), tuple('\u2039','\x8B'),
tuple('\u0161','\x9A'), tuple('\u2014','\x97'), tuple('\u2021','\x87'),
tuple('\u20AC','\x80'), tuple('\u0153','\x9C'), tuple('\u017D','\x8E'),
tuple('\u02DC','\x98'), tuple('\u2019','\x92'), tuple('\u201E','\x84'),
tuple('\u2026','\x85'), tuple('\u203A','\x9B'), tuple('\u2122','\x99'),
tuple('\u0152','\x8C'), tuple('\u0160','\x8A'), tuple('\u0178','\x9F'),
tuple('\u017E','\x9E'), tuple('\u02C6','\x88'), tuple('\u2013','\x96'),
tuple('\u2018','\x91'), tuple('\u201A','\x82'), tuple('\u201D','\x94'),
tuple('\u2020','\x86'), tuple('\u2022','\x95'), tuple('\u2030','\x89')
];
mixin GenericEncoder!();
}
//=============================================================================
// UTF-8
//=============================================================================
template EncoderInstance(CharType : char)
{
alias E = char;
alias EString = immutable(char)[];
@property string encodingName() @safe pure nothrow @nogc
{
return "UTF-8";
}
bool canEncode(dchar c) @safe pure nothrow @nogc
{
return isValidCodePoint(c);
}
bool isValidCodeUnit(char c) @safe pure nothrow @nogc
{
return (c < 0xC0 || (c >= 0xC2 && c < 0xF5));
}
immutable ubyte[128] tailTable =
[
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
3,3,3,3,3,3,3,3,4,4,4,4,5,5,6,0,
];
private int tails(char c) @safe pure nothrow @nogc
in
{
assert(c >= 0x80);
}
body
{
return tailTable[c-0x80];
}
size_t encodedLength(dchar c) @safe pure nothrow @nogc
in
{
assert(canEncode(c));
}
body
{
if (c < 0x80) return 1;
if (c < 0x800) return 2;
if (c < 0x10000) return 3;
return 4;
}
void encodeViaWrite()(dchar c)
{
if (c < 0x80)
{
write(cast(char) c);
}
else if (c < 0x800)
{
write(cast(char)((c >> 6) + 0xC0));
write(cast(char)((c & 0x3F) + 0x80));
}
else if (c < 0x10000)
{
write(cast(char)((c >> 12) + 0xE0));
write(cast(char)(((c >> 6) & 0x3F) + 0x80));
write(cast(char)((c & 0x3F) + 0x80));
}
else
{
write(cast(char)((c >> 18) + 0xF0));
write(cast(char)(((c >> 12) & 0x3F) + 0x80));
write(cast(char)(((c >> 6) & 0x3F) + 0x80));
write(cast(char)((c & 0x3F) + 0x80));
}
}
void skipViaRead()()
{
auto c = read();
if (c < 0xC0) return;
int n = tails(cast(char) c);
for (size_t i=0; i<n; ++i)
{
read();
}
}
dchar decodeViaRead()()
{
dchar c = read();
if (c < 0xC0) return c;
int n = tails(cast(char) c);
c &= (1 << (6 - n)) - 1;
for (size_t i=0; i<n; ++i)
{
c = (c << 6) + (read() & 0x3F);
}
return c;
}
dchar safeDecodeViaRead()()
{
dchar c = read();
if (c < 0x80) return c;
int n = tails(cast(char) c);
if (n == 0) return INVALID_SEQUENCE;
if (!canRead) return INVALID_SEQUENCE;
size_t d = peek();
immutable err =
(
(c < 0xC2) // fail overlong 2-byte sequences
|| (c > 0xF4) // fail overlong 4-6-byte sequences
|| (c == 0xE0 && ((d & 0xE0) == 0x80)) // fail overlong 3-byte sequences
|| (c == 0xED && ((d & 0xE0) == 0xA0)) // fail surrogates
|| (c == 0xF0 && ((d & 0xF0) == 0x80)) // fail overlong 4-byte sequences
|| (c == 0xF4 && ((d & 0xF0) >= 0x90)) // fail code points > 0x10FFFF
);
c &= (1 << (6 - n)) - 1;
for (size_t i=0; i<n; ++i)
{
if (!canRead) return INVALID_SEQUENCE;
d = peek();
if ((d & 0xC0) != 0x80) return INVALID_SEQUENCE;
c = (c << 6) + (read() & 0x3F);
}
return err ? INVALID_SEQUENCE : c;
}
dchar decodeReverseViaRead()()
{
dchar c = read();
if (c < 0x80) return c;
size_t shift = 0;
c &= 0x3F;
for (size_t i=0; i<4; ++i)
{
shift += 6;
auto d = read();
size_t n = tails(cast(char) d);
immutable mask = n == 0 ? 0x3F : (1 << (6 - n)) - 1;
c += ((d & mask) << shift);
if (n != 0) break;
}
return c;
}
@property EString replacementSequence() @safe pure nothrow @nogc
{
return "\uFFFD";
}
mixin EncoderFunctions;
}
//=============================================================================
// UTF-16
//=============================================================================
template EncoderInstance(CharType : wchar)
{
alias E = wchar;
alias EString = immutable(wchar)[];
@property string encodingName() @safe pure nothrow @nogc
{
return "UTF-16";
}
bool canEncode(dchar c) @safe pure nothrow @nogc
{
return isValidCodePoint(c);
}
bool isValidCodeUnit(wchar c) @safe pure nothrow @nogc
{
return true;
}
size_t encodedLength(dchar c) @safe pure nothrow @nogc
in
{
assert(canEncode(c));
}
body
{
return (c < 0x10000) ? 1 : 2;
}
void encodeViaWrite()(dchar c)
{
if (c < 0x10000)
{
write(cast(wchar) c);
}
else
{
size_t n = c - 0x10000;
write(cast(wchar)(0xD800 + (n >> 10)));
write(cast(wchar)(0xDC00 + (n & 0x3FF)));
}
}
void skipViaRead()()
{
immutable c = read();
if (c < 0xD800 || c >= 0xE000) return;
read();
}
dchar decodeViaRead()()
{
wchar c = read();
if (c < 0xD800 || c >= 0xE000) return cast(dchar) c;
wchar d = read();
c &= 0x3FF;
d &= 0x3FF;
return 0x10000 + (c << 10) + d;
}
dchar safeDecodeViaRead()()
{
wchar c = read();
if (c < 0xD800 || c >= 0xE000) return cast(dchar) c;
if (c >= 0xDC00) return INVALID_SEQUENCE;
if (!canRead) return INVALID_SEQUENCE;
wchar d = peek();
if (d < 0xDC00 || d >= 0xE000) return INVALID_SEQUENCE;
d = read();
c &= 0x3FF;
d &= 0x3FF;
return 0x10000 + (c << 10) + d;
}
dchar decodeReverseViaRead()()
{
wchar c = read();
if (c < 0xD800 || c >= 0xE000) return cast(dchar) c;
wchar d = read();
c &= 0x3FF;
d &= 0x3FF;
return 0x10000 + (d << 10) + c;
}
@property EString replacementSequence() @safe pure nothrow @nogc
{
return "\uFFFD"w;
}
mixin EncoderFunctions;
}
//=============================================================================
// UTF-32
//=============================================================================
template EncoderInstance(CharType : dchar)
{
alias E = dchar;
alias EString = immutable(dchar)[];
@property string encodingName() @safe pure nothrow @nogc
{
return "UTF-32";
}
bool canEncode(dchar c) @safe pure @nogc nothrow
{
return isValidCodePoint(c);
}
bool isValidCodeUnit(dchar c) @safe pure @nogc nothrow
{
return isValidCodePoint(c);
}
size_t encodedLength(dchar c) @safe pure @nogc nothrow
in
{
assert(canEncode(c));
}
body
{
return 1;
}
void encodeViaWrite()(dchar c)
{
write(c);
}
void skipViaRead()()
{
read();
}
dchar decodeViaRead()()
{
return cast(dchar) read();
}
dchar safeDecodeViaRead()()
{
immutable c = read();
return isValidCodePoint(c) ? c : INVALID_SEQUENCE;
}
dchar decodeReverseViaRead()()
{
return cast(dchar) read();
}
@property EString replacementSequence() @safe pure nothrow @nogc
{
return "\uFFFD"d;
}
mixin EncoderFunctions;
}
//=============================================================================
// Below are forwarding functions which expose the function to the user
/**
Returns true if c is a valid code point
Note that this includes the non-character code points U+FFFE and U+FFFF,
since these are valid code points (even though they are not valid
characters).
Supersedes:
This function supersedes $(D std.utf.startsValidDchar()).
Standards: Unicode 5.0, ASCII, ISO-8859-1, ISO-8859-2, WINDOWS-1250,
WINDOWS-1252
Params:
c = the code point to be tested
*/
bool isValidCodePoint(dchar c) @safe pure nothrow @nogc
{
return c < 0xD800 || (c >= 0xE000 && c < 0x110000);
}
/**
Returns the name of an encoding.
The type of encoding cannot be deduced. Therefore, it is necessary to
explicitly specify the encoding type.
Standards: Unicode 5.0, ASCII, ISO-8859-1, ISO-8859-2, WINDOWS-1250,
WINDOWS-1252
*/
@property string encodingName(T)()
{
return EncoderInstance!(T).encodingName;
}
///
@safe unittest
{
assert(encodingName!(char) == "UTF-8");
assert(encodingName!(wchar) == "UTF-16");
assert(encodingName!(dchar) == "UTF-32");
assert(encodingName!(AsciiChar) == "ASCII");
assert(encodingName!(Latin1Char) == "ISO-8859-1");
assert(encodingName!(Latin2Char) == "ISO-8859-2");
assert(encodingName!(Windows1250Char) == "windows-1250");
assert(encodingName!(Windows1252Char) == "windows-1252");
}
/**
Returns true iff it is possible to represent the specified codepoint
in the encoding.
The type of encoding cannot be deduced. Therefore, it is necessary to
explicitly specify the encoding type.
Standards: Unicode 5.0, ASCII, ISO-8859-1, ISO-8859-2, WINDOWS-1250,
WINDOWS-1252
*/
bool canEncode(E)(dchar c)
{
return EncoderInstance!(E).canEncode(c);
}
///
@safe pure unittest
{
assert( canEncode!(Latin1Char)('A'));
assert( canEncode!(Latin2Char)('A'));
assert(!canEncode!(AsciiChar)('\u00A0'));
assert( canEncode!(Latin1Char)('\u00A0'));
assert( canEncode!(Latin2Char)('\u00A0'));
assert( canEncode!(Windows1250Char)('\u20AC'));
assert(!canEncode!(Windows1250Char)('\u20AD'));
assert(!canEncode!(Windows1250Char)('\uFFFD'));
assert( canEncode!(Windows1252Char)('\u20AC'));
assert(!canEncode!(Windows1252Char)('\u20AD'));
assert(!canEncode!(Windows1252Char)('\uFFFD'));
assert(!canEncode!(char)(cast(dchar) 0x110000));
}
/// How to check an entire string
@safe pure unittest
{
import std.algorithm.searching : find;
import std.utf : byDchar;
assert("The quick brown fox"
.byDchar
.find!(x => !canEncode!AsciiChar(x))
.empty);
}
/**
Returns true if the code unit is legal. For example, the byte 0x80 would
not be legal in ASCII, because ASCII code units must always be in the range
0x00 to 0x7F.
Standards: Unicode 5.0, ASCII, ISO-8859-1, ISO-8859-2, WINDOWS-1250,
WINDOWS-1252
Params:
c = the code unit to be tested
*/
bool isValidCodeUnit(E)(E c)
{
return EncoderInstance!(E).isValidCodeUnit(c);
}
///
@system pure unittest
{
assert(!isValidCodeUnit(cast(char) 0xC0));
assert(!isValidCodeUnit(cast(char) 0xFF));
assert( isValidCodeUnit(cast(wchar) 0xD800));
assert(!isValidCodeUnit(cast(dchar) 0xD800));
assert(!isValidCodeUnit(cast(AsciiChar) 0xA0));
assert( isValidCodeUnit(cast(Windows1250Char) 0x80));
assert(!isValidCodeUnit(cast(Windows1250Char) 0x81));
assert( isValidCodeUnit(cast(Windows1252Char) 0x80));
assert(!isValidCodeUnit(cast(Windows1252Char) 0x81));
}
/**
Returns true if the string is encoded correctly
Supersedes:
This function supersedes std.utf.validate(), however note that this
function returns a bool indicating whether the input was valid or not,
whereas the older function would throw an exception.
Standards: Unicode 5.0, ASCII, ISO-8859-1, ISO-8859-2, WINDOWS-1250,
WINDOWS-1252
Params:
s = the string to be tested
*/
bool isValid(E)(const(E)[] s)
{
return s.length == validLength(s);
}
///
@system pure unittest
{
assert( isValid("\u20AC100"));
assert(!isValid(cast(char[3])[167, 133, 175]));
}
/**
Returns the length of the longest possible substring, starting from
the first code unit, which is validly encoded.
Standards: Unicode 5.0, ASCII, ISO-8859-1, ISO-8859-2, WINDOWS-1250,
WINDOWS-1252
Params:
s = the string to be tested
*/
size_t validLength(E)(const(E)[] s)
{
size_t result, before = void;
while ((before = s.length) > 0)
{
if (EncoderInstance!(E).safeDecode(s) == INVALID_SEQUENCE)
break;
result += before - s.length;
}
return result;
}
/**
Sanitizes a string by replacing malformed code unit sequences with valid
code unit sequences. The result is guaranteed to be valid for this encoding.
If the input string is already valid, this function returns the original,
otherwise it constructs a new string by replacing all illegal code unit
sequences with the encoding's replacement character, Invalid sequences will
be replaced with the Unicode replacement character (U+FFFD) if the
character repertoire contains it, otherwise invalid sequences will be
replaced with '?'.
Standards: Unicode 5.0, ASCII, ISO-8859-1, ISO-8859-2, WINDOWS-1250,
WINDOWS-1252
Params:
s = the string to be sanitized
*/
immutable(E)[] sanitize(E)(immutable(E)[] s)
{
size_t n = validLength(s);
if (n == s.length) return s;
auto repSeq = EncoderInstance!(E).replacementSequence;
// Count how long the string needs to be.
// Overestimating is not a problem
size_t len = s.length;
const(E)[] t = s[n..$];
while (t.length != 0)
{
immutable c = EncoderInstance!(E).safeDecode(t);
assert(c == INVALID_SEQUENCE);
len += repSeq.length;
t = t[validLength(t)..$];
}
// Now do the write
E[] array = new E[len];
array[0 .. n] = s[0 .. n];
size_t offset = n;
t = s[n..$];
while (t.length != 0)
{
immutable c = EncoderInstance!(E).safeDecode(t);
assert(c == INVALID_SEQUENCE);
array[offset .. offset+repSeq.length] = repSeq[];
offset += repSeq.length;
n = validLength(t);
array[offset .. offset+n] = t[0 .. n];
offset += n;
t = t[n..$];
}
return cast(immutable(E)[])array[0 .. offset];
}
///
@system pure unittest
{
assert(sanitize("hello \xF0\x80world") == "hello \xEF\xBF\xBDworld");
}
/**
Returns the length of the first encoded sequence.
The input to this function MUST be validly encoded.
This is enforced by the function's in-contract.
Standards: Unicode 5.0, ASCII, ISO-8859-1, ISO-8859-2, WINDOWS-1250,
WINDOWS-1252
Params:
s = the string to be sliced
*/
size_t firstSequence(E)(const(E)[] s)
in
{
assert(s.length != 0);
const(E)[] u = s;
assert(safeDecode(u) != INVALID_SEQUENCE);
}
body
{
auto before = s.length;
EncoderInstance!(E).skip(s);
return before - s.length;
}
///
@system pure unittest
{
assert(firstSequence("\u20AC1000") == "\u20AC".length);
assert(firstSequence("hel") == "h".length);
}
/**
Returns the length of the last encoded sequence.
The input to this function MUST be validly encoded.
This is enforced by the function's in-contract.
Standards: Unicode 5.0, ASCII, ISO-8859-1, ISO-8859-2, WINDOWS-1250,
WINDOWS-1252
Params:
s = the string to be sliced
*/
size_t lastSequence(E)(const(E)[] s)
in
{
assert(s.length != 0);
assert(isValid(s));
}
body
{
const(E)[] t = s;
EncoderInstance!(E).decodeReverse(s);
return t.length - s.length;
}
///
@system pure unittest
{
assert(lastSequence("1000\u20AC") == "\u20AC".length);
assert(lastSequence("hellö") == "ö".length);
}
/**
Returns the array index at which the (n+1)th code point begins.
The input to this function MUST be validly encoded.
This is enforced by the function's in-contract.
Supersedes:
This function supersedes std.utf.toUTFindex().
Standards: Unicode 5.0, ASCII, ISO-8859-1, ISO-8859-2, WINDOWS-1250,
WINDOWS-1252
Params:
s = the string to be counted
n = the current code point index
*/
ptrdiff_t index(E)(const(E)[] s,int n)
in
{
assert(isValid(s));
assert(n >= 0);
}
body
{
const(E)[] t = s;
for (size_t i=0; i<n; ++i) EncoderInstance!(E).skip(s);
return t.length - s.length;
}
///
@system pure unittest
{
assert(index("\u20AC100",1) == 3);
assert(index("hällo",2) == 3);
}
/**
Decodes a single code point.
This function removes one or more code units from the start of a string,
and returns the decoded code point which those code units represent.
The input to this function MUST be validly encoded.
This is enforced by the function's in-contract.
Supersedes:
This function supersedes std.utf.decode(), however, note that the
function codePoints() supersedes it more conveniently.
Standards: Unicode 5.0, ASCII, ISO-8859-1, ISO-8859-2, WINDOWS-1250,
WINDOWS-1252
Params:
s = the string whose first code point is to be decoded
*/
dchar decode(S)(ref S s)
in
{
assert(s.length != 0);
auto u = s;
assert(safeDecode(u) != INVALID_SEQUENCE);
}
body
{
return EncoderInstance!(typeof(s[0])).decode(s);
}
/**
Decodes a single code point from the end of a string.
This function removes one or more code units from the end of a string,
and returns the decoded code point which those code units represent.
The input to this function MUST be validly encoded.
This is enforced by the function's in-contract.
Standards: Unicode 5.0, ASCII, ISO-8859-1, ISO-8859-2, WINDOWS-1250,
WINDOWS-1252
Params:
s = the string whose first code point is to be decoded
*/
dchar decodeReverse(E)(ref const(E)[] s)
in
{
assert(s.length != 0);
assert(isValid(s));
}
body
{
return EncoderInstance!(E).decodeReverse(s);
}
/**
Decodes a single code point. The input does not have to be valid.
This function removes one or more code units from the start of a string,
and returns the decoded code point which those code units represent.
This function will accept an invalidly encoded string as input.
If an invalid sequence is found at the start of the string, this
function will remove it, and return the value INVALID_SEQUENCE.
Standards: Unicode 5.0, ASCII, ISO-8859-1, ISO-8859-2, WINDOWS-1250,
WINDOWS-1252
Params:
s = the string whose first code point is to be decoded
*/
dchar safeDecode(S)(ref S s)
in
{
assert(s.length != 0);
}
body
{
return EncoderInstance!(typeof(s[0])).safeDecode(s);
}
/**
Returns the number of code units required to encode a single code point.
The input to this function MUST be a valid code point.
This is enforced by the function's in-contract.
The type of the output cannot be deduced. Therefore, it is necessary to
explicitly specify the encoding as a template parameter.
Standards: Unicode 5.0, ASCII, ISO-8859-1, ISO-8859-2, WINDOWS-1250,
WINDOWS-1252
Params:
c = the code point to be encoded
*/
size_t encodedLength(E)(dchar c)
in
{
assert(isValidCodePoint(c));
}
body
{
return EncoderInstance!(E).encodedLength(c);
}
/**
Encodes a single code point.
This function encodes a single code point into one or more code units.
It returns a string containing those code units.
The input to this function MUST be a valid code point.
This is enforced by the function's in-contract.
The type of the output cannot be deduced. Therefore, it is necessary to
explicitly specify the encoding as a template parameter.
Supersedes:
This function supersedes std.utf.encode(), however, note that the
function codeUnits() supersedes it more conveniently.
Standards: Unicode 5.0, ASCII, ISO-8859-1, ISO-8859-2, WINDOWS-1250,
WINDOWS-1252
Params:
c = the code point to be encoded
*/
E[] encode(E)(dchar c)
in
{
assert(isValidCodePoint(c));
}
body
{
return EncoderInstance!(E).encode(c);
}
/**
Encodes a single code point into an array.
This function encodes a single code point into one or more code units
The code units are stored in a user-supplied fixed-size array,
which must be passed by reference.
The input to this function MUST be a valid code point.
This is enforced by the function's in-contract.
The type of the output cannot be deduced. Therefore, it is necessary to
explicitly specify the encoding as a template parameter.
Supersedes:
This function supersedes std.utf.encode(), however, note that the
function codeUnits() supersedes it more conveniently.
Standards: Unicode 5.0, ASCII, ISO-8859-1, ISO-8859-2, WINDOWS-1250,
WINDOWS-1252
Params:
c = the code point to be encoded
array = the destination array
Returns:
the number of code units written to the array
*/
size_t encode(E)(dchar c, E[] array)
in
{
assert(isValidCodePoint(c));
}
body
{
E[] t = array;
EncoderInstance!(E).encode(c,t);
return array.length - t.length;
}
/*
Encodes $(D c) in units of type $(D E) and writes the result to the
output range $(D R). Returns the number of $(D E)s written.
*/
size_t encode(E, R)(dchar c, auto ref R range)
if (isNativeOutputRange!(R, E))
{
static if (is(Unqual!E == char))
{
if (c <= 0x7F)
{
put(range, cast(char) c);
return 1;
}
if (c <= 0x7FF)
{
put(range, cast(char)(0xC0 | (c >> 6)));
put(range, cast(char)(0x80 | (c & 0x3F)));
return 2;
}
if (c <= 0xFFFF)
{
put(range, cast(char)(0xE0 | (c >> 12)));
put(range, cast(char)(0x80 | ((c >> 6) & 0x3F)));
put(range, cast(char)(0x80 | (c & 0x3F)));
return 3;
}
if (c <= 0x10FFFF)
{
put(range, cast(char)(0xF0 | (c >> 18)));
put(range, cast(char)(0x80 | ((c >> 12) & 0x3F)));
put(range, cast(char)(0x80 | ((c >> 6) & 0x3F)));
put(range, cast(char)(0x80 | (c & 0x3F)));
return 4;
}
else
{
assert(0);
}
}
else static if (is(Unqual!E == wchar))
{
if (c <= 0xFFFF)
{
range.put(cast(wchar) c);
return 1;
}
range.put(cast(wchar) ((((c - 0x10000) >> 10) & 0x3FF) + 0xD800));
range.put(cast(wchar) (((c - 0x10000) & 0x3FF) + 0xDC00));
return 2;
}
else static if (is(Unqual!E == dchar))
{
range.put(c);
return 1;
}
else
{
static assert(0);
}
}
@safe pure unittest
{
import std.array;
Appender!(char[]) r;
assert(encode!(char)('T', r) == 1);
assert(encode!(wchar)('T', r) == 1);
assert(encode!(dchar)('T', r) == 1);
}
/**
Encodes a single code point to a delegate.
This function encodes a single code point into one or more code units.
The code units are passed one at a time to the supplied delegate.
The input to this function MUST be a valid code point.
This is enforced by the function's in-contract.
The type of the output cannot be deduced. Therefore, it is necessary to
explicitly specify the encoding as a template parameter.
Supersedes:
This function supersedes std.utf.encode(), however, note that the
function codeUnits() supersedes it more conveniently.
Standards: Unicode 5.0, ASCII, ISO-8859-1, ISO-8859-2, WINDOWS-1250,
WINDOWS-1252
Params:
c = the code point to be encoded
dg = the delegate to invoke for each code unit
*/
void encode(E)(dchar c, void delegate(E) dg)
in
{
assert(isValidCodePoint(c));
}
body
{
EncoderInstance!(E).encode(c,dg);
}
/**
Encodes the contents of $(D s) in units of type $(D Tgt), writing the result to an
output range.
Returns: The number of $(D Tgt) elements written.
Params:
Tgt = Element type of $(D range).
s = Input array.
range = Output range.
*/
size_t encode(Tgt, Src, R)(in Src[] s, R range)
{
size_t result;
foreach (c; s)
{
result += encode!(Tgt)(c, range);
}
return result;
}
/**
Returns a foreachable struct which can bidirectionally iterate over all
code points in a string.
The input to this function MUST be validly encoded.
This is enforced by the function's in-contract.
You can foreach either
with or without an index. If an index is specified, it will be initialized
at each iteration with the offset into the string at which the code point
begins.
Supersedes:
This function supersedes std.utf.decode().
Standards: Unicode 5.0, ASCII, ISO-8859-1, ISO-8859-2, WINDOWS-1250,
WINDOWS-1252
Params:
s = the string to be decoded
Example:
--------------------------------------------------------
string s = "hello world";
foreach (c;codePoints(s))
{
// do something with c (which will always be a dchar)
}
--------------------------------------------------------
Note that, currently, foreach (c:codePoints(s)) is superior to foreach (c;s)
in that the latter will fall over on encountering U+FFFF.
*/
CodePoints!(E) codePoints(E)(immutable(E)[] s)
in
{
assert(isValid(s));
}
body
{
return CodePoints!(E)(s);
}
///
@system unittest
{
string s = "hello";
string t;
foreach (c;codePoints(s))
{
t ~= cast(char) c;
}
assert(s == t);
}
/**
Returns a foreachable struct which can bidirectionally iterate over all
code units in a code point.
The input to this function MUST be a valid code point.
This is enforced by the function's in-contract.
The type of the output cannot be deduced. Therefore, it is necessary to
explicitly specify the encoding type in the template parameter.
Supersedes:
This function supersedes std.utf.encode().
Standards: Unicode 5.0, ASCII, ISO-8859-1, ISO-8859-2, WINDOWS-1250,
WINDOWS-1252
Params:
c = the code point to be encoded
*/
CodeUnits!(E) codeUnits(E)(dchar c)
in
{
assert(isValidCodePoint(c));
}
body
{
return CodeUnits!(E)(c);
}
///
@system unittest
{
char[] a;
foreach (c;codeUnits!(char)(cast(dchar)'\u20AC'))
{
a ~= c;
}
assert(a.length == 3);
assert(a[0] == 0xE2);
assert(a[1] == 0x82);
assert(a[2] == 0xAC);
}
/**
Convert a string from one encoding to another.
Supersedes:
This function supersedes std.utf.toUTF8(), std.utf.toUTF16() and
std.utf.toUTF32()
(but note that to!() supersedes it more conveniently).
Standards: Unicode 5.0, ASCII, ISO-8859-1, ISO-8859-2, WINDOWS-1250,
WINDOWS-1252
Params:
s = Source string. $(B Must) be validly encoded.
This is enforced by the function's in-contract.
r = Destination string
See_Also:
$(REF to, std,conv)
*/
void transcode(Src, Dst)(Src[] s, out Dst[] r)
in
{
assert(isValid(s));
}
body
{
static if (is(Src == Dst) && is(Src == immutable))
{
r = s;
}
else static if (is(Unqual!Src == AsciiChar))
{
transcode(cast(const(char)[])s, r);
}
else
{
static if (is(Unqual!Dst == wchar))
{
immutable minReservePlace = 2;
}
else static if (is(Unqual!Dst == dchar))
{
immutable minReservePlace = 1;
}
else
{
immutable minReservePlace = 6;
}
auto buffer = new Unqual!Dst[s.length];
auto tmpBuffer = buffer;
while (s.length != 0)
{
if (tmpBuffer.length < minReservePlace)
{
size_t prevLength = buffer.length;
buffer.length += s.length + minReservePlace;
tmpBuffer = buffer[prevLength - tmpBuffer.length .. $];
}
EncoderInstance!(Unqual!Dst).encode(decode(s), tmpBuffer);
}
r = cast(Dst[]) buffer[0 .. buffer.length - tmpBuffer.length];
}
}
///
@system pure unittest
{
wstring ws;
// transcode from UTF-8 to UTF-16
transcode("hello world",ws);
assert(ws == "hello world"w);
Latin1String ls;
// transcode from UTF-16 to ISO-8859-1
transcode(ws, ls);
assert(ws == "hello world");
}
@system pure unittest
{
import std.meta;
import std.range;
{
import std.conv : to;
string asciiCharString = to!string(iota(0, 128, 1));
alias Types = AliasSeq!(string, Latin1String, Latin2String, AsciiString,
Windows1250String, Windows1252String, dstring, wstring);
foreach (S; Types)
foreach (D; Types)
{
string str;
S sStr;
D dStr;
transcode(asciiCharString, sStr);
transcode(sStr, dStr);
transcode(dStr, str);
assert(asciiCharString == str);
}
}
{
string czechChars = "Příliš žluťoučký kůň úpěl ďábelské ódy.";
alias Types = AliasSeq!(string, dstring, wstring);
foreach (S; Types)
foreach (D; Types)
{
string str;
S sStr;
D dStr;
transcode(czechChars, sStr);
transcode(sStr, dStr);
transcode(dStr, str);
assert(czechChars == str);
}
}
}
@system unittest // mutable/const input/output
{
import std.meta : AliasSeq;
foreach (O; AliasSeq!(Latin1Char, const Latin1Char, immutable Latin1Char))
{
O[] output;
char[] mutableInput = "äbc".dup;
transcode(mutableInput, output);
assert(output == [0xE4, 'b', 'c']);
const char[] constInput = "öbc";
transcode(constInput, output);
assert(output == [0xF6, 'b', 'c']);
immutable char[] immutInput = "übc";
transcode(immutInput, output);
assert(output == [0xFC, 'b', 'c']);
}
// Make sure that const/mutable input is copied.
foreach (C; AliasSeq!(char, const char))
{
C[] input = "foo".dup;
C[] output;
transcode(input, output);
assert(input == output);
assert(input !is output);
}
// But immutable input should not be copied.
string input = "foo";
string output;
transcode(input, output);
assert(input is output);
}
//=============================================================================
/** The base class for exceptions thrown by this module */
class EncodingException : Exception { this(string msg) @safe pure { super(msg); } }
class UnrecognizedEncodingException : EncodingException
{
private this(string msg) @safe pure { super(msg); }
}
/** Abstract base class of all encoding schemes */
abstract class EncodingScheme
{
import std.uni : toLower;
/**
* Registers a subclass of EncodingScheme.
*
* This function allows user-defined subclasses of EncodingScheme to
* be declared in other modules.
*
* Params:
* Klass = The subclass of EncodingScheme to register.
*
* Example:
* ----------------------------------------------
* class Amiga1251 : EncodingScheme
* {
* shared static this()
* {
* EncodingScheme.register!Amiga1251;
* }
* }
* ----------------------------------------------
*/
static void register(Klass:EncodingScheme)()
{
scope scheme = new Klass();
foreach (encodingName;scheme.names())
{
supported[toLower(encodingName)] = () => new Klass();
}
}
deprecated("Please pass the EncodingScheme subclass as template argument instead.")
static void register(string className)
{
auto scheme = cast(EncodingScheme) ClassInfo.find(className).create();
if (scheme is null)
throw new EncodingException("Unable to create class "~className);
foreach (encodingName;scheme.names())
{
supportedFactories[toLower(encodingName)] = className;
}
}
/**
* Obtains a subclass of EncodingScheme which is capable of encoding
* and decoding the named encoding scheme.
*
* This function is only aware of EncodingSchemes which have been
* registered with the register() function.
*
* Example:
* ---------------------------------------------------
* auto scheme = EncodingScheme.create("Amiga-1251");
* ---------------------------------------------------
*/
static EncodingScheme create(string encodingName)
{
encodingName = toLower(encodingName);
if (auto p = encodingName in supported)
return (*p)();
auto p = encodingName in supportedFactories;
if (p is null)
throw new EncodingException("Unrecognized Encoding: "~encodingName);
string className = *p;
auto scheme = cast(EncodingScheme) ClassInfo.find(className).create();
if (scheme is null) throw new EncodingException("Unable to create class "~className);
return scheme;
}
const
{
/**
* Returns the standard name of the encoding scheme
*/
abstract override string toString();
/**
* Returns an array of all known names for this encoding scheme
*/
abstract string[] names();
/**
* Returns true if the character c can be represented
* in this encoding scheme.
*/
abstract bool canEncode(dchar c);
/**
* Returns the number of ubytes required to encode this code point.
*
* The input to this function MUST be a valid code point.
*
* Params:
* c = the code point to be encoded
*
* Returns:
* the number of ubytes required.
*/
abstract size_t encodedLength(dchar c);
/**
* Encodes a single code point into a user-supplied, fixed-size buffer.
*
* This function encodes a single code point into one or more ubytes.
* The supplied buffer must be code unit aligned.
* (For example, UTF-16LE or UTF-16BE must be wchar-aligned,
* UTF-32LE or UTF-32BE must be dchar-aligned, etc.)
*
* The input to this function MUST be a valid code point.
*
* Params:
* c = the code point to be encoded
* buffer = the destination array
*
* Returns:
* the number of ubytes written.
*/
abstract size_t encode(dchar c, ubyte[] buffer);
/**
* Decodes a single code point.
*
* This function removes one or more ubytes from the start of an array,
* and returns the decoded code point which those ubytes represent.
*
* The input to this function MUST be validly encoded.
*
* Params:
* s = the array whose first code point is to be decoded
*/
abstract dchar decode(ref const(ubyte)[] s);
/**
* Decodes a single code point. The input does not have to be valid.
*
* This function removes one or more ubytes from the start of an array,
* and returns the decoded code point which those ubytes represent.
*
* This function will accept an invalidly encoded array as input.
* If an invalid sequence is found at the start of the string, this
* function will remove it, and return the value INVALID_SEQUENCE.
*
* Params:
* s = the array whose first code point is to be decoded
*/
abstract dchar safeDecode(ref const(ubyte)[] s);
/**
* Returns the sequence of ubytes to be used to represent
* any character which cannot be represented in the encoding scheme.
*
* Normally this will be a representation of some substitution
* character, such as U+FFFD or '?'.
*/
abstract @property immutable(ubyte)[] replacementSequence();
}
/**
* Returns true if the array is encoded correctly
*
* Params:
* s = the array to be tested
*/
bool isValid(const(ubyte)[] s)
{
while (s.length != 0)
{
if (safeDecode(s) == INVALID_SEQUENCE)
return false;
}
return true;
}
/**
* Returns the length of the longest possible substring, starting from
* the first element, which is validly encoded.
*
* Params:
* s = the array to be tested
*/
size_t validLength()(const(ubyte)[] s)
{
const(ubyte)[] r = s;
const(ubyte)[] t = s;
while (s.length != 0)
{
if (safeDecode(s) == INVALID_SEQUENCE) break;
t = s;
}
return r.length - t.length;
}
/**
* Sanitizes an array by replacing malformed ubyte sequences with valid
* ubyte sequences. The result is guaranteed to be valid for this
* encoding scheme.
*
* If the input array is already valid, this function returns the
* original, otherwise it constructs a new array by replacing all illegal
* sequences with the encoding scheme's replacement sequence.
*
* Params:
* s = the string to be sanitized
*/
immutable(ubyte)[] sanitize()(immutable(ubyte)[] s)
{
auto n = validLength(s);
if (n == s.length) return s;
auto repSeq = replacementSequence;
// Count how long the string needs to be.
// Overestimating is not a problem
auto len = s.length;
const(ubyte)[] t = s[n..$];
while (t.length != 0)
{
immutable c = safeDecode(t);
assert(c == INVALID_SEQUENCE);
len += repSeq.length;
t = t[validLength(t)..$];
}
// Now do the write
ubyte[] array = new ubyte[len];
array[0 .. n] = s[0 .. n];
auto offset = n;
t = s[n..$];
while (t.length != 0)
{
immutable c = safeDecode(t);
assert(c == INVALID_SEQUENCE);
array[offset .. offset+repSeq.length] = repSeq[];
offset += repSeq.length;
n = validLength(t);
array[offset .. offset+n] = t[0 .. n];
offset += n;
t = t[n..$];
}
return cast(immutable(ubyte)[])array[0 .. offset];
}
/**
* Returns the length of the first encoded sequence.
*
* The input to this function MUST be validly encoded.
* This is enforced by the function's in-contract.
*
* Params:
* s = the array to be sliced
*/
size_t firstSequence()(const(ubyte)[] s)
in
{
assert(s.length != 0);
const(ubyte)[] u = s;
assert(safeDecode(u) != INVALID_SEQUENCE);
}
body
{
const(ubyte)[] t = s;
decode(s);
return t.length - s.length;
}
/**
* Returns the total number of code points encoded in a ubyte array.
*
* The input to this function MUST be validly encoded.
* This is enforced by the function's in-contract.
*
* Params:
* s = the string to be counted
*/
size_t count()(const(ubyte)[] s)
in
{
assert(isValid(s));
}
body
{
size_t n = 0;
while (s.length != 0)
{
decode(s);
++n;
}
return n;
}
/**
* Returns the array index at which the (n+1)th code point begins.
*
* The input to this function MUST be validly encoded.
* This is enforced by the function's in-contract.
*
* Params:
* s = the string to be counted
* n = the current code point index
*/
ptrdiff_t index()(const(ubyte)[] s, size_t n)
in
{
assert(isValid(s));
assert(n >= 0);
}
body
{
const(ubyte)[] t = s;
for (size_t i=0; i<n; ++i) decode(s);
return t.length - s.length;
}
__gshared EncodingScheme function()[string] supported;
__gshared string[string] supportedFactories;
}
/**
EncodingScheme to handle ASCII
This scheme recognises the following names:
"ANSI_X3.4-1968",
"ANSI_X3.4-1986",
"ASCII",
"IBM367",
"ISO646-US",
"ISO_646.irv:1991",
"US-ASCII",
"cp367",
"csASCII"
"iso-ir-6",
"us"
*/
class EncodingSchemeASCII : EncodingScheme
{
/* // moved to std.internal.phobosinit
shared static this()
{
EncodingScheme.register("std.encoding.EncodingSchemeASCII");
}*/
const
{
override string[] names() @safe pure nothrow
{
return
[
"ANSI_X3.4-1968",
"ANSI_X3.4-1986",
"ASCII",
"IBM367",
"ISO646-US",
"ISO_646.irv:1991",
"US-ASCII",
"cp367",
"csASCII",
"iso-ir-6",
"us"
];
}
override string toString() @safe pure nothrow @nogc
{
return "ASCII";
}
override bool canEncode(dchar c) @safe pure nothrow @nogc
{
return std.encoding.canEncode!(AsciiChar)(c);
}
override size_t encodedLength(dchar c) @safe pure nothrow @nogc
{
return std.encoding.encodedLength!(AsciiChar)(c);
}
override size_t encode(dchar c, ubyte[] buffer) @safe pure nothrow @nogc
{
auto r = cast(AsciiChar[]) buffer;
return std.encoding.encode(c,r);
}
override dchar decode(ref const(ubyte)[] s) @safe pure nothrow @nogc
{
auto t = cast(const(AsciiChar)[]) s;
dchar c = std.encoding.decode(t);
s = s[$-t.length..$];
return c;
}
override dchar safeDecode(ref const(ubyte)[] s) @safe pure nothrow @nogc
{
auto t = cast(const(AsciiChar)[]) s;
dchar c = std.encoding.safeDecode(t);
s = s[$-t.length..$];
return c;
}
override @property immutable(ubyte)[] replacementSequence() @safe pure nothrow @nogc
{
return cast(immutable(ubyte)[])"?";
}
}
}
/**
EncodingScheme to handle Latin-1
This scheme recognises the following names:
"CP819",
"IBM819",
"ISO-8859-1",
"ISO_8859-1",
"ISO_8859-1:1987",
"csISOLatin1",
"iso-ir-100",
"l1",
"latin1"
*/
class EncodingSchemeLatin1 : EncodingScheme
{
/* // moved to std.internal.phobosinit
shared static this()
{
EncodingScheme.register("std.encoding.EncodingSchemeLatin1");
}*/
const
{
override string[] names() @safe pure nothrow
{
return
[
"CP819",
"IBM819",
"ISO-8859-1",
"ISO_8859-1",
"ISO_8859-1:1987",
"csISOLatin1",
"iso-ir-100",
"l1",
"latin1"
];
}
override string toString() @safe pure nothrow @nogc
{
return "ISO-8859-1";
}
override bool canEncode(dchar c) @safe pure nothrow @nogc
{
return std.encoding.canEncode!(Latin1Char)(c);
}
override size_t encodedLength(dchar c) @safe pure nothrow @nogc
{
return std.encoding.encodedLength!(Latin1Char)(c);
}
override size_t encode(dchar c, ubyte[] buffer) @safe pure nothrow @nogc
{
auto r = cast(Latin1Char[]) buffer;
return std.encoding.encode(c,r);
}
override dchar decode(ref const(ubyte)[] s) @safe pure nothrow @nogc
{
auto t = cast(const(Latin1Char)[]) s;
dchar c = std.encoding.decode(t);
s = s[$-t.length..$];
return c;
}
override dchar safeDecode(ref const(ubyte)[] s) @safe pure nothrow @nogc
{
auto t = cast(const(Latin1Char)[]) s;
dchar c = std.encoding.safeDecode(t);
s = s[$-t.length..$];
return c;
}
override @property immutable(ubyte)[] replacementSequence() @safe pure nothrow @nogc
{
return cast(immutable(ubyte)[])"?";
}
}
}
/**
EncodingScheme to handle Latin-2
This scheme recognises the following names:
"Latin 2",
"ISO-8859-2",
"ISO_8859-2",
"ISO_8859-2:1999",
"Windows-28592"
*/
class EncodingSchemeLatin2 : EncodingScheme
{
/* // moved to std.internal.phobosinit
shared static this()
{
EncodingScheme.register("std.encoding.EncodingSchemeLatin2");
}*/
const
{
override string[] names() @safe pure nothrow
{
return
[
"Latin 2",
"ISO-8859-2",
"ISO_8859-2",
"ISO_8859-2:1999",
"windows-28592"
];
}
override string toString() @safe pure nothrow @nogc
{
return "ISO-8859-2";
}
override bool canEncode(dchar c) @safe pure nothrow @nogc
{
return std.encoding.canEncode!(Latin2Char)(c);
}
override size_t encodedLength(dchar c) @safe pure nothrow @nogc
{
return std.encoding.encodedLength!(Latin2Char)(c);
}
override size_t encode(dchar c, ubyte[] buffer) @safe pure nothrow @nogc
{
auto r = cast(Latin2Char[]) buffer;
return std.encoding.encode(c,r);
}
override dchar decode(ref const(ubyte)[] s) @safe pure nothrow @nogc
{
auto t = cast(const(Latin2Char)[]) s;
dchar c = std.encoding.decode(t);
s = s[$-t.length..$];
return c;
}
override dchar safeDecode(ref const(ubyte)[] s) @safe pure nothrow @nogc
{
auto t = cast(const(Latin2Char)[]) s;
dchar c = std.encoding.safeDecode(t);
s = s[$-t.length..$];
return c;
}
override @property immutable(ubyte)[] replacementSequence() @safe pure nothrow @nogc
{
return cast(immutable(ubyte)[])"?";
}
}
}
/**
EncodingScheme to handle Windows-1250
This scheme recognises the following names:
"windows-1250"
*/
class EncodingSchemeWindows1250 : EncodingScheme
{
/* // moved to std.internal.phobosinit
shared static this()
{
EncodingScheme.register("std.encoding.EncodingSchemeWindows1250");
}*/
const
{
override string[] names() @safe pure nothrow
{
return
[
"windows-1250"
];
}
override string toString() @safe pure nothrow @nogc
{
return "windows-1250";
}
override bool canEncode(dchar c) @safe pure nothrow @nogc
{
return std.encoding.canEncode!(Windows1250Char)(c);
}
override size_t encodedLength(dchar c) @safe pure nothrow @nogc
{
return std.encoding.encodedLength!(Windows1250Char)(c);
}
override size_t encode(dchar c, ubyte[] buffer) @safe pure nothrow @nogc
{
auto r = cast(Windows1250Char[]) buffer;
return std.encoding.encode(c,r);
}
override dchar decode(ref const(ubyte)[] s) @safe pure nothrow @nogc
{
auto t = cast(const(Windows1250Char)[]) s;
dchar c = std.encoding.decode(t);
s = s[$-t.length..$];
return c;
}
override dchar safeDecode(ref const(ubyte)[] s) @safe pure nothrow @nogc
{
auto t = cast(const(Windows1250Char)[]) s;
dchar c = std.encoding.safeDecode(t);
s = s[$-t.length..$];
return c;
}
override @property immutable(ubyte)[] replacementSequence() @safe pure nothrow @nogc
{
return cast(immutable(ubyte)[])"?";
}
}
}
/**
EncodingScheme to handle Windows-1252
This scheme recognises the following names:
"windows-1252"
*/
class EncodingSchemeWindows1252 : EncodingScheme
{
/* // moved to std.internal.phobosinit
shared static this()
{
EncodingScheme.register("std.encoding.EncodingSchemeWindows1252");
}*/
const
{
override string[] names() @safe pure nothrow
{
return
[
"windows-1252"
];
}
override string toString() @safe pure nothrow @nogc
{
return "windows-1252";
}
override bool canEncode(dchar c) @safe pure nothrow @nogc
{
return std.encoding.canEncode!(Windows1252Char)(c);
}
override size_t encodedLength(dchar c) @safe pure nothrow @nogc
{
return std.encoding.encodedLength!(Windows1252Char)(c);
}
override size_t encode(dchar c, ubyte[] buffer) @safe pure nothrow @nogc
{
auto r = cast(Windows1252Char[]) buffer;
return std.encoding.encode(c,r);
}
override dchar decode(ref const(ubyte)[] s) @safe pure nothrow @nogc
{
auto t = cast(const(Windows1252Char)[]) s;
dchar c = std.encoding.decode(t);
s = s[$-t.length..$];
return c;
}
override dchar safeDecode(ref const(ubyte)[] s) @safe pure nothrow @nogc
{
auto t = cast(const(Windows1252Char)[]) s;
dchar c = std.encoding.safeDecode(t);
s = s[$-t.length..$];
return c;
}
override @property immutable(ubyte)[] replacementSequence() @safe pure nothrow @nogc
{
return cast(immutable(ubyte)[])"?";
}
}
}
/**
EncodingScheme to handle UTF-8
This scheme recognises the following names:
"UTF-8"
*/
class EncodingSchemeUtf8 : EncodingScheme
{
/* // moved to std.internal.phobosinit
shared static this()
{
EncodingScheme.register("std.encoding.EncodingSchemeUtf8");
}*/
const
{
override string[] names() @safe pure nothrow
{
return
[
"UTF-8"
];
}
override string toString() @safe pure nothrow @nogc
{
return "UTF-8";
}
override bool canEncode(dchar c) @safe pure nothrow @nogc
{
return std.encoding.canEncode!(char)(c);
}
override size_t encodedLength(dchar c) @safe pure nothrow @nogc
{
return std.encoding.encodedLength!(char)(c);
}
override size_t encode(dchar c, ubyte[] buffer) @safe pure nothrow @nogc
{
auto r = cast(char[]) buffer;
return std.encoding.encode(c,r);
}
override dchar decode(ref const(ubyte)[] s) @safe pure nothrow @nogc
{
auto t = cast(const(char)[]) s;
dchar c = std.encoding.decode(t);
s = s[$-t.length..$];
return c;
}
override dchar safeDecode(ref const(ubyte)[] s) @safe pure nothrow @nogc
{
auto t = cast(const(char)[]) s;
dchar c = std.encoding.safeDecode(t);
s = s[$-t.length..$];
return c;
}
override @property immutable(ubyte)[] replacementSequence() @safe pure nothrow @nogc
{
return cast(immutable(ubyte)[])"\uFFFD";
}
}
}
/**
EncodingScheme to handle UTF-16 in native byte order
This scheme recognises the following names:
"UTF-16LE" (little-endian architecture only)
"UTF-16BE" (big-endian architecture only)
*/
class EncodingSchemeUtf16Native : EncodingScheme
{
/* // moved to std.internal.phobosinit
shared static this()
{
EncodingScheme.register("std.encoding.EncodingSchemeUtf16Native");
}*/
const
{
version(LittleEndian) { enum string NAME = "UTF-16LE"; }
version(BigEndian) { enum string NAME = "UTF-16BE"; }
override string[] names() @safe pure nothrow
{
return [ NAME ];
}
override string toString() @safe pure nothrow @nogc
{
return NAME;
}
override bool canEncode(dchar c) @safe pure nothrow @nogc
{
return std.encoding.canEncode!(wchar)(c);
}
override size_t encodedLength(dchar c) @safe pure nothrow @nogc
{
return std.encoding.encodedLength!(wchar)(c);
}
override size_t encode(dchar c, ubyte[] buffer) @safe pure nothrow @nogc
{
auto r = cast(wchar[]) buffer;
return wchar.sizeof * std.encoding.encode(c,r);
}
override dchar decode(ref const(ubyte)[] s) @safe pure nothrow @nogc
in
{
assert((s.length & 1) == 0);
}
body
{
auto t = cast(const(wchar)[]) s;
dchar c = std.encoding.decode(t);
s = s[$-t.length * wchar.sizeof..$];
return c;
}
override dchar safeDecode(ref const(ubyte)[] s) @safe pure nothrow @nogc
in
{
assert((s.length & 1) == 0);
}
body
{
auto t = cast(const(wchar)[]) s;
dchar c = std.encoding.safeDecode(t);
s = s[$-t.length * wchar.sizeof..$];
return c;
}
override @property immutable(ubyte)[] replacementSequence() @safe pure nothrow @nogc
{
return cast(immutable(ubyte)[])"\uFFFD"w;
}
}
}
@system unittest
{
version(LittleEndian)
{
auto efrom = EncodingScheme.create("utf-16le");
ubyte[6] sample = [154,1, 155,1, 156,1];
}
version(BigEndian)
{
auto efrom = EncodingScheme.create("utf-16be");
ubyte[6] sample = [1,154, 1,155, 1,156];
}
const(ubyte)[] ub = cast(const(ubyte)[])sample;
dchar dc = efrom.safeDecode(ub);
assert(dc == 410);
assert(ub.length == 4);
}
/**
EncodingScheme to handle UTF-32 in native byte order
This scheme recognises the following names:
"UTF-32LE" (little-endian architecture only)
"UTF-32BE" (big-endian architecture only)
*/
class EncodingSchemeUtf32Native : EncodingScheme
{
/* // moved to std.internal.phobosinit
shared static this()
{
EncodingScheme.register("std.encoding.EncodingSchemeUtf32Native");
}*/
const
{
version(LittleEndian) { enum string NAME = "UTF-32LE"; }
version(BigEndian) { enum string NAME = "UTF-32BE"; }
override string[] names() @safe pure nothrow
{
return [ NAME ];
}
override string toString() @safe pure nothrow @nogc
{
return NAME;
}
override bool canEncode(dchar c) @safe pure nothrow @nogc
{
return std.encoding.canEncode!(dchar)(c);
}
override size_t encodedLength(dchar c) @safe pure nothrow @nogc
{
return std.encoding.encodedLength!(dchar)(c);
}
override size_t encode(dchar c, ubyte[] buffer) @safe pure nothrow @nogc
{
auto r = cast(dchar[]) buffer;
return dchar.sizeof * std.encoding.encode(c,r);
}
override dchar decode(ref const(ubyte)[] s) @safe pure nothrow @nogc
in
{
assert((s.length & 3) == 0);
}
body
{
auto t = cast(const(dchar)[]) s;
dchar c = std.encoding.decode(t);
s = s[$-t.length * dchar.sizeof..$];
return c;
}
override dchar safeDecode(ref const(ubyte)[] s) @safe pure nothrow @nogc
in
{
assert((s.length & 3) == 0);
}
body
{
auto t = cast(const(dchar)[]) s;
dchar c = std.encoding.safeDecode(t);
s = s[$-t.length * dchar.sizeof..$];
return c;
}
override @property immutable(ubyte)[] replacementSequence() @safe pure nothrow @nogc
{
return cast(immutable(ubyte)[])"\uFFFD"d;
}
}
}
@system unittest
{
version(LittleEndian)
{
auto efrom = EncodingScheme.create("utf-32le");
ubyte[12] sample = [154,1,0,0, 155,1,0,0, 156,1,0,0];
}
version(BigEndian)
{
auto efrom = EncodingScheme.create("utf-32be");
ubyte[12] sample = [0,0,1,154, 0,0,1,155, 0,0,1,156];
}
const(ubyte)[] ub = cast(const(ubyte)[])sample;
dchar dc = efrom.safeDecode(ub);
assert(dc == 410);
assert(ub.length == 8);
}
// shared static this() called from encodinginit to break ctor cycle
extern(C) void std_encoding_shared_static_this()
{
EncodingScheme.register!EncodingSchemeASCII;
EncodingScheme.register!EncodingSchemeLatin1;
EncodingScheme.register!EncodingSchemeLatin2;
EncodingScheme.register!EncodingSchemeWindows1250;
EncodingScheme.register!EncodingSchemeWindows1252;
EncodingScheme.register!EncodingSchemeUtf8;
EncodingScheme.register!EncodingSchemeUtf16Native;
EncodingScheme.register!EncodingSchemeUtf32Native;
}
//=============================================================================
// Helper functions
version(unittest)
{
void transcodeReverse(Src,Dst)(immutable(Src)[] s, out immutable(Dst)[] r)
{
static if (is(Src == Dst))
{
return s;
}
else static if (is(Src == AsciiChar))
{
transcodeReverse!(char,Dst)(cast(string) s,r);
}
else
{
foreach_reverse (d;codePoints(s))
{
foreach_reverse (c;codeUnits!(Dst)(d))
{
r = c ~ r;
}
}
}
}
string makeReadable(string s)
{
string r = "\"";
foreach (char c;s)
{
if (c >= 0x20 && c < 0x80)
{
r ~= c;
}
else
{
r ~= "\\x";
r ~= toHexDigit(c >> 4);
r ~= toHexDigit(c);
}
}
r ~= "\"";
return r;
}
string makeReadable(wstring s)
{
string r = "\"";
foreach (wchar c;s)
{
if (c >= 0x20 && c < 0x80)
{
r ~= cast(char) c;
}
else
{
r ~= "\\u";
r ~= toHexDigit(c >> 12);
r ~= toHexDigit(c >> 8);
r ~= toHexDigit(c >> 4);
r ~= toHexDigit(c);
}
}
r ~= "\"w";
return r;
}
string makeReadable(dstring s)
{
string r = "\"";
foreach (dchar c; s)
{
if (c >= 0x20 && c < 0x80)
{
r ~= cast(char) c;
}
else if (c < 0x10000)
{
r ~= "\\u";
r ~= toHexDigit(c >> 12);
r ~= toHexDigit(c >> 8);
r ~= toHexDigit(c >> 4);
r ~= toHexDigit(c);
}
else
{
r ~= "\\U00";
r ~= toHexDigit(c >> 20);
r ~= toHexDigit(c >> 16);
r ~= toHexDigit(c >> 12);
r ~= toHexDigit(c >> 8);
r ~= toHexDigit(c >> 4);
r ~= toHexDigit(c);
}
}
r ~= "\"d";
return r;
}
char toHexDigit(int n)
{
return "0123456789ABCDEF"[n & 0xF];
}
}
/** Definitions of common Byte Order Marks.
The elements of the $(D enum) can used as indices into $(D bomTable) to get
matching $(D BOMSeq).
*/
enum BOM
{
none = 0, /// no BOM was found
utf32be = 1, /// [0x00, 0x00, 0xFE, 0xFF]
utf32le = 2, /// [0xFF, 0xFE, 0x00, 0x00]
utf7 = 3, /* [0x2B, 0x2F, 0x76, 0x38]
[0x2B, 0x2F, 0x76, 0x39],
[0x2B, 0x2F, 0x76, 0x2B],
[0x2B, 0x2F, 0x76, 0x2F],
[0x2B, 0x2F, 0x76, 0x38, 0x2D]
*/
utf1 = 8, /// [0xF7, 0x64, 0x4C]
utfebcdic = 9, /// [0xDD, 0x73, 0x66, 0x73]
scsu = 10, /// [0x0E, 0xFE, 0xFF]
bocu1 = 11, /// [0xFB, 0xEE, 0x28]
gb18030 = 12, /// [0x84, 0x31, 0x95, 0x33]
utf8 = 13, /// [0xEF, 0xBB, 0xBF]
utf16be = 14, /// [0xFE, 0xFF]
utf16le = 15 /// [0xFF, 0xFE]
}
/// The type stored inside $(D bomTable).
alias BOMSeq = Tuple!(BOM, "schema", ubyte[], "sequence");
/** Mapping of a byte sequence to $(B Byte Order Mark (BOM))
*/
immutable bomTable = [
BOMSeq(BOM.none, null),
BOMSeq(BOM.utf32be, cast(ubyte[])([0x00, 0x00, 0xFE, 0xFF])),
BOMSeq(BOM.utf32le, cast(ubyte[])([0xFF, 0xFE, 0x00, 0x00])),
BOMSeq(BOM.utf7, cast(ubyte[])([0x2B, 0x2F, 0x76, 0x39])),
BOMSeq(BOM.utf7, cast(ubyte[])([0x2B, 0x2F, 0x76, 0x2B])),
BOMSeq(BOM.utf7, cast(ubyte[])([0x2B, 0x2F, 0x76, 0x2F])),
BOMSeq(BOM.utf7, cast(ubyte[])([0x2B, 0x2F, 0x76, 0x38, 0x2D])),
BOMSeq(BOM.utf7, cast(ubyte[])([0x2B, 0x2F, 0x76, 0x38])),
BOMSeq(BOM.utf1, cast(ubyte[])([0xF7, 0x64, 0x4C])),
BOMSeq(BOM.utfebcdic, cast(ubyte[])([0xDD, 0x73, 0x66, 0x73])),
BOMSeq(BOM.scsu, cast(ubyte[])([0x0E, 0xFE, 0xFF])),
BOMSeq(BOM.bocu1, cast(ubyte[])([0xFB, 0xEE, 0x28])),
BOMSeq(BOM.gb18030, cast(ubyte[])([0x84, 0x31, 0x95, 0x33])),
BOMSeq(BOM.utf8, cast(ubyte[])([0xEF, 0xBB, 0xBF])),
BOMSeq(BOM.utf16be, cast(ubyte[])([0xFE, 0xFF])),
BOMSeq(BOM.utf16le, cast(ubyte[])([0xFF, 0xFE]))
];
/** Returns a $(D BOMSeq) for a given $(D input).
If no $(D BOM) is present the $(D BOMSeq) for $(D BOM.none) is
returned. The $(D BOM) sequence at the beginning of the range will
not be comsumed from the passed range. If you pass a reference type
range make sure that $(D save) creates a deep copy.
Params:
input = The sequence to check for the $(D BOM)
Returns:
the found $(D BOMSeq) corresponding to the passed $(D input).
*/
immutable(BOMSeq) getBOM(Range)(Range input)
if (isForwardRange!Range && is(Unqual!(ElementType!Range) == ubyte))
{
import std.algorithm.searching : startsWith;
foreach (it; bomTable[1 .. $])
{
if (startsWith(input.save, it.sequence))
{
return it;
}
}
return bomTable[0];
}
///
@system unittest
{
import std.format : format;
auto ts = dchar(0x0000FEFF) ~ "Hello World"d;
auto entry = getBOM(cast(ubyte[]) ts);
version(BigEndian)
{
assert(entry.schema == BOM.utf32be, format("%s", entry.schema));
}
else
{
assert(entry.schema == BOM.utf32le, format("%s", entry.schema));
}
}
@system unittest
{
import std.format : format;
foreach (idx, it; bomTable)
{
auto s = it[1] ~ cast(ubyte[])"hello world";
auto i = getBOM(s);
assert(i[0] == bomTable[idx][0]);
if (idx < 4 || idx > 7) // get around the multiple utf7 bom's
{
assert(i[0] == BOM.init + idx);
assert(i[1] == it[1]);
}
}
}
@safe pure unittest
{
struct BOMInputRange
{
ubyte[] arr;
@property ubyte front()
{
return this.arr.front;
}
@property bool empty()
{
return this.arr.empty;
}
void popFront()
{
this.arr = this.arr[1 .. $];
}
@property typeof(this) save()
{
return this;
}
}
static assert( isInputRange!BOMInputRange);
static assert(!isArray!BOMInputRange);
ubyte[] dummyEnd = [0,0,0,0];
foreach (idx, it; bomTable[1 .. $])
{
{
auto ir = BOMInputRange(it.sequence.dup);
auto b = getBOM(ir);
assert(b.schema == it.schema);
assert(ir.arr == it.sequence);
}
{
auto noBom = it.sequence[0 .. 1].dup ~ dummyEnd;
size_t oldLen = noBom.length;
assert(oldLen - 4 < it.sequence.length);
auto ir = BOMInputRange(noBom.dup);
auto b = getBOM(ir);
assert(b.schema == BOM.none);
assert(noBom.length == oldLen);
}
}
}
/** Constant defining a fully decoded BOM */
enum dchar utfBOM = 0xfeff;
|
D
|
/***********************************************************************\
* winperf.d *
* *
* Windows API header module *
* *
* Translated from MinGW Windows headers *
* *
* Placed into public domain *
\***********************************************************************/
module win32.winperf;
import win32.windef;
import win32.winbase; // for SYSTEMTIME
const PERF_DATA_VERSION=1;
const PERF_DATA_REVISION=1;
const PERF_NO_INSTANCES=-1;
const PERF_SIZE_DWORD=0;
const PERF_SIZE_LARGE=256;
const PERF_SIZE_ZERO=512;
const PERF_SIZE_VARIABLE_LEN=768;
const PERF_TYPE_NUMBER=0;
const PERF_TYPE_COUNTER=1024;
const PERF_TYPE_TEXT=2048;
const PERF_TYPE_ZERO=0xC00;
const PERF_NUMBER_HEX=0;
const PERF_NUMBER_DECIMAL=0x10000;
const PERF_NUMBER_DEC_1000=0x20000;
const PERF_COUNTER_VALUE=0;
const PERF_COUNTER_RATE=0x10000;
const PERF_COUNTER_FRACTION=0x20000;
const PERF_COUNTER_BASE=0x30000;
const PERF_COUNTER_ELAPSED=0x40000;
const PERF_COUNTER_QUEUELEN=0x50000;
const PERF_COUNTER_HISTOGRAM=0x60000;
const PERF_TEXT_UNICODE=0;
const PERF_TEXT_ASCII=0x10000;
const PERF_TIMER_TICK=0;
const PERF_TIMER_100NS=0x100000;
const PERF_OBJECT_TIMER=0x200000;
const PERF_DELTA_COUNTER=0x400000;
const PERF_DELTA_BASE=0x800000;
const PERF_INVERSE_COUNTER=0x1000000;
const PERF_MULTI_COUNTER=0x2000000;
const PERF_DISPLAY_NO_SUFFIX=0;
const PERF_DISPLAY_PER_SEC=0x10000000;
const PERF_DISPLAY_PERCENT=0x20000000;
const PERF_DISPLAY_SECONDS=0x30000000;
const PERF_DISPLAY_NOSHOW=0x40000000;
const PERF_COUNTER_HISTOGRAM_TYPE=0x80000000;
const PERF_NO_UNIQUE_ID=(-1);
const PERF_DETAIL_NOVICE=100;
const PERF_DETAIL_ADVANCED=200;
const PERF_DETAIL_EXPERT=300;
const PERF_DETAIL_WIZARD=400;
const PERF_COUNTER_COUNTER=(PERF_SIZE_DWORD|PERF_TYPE_COUNTER|PERF_COUNTER_RATE|PERF_TIMER_TICK|PERF_DELTA_COUNTER|PERF_DISPLAY_PER_SEC);
const PERF_COUNTER_TIMER=(PERF_SIZE_LARGE|PERF_TYPE_COUNTER|PERF_COUNTER_RATE|PERF_TIMER_TICK|PERF_DELTA_COUNTER|PERF_DISPLAY_PERCENT);
const PERF_COUNTER_QUEUELEN_TYPE=(PERF_SIZE_DWORD|PERF_TYPE_COUNTER|PERF_COUNTER_QUEUELEN|PERF_TIMER_TICK|PERF_DELTA_COUNTER|PERF_DISPLAY_NO_SUFFIX);
const PERF_COUNTER_BULK_COUNT=(PERF_SIZE_LARGE|PERF_TYPE_COUNTER|PERF_COUNTER_RATE|PERF_TIMER_TICK|PERF_DELTA_COUNTER|PERF_DISPLAY_PER_SEC);
const PERF_COUNTER_TEXT=(PERF_SIZE_VARIABLE_LEN|PERF_TYPE_TEXT|PERF_TEXT_UNICODE|PERF_DISPLAY_NO_SUFFIX);
const PERF_COUNTER_RAWCOUNT=(PERF_SIZE_DWORD|PERF_TYPE_NUMBER|PERF_NUMBER_DECIMAL|PERF_DISPLAY_NO_SUFFIX);
const PERF_COUNTER_LARGE_RAWCOUNT=(PERF_SIZE_LARGE|PERF_TYPE_NUMBER|PERF_NUMBER_DECIMAL|PERF_DISPLAY_NO_SUFFIX);
const PERF_COUNTER_RAWCOUNT_HEX=(PERF_SIZE_DWORD|PERF_TYPE_NUMBER|PERF_NUMBER_HEX|PERF_DISPLAY_NO_SUFFIX);
const PERF_COUNTER_LARGE_RAWCOUNT_HEX=(PERF_SIZE_LARGE|PERF_TYPE_NUMBER|PERF_NUMBER_HEX|PERF_DISPLAY_NO_SUFFIX);
const PERF_SAMPLE_FRACTION=(PERF_SIZE_DWORD|PERF_TYPE_COUNTER|PERF_COUNTER_FRACTION|PERF_DELTA_COUNTER|PERF_DELTA_BASE|PERF_DISPLAY_PERCENT);
const PERF_SAMPLE_COUNTER=(PERF_SIZE_DWORD|PERF_TYPE_COUNTER|PERF_COUNTER_RATE|PERF_TIMER_TICK|PERF_DELTA_COUNTER|PERF_DISPLAY_NO_SUFFIX);
const PERF_COUNTER_NODATA=(PERF_SIZE_ZERO|PERF_DISPLAY_NOSHOW);
const PERF_COUNTER_TIMER_INV=(PERF_SIZE_LARGE|PERF_TYPE_COUNTER|PERF_COUNTER_RATE|PERF_TIMER_TICK|PERF_DELTA_COUNTER|PERF_INVERSE_COUNTER|PERF_DISPLAY_PERCENT);
const PERF_SAMPLE_BASE=(PERF_SIZE_DWORD|PERF_TYPE_COUNTER|PERF_COUNTER_BASE|PERF_DISPLAY_NOSHOW|1);
const PERF_AVERAGE_TIMER=(PERF_SIZE_DWORD|PERF_TYPE_COUNTER|PERF_COUNTER_FRACTION|PERF_DISPLAY_SECONDS);
const PERF_AVERAGE_BASE=(PERF_SIZE_DWORD|PERF_TYPE_COUNTER|PERF_COUNTER_BASE|PERF_DISPLAY_NOSHOW|2);
const PERF_AVERAGE_BULK=(PERF_SIZE_LARGE|PERF_TYPE_COUNTER|PERF_COUNTER_FRACTION|PERF_DISPLAY_NOSHOW);
const PERF_100NSEC_TIMER=(PERF_SIZE_LARGE|PERF_TYPE_COUNTER|PERF_COUNTER_RATE|PERF_TIMER_100NS|PERF_DELTA_COUNTER|PERF_DISPLAY_PERCENT);
const PERF_100NSEC_TIMER_INV=(PERF_SIZE_LARGE|PERF_TYPE_COUNTER|PERF_COUNTER_RATE|PERF_TIMER_100NS|PERF_DELTA_COUNTER|PERF_INVERSE_COUNTER|PERF_DISPLAY_PERCENT);
const PERF_COUNTER_MULTI_TIMER=(PERF_SIZE_LARGE|PERF_TYPE_COUNTER|PERF_COUNTER_RATE|PERF_DELTA_COUNTER|PERF_TIMER_TICK|PERF_MULTI_COUNTER|PERF_DISPLAY_PERCENT);
const PERF_COUNTER_MULTI_TIMER_INV=(PERF_SIZE_LARGE|PERF_TYPE_COUNTER|PERF_COUNTER_RATE|PERF_DELTA_COUNTER|PERF_MULTI_COUNTER|PERF_TIMER_TICK|PERF_INVERSE_COUNTER|PERF_DISPLAY_PERCENT);
const PERF_COUNTER_MULTI_BASE=(PERF_SIZE_LARGE|PERF_TYPE_COUNTER|PERF_COUNTER_BASE|PERF_MULTI_COUNTER|PERF_DISPLAY_NOSHOW);
const PERF_100NSEC_MULTI_TIMER=(PERF_SIZE_LARGE|PERF_TYPE_COUNTER|PERF_DELTA_COUNTER|PERF_COUNTER_RATE|PERF_TIMER_100NS|PERF_MULTI_COUNTER|PERF_DISPLAY_PERCENT);
const PERF_100NSEC_MULTI_TIMER_INV=(PERF_SIZE_LARGE|PERF_TYPE_COUNTER|PERF_DELTA_COUNTER|PERF_COUNTER_RATE|PERF_TIMER_100NS|PERF_MULTI_COUNTER|PERF_INVERSE_COUNTER|PERF_DISPLAY_PERCENT);
const PERF_RAW_FRACTION=(PERF_SIZE_DWORD|PERF_TYPE_COUNTER|PERF_COUNTER_FRACTION|PERF_DISPLAY_PERCENT);
const PERF_RAW_BASE=(PERF_SIZE_DWORD|PERF_TYPE_COUNTER|PERF_COUNTER_BASE|PERF_DISPLAY_NOSHOW|3);
const PERF_ELAPSED_TIME=(PERF_SIZE_LARGE|PERF_TYPE_COUNTER|PERF_COUNTER_ELAPSED|PERF_OBJECT_TIMER|PERF_DISPLAY_SECONDS);
struct PERF_DATA_BLOCK {
WCHAR[4] Signature;
DWORD LittleEndian;
DWORD Version;
DWORD Revision;
DWORD TotalByteLength;
DWORD HeaderLength;
DWORD NumObjectTypes;
LONG DefaultObject;
SYSTEMTIME SystemTime;
LARGE_INTEGER PerfTime;
LARGE_INTEGER PerfFreq;
LARGE_INTEGER PerfTime100nSec;
DWORD SystemNameLength;
DWORD SystemNameOffset;
}
alias PERF_DATA_BLOCK * PPERF_DATA_BLOCK;
struct PERF_OBJECT_TYPE {
DWORD TotalByteLength;
DWORD DefinitionLength;
DWORD HeaderLength;
DWORD ObjectNameTitleIndex;
LPWSTR ObjectNameTitle;
DWORD ObjectHelpTitleIndex;
LPWSTR ObjectHelpTitle;
DWORD DetailLevel;
DWORD NumCounters;
LONG DefaultCounter;
LONG NumInstances;
DWORD CodePage;
LARGE_INTEGER PerfTime;
LARGE_INTEGER PerfFreq;
}
alias PERF_OBJECT_TYPE * PPERF_OBJECT_TYPE;
struct PERF_COUNTER_DEFINITION {
DWORD ByteLength;
DWORD CounterNameTitleIndex;
LPWSTR CounterNameTitle;
DWORD CounterHelpTitleIndex;
LPWSTR CounterHelpTitle;
LONG DefaultScale;
DWORD DetailLevel;
DWORD CounterType;
DWORD CounterSize;
DWORD CounterOffset;
}
alias PERF_COUNTER_DEFINITION * PPERF_COUNTER_DEFINITION;
struct PERF_INSTANCE_DEFINITION {
DWORD ByteLength;
DWORD ParentObjectTitleIndex;
DWORD ParentObjectInstance;
LONG UniqueID;
DWORD NameOffset;
DWORD NameLength;
}
alias PERF_INSTANCE_DEFINITION * PPERF_INSTANCE_DEFINITION;
struct PERF_COUNTER_BLOCK {
DWORD ByteLength;
}
alias PERF_COUNTER_BLOCK * PPERF_COUNTER_BLOCK;
extern (Windows):
alias DWORD function (LPWSTR) PM_OPEN_PROC;
alias DWORD function (LPWSTR,PVOID*,PDWORD,PDWORD) PM_COLLECT_PROC;
alias DWORD function () PM_CLOSE_PROC;
|
D
|
/*****************************************************************************
*
* Higgs JavaScript Virtual Machine
*
* This file is part of the Higgs project. The project is distributed at:
* https://github.com/maximecb/Higgs
*
* Copyright (c) 2013, Maxime Chevalier-Boisvert. All rights reserved.
*
* This software is licensed under the following license (Modified BSD
* License):
*
* 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.
* 3. The name of the author may not be used to endorse or promote
* products derived from this software without specific prior written
* permission.
*
* THIS SOFTWARE IS PROVIDED ``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 BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*****************************************************************************/
module runtime.gc;
import core.memory;
import std.stdio;
import std.string;
import ir.ir;
import ir.ops;
import runtime.vm;
import runtime.layout;
import runtime.string;
import runtime.object;
import util.misc;
/**
GC root object
*/
struct GCRoot
{
this(VM vm, ValuePair pair)
{
this.vm = vm;
this.prev = null;
this.next = vm.firstRoot;
vm.firstRoot = &this;
this.pair = pair;
}
this(VM vm, Word w, Type t)
{
this(vm, ValuePair(w, t));
}
this(VM vm, refptr p = null)
{
this(vm, Word.ptrv(p), Type.REFPTR);
}
@disable this();
~this()
{
assert (
vm !is null,
"vm is null"
);
if (prev)
prev.next = next;
else
this.vm.firstRoot = next;
if (next)
next.prev = prev;
}
GCRoot* opAssign(refptr p)
{
pair.word.ptrVal = p;
pair.type = Type.REFPTR;
return &this;
}
GCRoot* opAssign(ValuePair v)
{
pair = v;
return &this;
}
GCRoot* opAssign(GCRoot v)
{
pair = v.pair;
return &this;
}
Word word()
{
return pair.word;
}
Type type()
{
return pair.type;
}
refptr ptr()
{
return pair.word.ptrVal;
}
private VM vm;
private GCRoot* prev;
private GCRoot* next;
ValuePair pair;
}
/**
Check that a pointer points in a VM's from-space heap
*/
bool inFromSpace(VM vm, refptr ptr)
{
return (ptr >= vm.heapStart && ptr < vm.heapLimit);
}
/**
Check that a pointer points in a VM's to-space heap
*/
bool inToSpace(VM vm, refptr ptr)
{
return (ptr >= vm.toStart && ptr < vm.toLimit);
}
/**
Check that a pointer points to a valid chunk of memory
*/
bool ptrValid(refptr ptr)
{
// Query the D GC regarding this pointer
return GC.query(ptr) != GC.BlkInfo.init;
}
/**
Allocate an object in the heap
*/
refptr heapAlloc(VM vm, size_t size)
{
// If this allocation exceeds the heap limit
if (vm.allocPtr + size > vm.heapLimit)
{
//writefln("gc on alloc of size %s", size);
// Perform garbage collection
gcCollect(vm);
//writefln("gc done");
// While this allocation exceeds the heap limit
while (vm.allocPtr + size > vm.heapLimit)
{
writefln("heap space exhausted, expanding heap");
// Double the size of the heap
gcCollect(vm, 2 * vm.heapSize);
}
}
// Store the pointer to the new object
refptr ptr = vm.allocPtr;
// Update and align the allocation pointer
vm.allocPtr = alignPtr(vm.allocPtr + size);
// Return the object pointer
return ptr;
}
/**
Perform a garbage collection
*/
void gcCollect(VM vm, size_t heapSize = 0)
{
/*
Cheney's Algorithm:
flip() =
Fromspace, Tospace = Tospace, Fromspace
top_of_space = Tospace + space_size
scan = free = Tospace
for R in roots
R = copy(R)
while scan < free
for P in Children(scan)
*P = copy(*P)
scan = scan + size (scan)
copy(P) =
if forwarded(P)
return forwarding_address(P)
else
addr = free
move(P,free)
free = free + size(P)
forwarding_address(P) = addr
return addr
*/
//writeln("entering gcCollect");
//writefln("from-space address: %s", vm.heapStart);
if (heapSize != 0)
vm.heapSize = heapSize;
//writefln("allocating to-space heap of size: %s", vm.heapSize);
// Allocate a memory block for the to-space
vm.toStart = cast(ubyte*)GC.malloc(
vm.heapSize,
GC.BlkAttr.NO_SCAN |
GC.BlkAttr.NO_INTERIOR
);
//writefln("allocated to-space block: %s", vm.toStart);
assert (
vm.toStart != null,
"failed to allocate to-space heap"
);
// Compute the to-space heap limit
vm.toLimit = vm.toStart + vm.heapSize;
// Initialize the to-space allocation pointer
vm.toAlloc = vm.toStart;
//writeln("visiting root objects");
// Forward the root objects
vm.objProto = gcForward(vm, vm.objProto);
vm.arrProto = gcForward(vm, vm.arrProto);
vm.funProto = gcForward(vm, vm.funProto);
vm.globalObj = gcForward(vm, vm.globalObj);
//writeln("visiting stack roots");
// Visit the stack roots
visitStackRoots(vm);
//writeln("visiting link table");
// Visit the link table cells
for (size_t i = 0; i < vm.linkTblSize; ++i)
{
vm.wLinkTable[i] = gcForward(
vm,
vm.wLinkTable[i],
vm.tLinkTable[i]
);
}
//writeln("visiting GC root objects");
// Visit the root objects
for (GCRoot* pRoot = vm.firstRoot; pRoot !is null; pRoot = pRoot.next)
pRoot.pair.word = gcForward(vm, pRoot.pair.word, pRoot.pair.type);
//writeln("scanning to-space");
// Scan Pointer: All objects behind it (i.e. to its left) have been fully
// processed; objects in front of it have been copied but not processed.
// Free Pointer: All copied objects are behind it; Space to its right is free
// Initialize the scan pointer at the to-space heap start
auto scanPtr = vm.toStart;
// Until the to-space scan is complete
size_t numObjs;
for (numObjs = 0;; ++numObjs)
{
// If we are past the free pointer, scanning done
if (scanPtr >= vm.toAlloc)
break;
assert (
vm.inToSpace(scanPtr),
"scan pointer past to-space limit"
);
// Get the object size
auto objSize = layout_sizeof(scanPtr);
assert (
scanPtr + objSize <= vm.toLimit,
"object extends past to-space limit"
);
//writefln("scanning object of size %s", objSize);
//writefln("scanning %s (%s)", scanPtr, numObjs);
//writefln("obj header: %s", obj_get_header(scanPtr));
// Visit the object layout, forward its references
layout_visit_gc(vm, scanPtr);
//writeln("visited layout");
// Move to the next object
scanPtr = alignPtr(scanPtr + objSize);
}
//writefln("objects copied/scanned: %s", numObjs);
// Store a pointer to the from-space heap
auto fromStart = vm.heapStart;
auto fromLimit = vm.heapLimit;
// Flip the from-space and to-space
vm.heapStart = vm.toStart;
vm.heapLimit = vm.toLimit;
vm.allocPtr = vm.toAlloc;
// Clear the to-space information
vm.toStart = null;
vm.toLimit = null;
vm.toAlloc = null;
//writefln("rebuilding string table");
// Store a pointer to the old string table
auto oldStrTbl = vm.strTbl;
auto strTblCap = strtbl_get_cap(oldStrTbl);
// Allocate a new string table
vm.strTbl = strtbl_alloc(vm, strTblCap);
// Add the forwarded strings to the new string table
for (uint32 i = 0; i < strTblCap; ++i)
{
auto ptr = strtbl_get_str(oldStrTbl, i);
if (ptr is null)
continue;
auto next = obj_get_next(ptr);
if (next is null)
continue;
getTableStr(vm, next);
}
//writefln("old string count: %s", strtbl_get_num_strs(oldStrTbl));
//writefln("new string count: %s", strtbl_get_num_strs(vm.strTbl));
//writefln("clearing from-space heap");
// Zero out the from-space to prepare it for reuse in the next collection
for (int64* p = cast(int64*)fromStart; p < cast(int64*)fromLimit; p++)
*p = 0;
// Free the from-space heap block
GC.free(fromStart);
// Zero out the stack space below the stack pointers (free space)
// to eliminate any unprocessed references to the from space
for (int64* p = cast(int64*)vm.wStack; p < cast(int64*)vm.wsp; p++)
*p = 0;
for (int8* p = cast(int8*)vm.tStack; p < cast(int8*)vm.tsp; p++)
*p = 0;
//writefln("old live funs count: %s", vm.funRefs.length);
// Collect the dead functions
foreach (ptr, fun; vm.funRefs)
if (ptr !in vm.liveFuns)
collectFun(vm, fun);
// Swap the function reference sets
vm.funRefs = vm.liveFuns;
vm.liveFuns.clear();
// Collect the dead maps
foreach (ptr, map; vm.mapRefs)
if (ptr !in vm.liveMaps)
collectMap(vm, map);
// Swap the map reference sets
vm.mapRefs = vm.liveMaps;
vm.liveMaps.clear();
//writefln("new live funs count: %s", vm.funRefs.length);
// Increment the garbage collection count
vm.gcCount++;
//writeln("leaving gcCollect");
//writefln("free space: %s", (vm.heapLimit - vm.allocPtr));
}
/**
Function to forward a memory object. The argument is an unboxed reference.
*/
refptr gcForward(VM vm, refptr ptr)
{
// Pseudocode:
//
// if forwarded(P)
// return forwarding_address(P)
// else
// addr = free
// move(P,free)
// free = free + size(P)
// forwarding_address(P) = addr
// return addr
if (ptr is null)
return null;
//writefln("forwarding object %s (%s)", ptr, vm.inFromSpace(ptr));
assert (
vm.inFromSpace(ptr),
format(
"gcForward: object not in from-space heap\n" ~
"ptr : %s\n" ~
"start : %s\n" ~
"limit : %s\n" ~
"header: %s",
ptr,
vm.heapStart,
vm.heapLimit,
(ptrValid(ptr)? obj_get_header(ptr):0xFFFF)
)
);
// If this is a closure
auto header = obj_get_header(ptr);
if (header == LAYOUT_CLOS)
{
auto fun = getClosFun(ptr);
assert (fun !is null);
visitFun(vm, fun);
auto map = cast(ObjMap)clos_get_ctor_map(ptr);
if (map !is null)
visitMap(vm, map);
}
// If this is an object of some kind
if (header == LAYOUT_OBJ || header == LAYOUT_ARR || header == LAYOUT_CLOS)
{
auto map = cast(ObjMap)obj_get_map(ptr);
assert (map !is null);
visitMap(vm, map);
}
// Follow the next pointer chain as long as it points in the from-space
refptr nextPtr = ptr;
for (;;)
{
// Get the next pointer
nextPtr = obj_get_next(nextPtr);
// If the next pointer is outside of the from-space
if (vm.inFromSpace(nextPtr) is false)
break;
// Follow the next pointer chain
ptr = nextPtr;
assert (
ptr !is null,
"object pointer is null"
);
}
// If the object is not already forwarded to the to-space
if (nextPtr is null)
{
//writefln("copying");
// Copy the object into the to-space
nextPtr = gcCopy(vm, ptr, layout_sizeof(ptr));
assert (
obj_get_next(ptr) == nextPtr,
"next pointer not set"
);
}
assert (
vm.inToSpace(nextPtr),
format(
"gcForward: next pointer is outside of to-space\n" ~
"objPtr : %s\n" ~
"nextPtr : %s\n" ~
"to-start: %s\n" ~
"to-limit: %s\n",
ptr,
nextPtr,
vm.toStart,
vm.toLimit,
)
);
//writefln("object forwarded");
// Return the forwarded pointer
return nextPtr;
}
/**
Forward a word/value pair
*/
Word gcForward(VM vm, Word word, Type type)
{
// Switch on the type tag
switch (type)
{
// Heap reference pointer
// Forward the pointer
case Type.REFPTR:
return Word.ptrv(gcForward(vm, word.ptrVal));
// Function pointer (IRFunction)
// Return the pointer unchanged
case Type.FUNPTR:
auto fun = word.funVal;
assert (fun !is null);
visitFun(vm, fun);
return word;
// Map pointer (ObjMap)
// Return the pointer unchanged
case Type.MAPPTR:
auto map = word.mapVal;
assert (map !is null);
visitMap(vm, map);
return word;
// Return address
case Type.RETADDR:
auto retEntry = vm.retAddrMap[word.ptrVal];
auto fun = retEntry.callCtx.fun;
visitFun(vm, fun);
return word;
// Return the word unchanged
default:
return word;
}
}
/**
Forward a word/value pair
*/
uint64 gcForward(VM vm, uint64 word, uint8 type)
{
// Forward the pointer
return gcForward(vm, Word.uint64v(word), cast(Type)type).uint64Val;
}
/**
Copy a live object into the to-space.
*/
refptr gcCopy(VM vm, refptr ptr, size_t size)
{
assert (
vm.inFromSpace(ptr),
format(
"gcCopy: object not in from-space heap\n" ~
"ptr : %s\n" ~
"start : %s\n" ~
"limit : %s\n" ~
"header: %s",
ptr,
vm.heapStart,
vm.heapLimit,
obj_get_header(ptr)
)
);
assert (
obj_get_next(ptr) == null,
"next pointer in object to forward is not null"
);
// The object will be copied at the to-space allocation pointer
auto nextPtr = vm.toAlloc;
assert (
nextPtr + size <= vm.toLimit,
format(
"cannot copy in to-space, heap limit exceeded\n" ~
"ptr : %s\n" ~
"size : %s\n" ~
"fr-limit: %s\n" ~
"to-alloc: %s\n" ~
"to-limit: %s\n" ~
"header : %s",
ptr,
size,
vm.heapLimit,
vm.toAlloc,
vm.toLimit,
obj_get_header(ptr)
)
);
// Update the allocation pointer
vm.toAlloc += size;
vm.toAlloc = alignPtr(vm.toAlloc);
// Copy the object to the to-space
for (size_t i = 0; i < size; ++i)
nextPtr[i] = ptr[i];
assert (
vm.inToSpace(nextPtr),
"gcCopy: next pointer is outside of to-space"
);
// Write the forwarding pointer in the old object
obj_set_next(ptr, nextPtr);
// Return the copied object pointer
return nextPtr;
}
/**
Walk the stack and forward references to the to-space
*/
void visitStackRoots(VM vm)
{
auto visitFrame = delegate void(
IRFunction fun,
Word* wsp,
Type* tsp,
size_t depth,
size_t frameSize,
IRInstr callInstr
)
{
// Visit the function this stack frame belongs to
visitFun(vm, fun);
//writeln("visiting frame for: ", fun.getName());
//writeln("frame size: ", frameSize);
// For each local in this frame
for (StackIdx idx = 0; idx < frameSize; ++idx)
{
//ritefln("ref %s/%s", idx, frameSize);
Word word = wsp[idx];
Type type = tsp[idx];
// If this is a pointer, forward it
wsp[idx] = gcForward(vm, word, type);
auto fwdPtr = wsp[idx].ptrVal;
assert (
type != Type.REFPTR ||
fwdPtr == null ||
vm.inToSpace(fwdPtr),
format(
"invalid forwarded stack pointer\n" ~
"ptr : %s\n" ~
"to-alloc: %s\n" ~
"to-limit: %s",
fwdPtr,
vm.toStart,
vm.toLimit
)
);
}
//writeln("done visiting frame");
};
vm.visitStack(visitFrame);
//writefln("done scanning stack");
}
/**
Visit a function and its sub-functions
*/
void visitFun(VM vm, IRFunction fun)
{
// If this function was already visited, stop
if (cast(void*)fun in vm.liveFuns)
return;
// Add the function to the set of live functions
vm.liveFuns[cast(void*)fun] = fun;
// Transitively find live function references inside the function
for (IRBlock block = fun.firstBlock; block !is null; block = block.next)
{
for (IRInstr instr = block.firstInstr; instr !is null; instr = instr.next)
{
for (size_t argIdx = 0; argIdx < instr.numArgs; ++argIdx)
{
auto arg = instr.getArg(argIdx);
if (auto funArg = cast(IRFunPtr)arg)
{
if (funArg.fun !is null)
visitFun(vm, funArg.fun);
}
else if (auto mapArg = cast(IRMapPtr)arg)
{
if (mapArg.map !is null)
visitMap(vm, mapArg.map);
}
}
}
}
}
/**
Collect resources held by a dead function
*/
void collectFun(VM vm, IRFunction fun)
{
//writefln("freeing dead function: \"%s\"", fun.name);
// For each basic block
for (IRBlock block = fun.firstBlock; block !is null; block = block.next)
{
// For each instruction
for (IRInstr instr = block.firstInstr; instr !is null; instr = instr.next)
{
// For each instruction argument
for (size_t argIdx = 0; argIdx < instr.numArgs; ++argIdx)
{
auto arg = instr.getArg(argIdx);
// If this is a link table entry, free it
if (auto linkArg = cast(IRLinkIdx)arg)
{
if (linkArg.hasOneUse && linkArg.linkIdx != NULL_LINK)
{
//writefln("freeing link table entry %s", arg.linkIdx);
vm.freeLink(linkArg.linkIdx);
}
}
// Remove this argument reference
instr.remArg(argIdx);
}
}
}
//writefln("destroying function: \"%s\" (%s)", fun.getName, cast(void*)fun);
// Destroy the function
destroy(fun);
}
/**
Visit a map
*/
void visitMap(VM vm, ObjMap map)
{
// Add the map to the live set
vm.liveMaps[cast(void*)map] = map;
}
/**
Collect resources held by a dead map
*/
void collectMap(VM vm, ObjMap map)
{
destroy(map);
}
|
D
|
/home/kami/Programing/wasm/bachelorproject/koweb/target/rls/debug/deps/cc-b21b96a815a6943f.rmeta: /home/kami/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.67/src/lib.rs /home/kami/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.67/src/windows_registry.rs
/home/kami/Programing/wasm/bachelorproject/koweb/target/rls/debug/deps/libcc-b21b96a815a6943f.rlib: /home/kami/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.67/src/lib.rs /home/kami/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.67/src/windows_registry.rs
/home/kami/Programing/wasm/bachelorproject/koweb/target/rls/debug/deps/cc-b21b96a815a6943f.d: /home/kami/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.67/src/lib.rs /home/kami/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.67/src/windows_registry.rs
/home/kami/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.67/src/lib.rs:
/home/kami/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.67/src/windows_registry.rs:
|
D
|
// vmem.d -- Abstracted VM Stuff
// This module will select the vMem namespace for the currently selected target architecture
module kernel.arch.vmem;
import kernel.arch.select;
mixin(PublicArchImport!("vmem"));
|
D
|
transmitting light
so thin as to transmit light
free of deceit
easily understood or seen through (because of a lack of subtlety
|
D
|
/Users/kidnapper/Documents/25sprout/practice/DerivedData2/practice/Build/Intermediates/practice.build/Debug-iphonesimulator/practice.build/Objects-normal/x86_64/SearchTab_CVCell.o : /Users/kidnapper/Documents/25sprout/practice/practice/Search_TPVC.swift /Users/kidnapper/Documents/25sprout/practice/practice/Article_TVC.swift /Users/kidnapper/Documents/25sprout/practice/practice/Search_TVC.swift /Users/kidnapper/Documents/25sprout/practice/practice/TabPage2_VC.swift /Users/kidnapper/Documents/25sprout/practice/practice/TabPage_VC.swift /Users/kidnapper/Documents/25sprout/practice/practice/CongressUpdate_VC.swift /Users/kidnapper/Documents/25sprout/practice/practice/Search_VC.swift /Users/kidnapper/Documents/25sprout/practice/practice/Bookmark_VC.swift /Users/kidnapper/Documents/25sprout/practice/practice/Main_VC.swift /Users/kidnapper/Documents/25sprout/practice/practice/TrailFactSheet_VC.swift /Users/kidnapper/Documents/25sprout/practice/practice/Event_VC.swift /Users/kidnapper/Documents/25sprout/practice/practice/ExpertCommentary_VC.swift /Users/kidnapper/Documents/25sprout/practice/practice/ThumbnailHeader_CRV.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/PHCheckableTextfield.swift /Users/kidnapper/Documents/25sprout/practice/practice/AppDelegate.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/ReferenceLabel.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/BulletPointLabel.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/PHMustLabel.swift /Users/kidnapper/Documents/25sprout/practice/practice/SearchTab_CVCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/Reference_TVCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/MayLike_TVCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/ThumbnailHeader_TVCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/SearchResultHeader_TVCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/TrailFactSheet_TVCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/SearchResult_TVCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/Content_TVCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/Quiz_TVCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/TableViewCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/SquareCollectionViewCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/BannerCollectionViewCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/SquareCategoryCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/BannerCategoryCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/TVC_extension.swift /Users/kidnapper/Documents/25sprout/practice/practice/NavigationBar.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/NetworkManager.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/RequestDidSendViewController.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/LoginInvitationCodeViewController.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/RequestInvitationCodeViewController.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/ArticleViewController.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/ConfirmUserDetailViewController.swift /Users/kidnapper/Documents/25sprout/practice/practice/SeeAllViewController.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/EmailLoginViewController.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/FirstMeetViewController.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/ArticleContentViewController.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/AppUtilities.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/Extensions.swift /Users/kidnapper/Documents/25sprout/practice/practice/SearchBarVIew.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/ArticleQuoteView.swift /Users/kidnapper/Documents/25sprout/practice/practice/selectionView.swift /Users/kidnapper/Documents/25sprout/practice/practice/SquareCategoryCollectionView.swift /Users/kidnapper/Documents/25sprout/practice/practice/BannerCategoryCollectionView.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/ArticleIntroView.swift /Users/kidnapper/Documents/25sprout/practice/practice/SearchTabBarView.swift /Users/kidnapper/Documents/25sprout/practice/practice/pickerView.swift /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Users/kidnapper/Documents/25sprout/practice/DerivedData2/practice/Build/Products/Debug-iphonesimulator/TabPageViewController.framework/Modules/TabPageViewController.swiftmodule/x86_64.swiftmodule /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FIRInstanceID.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FirebaseInstanceID.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FirebaseCore.h /Users/kidnapper/Documents/25sprout/practice/Pods/Firebase/Core/Sources/Firebase.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRLoggerLevel.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRConfiguration.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRConfiguration.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRAnalyticsConfiguration.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsConfiguration.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRApp.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRApp.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRParameterNames.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIREventNames.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIROptions.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIROptions.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRCoreSwiftNameSupport.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsSwiftNameSupport.h /Users/kidnapper/Documents/25sprout/practice/Pods/Firebase/Core/Sources/module.modulemap /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Modules/module.modulemap /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Modules/module.modulemap /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Modules/module.modulemap
/Users/kidnapper/Documents/25sprout/practice/DerivedData2/practice/Build/Intermediates/practice.build/Debug-iphonesimulator/practice.build/Objects-normal/x86_64/SearchTab_CVCell~partial.swiftmodule : /Users/kidnapper/Documents/25sprout/practice/practice/Search_TPVC.swift /Users/kidnapper/Documents/25sprout/practice/practice/Article_TVC.swift /Users/kidnapper/Documents/25sprout/practice/practice/Search_TVC.swift /Users/kidnapper/Documents/25sprout/practice/practice/TabPage2_VC.swift /Users/kidnapper/Documents/25sprout/practice/practice/TabPage_VC.swift /Users/kidnapper/Documents/25sprout/practice/practice/CongressUpdate_VC.swift /Users/kidnapper/Documents/25sprout/practice/practice/Search_VC.swift /Users/kidnapper/Documents/25sprout/practice/practice/Bookmark_VC.swift /Users/kidnapper/Documents/25sprout/practice/practice/Main_VC.swift /Users/kidnapper/Documents/25sprout/practice/practice/TrailFactSheet_VC.swift /Users/kidnapper/Documents/25sprout/practice/practice/Event_VC.swift /Users/kidnapper/Documents/25sprout/practice/practice/ExpertCommentary_VC.swift /Users/kidnapper/Documents/25sprout/practice/practice/ThumbnailHeader_CRV.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/PHCheckableTextfield.swift /Users/kidnapper/Documents/25sprout/practice/practice/AppDelegate.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/ReferenceLabel.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/BulletPointLabel.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/PHMustLabel.swift /Users/kidnapper/Documents/25sprout/practice/practice/SearchTab_CVCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/Reference_TVCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/MayLike_TVCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/ThumbnailHeader_TVCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/SearchResultHeader_TVCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/TrailFactSheet_TVCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/SearchResult_TVCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/Content_TVCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/Quiz_TVCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/TableViewCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/SquareCollectionViewCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/BannerCollectionViewCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/SquareCategoryCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/BannerCategoryCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/TVC_extension.swift /Users/kidnapper/Documents/25sprout/practice/practice/NavigationBar.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/NetworkManager.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/RequestDidSendViewController.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/LoginInvitationCodeViewController.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/RequestInvitationCodeViewController.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/ArticleViewController.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/ConfirmUserDetailViewController.swift /Users/kidnapper/Documents/25sprout/practice/practice/SeeAllViewController.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/EmailLoginViewController.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/FirstMeetViewController.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/ArticleContentViewController.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/AppUtilities.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/Extensions.swift /Users/kidnapper/Documents/25sprout/practice/practice/SearchBarVIew.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/ArticleQuoteView.swift /Users/kidnapper/Documents/25sprout/practice/practice/selectionView.swift /Users/kidnapper/Documents/25sprout/practice/practice/SquareCategoryCollectionView.swift /Users/kidnapper/Documents/25sprout/practice/practice/BannerCategoryCollectionView.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/ArticleIntroView.swift /Users/kidnapper/Documents/25sprout/practice/practice/SearchTabBarView.swift /Users/kidnapper/Documents/25sprout/practice/practice/pickerView.swift /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Users/kidnapper/Documents/25sprout/practice/DerivedData2/practice/Build/Products/Debug-iphonesimulator/TabPageViewController.framework/Modules/TabPageViewController.swiftmodule/x86_64.swiftmodule /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FIRInstanceID.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FirebaseInstanceID.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FirebaseCore.h /Users/kidnapper/Documents/25sprout/practice/Pods/Firebase/Core/Sources/Firebase.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRLoggerLevel.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRConfiguration.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRConfiguration.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRAnalyticsConfiguration.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsConfiguration.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRApp.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRApp.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRParameterNames.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIREventNames.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIROptions.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIROptions.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRCoreSwiftNameSupport.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsSwiftNameSupport.h /Users/kidnapper/Documents/25sprout/practice/Pods/Firebase/Core/Sources/module.modulemap /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Modules/module.modulemap /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Modules/module.modulemap /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Modules/module.modulemap
/Users/kidnapper/Documents/25sprout/practice/DerivedData2/practice/Build/Intermediates/practice.build/Debug-iphonesimulator/practice.build/Objects-normal/x86_64/SearchTab_CVCell~partial.swiftdoc : /Users/kidnapper/Documents/25sprout/practice/practice/Search_TPVC.swift /Users/kidnapper/Documents/25sprout/practice/practice/Article_TVC.swift /Users/kidnapper/Documents/25sprout/practice/practice/Search_TVC.swift /Users/kidnapper/Documents/25sprout/practice/practice/TabPage2_VC.swift /Users/kidnapper/Documents/25sprout/practice/practice/TabPage_VC.swift /Users/kidnapper/Documents/25sprout/practice/practice/CongressUpdate_VC.swift /Users/kidnapper/Documents/25sprout/practice/practice/Search_VC.swift /Users/kidnapper/Documents/25sprout/practice/practice/Bookmark_VC.swift /Users/kidnapper/Documents/25sprout/practice/practice/Main_VC.swift /Users/kidnapper/Documents/25sprout/practice/practice/TrailFactSheet_VC.swift /Users/kidnapper/Documents/25sprout/practice/practice/Event_VC.swift /Users/kidnapper/Documents/25sprout/practice/practice/ExpertCommentary_VC.swift /Users/kidnapper/Documents/25sprout/practice/practice/ThumbnailHeader_CRV.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/PHCheckableTextfield.swift /Users/kidnapper/Documents/25sprout/practice/practice/AppDelegate.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/ReferenceLabel.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/BulletPointLabel.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/PHMustLabel.swift /Users/kidnapper/Documents/25sprout/practice/practice/SearchTab_CVCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/Reference_TVCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/MayLike_TVCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/ThumbnailHeader_TVCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/SearchResultHeader_TVCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/TrailFactSheet_TVCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/SearchResult_TVCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/Content_TVCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/Quiz_TVCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/TableViewCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/SquareCollectionViewCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/BannerCollectionViewCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/SquareCategoryCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/BannerCategoryCell.swift /Users/kidnapper/Documents/25sprout/practice/practice/TVC_extension.swift /Users/kidnapper/Documents/25sprout/practice/practice/NavigationBar.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/NetworkManager.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/RequestDidSendViewController.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/LoginInvitationCodeViewController.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/RequestInvitationCodeViewController.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/ArticleViewController.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/ConfirmUserDetailViewController.swift /Users/kidnapper/Documents/25sprout/practice/practice/SeeAllViewController.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/EmailLoginViewController.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/FirstMeetViewController.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/ArticleContentViewController.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/AppUtilities.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/Extensions.swift /Users/kidnapper/Documents/25sprout/practice/practice/SearchBarVIew.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/ArticleQuoteView.swift /Users/kidnapper/Documents/25sprout/practice/practice/selectionView.swift /Users/kidnapper/Documents/25sprout/practice/practice/SquareCategoryCollectionView.swift /Users/kidnapper/Documents/25sprout/practice/practice/BannerCategoryCollectionView.swift /Users/kidnapper/Downloads/RocheCIT_iOS/RocheCIT_iOS/ArticleIntroView.swift /Users/kidnapper/Documents/25sprout/practice/practice/SearchTabBarView.swift /Users/kidnapper/Documents/25sprout/practice/practice/pickerView.swift /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Users/kidnapper/Documents/25sprout/practice/DerivedData2/practice/Build/Products/Debug-iphonesimulator/TabPageViewController.framework/Modules/TabPageViewController.swiftmodule/x86_64.swiftmodule /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode_8.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FIRInstanceID.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Headers/FirebaseInstanceID.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FirebaseCore.h /Users/kidnapper/Documents/25sprout/practice/Pods/Firebase/Core/Sources/Firebase.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics+AppDelegate.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRLoggerLevel.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRConfiguration.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRConfiguration.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRAnalyticsConfiguration.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsConfiguration.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRApp.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRApp.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalytics.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FirebaseAnalytics.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRParameterNames.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIREventNames.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRUserPropertyNames.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIROptions.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIROptions.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Headers/FIRCoreSwiftNameSupport.h /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Headers/FIRAnalyticsSwiftNameSupport.h /Users/kidnapper/Documents/25sprout/practice/Pods/Firebase/Core/Sources/module.modulemap /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseInstanceID/Frameworks/FirebaseInstanceID.framework/Modules/module.modulemap /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseCore/Frameworks/FirebaseCore.framework/Modules/module.modulemap /Users/kidnapper/Documents/25sprout/practice/Pods/FirebaseAnalytics/Frameworks/FirebaseAnalytics.framework/Modules/module.modulemap
|
D
|
// Written in the D programming language.
/**
This module contains implementation of SDL2 based backend for dlang library.
Synopsis:
----
import dlangui.platforms.sdl.sdlapp;
----
Copyright: Vadim Lopatin, 2014
License: Boost License 1.0
Authors: Vadim Lopatin, coolreader.org@gmail.com
*/
module dlangui.platforms.sdl.sdlapp;
public import dlangui.core.config;
static if (BACKEND_SDL):
import core.runtime;
import std.conv;
import std.string;
import std.utf;
import std.stdio;
import std.algorithm;
import std.file;
import dlangui.core.logger;
import dlangui.core.events;
import dlangui.core.files;
import dlangui.graphics.drawbuf;
import dlangui.graphics.fonts;
import dlangui.graphics.ftfonts;
import dlangui.graphics.resources;
import dlangui.widgets.styles;
import dlangui.widgets.widget;
import dlangui.platforms.common.platform;
import derelict.sdl2.sdl;
import derelict.opengl3.gl3;
import derelict.opengl3.gl;
static if (ENABLE_OPENGL) {
import dlangui.graphics.gldrawbuf;
import dlangui.graphics.glsupport;
}
private derelict.util.exception.ShouldThrow missingSymFunc( string symName ) {
import std.algorithm : equal;
foreach(s; ["SDL_DestroyRenderer", "SDL_GL_DeleteContext", "SDL_DestroyWindow", "SDL_PushEvent",
"SDL_GL_SetAttribute", "SDL_GL_CreateContext", "SDL_GetError",
"SDL_CreateWindow", "SDL_CreateRenderer", "SDL_GetWindowSize",
"SDL_GL_GetDrawableSize", "SDL_GetWindowID", "SDL_SetWindowSize",
"SDL_ShowWindow", "SDL_SetWindowTitle", "SDL_CreateRGBSurfaceFrom",
"SDL_SetWindowIcon", "SDL_FreeSurface", "SDL_ShowCursor",
"SDL_SetCursor", "SDL_CreateSystemCursor", "SDL_DestroyTexture",
"SDL_CreateTexture", "SDL_UpdateTexture", "SDL_RenderCopy",
"SDL_GL_SwapWindow", "SDL_GL_MakeCurrent", "SDL_SetRenderDrawColor",
"SDL_RenderClear", "SDL_RenderPresent", "SDL_GetModState",
"SDL_RemoveTimer", "SDL_RemoveTimer", "SDL_PushEvent",
"SDL_RegisterEvents", "SDL_WaitEvent", "SDL_StartTextInput",
"SDL_Quit", "SDL_HasClipboardText", "SDL_GetClipboardText",
"SDL_free", "SDL_SetClipboardText", "SDL_Init"]) {
if (symName.equal(s)) // Symbol is used
return derelict.util.exception.ShouldThrow.Yes;
}
// Don't throw for unused symbol
return derelict.util.exception.ShouldThrow.No;
}
private __gshared uint USER_EVENT_ID;
private __gshared uint TIMER_EVENT_ID;
class SDLWindow : Window {
SDLPlatform _platform;
SDL_Window * _win;
SDL_Renderer* _renderer;
this(SDLPlatform platform, dstring caption, Window parent, uint flags, uint width = 0, uint height = 0) {
_platform = platform;
_caption = caption;
debug Log.d("Creating SDL window");
_dx = width;
_dy = height;
create(flags);
Log.i(_enableOpengl ? "OpenGL is enabled" : "OpenGL is disabled");
}
~this() {
debug Log.d("Destroying SDL window");
if (_renderer)
SDL_DestroyRenderer(_renderer);
static if (ENABLE_OPENGL) {
if (_context)
SDL_GL_DeleteContext(_context);
}
if (_win)
SDL_DestroyWindow(_win);
if (_drawbuf)
destroy(_drawbuf);
}
/// post event to handle in UI thread (this method can be used from background thread)
override void postEvent(CustomEvent event) {
super.postEvent(event);
SDL_Event sdlevent;
sdlevent.user.type = USER_EVENT_ID;
sdlevent.user.code = cast(int)event.uniqueId;
sdlevent.user.windowID = windowId;
SDL_PushEvent(&sdlevent);
}
static if (ENABLE_OPENGL)
{
static private bool _gl3Reloaded = false;
private SDL_GLContext _context;
protected bool createContext(int versionMajor, int versionMinor) {
Log.i("Trying to create OpenGL ", versionMajor, ".", versionMinor, " context");
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, versionMajor);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, versionMinor);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE);
_context = SDL_GL_CreateContext(_win); // Create the actual context and make it current
if (!_context)
Log.e("SDL_GL_CreateContext failed: ", fromStringz(SDL_GetError()));
else
Log.i("Created successfully");
return _context !is null;
}
}
protected uint _flags;
bool create(uint flags) {
if (!_dx)
_dx = 600;
if (!_dy)
_dy = 400;
_flags = flags;
uint windowFlags = SDL_WINDOW_HIDDEN;
if (flags & WindowFlag.Resizable)
windowFlags |= SDL_WINDOW_RESIZABLE;
if (flags & WindowFlag.Fullscreen)
windowFlags |= SDL_WINDOW_FULLSCREEN;
// TODO: implement modal behavior
//if (flags & WindowFlag.Modal)
// windowFlags |= SDL_WINDOW_INPUT_GRABBED;
windowFlags |= SDL_WINDOW_ALLOW_HIGHDPI;
static if (ENABLE_OPENGL) {
if (_enableOpengl)
windowFlags |= SDL_WINDOW_OPENGL;
}
_win = SDL_CreateWindow(toUTF8(_caption).toStringz, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,
_dx, _dy,
windowFlags);
static if (ENABLE_OPENGL) {
if (!_win) {
if (_enableOpengl) {
Log.e("SDL_CreateWindow failed - cannot create OpenGL window: ", fromStringz(SDL_GetError()));
_enableOpengl = false;
// recreate w/o OpenGL
windowFlags &= ~SDL_WINDOW_OPENGL;
_win = SDL_CreateWindow(toUTF8(_caption).toStringz, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED,
_dx, _dy,
windowFlags);
}
}
}
if (!_win) {
Log.e("SDL2: Failed to create window");
return false;
}
static if (ENABLE_OPENGL) {
if (_enableOpengl) {
createContext(3, 2);
if (!_context) {
Log.e("SDL_GL_CreateContext failed: ", fromStringz(SDL_GetError()));
Log.w("trying other versions of OpenGL");
bool flg = false;
flg = flg || createContext(3, 3);
flg = flg || createContext(3, 1);
flg = flg || createContext(4, 0);
flg = flg || createContext(2, 1);
if (!flg) {
_enableOpengl = false;
Log.w("OpenGL support is disabled");
}
}
if (_context && !_glSupport) {
_enableOpengl = initGLSupport(false);
fixSize();
}
}
}
if (!_enableOpengl) {
_renderer = SDL_CreateRenderer(_win, -1, SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC);
if (!_renderer) {
Log.e("SDL2: Failed to create renderer");
return false;
}
fixSize();
}
setOpenglEnabled(_enableOpengl);
windowCaption = _caption;
return true;
}
void fixSize() {
int w = 0;
int h = 0;
SDL_GetWindowSize(_win, &w, &h);
doResize(w, h);
}
void doResize(int width, int height) {
int w = 0;
int h = 0;
SDL_GL_GetDrawableSize(_win, &w, &h);
version (Windows) {
// DPI already calculated
} else {
// scale DPI
if (w > width && h > height && width > 0 && height > 0)
SCREEN_DPI = 96 * w / width;
}
onResize(std.algorithm.max(width, w), std.algorithm.max(height, h));
}
@property uint windowId() {
if (_win)
return SDL_GetWindowID(_win);
return 0;
}
override void show() {
Log.d("SDLWindow.show()");
if (_mainWidget && !(_flags & WindowFlag.Resizable)) {
_mainWidget.measure(SIZE_UNSPECIFIED, SIZE_UNSPECIFIED);
SDL_SetWindowSize(_win, _mainWidget.measuredWidth, _mainWidget.measuredHeight);
}
SDL_ShowWindow(_win);
if (_mainWidget)
_mainWidget.setFocus();
fixSize();
//update(true);
//redraw();
SDL_RaiseWindow(_win);
invalidate();
}
/// close window
override void close() {
Log.d("SDLWindow.close()");
_platform.closeWindow(this);
}
protected dstring _caption;
override @property dstring windowCaption() {
return _caption;
}
override @property void windowCaption(dstring caption) {
_caption = caption;
if (_win)
SDL_SetWindowTitle(_win, toUTF8(_caption).toStringz);
}
/// sets window icon
@property override void windowIcon(DrawBufRef buf) {
ColorDrawBuf icon = cast(ColorDrawBuf)buf.get;
if (!icon) {
Log.e("Trying to set null icon for window");
return;
}
int iconw = 32;
int iconh = 32;
ColorDrawBuf iconDraw = new ColorDrawBuf(iconw, iconh);
iconDraw.fill(0xE0E0E0);
iconDraw.drawRescaled(Rect(0, 0, iconw, iconh), icon, Rect(0, 0, icon.width, icon.height));
iconDraw.invertAlpha();
SDL_Surface *surface = SDL_CreateRGBSurfaceFrom(iconDraw.scanLine(0), iconDraw.width, iconDraw.height, 32, iconDraw.width * 4, 0x00ff0000,0x0000ff00,0x000000ff,0xff000000);
if (surface) {
// The icon is attached to the window pointer
SDL_SetWindowIcon(_win, surface);
// ...and the surface containing the icon pixel data is no longer required.
SDL_FreeSurface(surface);
} else {
Log.e("failed to set window icon");
}
destroy(iconDraw);
}
/// after drawing, call to schedule redraw if animation is active
override void scheduleAnimation() {
invalidate();
}
protected uint _lastCursorType = CursorType.None;
protected SDL_Cursor * [uint] _cursorMap;
/// sets cursor type for window
override protected void setCursorType(uint cursorType) {
// override to support different mouse cursors
if (_lastCursorType != cursorType) {
if (cursorType == CursorType.None) {
SDL_ShowCursor(SDL_DISABLE);
return;
}
if (_lastCursorType == CursorType.None)
SDL_ShowCursor(SDL_ENABLE);
_lastCursorType = cursorType;
SDL_Cursor * cursor;
// check for existing cursor in map
if (cursorType in _cursorMap) {
//Log.d("changing cursor to ", cursorType);
cursor = _cursorMap[cursorType];
if (cursor)
SDL_SetCursor(cursor);
return;
}
// create new cursor
switch (cursorType) with(CursorType)
{
case Arrow:
cursor = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_ARROW);
break;
case IBeam:
cursor = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_IBEAM);
break;
case Wait:
cursor = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_WAIT);
break;
case WaitArrow:
cursor = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_WAITARROW);
break;
case Crosshair:
cursor = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_CROSSHAIR);
break;
case No:
cursor = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_NO);
break;
case Hand:
cursor = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_HAND);
break;
case SizeNWSE:
cursor = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZENWSE);
break;
case SizeNESW:
cursor = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZENESW);
break;
case SizeWE:
cursor = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZEWE);
break;
case SizeNS:
cursor = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZENS);
break;
case SizeAll:
cursor = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_SIZEALL);
break;
default:
// TODO: support custom cursors
cursor = SDL_CreateSystemCursor(SDL_SYSTEM_CURSOR_ARROW);
break;
}
_cursorMap[cursorType] = cursor;
if (cursor) {
debug(DebugSDL) Log.d("changing cursor to ", cursorType);
SDL_SetCursor(cursor);
}
}
}
SDL_Texture * _texture;
int _txw;
int _txh;
private void updateBufferSize() {
if (_texture && (_txw != _dx || _txh != _dy)) {
SDL_DestroyTexture(_texture);
_texture = null;
}
if (!_texture) {
_texture = SDL_CreateTexture(_renderer,
SDL_PIXELFORMAT_ARGB8888,
SDL_TEXTUREACCESS_STATIC, //SDL_TEXTUREACCESS_STREAMING,
_dx,
_dy);
_txw = _dx;
_txh = _dy;
}
}
private void draw(ColorDrawBuf buf) {
updateBufferSize();
SDL_Rect rect;
rect.w = buf.width;
rect.h = buf.height;
SDL_UpdateTexture(_texture,
&rect,
cast(const void*)buf.scanLine(0),
buf.width * cast(int)uint.sizeof);
SDL_RenderCopy(_renderer, _texture, &rect, &rect);
}
void redraw() {
//Log.e("Widget instance count in SDLWindow.redraw: ", Widget.instanceCount());
// check if size has been changed
fixSize();
if (_enableOpengl) {
static if (ENABLE_OPENGL) {
SDL_GL_MakeCurrent(_win, _context);
glDisable(GL_DEPTH_TEST);
glViewport(0, 0, _dx, _dy);
float a = 1.0f;
float r = ((_backgroundColor >> 16) & 255) / 255.0f;
float g = ((_backgroundColor >> 8) & 255) / 255.0f;
float b = ((_backgroundColor >> 0) & 255) / 255.0f;
glClearColor(r, g, b, a);
glClear(GL_COLOR_BUFFER_BIT);
GLDrawBuf buf = new GLDrawBuf(_dx, _dy, false);
buf.beforeDrawing();
onDraw(buf);
buf.afterDrawing();
SDL_GL_SwapWindow(_win);
destroy(buf);
}
} else {
// Select the color for drawing.
ubyte r = cast(ubyte)((_backgroundColor >> 16) & 255);
ubyte g = cast(ubyte)((_backgroundColor >> 8) & 255);
ubyte b = cast(ubyte)((_backgroundColor >> 0) & 255);
SDL_SetRenderDrawColor(_renderer, r, g, b, 255);
// Clear the entire screen to our selected color.
SDL_RenderClear(_renderer);
if (!_drawbuf)
_drawbuf = new ColorDrawBuf(_dx, _dy);
_drawbuf.resize(_dx, _dy);
_drawbuf.resetClipping();
_drawbuf.fill(_backgroundColor);
onDraw(_drawbuf);
draw(_drawbuf);
// Up until now everything was drawn behind the scenes.
// This will show the new, red contents of the window.
SDL_RenderPresent(_renderer);
}
}
ColorDrawBuf _drawbuf;
//bool _exposeSent;
void processExpose() {
redraw();
//_exposeSent = false;
}
protected ButtonDetails _lbutton;
protected ButtonDetails _mbutton;
protected ButtonDetails _rbutton;
ushort convertMouseFlags(uint flags) {
ushort res = 0;
if (flags & SDL_BUTTON_LMASK)
res |= MouseFlag.LButton;
if (flags & SDL_BUTTON_RMASK)
res |= MouseFlag.RButton;
if (flags & SDL_BUTTON_MMASK)
res |= MouseFlag.MButton;
return res;
}
MouseButton convertMouseButton(uint button) {
if (button == SDL_BUTTON_LEFT)
return MouseButton.Left;
if (button == SDL_BUTTON_RIGHT)
return MouseButton.Right;
if (button == SDL_BUTTON_MIDDLE)
return MouseButton.Middle;
return MouseButton.None;
}
ushort lastFlags;
short lastx;
short lasty;
void processMouseEvent(MouseAction action, uint button, uint state, int x, int y) {
// correct mouse coordinates for HIGHDPI on mac
int drawableW = 0;
int drawableH = 0;
int winW = 0;
int winH = 0;
SDL_GL_GetDrawableSize(_win, &drawableW, &drawableH);
SDL_GetWindowSize(_win, &winW, &winH);
if (drawableW != winW || drawableH != winH) {
if (drawableW > 0 && winW > 0 && drawableH > 0 && drawableW > 0) {
x = x * drawableW / winW;
y = y * drawableH / winH;
}
}
MouseEvent event = null;
if (action == MouseAction.Wheel) {
// handle wheel
short wheelDelta = cast(short)y;
if (_keyFlags & KeyFlag.Shift)
lastFlags |= MouseFlag.Shift;
else
lastFlags &= ~MouseFlag.Shift;
if (_keyFlags & KeyFlag.Control)
lastFlags |= MouseFlag.Control;
else
lastFlags &= ~MouseFlag.Control;
if (_keyFlags & KeyFlag.Alt)
lastFlags |= MouseFlag.Alt;
else
lastFlags &= ~MouseFlag.Alt;
if (wheelDelta)
event = new MouseEvent(action, MouseButton.None, lastFlags, lastx, lasty, wheelDelta);
} else {
lastFlags = convertMouseFlags(state);
if (_keyFlags & KeyFlag.Shift)
lastFlags |= MouseFlag.Shift;
if (_keyFlags & KeyFlag.Control)
lastFlags |= MouseFlag.Control;
if (_keyFlags & KeyFlag.Alt)
lastFlags |= MouseFlag.Alt;
lastx = cast(short)x;
lasty = cast(short)y;
MouseButton btn = convertMouseButton(button);
event = new MouseEvent(action, btn, lastFlags, lastx, lasty);
}
if (event) {
ButtonDetails * pbuttonDetails = null;
if (button == MouseButton.Left)
pbuttonDetails = &_lbutton;
else if (button == MouseButton.Right)
pbuttonDetails = &_rbutton;
else if (button == MouseButton.Middle)
pbuttonDetails = &_mbutton;
if (pbuttonDetails) {
if (action == MouseAction.ButtonDown) {
pbuttonDetails.down(cast(short)x, cast(short)y, lastFlags);
} else if (action == MouseAction.ButtonUp) {
pbuttonDetails.up(cast(short)x, cast(short)y, lastFlags);
}
}
event.lbutton = _lbutton;
event.rbutton = _rbutton;
event.mbutton = _mbutton;
bool res = dispatchMouseEvent(event);
if (res) {
debug(mouse) Log.d("Calling update() after mouse event");
invalidate();
}
}
}
uint convertKeyCode(uint keyCode) {
switch(keyCode) {
case SDLK_0:
return KeyCode.KEY_0;
case SDLK_1:
return KeyCode.KEY_1;
case SDLK_2:
return KeyCode.KEY_2;
case SDLK_3:
return KeyCode.KEY_3;
case SDLK_4:
return KeyCode.KEY_4;
case SDLK_5:
return KeyCode.KEY_5;
case SDLK_6:
return KeyCode.KEY_6;
case SDLK_7:
return KeyCode.KEY_7;
case SDLK_8:
return KeyCode.KEY_8;
case SDLK_9:
return KeyCode.KEY_9;
case SDLK_a:
return KeyCode.KEY_A;
case SDLK_b:
return KeyCode.KEY_B;
case SDLK_c:
return KeyCode.KEY_C;
case SDLK_d:
return KeyCode.KEY_D;
case SDLK_e:
return KeyCode.KEY_E;
case SDLK_f:
return KeyCode.KEY_F;
case SDLK_g:
return KeyCode.KEY_G;
case SDLK_h:
return KeyCode.KEY_H;
case SDLK_i:
return KeyCode.KEY_I;
case SDLK_j:
return KeyCode.KEY_J;
case SDLK_k:
return KeyCode.KEY_K;
case SDLK_l:
return KeyCode.KEY_L;
case SDLK_m:
return KeyCode.KEY_M;
case SDLK_n:
return KeyCode.KEY_N;
case SDLK_o:
return KeyCode.KEY_O;
case SDLK_p:
return KeyCode.KEY_P;
case SDLK_q:
return KeyCode.KEY_Q;
case SDLK_r:
return KeyCode.KEY_R;
case SDLK_s:
return KeyCode.KEY_S;
case SDLK_t:
return KeyCode.KEY_T;
case SDLK_u:
return KeyCode.KEY_U;
case SDLK_v:
return KeyCode.KEY_V;
case SDLK_w:
return KeyCode.KEY_W;
case SDLK_x:
return KeyCode.KEY_X;
case SDLK_y:
return KeyCode.KEY_Y;
case SDLK_z:
return KeyCode.KEY_Z;
case SDLK_F1:
return KeyCode.F1;
case SDLK_F2:
return KeyCode.F2;
case SDLK_F3:
return KeyCode.F3;
case SDLK_F4:
return KeyCode.F4;
case SDLK_F5:
return KeyCode.F5;
case SDLK_F6:
return KeyCode.F6;
case SDLK_F7:
return KeyCode.F7;
case SDLK_F8:
return KeyCode.F8;
case SDLK_F9:
return KeyCode.F9;
case SDLK_F10:
return KeyCode.F10;
case SDLK_F11:
return KeyCode.F11;
case SDLK_F12:
return KeyCode.F12;
case SDLK_F13:
return KeyCode.F13;
case SDLK_F14:
return KeyCode.F14;
case SDLK_F15:
return KeyCode.F15;
case SDLK_F16:
return KeyCode.F16;
case SDLK_F17:
return KeyCode.F17;
case SDLK_F18:
return KeyCode.F18;
case SDLK_F19:
return KeyCode.F19;
case SDLK_F20:
return KeyCode.F20;
case SDLK_F21:
return KeyCode.F21;
case SDLK_F22:
return KeyCode.F22;
case SDLK_F23:
return KeyCode.F23;
case SDLK_F24:
return KeyCode.F24;
case SDLK_BACKSPACE:
return KeyCode.BACK;
case SDLK_SPACE:
return KeyCode.SPACE;
case SDLK_TAB:
return KeyCode.TAB;
case SDLK_RETURN:
return KeyCode.RETURN;
case SDLK_ESCAPE:
return KeyCode.ESCAPE;
case SDLK_DELETE:
case 0x40000063: // dirty hack for Linux - key on keypad
return KeyCode.DEL;
case SDLK_INSERT:
case 0x40000062: // dirty hack for Linux - key on keypad
return KeyCode.INS;
case SDLK_HOME:
case 0x4000005f: // dirty hack for Linux - key on keypad
return KeyCode.HOME;
case SDLK_PAGEUP:
case 0x40000061: // dirty hack for Linux - key on keypad
return KeyCode.PAGEUP;
case SDLK_END:
case 0x40000059: // dirty hack for Linux - key on keypad
return KeyCode.END;
case SDLK_PAGEDOWN:
case 0x4000005b: // dirty hack for Linux - key on keypad
return KeyCode.PAGEDOWN;
case SDLK_LEFT:
case 0x4000005c: // dirty hack for Linux - key on keypad
return KeyCode.LEFT;
case SDLK_RIGHT:
case 0x4000005e: // dirty hack for Linux - key on keypad
return KeyCode.RIGHT;
case SDLK_UP:
case 0x40000060: // dirty hack for Linux - key on keypad
return KeyCode.UP;
case SDLK_DOWN:
case 0x4000005a: // dirty hack for Linux - key on keypad
return KeyCode.DOWN;
case SDLK_LCTRL:
return KeyCode.LCONTROL;
case SDLK_LSHIFT:
return KeyCode.LSHIFT;
case SDLK_LALT:
return KeyCode.LALT;
case SDLK_RCTRL:
return KeyCode.RCONTROL;
case SDLK_RSHIFT:
return KeyCode.RSHIFT;
case SDLK_RALT:
return KeyCode.RALT;
case '/':
return KeyCode.KEY_DIVIDE;
default:
return 0x10000 | keyCode;
}
}
uint convertKeyFlags(uint flags) {
uint res;
if (flags & KMOD_CTRL)
res |= KeyFlag.Control;
if (flags & KMOD_SHIFT)
res |= KeyFlag.Shift;
if (flags & KMOD_ALT)
res |= KeyFlag.Alt;
if (flags & KMOD_RCTRL)
res |= KeyFlag.RControl | KeyFlag.Control;
if (flags & KMOD_RSHIFT)
res |= KeyFlag.RShift | KeyFlag.Shift;
if (flags & KMOD_RALT)
res |= KeyFlag.RAlt | KeyFlag.Alt;
if (flags & KMOD_LCTRL)
res |= KeyFlag.LControl | KeyFlag.Control;
if (flags & KMOD_LSHIFT)
res |= KeyFlag.LShift | KeyFlag.Shift;
if (flags & KMOD_LALT)
res |= KeyFlag.LAlt | KeyFlag.Alt;
return res;
}
bool processTextInput(const char * s) {
string str = fromStringz(s).dup;
dstring ds = toUTF32(str);
uint flags = convertKeyFlags(SDL_GetModState());
bool res = dispatchKeyEvent(new KeyEvent(KeyAction.Text, 0, flags, ds));
if (res) {
debug(DebugSDL) Log.d("Calling update() after text event");
invalidate();
}
return res;
}
uint _keyFlags;
bool processKeyEvent(KeyAction action, uint keyCode, uint flags) {
debug(DebugSDL) Log.d("processKeyEvent ", action, " SDL key=0x", format("%08x", keyCode), " SDL flags=0x", format("%08x", flags));
keyCode = convertKeyCode(keyCode);
flags = convertKeyFlags(flags);
if (action == KeyAction.KeyDown) {
switch(keyCode) {
case KeyCode.ALT:
flags |= KeyFlag.Alt;
break;
case KeyCode.RALT:
flags |= KeyFlag.Alt | KeyFlag.RAlt;
break;
case KeyCode.LALT:
flags |= KeyFlag.Alt | KeyFlag.LAlt;
break;
case KeyCode.CONTROL:
flags |= KeyFlag.Control;
break;
case KeyCode.RCONTROL:
flags |= KeyFlag.Control | KeyFlag.RControl;
break;
case KeyCode.LCONTROL:
flags |= KeyFlag.Control | KeyFlag.LControl;
break;
case KeyCode.SHIFT:
flags |= KeyFlag.Shift;
break;
case KeyCode.RSHIFT:
flags |= KeyFlag.Shift | KeyFlag.RShift;
break;
case KeyCode.LSHIFT:
flags |= KeyFlag.Shift | KeyFlag.LShift;
break;
default:
break;
}
}
_keyFlags = flags;
debug(DebugSDL) Log.d("processKeyEvent ", action, " converted key=0x", format("%08x", keyCode), " converted flags=0x", format("%08x", flags));
bool res = dispatchKeyEvent(new KeyEvent(action, keyCode, flags));
// if ((keyCode & 0x10000) && (keyCode & 0xF000) != 0xF000) {
// dchar[1] text;
// text[0] = keyCode & 0xFFFF;
// res = dispatchKeyEvent(new KeyEvent(KeyAction.Text, keyCode, flags, cast(dstring)text)) || res;
// }
if (res) {
debug(DebugSDL) Log.d("Calling update() after key event");
invalidate();
}
return res;
}
uint _lastRedrawEventCode;
/// request window redraw
override void invalidate() {
_platform.sendRedrawEvent(windowId, ++_lastRedrawEventCode);
}
void processRedrawEvent(uint code) {
if (code == _lastRedrawEventCode)
redraw();
}
private long _nextExpectedTimerTs;
private SDL_TimerID _timerId = 0;
/// schedule timer for interval in milliseconds - call window.onTimer when finished
override protected void scheduleSystemTimer(long intervalMillis) {
if (intervalMillis < 10)
intervalMillis = 10;
long nextts = currentTimeMillis + intervalMillis;
if (_timerId && _nextExpectedTimerTs && _nextExpectedTimerTs < nextts + 10)
return; // don't reschedule timer, timer event will be received soon
if (_win) {
if (_timerId) {
SDL_RemoveTimer(_timerId);
_timerId = 0;
}
_timerId = SDL_AddTimer(cast(uint)intervalMillis, &myTimerCallbackFunc, cast(void*)windowId);
_nextExpectedTimerTs = nextts;
}
}
void handleTimer(SDL_TimerID timerId) {
SDL_RemoveTimer(_timerId);
_timerId = 0;
_nextExpectedTimerTs = 0;
onTimer();
}
}
private extern(C) uint myTimerCallbackFunc(uint interval, void *param) nothrow {
uint windowId = cast(uint)param;
SDL_Event sdlevent;
sdlevent.user.type = TIMER_EVENT_ID;
sdlevent.user.code = 0;
sdlevent.user.windowID = windowId;
SDL_PushEvent(&sdlevent);
return(interval);
}
private __gshared bool _enableOpengl;
class SDLPlatform : Platform {
this() {
}
private SDLWindow[uint] _windowMap;
~this() {
foreach(ref SDLWindow wnd; _windowMap) {
destroy(wnd);
wnd = null;
}
destroy(_windowMap);
}
SDLWindow getWindow(uint id) {
if (id in _windowMap)
return _windowMap[id];
return null;
}
SDLWindow _windowToClose;
/// close window
override void closeWindow(Window w) {
SDLWindow window = cast(SDLWindow)w;
_windowToClose = window;
}
/// calls request layout for all windows
override void requestLayout() {
foreach(w; _windowMap) {
w.requestLayout();
w.invalidate();
}
}
/// handle theme change: e.g. reload some themed resources
override void onThemeChanged() {
foreach(w; _windowMap)
w.dispatchThemeChanged();
}
private uint _redrawEventId;
void sendRedrawEvent(uint windowId, uint code) {
if (!_redrawEventId)
_redrawEventId = SDL_RegisterEvents(1);
SDL_Event event;
event.type = _redrawEventId;
event.user.windowID = windowId;
event.user.code = code;
SDL_PushEvent(&event);
}
override Window createWindow(dstring windowCaption, Window parent, uint flags = WindowFlag.Resizable, uint width = 0, uint height = 0) {
setDefaultLanguageAndThemeIfNecessary();
int oldDPI = SCREEN_DPI;
int newwidth = width;
int newheight = height;
version(Windows) {
newwidth = pointsToPixels(width);
newheight = pointsToPixels(height);
}
SDLWindow res = new SDLWindow(this, windowCaption, parent, flags, newwidth, newheight);
_windowMap[res.windowId] = res;
if (oldDPI != SCREEN_DPI) {
version(Windows) {
newwidth = pointsToPixels(width);
newheight = pointsToPixels(height);
if (newwidth != width || newheight != height)
SDL_SetWindowSize(res._win, newwidth, newheight);
}
onThemeChanged();
}
return res;
}
//void redrawWindows() {
// foreach(w; _windowMap)
// w.redraw();
//}
override int enterMessageLoop() {
Log.i("entering message loop");
SDL_Event event;
bool quit = false;
bool skipNextQuit = false;
while(!quit) {
//redrawWindows();
if (SDL_WaitEvent(&event)) {
//Log.d("Event.type = ", event.type);
if (event.type == SDL_QUIT) {
if (!skipNextQuit) {
Log.i("event.type == SDL_QUIT");
quit = true;
break;
}
skipNextQuit = false;
}
if (_redrawEventId && event.type == _redrawEventId) {
// user defined redraw event
uint windowID = event.user.windowID;
SDLWindow w = getWindow(windowID);
if (w) {
w.processRedrawEvent(event.user.code);
}
continue;
}
switch (event.type) {
case SDL_WINDOWEVENT:
{
// WINDOW EVENTS
uint windowID = event.window.windowID;
SDLWindow w = getWindow(windowID);
if (!w) {
Log.w("SDL_WINDOWEVENT ", event.window.event, " received with unknown id ", windowID);
break;
}
// found window
switch (event.window.event) {
case SDL_WINDOWEVENT_RESIZED:
debug(DebugSDL) Log.d("SDL_WINDOWEVENT_RESIZED win=", event.window.windowID, " pos=", event.window.data1,
",", event.window.data2);
w.doResize(event.window.data1, event.window.data2);
w.redraw();
break;
case SDL_WINDOWEVENT_SIZE_CHANGED:
debug(DebugSDL) Log.d("SDL_WINDOWEVENT_SIZE_CHANGED win=", event.window.windowID, " pos=", event.window.data1,
",", event.window.data2);
w.doResize(event.window.data1, event.window.data2);
w.redraw();
break;
case SDL_WINDOWEVENT_CLOSE:
if (w.handleCanClose()) {
debug(DebugSDL) Log.d("SDL_WINDOWEVENT_CLOSE win=", event.window.windowID);
_windowMap.remove(windowID);
destroy(w);
} else {
skipNextQuit = true;
}
break;
case SDL_WINDOWEVENT_SHOWN:
debug(DebugSDL) Log.d("SDL_WINDOWEVENT_SHOWN");
break;
case SDL_WINDOWEVENT_HIDDEN:
debug(DebugSDL) Log.d("SDL_WINDOWEVENT_HIDDEN");
break;
case SDL_WINDOWEVENT_EXPOSED:
debug(DebugSDL) Log.d("SDL_WINDOWEVENT_EXPOSED");
w.redraw();
break;
case SDL_WINDOWEVENT_MOVED:
debug(DebugSDL) Log.d("SDL_WINDOWEVENT_MOVED");
break;
case SDL_WINDOWEVENT_MINIMIZED:
debug(DebugSDL) Log.d("SDL_WINDOWEVENT_MINIMIZED");
break;
case SDL_WINDOWEVENT_MAXIMIZED:
debug(DebugSDL) Log.d("SDL_WINDOWEVENT_MAXIMIZED");
break;
case SDL_WINDOWEVENT_RESTORED:
debug(DebugSDL) Log.d("SDL_WINDOWEVENT_RESTORED");
break;
case SDL_WINDOWEVENT_ENTER:
debug(DebugSDL) Log.d("SDL_WINDOWEVENT_ENTER");
break;
case SDL_WINDOWEVENT_LEAVE:
debug(DebugSDL) Log.d("SDL_WINDOWEVENT_LEAVE");
break;
case SDL_WINDOWEVENT_FOCUS_GAINED:
debug(DebugSDL) Log.d("SDL_WINDOWEVENT_FOCUS_GAINED");
break;
case SDL_WINDOWEVENT_FOCUS_LOST:
debug(DebugSDL) Log.d("SDL_WINDOWEVENT_FOCUS_LOST");
break;
default:
break;
}
break;
}
case SDL_KEYDOWN:
SDLWindow w = getWindow(event.key.windowID);
if (w) {
w.processKeyEvent(KeyAction.KeyDown, event.key.keysym.sym, event.key.keysym.mod);
SDL_StartTextInput();
}
break;
case SDL_KEYUP:
SDLWindow w = getWindow(event.key.windowID);
if (w) {
w.processKeyEvent(KeyAction.KeyUp, event.key.keysym.sym, event.key.keysym.mod);
}
break;
case SDL_TEXTEDITING:
debug(DebugSDL) Log.d("SDL_TEXTEDITING");
break;
case SDL_TEXTINPUT:
debug(DebugSDL) Log.d("SDL_TEXTINPUT");
SDLWindow w = getWindow(event.text.windowID);
if (w) {
w.processTextInput(event.text.text.ptr);
}
break;
case SDL_MOUSEMOTION:
SDLWindow w = getWindow(event.motion.windowID);
if (w) {
w.processMouseEvent(MouseAction.Move, 0, event.motion.state, event.motion.x, event.motion.y);
}
break;
case SDL_MOUSEBUTTONDOWN:
SDLWindow w = getWindow(event.button.windowID);
if (w) {
w.processMouseEvent(MouseAction.ButtonDown, event.button.button, event.button.state, event.button.x, event.button.y);
}
break;
case SDL_MOUSEBUTTONUP:
SDLWindow w = getWindow(event.button.windowID);
if (w) {
w.processMouseEvent(MouseAction.ButtonUp, event.button.button, event.button.state, event.button.x, event.button.y);
}
break;
case SDL_MOUSEWHEEL:
SDLWindow w = getWindow(event.wheel.windowID);
if (w) {
debug(DebugSDL) Log.d("SDL_MOUSEWHEEL x=", event.wheel.x, " y=", event.wheel.y);
w.processMouseEvent(MouseAction.Wheel, 0, 0, event.wheel.x, event.wheel.y);
}
break;
default:
// not supported event
if (event.type == USER_EVENT_ID) {
SDLWindow w = getWindow(event.user.windowID);
if (w) {
w.handlePostedEvent(cast(uint)event.user.code);
}
} else if (event.type == TIMER_EVENT_ID) {
SDLWindow w = getWindow(event.user.windowID);
if (w) {
w.handleTimer(cast(uint)event.user.code);
}
}
break;
}
if (_windowToClose) {
if (_windowToClose.windowId in _windowMap) {
Log.i("Platform.closeWindow()");
_windowMap.remove(_windowToClose.windowId);
SDL_DestroyWindow(_windowToClose._win);
Log.i("windowMap.length=", _windowMap.length);
destroy(_windowToClose);
}
_windowToClose = null;
}
if (_windowMap.length == 0) {
SDL_Quit();
quit = true;
}
}
}
Log.i("exiting message loop");
return 0;
}
/// retrieves text from clipboard (when mouseBuffer == true, use mouse selection clipboard - under linux)
override dstring getClipboardText(bool mouseBuffer = false) {
if (!SDL_HasClipboardText())
return ""d;
char * txt = SDL_GetClipboardText();
if (!txt)
return ""d;
string s = fromStringz(txt).dup;
SDL_free(txt);
return toUTF32(s);
}
/// sets text to clipboard (when mouseBuffer == true, use mouse selection clipboard - under linux)
override void setClipboardText(dstring text, bool mouseBuffer = false) {
string s = toUTF8(text);
SDL_SetClipboardText(s.toStringz);
}
/// show directory or file in OS file manager (explorer, finder, etc...)
override bool showInFileManager(string pathName) {
import std.process;
import std.path;
import std.file;
string normalized = buildNormalizedPath(pathName);
if (!normalized.exists) {
Log.e("showInFileManager failed - file or directory does not exist");
return false;
}
import std.string;
try {
version (Windows) {
Log.i("showInFileManager(", pathName, ")");
import win32.windows;
import dlangui.core.files;
string explorerPath = findExecutablePath("explorer.exe");
if (!explorerPath.length) {
Log.e("showInFileManager failed - cannot find explorer.exe");
return false;
}
string arg = "/select,\"" ~ normalized ~ "\"";
STARTUPINFO si;
si.cb = si.sizeof;
PROCESS_INFORMATION pi;
Log.d("showInFileManager: ", explorerPath, " ", arg);
arg = "\"" ~ explorerPath ~ "\" " ~ arg;
auto res = CreateProcessW(null, //explorerPath.toUTF16z,
cast(wchar*)arg.toUTF16z,
null, null, false, DETACHED_PROCESS,
null, null, &si, &pi);
if (!res) {
Log.e("showInFileManager failed to run explorer.exe");
return false;
}
return true;
} else version (OSX) {
string exe = "/usr/bin/osascript";
string[] args;
args ~= exe;
args ~= "-e";
args ~= "tell application \"Finder\" to reveal POSIX file \" ~ normalized ~ \"";
auto pid = spawnProcess(args);
wait(pid);
args[2] = "tell application \"Finder\" to activate";
pid = spawnProcess(args);
wait(pid);
return true;
} else {
// TODO: implement for POSIX
if (normalized.isFile)
normalized = normalized.baseName;
string exe = "xdg-open";
string[] args;
args ~= exe;
args ~= normalized;
auto pid = spawnProcess(args);
wait(pid);
return true;
}
} catch (Exception e) {
Log.e("showInFileManager -- exception while trying to open file browser");
}
return false;
}
}
version (Windows) {
import win32.windows;
import dlangui.platforms.windows.win32fonts;
pragma(lib, "gdi32.lib");
pragma(lib, "user32.lib");
extern(Windows)
int DLANGUIWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPSTR lpCmdLine, int nCmdShow)
{
int result;
try
{
Runtime.initialize();
// call SetProcessDPIAware to support HI DPI - fix by Kapps
auto ulib = LoadLibraryA("user32.dll");
alias SetProcessDPIAwareFunc = int function();
auto setDpiFunc = cast(SetProcessDPIAwareFunc)GetProcAddress(ulib, "SetProcessDPIAware");
if(setDpiFunc) // Should never fail, but just in case...
setDpiFunc();
// Get screen DPI
HDC dc = CreateCompatibleDC(NULL);
SCREEN_DPI = GetDeviceCaps(dc, LOGPIXELSY);
DeleteObject(dc);
//SCREEN_DPI = 96 * 3 / 2;
result = myWinMain(hInstance, hPrevInstance, lpCmdLine, nCmdShow);
Log.i("calling Runtime.terminate()");
// commented out to fix hanging runtime.terminate when there are background threads
//Runtime.terminate();
}
catch (Throwable e) // catch any uncaught exceptions
{
MessageBoxW(null, toUTF16z(e.toString ~ "\nStack trace:\n" ~ defaultTraceHandler.toString), "Error",
MB_OK | MB_ICONEXCLAMATION);
result = 0; // failed
}
return result;
}
string[] splitCmdLine(string line) {
string[] res;
int start = 0;
bool insideQuotes = false;
for (int i = 0; i <= line.length; i++) {
char ch = i < line.length ? line[i] : 0;
if (ch == '\"') {
if (insideQuotes) {
if (i > start)
res ~= line[start .. i];
start = i + 1;
insideQuotes = false;
} else {
insideQuotes = true;
start = i + 1;
}
} else if (!insideQuotes && (ch == ' ' || ch == '\t' || ch == 0)) {
if (i > start) {
res ~= line[start .. i];
}
start = i + 1;
}
}
return res;
}
int myWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow)
{
//Log.d("myWinMain()");
string basePath = exePath();
//Log.i("Current executable: ", exePath());
string cmdline = fromStringz(lpCmdLine).dup;
//Log.i("Command line: ", cmdline);
string[] args = splitCmdLine(cmdline);
//Log.i("Command line params: ", args);
return sdlmain(args);
}
} else {
extern(C) int DLANGUImain(string[] args)
{
return sdlmain(args);
}
}
int sdlmain(string[] args) {
initLogs();
if (!initFontManager()) {
Log.e("******************************************************************");
Log.e("No font files found!!!");
Log.e("Currently, only hardcoded font paths implemented.");
Log.e("Probably you can modify sdlapp.d to add some fonts for your system.");
Log.e("TODO: use fontconfig");
Log.e("******************************************************************");
assert(false);
}
currentTheme = createDefaultTheme();
try {
DerelictSDL2.missingSymbolCallback = &missingSymFunc;
// Load the SDL 2 library.
DerelictSDL2.load();
} catch (Exception e) {
Log.e("Cannot load SDL2 library", e);
return 1;
}
static if (ENABLE_OPENGL) {
try {
DerelictGL3.missingSymbolCallback = &gl3MissingSymFunc;
DerelictGL3.load();
DerelictGL.missingSymbolCallback = &gl3MissingSymFunc;
DerelictGL.load();
_enableOpengl = true;
} catch (Exception e) {
Log.e("Cannot load opengl library", e);
}
}
SDL_DisplayMode displayMode;
if (SDL_Init(SDL_INIT_VIDEO|SDL_INIT_TIMER|SDL_INIT_EVENTS|SDL_INIT_NOPARACHUTE) != 0) {
Log.e("Cannot init SDL2");
return 2;
}
scope(exit)SDL_Quit();
USER_EVENT_ID = SDL_RegisterEvents(1);
TIMER_EVENT_ID = SDL_RegisterEvents(1);
int request = SDL_GetDesktopDisplayMode(0, &displayMode);
static if (ENABLE_OPENGL) {
// Set OpenGL attributes
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
SDL_GL_SetAttribute(SDL_GL_DEPTH_SIZE, 24);
// Share textures between contexts
SDL_GL_SetAttribute(SDL_GL_SHARE_WITH_CURRENT_CONTEXT, 1);
}
auto sdl = new SDLPlatform;
Platform.setInstance(sdl);
int res = 0;
version (unittest) {
} else {
res = UIAppMain(args);
}
//Log.e("Widget instance count after UIAppMain: ", Widget.instanceCount());
Log.d("Destroying SDL platform");
Platform.setInstance(null);
releaseResourcesOnAppExit();
Log.d("Exiting main");
return res;
}
|
D
|
one who is absent from school without permission
someone who shirks duty
absent without permission
|
D
|
import std.stdio;
import std.container;
import std.file;
import std.path;
import std.conv;
import derelict.opengl.gl;
import derelict.sdl2.image;
import derelict.sdl2.sdl;
import derelict.sdl2.ttf;
import gapi.geometry;
import gapi.geometry_quad;
import gapi.camera;
import gapi.shader;
import gapi.shader_uniform;
import gapi.opengl;
import gapi.transform;
import gapi.texture;
import gapi.font;
import gapi.text;
import gl3n.linalg;
struct WindowData {
SDL_Window* window;
SDL_GLContext glContext;
int viewportWidth = 1024;
int viewportHeight = 768;
}
struct Geometry {
Buffer indicesBuffer;
Buffer verticesBuffer;
Buffer texCoordsBuffer;
VAO vao;
}
WindowData windowData;
Geometry sprite;
GlyphGeometry glyphGeometry;
Transform2D spriteTransform;
Transform2D glyphTransform = {
position: vec2(32.0f, 32.0f)
};
mat4 spriteModelMatrix;
mat4 spriteMVPMatrix;
Texture2D spriteTexture;
Font dejavuFont;
Text fpsText;
UpdateTextureTextResult fpsTextureTextResult;
ShaderProgram transformShader;
ShaderProgram textShader;
CameraMatrices cameraMatrices;
OthroCameraTransform cameraTransform = {
viewportSize: vec2(1024, 768),
position: vec2(0, 0),
zoom: 1f
};
double currentTime = 0;
double lastTime = 0;
double frameTime = 0;
immutable partTime = 1_000.0 / 60.0;
int frames = 0;
int fps = 0;
void main() {
DerelictGL3.load();
DerelictSDL2.load();
DerelictSDL2Image.load();
DerelictSDL2TTF.load();
run();
}
void run() {
initSDL();
initGL();
onCreate();
mainLoop();
onDestroy();
}
void onCreate() {
createSprite();
createShaders();
createTexture();
createFont();
createGlyphGeometry();
createFpsText();
}
void createSprite() {
sprite.indicesBuffer = createIndicesBuffer(quadIndices);
sprite.verticesBuffer = createVector2fBuffer(centeredQuadVertices);
sprite.texCoordsBuffer = createVector2fBuffer(quadTexCoords);
sprite.vao = createVAO();
bindVAO(sprite.vao);
createVector2fVAO(sprite.verticesBuffer, inAttrPosition);
createVector2fVAO(sprite.texCoordsBuffer, inAttrTextCoords);
}
void createGlyphGeometry() {
glyphGeometry.indicesBuffer = createIndicesBuffer(quadIndices);
glyphGeometry.verticesBuffer = createVector2fBuffer(quadVertices);
glyphGeometry.texCoordsBuffer = createVector2fBuffer(quadTexCoords);
glyphGeometry.vao = createVAO();
bindVAO(glyphGeometry.vao);
createVector2fVAO(glyphGeometry.verticesBuffer, inAttrPosition);
createVector2fVAO(glyphGeometry.texCoordsBuffer, inAttrTextCoords);
}
void createShaders() {
const vertexSource = readText(buildPath("res", "transform_vertex.glsl"));
const vertexShader = createShader("transform vertex shader", ShaderType.vertex, vertexSource);
const fragmentSource = readText(buildPath("res", "texture_fragment.glsl"));
const fragmentShader = createShader("transform fragment shader", ShaderType.fragment, fragmentSource);
const fragmentColorSource = readText(buildPath("res", "colorize_texatlas_fragment.glsl"));
const fragmentColorShader = createShader("color fragment shader", ShaderType.fragment, fragmentColorSource);
transformShader = createShaderProgram("transform program", [vertexShader, fragmentShader]);
textShader = createShaderProgram("text program", [vertexShader, fragmentColorShader]);
}
void createTexture() {
const Texture2DParameters params = {
minFilter: true,
magFilter: true
};
spriteTexture = createTexture2DFromFile(buildPath("res", "test.jpg"), params);
}
void createFont() {
dejavuFont = createFontFromFile(buildPath("res", "SourceHanSerif-Regular.otf"));
}
void createFpsText() {
fpsText = createText();
}
void onDestroy() {
deleteBuffer(sprite.indicesBuffer);
deleteBuffer(sprite.verticesBuffer);
deleteBuffer(sprite.texCoordsBuffer);
deleteShaderProgram(transformShader);
deleteShaderProgram(textShader);
deleteTexture2D(spriteTexture);
deleteFont(dejavuFont);
deleteText(fpsText);
stopSDL();
}
void stopSDL() {
SDL_GL_DeleteContext(windowData.glContext);
SDL_DestroyWindow(windowData.window);
SDL_Quit();
TTF_Quit();
}
void onResize(in uint width, in uint height) {
cameraTransform.viewportSize = vec2(width, height);
windowData.viewportWidth = width;
windowData.viewportHeight = height;
}
void onProgress(in float deltaTime) {
spriteTransform.position = vec2(
cameraTransform.viewportSize.x / 2,
cameraTransform.viewportSize.y / 2
);
spriteTransform.scaling = vec2(430.0f, 600.0f);
spriteTransform.rotation += 0.25f * deltaTime;
spriteModelMatrix = create2DModelMatrix(spriteTransform);
cameraMatrices = createOrthoCameraMatrices(cameraTransform);
spriteMVPMatrix = cameraMatrices.mvpMatrix * spriteModelMatrix;
UpdateTextInput fpsTextInput = {
textSize: 32,
font: &dejavuFont,
text: "FPS: " ~ to!dstring(fps) ~ " | Unicode: 日本語"d,
position: glyphTransform.position,
cameraMvpMatrix: cameraMatrices.mvpMatrix
};
fpsTextureTextResult = updateTextureText(&fpsText, fpsTextInput);
}
void onRender() {
renderSprite();
renderFpsText();
}
void renderSprite() {
bindShaderProgram(transformShader);
setShaderProgramUniformMatrix(transformShader, "MVP", spriteMVPMatrix);
setShaderProgramUniformTexture(transformShader, "texture", spriteTexture, 0);
bindVAO(sprite.vao);
bindIndices(sprite.indicesBuffer);
renderIndexedGeometry(cast(uint) quadIndices.length, GL_TRIANGLE_STRIP);
}
void renderFpsText() {
bindShaderProgram(textShader);
setShaderProgramUniformVec4f(textShader, "color", vec4(0, 0, 0, 1.0f));
bindShaderProgram(transformShader);
const RenderTextureTextInput inputTextureRender = {
shader: transformShader,
geometry: glyphGeometry,
updateResult: fpsTextureTextResult
};
renderTextureText(inputTextureRender);
}
void initSDL() {
if (SDL_Init(SDL_INIT_VIDEO) < 0)
throw new Error("Failed to init SDL");
if (TTF_Init() < 0)
throw new Error("Failed to init SDL TTF");
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 4);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 3);
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_CORE);
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
SDL_GL_SetAttribute(SDL_GL_MULTISAMPLESAMPLES, 16);
SDL_GL_SetSwapInterval(2);
windowData.window = SDL_CreateWindow(
"Simple data oriented GAPI",
SDL_WINDOWPOS_CENTERED,
SDL_WINDOWPOS_CENTERED,
windowData.viewportWidth,
windowData.viewportHeight,
SDL_WINDOW_OPENGL | SDL_WINDOW_RESIZABLE
);
if (windowData.window == null)
throw new Error("Window could not be created! SDL Error: %s" ~ to!string(SDL_GetError()));
windowData.glContext = SDL_GL_CreateContext(windowData.window);
if (windowData.glContext == null)
throw new Error("OpenGL context could not be created! SDL Error: %s" ~ to!string(SDL_GetError()));
SDL_GL_SwapWindow(windowData.window);
DerelictGL3.reload();
}
void initGL() {
glDisable(GL_CULL_FACE);
glDisable(GL_MULTISAMPLE);
glDisable(GL_DEPTH_TEST);
glEnable(GL_BLEND);
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glClearColor(150.0f/255.0f, 150.0f/255.0f, 150.0f/255.0f, 0);
// glDebugMessageCallback(&openglCallbackFunction, null);
}
extern(C) void openglCallbackFunction(GLenum source, GLenum type, GLuint id, GLenum severity,
GLsizei length, const GLchar* message, const void* userParam)
nothrow
pure
{
}
void mainLoop() {
bool running = true;
void render() {
if (currentTime >= lastTime + partTime) {
const deltaTime = (currentTime - lastTime) / 1000.0f;
onProgress(deltaTime);
lastTime = currentTime;
glClear(GL_COLOR_BUFFER_BIT);
onRender();
SDL_GL_SwapWindow(windowData.window);
frames += 1;
}
}
while (running) {
currentTime = SDL_GetTicks();
SDL_Event event;
while (SDL_PollEvent(&event)) {
if (event.type == SDL_QUIT) {
running = false;
}
if (event.type == SDL_WINDOWEVENT && event.window.event == SDL_WINDOWEVENT_SIZE_CHANGED) {
const width = event.window.data1;
const height = event.window.data2;
cameraTransform.viewportSize.x = width;
cameraTransform.viewportSize.y = height;
glViewport(0, 0, width, height);
SDL_GL_MakeCurrent(windowData.window, windowData.glContext);
render();
}
}
render();
if (currentTime >= frameTime + 1000.0) {
frameTime = currentTime;
fps = frames;
frames = 1;
}
}
}
|
D
|
var int VergiftetCounter;
var int FliegenpilzCounter;
var C_ITEM CurrentArmor;
FUNC VOID Zustaende()
{
var int Random;
var int GiftChance;
GiftChance = 0;
var int armor;
armor = ((hero.protection[PROT_EDGE] + hero.protection[PROT_POINT])/1000) + hero.protection[PROT_FIRE] + hero.protection[PROT_MAGIC];
armor = armor/4;
if (KE == 0)
{
GiftChance = 100; // 100 %
}
else if (KE == 1)
{
GiftChance = 80; // - 20 %
}
else if (KE == 2)
{
GiftChance = 60; // 100 %
}
else if (KE == 3)
{
GiftChance = 40; // 100 %
}
else if (KE == 4)
{
GiftChance = 20; // 100 %
};
if (Npc_HasEquippedArmor(hero))
&& (Mod_Nackt)
&& (!playerIsTransformed)
{
hero.protection[PROT_EDGE] -= 1000;
hero.protection[PROT_BLUNT] -= 1000;
hero.protection[PROT_POINT] -= 1000;
Mod_Nackt = FALSE;
};
if (!Npc_HasEquippedArmor(hero))
&& (!Mod_Nackt)
&& (!playerIsTransformed)
{
hero.protection[PROT_EDGE] += 1000;
hero.protection[PROT_BLUNT] += 1000;
hero.protection[PROT_POINT] += 1000;
Mod_Nackt = TRUE;
};
GiftChance = GiftChance - ((GiftChance*armor)/100);
// Schwimmt bzw. Taucht der Hero?
if (C_BodyStateContains(hero, BS_SWIM))
|| (C_BodyStateContains(hero, BS_DIVE))
{
Mod_Schwimmpraxis += 1;
Mod_SchwimmTauchCounter += 1;
if (Mod_Schwimmpraxis == 500)
{
hero.attribute[ATR_STRENGTH] += 1;
AI_PrintScreen ("+1 Stärke durch viel Schwimmen", -1, YPOS_ItemGiven, FONT_ScreenSmall, 2);
Mod_Schwimmpraxis = 0;
};
// Im Eisgebiet führt es zu einer Erkältung
if (CurrentLevel == EISGEBIET_ZEN)
&& (Erkaeltung == FALSE)
&& (Mod_SLD_WaermeRing == 0)
{
var C_Item itm; itm = Npc_GetEquippedArmor(hero);
if (!Hlp_IsValidItem(itm)) {
Spine_UnlockAchievement(SPINE_ACHIEVEMENT_72);
};
if (Eistaucher >= 5)
{
Eistaucher = 0;
if (Hlp_Random(100) < GiftChance)
{
Erkaeltung = TRUE;
HatErstesMalNiesen = FALSE;
Erkaeltungsdauer = 0;
// Zeit festlegen
if (Krankheit == 0)
{
Erkaeltung_Stufe01 = 1200;
}
else if (Krankheit == 1)
{
Erkaeltung_Stufe01 = 1080;
}
else if (Krankheit == 2)
{
Erkaeltung_Stufe01 = 972;
}
else if (Krankheit == 3)
{
Erkaeltung_Stufe01 = 874;
}
else if (Krankheit == 4)
{
Erkaeltung_Stufe01 = 787;
};
// Mali festlegen und die Start-Mali gleich abziehen
if (KE == 0)
{
Erkaeltung_Stufe01_HP = 40;
Erkaeltung_Stufe01_MANA = 20;
Erkaeltung_Stufe01_STR = 15;
Erkaeltung_Stufe01_DEX = 15;
}
else if (KE == 1)
{
Erkaeltung_Stufe01_HP = 32;
Erkaeltung_Stufe01_MANA = 16;
Erkaeltung_Stufe01_STR = 12;
Erkaeltung_Stufe01_DEX = 12;
}
else if (KE == 2)
{
Erkaeltung_Stufe01_HP = 26;
Erkaeltung_Stufe01_MANA = 13;
Erkaeltung_Stufe01_STR = 10;
Erkaeltung_Stufe01_DEX = 10;
}
else if (KE == 3)
{
Erkaeltung_Stufe01_HP = 20;
Erkaeltung_Stufe01_MANA = 10;
Erkaeltung_Stufe01_STR = 8;
Erkaeltung_Stufe01_DEX = 8;
}
else if (KE == 4)
{
Erkaeltung_Stufe01_HP = 16;
Erkaeltung_Stufe01_MANA = 8;
Erkaeltung_Stufe01_STR = 6;
Erkaeltung_Stufe01_DEX = 6;
};
};
};
Eistaucher += 1;
};
};
// Held ist erkältet
if (Erkaeltung == TRUE)
{
var int Randomizer;
if (Erkaeltungsdauer == 0)
{
AI_PrintScreen ("Ich habe mir eine Erkältung eingefangen", -1, YPOS_ItemGiven, FONT_ScreenSmall, 2);
hero.attribute[ATR_HITPOINTS] -= Erkaeltung_Stufe01_HP;
hero.attribute[ATR_HITPOINTS_MAX] -= Erkaeltung_Stufe01_HP;
hero.attribute[ATR_MANA] -= Erkaeltung_Stufe01_Mana;
hero.attribute[ATR_MANA_MAX] -= Erkaeltung_Stufe01_Mana;
hero.attribute[ATR_STRENGTH] -= Erkaeltung_Stufe01_Str;
hero.attribute[ATR_DEXTERITY] -= Erkaeltung_Stufe01_Dex;
hero.aivar[AIV_Damage] -= Erkaeltung_Stufe01_HP;
};
if (C_BodyStateContains(hero, BS_STAND))
|| (C_BodyStateContains(hero, BS_WALK))
|| (C_BodyStateContains(hero, BS_RUN))
{
if (HatErstesMalNiesen == FALSE)
{
HatErstesMalNiesen = TRUE;
AI_StandUp (hero);
Randomizer = Hlp_Random(2);
if (Randomizer == 1)
{
AI_PlayAni (hero, "T_NIESEN");
}
else
{
AI_PlayAni (hero, "T_NIESEN2");
};
}
else
{
Randomizer = Hlp_Random(300);
if (Randomizer == 184)
{
AI_StandUp (hero);
AI_PlayAni (hero, "T_NIESEN");
}
else if (Randomizer == 99)
{
AI_StandUp (hero);
AI_PlayAni (hero, "T_NIESEN2");
};
};
};
if (Erkaeltungsdauer >= Erkaeltung_Stufe01)
{
AI_PrintScreen ("Die Erkältung ist vorüber", -1, YPOS_ItemGiven, FONT_ScreenSmall, 2);
hero.attribute[ATR_HITPOINTS_MAX] += Erkaeltung_Stufe01_HP;
hero.attribute[ATR_HITPOINTS] += Erkaeltung_Stufe01_HP;
hero.attribute[ATR_MANA_MAX] += Erkaeltung_Stufe01_Mana;
hero.attribute[ATR_MANA] += Erkaeltung_Stufe01_Mana;
hero.attribute[ATR_STRENGTH] += Erkaeltung_Stufe01_Str;
hero.attribute[ATR_DEXTERITY] += Erkaeltung_Stufe01_Dex;
hero.aivar[AIV_Damage] += Erkaeltung_Stufe01_HP;
Erkaeltung = FALSE;
Erkaeltungsdauer = 0;
Eistaucher = 0;
KErkaeltung += 1;
if (KErkaeltung == 3)
|| (KErkaeltung == 10)
|| (KErkaeltung == 20)
|| (KErkaeltung == 40)
{
KE += 1;
if (KE == 4)
{
PrintScreen ("Du hast die höchste Widerstandkraft gegenüber Hauch der Pestilenz erreicht.", -1, -1, FONT_SCREEN, 2);
};
if (Krankheit < 4)
{
Krankheit += 1;
PrintScreen ("Deine Resistenzen gegenüber Erkrankungen sind gestiegen.", -1, -1, FONT_SCREEN, 2);
};
};
};
Erkaeltungsdauer += 1;
};
// Esssystem
if (Mod_Esssystem == TRUE)
&& (HeroIsTKeinZombie == TRUE)
{
if (Npc_IsInFightMode (hero, FMODE_MELEE))
|| (Npc_IsInFightMode (hero, FMODE_FIST))
|| (Npc_IsInFightMode (hero, FMODE_FAR))
|| (Npc_IsInFightMode (hero, FMODE_MAGIC))
{
Mod_NichtsGegessenCounter += 4;
}
else if (Npc_IsInFightMode (hero, FMODE_NONE))
{
if (C_BodyStateContains(hero, BS_STAND))
{
Mod_NichtsGegessenCounter += 1;
}
else
{
Mod_NichtsGegessenCounter += 2;
};
};
if (Mod_NichtsGegessenCounter >= 20)
{
Mod_EssPunkte -= 1;
Mod_NichtsGegessenCounter = 0;
};
//EssBalken();
if (Mod_EssPunkte == 25)
&& (Mod_NichtsGegessenCounter == 0)
{
AI_PrintScreen ("Puh, langsam krieg' ich Hunger!", -1, YPOS_ItemGiven, FONT_ScreenSmall, 2);
AI_StandUp (hero);
AI_PlayAni (hero, "T_HUNGER");
};
if (Mod_EssPunkte == 15)
&& (Mod_NichtsGegessenCounter == 0)
{
AI_PrintScreen ("Ich muss jetzt was essen!", -1, YPOS_ItemGiven, FONT_ScreenSmall, 2);
AI_StandUp (hero);
AI_PlayAni (hero, "T_HUNGER");
};
if (Mod_EssPunkte == 5)
&& (Mod_NichtsGegessenCounter == 0)
{
AI_PrintScreen ("Wenn ich nicht gleich etwas esse, kippe ich um!", -1, YPOS_ItemGiven, FONT_ScreenSmall, 2);
AI_StandUp (hero);
AI_PlayAni (hero, "T_HUNGER");
};
if (Mod_EssPunkte == 0)
&& (Mod_NichtsGegessenCounter == 0)
{
Wld_PlayEffect("BLACK_SCREEN", hero, hero, 0, 0, 0, TRUE);
hero.attribute[ATR_HITPOINTS_MAX] -= 10;
hero.attribute[ATR_HITPOINTS] = hero.attribute[ATR_HITPOINTS_MAX];
PC_Sleep (8);
AI_PlayAni (hero, "T_STAND_2_VICTIM_SLE");
AI_PlayAni (hero, "T_VICTIM_SLE_2_STAND" );
Mod_EssPunkte = 300;
hero.aivar[AIV_Damage] = hero.attribute[ATR_HITPOINTS_MAX];
Mod_EssKo += 1;
};
};
// Betrunken
if (Mod_Betrunken == 1)
&& (NeuBetrunken == 1)
{
Mod_OverlayMDS_Wait = 0;
NeuBetrunken = 0;
Mdl_RemoveOverlayMDS (hero, "HUMANS_DRUNKEN.MDS");
};
if (Mod_Betrunken == 1)
&& (!Npc_IsInFightMode(hero, FMODE_NONE))
{
AI_RemoveWeapon (hero);
};
Mod_OverlayMDS_Wait += Betrunken_Level;
if (Mod_OverlayMDS_Wait == 1)
&& (Mod_Betrunken == 1)
{
Mdl_ApplyOverlayMDS (hero, "HUMANS_DRUNKEN.MDS");
};
if (Mod_OverlayMDS_Wait >= 301)
&& (Mod_Betrunken == 1)
{
Mdl_RemoveOverlayMDS (hero, "HUMANS_DRUNKEN.MDS");
Mod_Betrunken = 0;
};
// Alkohol abbauen
if (DrinkCounter > 0)
{
DrinkCounter -= 1;
if (DrinkCounter == 0)
{
if (HatGetrunken > 0)
{
HatGetrunken -= 1;
};
DrinkCounter = 120;
};
};
// Vergiftung
if (HeroIstVergiftet == 1)
&& (Hero.attribute[ATR_HITPOINTS] > 0)
{
VergiftetCounter += 1;
if (VergiftetCounter == 100)
{
hero.attribute[ATR_HITPOINTS] -= 1;
hero.aivar[AIV_Damage] -= 1;
VergiftetCounter = 0;
};
};
// Fliegenpilz-Gift
if (Mod_Fliegenpilzgift == 1)
&& (Mod_Fliegenpilzgift_Counter < 120)
{
Mod_Fliegenpilzgift_Counter += 1;
};
if (Mod_Fliegenpilzgift_Counter == 120)
&& (Mod_Fliegenpilzgift == 1)
{
if (Mod_Fliegenpilzgift_MSG == 0)
{
Mod_Fliegenpilzgift_MSG = 1;
PrintScreen ("Das Gift des Pilzes beginnt zu wirken!", -1, YPOS_LevelUp, FONT_Screen, 2);
if (FliegenpilzGift_FirstTime == 0)
{
FliegenpilzGift_FirstTime = 1;
PrintScreen ("Es gibt sicherlich ein Gegengift bei einem Heiler oder einm Händler ...", -1, YPOS_LevelUp-5, FONT_Screen, 2);
};
};
Mod_Fliegenpilzgift = 2;
if (Pilzgift == 0)
{
GGPi_Fliegenpilz_Time = 180;
}
else if (Pilzgift == 1)
{
GGPi_Fliegenpilz_Time = 135;
}
else if (Pilzgift == 2)
{
GGPi_Fliegenpilz_Time = 90;
}
else if (Pilzgift == 3)
{
GGPi_Fliegenpilz_Time = 45;
};
if (Gewaechsgift == 0)
{
GGPi_Fliegenpilz_Damage = 1000;
}
else if (Gewaechsgift == 1)
{
GGPi_Fliegenpilz_Damage = 900;
}
else if (Gewaechsgift == 2)
{
GGPi_Fliegenpilz_Damage = 800;
}
else if (Gewaechsgift == 3)
{
GGPi_Fliegenpilz_Damage = 700;
};
};
// Gift
if (Mod_FungoGift == 1)
&& (Mod_FungoGift_Counter > 0)
{
Mod_Fungogift_Counter -= 1;
if (hero.attribute[ATR_HITPOINTS] > 0)
{
hero.attribute[ATR_HITPOINTS] -= 1;
hero.aivar[AIV_Damage] -= 1;
};
if (hero.attribute[ATR_MANA] > 0)
{
hero.attribute[ATR_MANA] -= 1;
};
if (Mod_FungoGift_Counter == 0)
{
Mod_FungoGift = 0;
};
};
if (Mod_MithridaGift == 1)
&& (Mod_MithridaGift_Counter > 0)
{
Mod_MithridaGift_Counter -= 1;
if (hero.attribute[ATR_HITPOINTS] > 0)
{
hero.attribute[ATR_HITPOINTS] -= 2;
hero.aivar[AIV_Damage] -= 2;
};
if (Mod_MithridaGift_Counter == 0)
{
Mod_MithridaGift = 0;
};
};
if (Mod_PonzolaGift == 1)
&& (Mod_PonzolaGift_Counter > 0)
{
Mod_Ponzolagift_Counter -= 1;
if (hero.attribute[ATR_MANA] > 0)
{
hero.attribute[ATR_MANA] -= 5;
};
if (Mod_PonzolaGift_Counter == 0)
{
Mod_PonzolaGift = 0;
};
};
if (Mod_VenenaGift == 1)
&& (Mod_VenenaGift_Counter > 0)
{
Mod_Venenagift_Counter -= 1;
if (hero.attribute[ATR_HITPOINTS] > 0)
{
hero.attribute[ATR_HITPOINTS] -= 5;
hero.aivar[AIV_Damage] -= 5;
};
if (Mod_VenenaGift_Counter == 0)
{
Mod_VenenaGift = 0;
};
};
if (Mod_PianteGift == 1)
&& (Mod_PianteGift_Counter > 0)
{
Mod_Piantegift_Counter -= 1;
if (hero.attribute[ATR_HITPOINTS] > 0)
{
hero.attribute[ATR_HITPOINTS] -= 3;
hero.aivar[AIV_Damage] -= 3;
};
if (hero.attribute[ATR_MANA] > 0)
{
hero.attribute[ATR_MANA] -= 1;
};
if (Mod_PianteGift_Counter == 0)
{
Mod_PianteGift = 0;
};
};
// Rüstungscheck wegen Eiswelt
CurrentArmor = Npc_GetEquippedArmor(hero);
if (!Npc_HasEquippedArmor(hero))
{
if (CurrentLevel == EISGEBIET_ZEN)
&& (Erkaeltung == FALSE)
&& (!playerIsTransformed)
{
if (Eistaucher >= 20)
{
Eistaucher = 0;
if (Hlp_Random(100) < GiftChance)
{
Erkaeltung = TRUE;
HatErstesMalNiesen = FALSE;
Erkaeltungsdauer = 0;
// Zeit festlegen
if (Krankheit == 0)
{
Erkaeltung_Stufe01 = 1200;
}
else if (Krankheit == 1)
{
Erkaeltung_Stufe01 = 1080;
}
else if (Krankheit == 2)
{
Erkaeltung_Stufe01 = 972;
}
else if (Krankheit == 3)
{
Erkaeltung_Stufe01 = 874;
}
else if (Krankheit == 4)
{
Erkaeltung_Stufe01 = 787;
};
// Mali festlegen und die Start-Mali gleich abziehen
if (KE == 0)
{
Erkaeltung_Stufe01_HP = 40;
Erkaeltung_Stufe01_MANA = 20;
Erkaeltung_Stufe01_STR = 15;
Erkaeltung_Stufe01_DEX = 15;
}
else if (KE == 1)
{
Erkaeltung_Stufe01_HP = 32;
Erkaeltung_Stufe01_MANA = 16;
Erkaeltung_Stufe01_STR = 12;
Erkaeltung_Stufe01_DEX = 12;
}
else if (KE == 2)
{
Erkaeltung_Stufe01_HP = 26;
Erkaeltung_Stufe01_MANA = 13;
Erkaeltung_Stufe01_STR = 10;
Erkaeltung_Stufe01_DEX = 10;
}
else if (KE == 3)
{
Erkaeltung_Stufe01_HP = 20;
Erkaeltung_Stufe01_MANA = 10;
Erkaeltung_Stufe01_STR = 8;
Erkaeltung_Stufe01_DEX = 8;
}
else if (KE == 4)
{
Erkaeltung_Stufe01_HP = 16;
Erkaeltung_Stufe01_MANA = 8;
Erkaeltung_Stufe01_STR = 6;
Erkaeltung_Stufe01_DEX = 6;
};
};
};
Eistaucher += 1;
};
};
// Kontrollerune
if (Mod_WM_Kontrolled > 0)
{
Mod_WM_Kontrolled -= 1;
};
// Herkulesstängel
if (Mod_HasHerkulesIntus > 0)
{
Mod_HasHerkulesIntus -= 1;
if (Mod_HasHerkulesIntus == 0)
{
Mdl_RemoveOverlayMDS (hero, "HUMANS_SPRINT.MDS");
hero.attribute[ATR_STRENGTH] -= 20;
Mod_AfterHerkulesIntus = 300;
};
};
if (Mod_AfterHerkulesIntus > 0)
{
if (Mod_AfterHerkulesIntus == 300)
{
hero.attribute[ATR_HITPOINTS] -= 40;
hero.attribute[ATR_HITPOINTS_MAX] -= 40;
hero.attribute[ATR_MANA] -= 20;
hero.attribute[ATR_MANA_MAX] -= 20;
hero.attribute[ATR_STRENGTH] -= 15;
hero.attribute[ATR_DEXTERITY] -= 15;
hero.aivar[AIV_Damage] -= 40;
Mdl_RemoveOverlayMDS (hero, "HUMANS_DRUNKEN.MDS");
};
Mod_AfterHerkulesIntus -= 1;
if (Mod_AfterHerkulesIntus == 0)
{
Mdl_RemoveOverlayMDS (hero, "HUMANS_DRUNKEN.MDS");
hero.attribute[ATR_HITPOINTS_MAX] += 40;
hero.attribute[ATR_HITPOINTS] += 40;
hero.attribute[ATR_MANA_MAX] += 20;
hero.attribute[ATR_MANA] += 20;
hero.attribute[ATR_STRENGTH] += 15;
hero.attribute[ATR_DEXTERITY] += 15;
hero.aivar[AIV_Damage] += 40;
};
};
// Purpurmond
if (Mod_Purpurmond_Intus == 1)
{
Mod_Purpurmond_Intus_Time -= 1;
if (Mod_Purpurmond_Intus_Time == 0)
{
hero.attribute[ATR_STRENGTH] += 10;
hero.attribute[ATR_DEXTERITY] += 10;
hero.attribute[ATR_MANA_MAX] += 10;
hero.attribute[ATR_MANA] += 10;
Mod_Purpurmond_Intus = 0;
};
};
// Kristall der Prismen
if (Mod_KristallPrisma == 0)
&& (Npc_HasItems(hero, ItMi_KristallPrisma) == 1)
{
Mod_KristallPrisma = 1;
hero.protection[PROT_MAGIC] += 30;
hero.protection[PROT_FIRE] += 30;
};
if (Mod_KristallPrisma == 1)
&& (Npc_HasItems(hero, ItMi_KristallPrisma) == 0)
{
Mod_KristallPrisma = 0;
hero.protection[PROT_MAGIC] -= 30;
hero.protection[PROT_FIRE] -= 30;
};
// Regenerationstrank
if (Mod_Regenerationstrank_Counter > 0)
{
Mod_Regenerationstrank_Counter -= 1;
hero.attribute[ATR_HITPOINTS] += hero.attribute[ATR_HITPOINTS_MAX]/50;
if (hero.attribute[ATR_HITPOINTS] > hero.attribute[ATR_HITPOINTS_MAX])
{
hero.attribute[ATR_HITPOINTS] = hero.attribute[ATR_HITPOINTS_MAX];
};
hero.aivar[AIV_Damage] = hero.attribute[ATR_HITPOINTS];
hero.attribute[ATR_MANA] += hero.attribute[ATR_MANA_MAX]/50;
if (hero.attribute[ATR_MANA] > hero.attribute[ATR_MANA_MAX])
{
hero.attribute[ATR_MANA] = hero.attribute[ATR_MANA_MAX];
};
};
};
|
D
|
/Users/nadirhussain/Documents/GitHub/Yew-Framwork/crate/target/release/deps/rustc_version-4b1bf04fcd6c2b30.rmeta: /Users/nadirhussain/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc_version-0.2.3/src/lib.rs /Users/nadirhussain/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc_version-0.2.3/src/errors.rs
/Users/nadirhussain/Documents/GitHub/Yew-Framwork/crate/target/release/deps/librustc_version-4b1bf04fcd6c2b30.rlib: /Users/nadirhussain/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc_version-0.2.3/src/lib.rs /Users/nadirhussain/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc_version-0.2.3/src/errors.rs
/Users/nadirhussain/Documents/GitHub/Yew-Framwork/crate/target/release/deps/rustc_version-4b1bf04fcd6c2b30.d: /Users/nadirhussain/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc_version-0.2.3/src/lib.rs /Users/nadirhussain/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc_version-0.2.3/src/errors.rs
/Users/nadirhussain/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc_version-0.2.3/src/lib.rs:
/Users/nadirhussain/.cargo/registry/src/github.com-1ecc6299db9ec823/rustc_version-0.2.3/src/errors.rs:
|
D
|
/**
Copyright: Copyright (c) 2013-2014 Andrey Penechko.
License: a$(WEB boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: Andrey Penechko.
*/
module anchovy.gui.layouts.defaultlayouts;
import anchovy.gui.layouts.absolutelayout;
import anchovy.gui.layouts.dockinglayout;
import anchovy.gui.layouts.linearlayout;
import anchovy.gui.guicontext;
void attachDefaultLayouts(GuiContext context)
{
context.layoutFactories["absolute"] = {return new AbsoluteLayout;};
context.layoutFactories["docking"] = {return new DockingLayout;};
context.layoutFactories["horizontal"] = {return new HorizontalLayout;};
context.layoutFactories["vertical"] = {return new VerticalLayout;};
}
|
D
|
marked by great carelessness
in a careless or reckless manner
directly
|
D
|
instance Mod_7367_JG_Jaeger_NW (Npc_Default)
{
// ------ NSC ------
name = NAME_JAEGER;
guild = GIL_STRF;
id = 7367;
voice = 0;
flags = 0;
npctype = NPCTYPE_MAIN;
// ------ Attribute ------
B_SetAttributesToChapter (self, 2);
// ------ Kampf-Taktik ------
fight_tactic = FAI_HUMAN_STRONG;
// ------ Equippte Waffen ------
EquipItem (self, ItMw_1H_quantarie_Schwert_01);
// ------ Inventory ------
B_CreateAmbientInv (self);
// ------ visuals ------
B_SetNpcVisual (self, MALE, "Hum_Head_Bald", Face_N_Lefty, BodyTex_N,ITAR_Leather_L);
Mdl_SetModelFatness (self,0);
Mdl_ApplyOverlayMds (self, "Humans_Relaxed.mds");
// ------ NSC-relevante Talente vergeben ------
B_GiveNpcTalents (self);
// ------ Kampf-Talente ------
B_SetFightSkills (self, 15);
// ------ TA anmelden ------
daily_routine = Rtn_Start_7367;
};
FUNC VOID Rtn_Start_7367()
{
TA_Stand_Guarding (06,05,20,15,"NW_FOREST_PATH_35_09");
TA_Stand_Guarding (20,15,06,05,"NW_FOREST_PATH_35_09");
};
|
D
|
/+
+ Copyright (c) Charles Petzold, 1998.
+ Ported to the D Programming Language by Andrej Mitrovic, 2011.
+/
module BlokOut2;
import core.runtime;
import core.thread;
import std.conv;
import std.math;
import std.range;
import std.string;
import std.utf;
pragma(lib, "gdi32.lib");
import core.sys.windows.windef;
import core.sys.windows.winuser;
import core.sys.windows.wingdi;
extern (Windows)
int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow)
{
int result;
try
{
Runtime.initialize();
result = myWinMain(hInstance, hPrevInstance, lpCmdLine, iCmdShow);
Runtime.terminate();
}
catch (Throwable o)
{
MessageBox(null, o.toString().toUTF16z, "Error", MB_OK | MB_ICONEXCLAMATION);
result = 0;
}
return result;
}
int myWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow)
{
string appName = "BlokOut2";
HWND hwnd;
MSG msg;
WNDCLASS wndclass;
wndclass.style = CS_HREDRAW | CS_VREDRAW;
wndclass.lpfnWndProc = &WndProc;
wndclass.cbClsExtra = 0;
wndclass.cbWndExtra = 0;
wndclass.hInstance = hInstance;
wndclass.hIcon = LoadIcon(NULL, IDI_APPLICATION);
wndclass.hCursor = LoadCursor(NULL, IDC_ARROW);
wndclass.hbrBackground = cast(HBRUSH) GetStockObject(WHITE_BRUSH);
wndclass.lpszMenuName = NULL;
wndclass.lpszClassName = appName.toUTF16z;
if (!RegisterClass(&wndclass))
{
MessageBox(NULL, "This program requires Windows NT!", appName.toUTF16z, MB_ICONERROR);
return 0;
}
hwnd = CreateWindow(appName.toUTF16z, // window class name
"Mouse Button Demo", // window caption
WS_OVERLAPPEDWINDOW, // window style
CW_USEDEFAULT, // initial x position
CW_USEDEFAULT, // initial y position
CW_USEDEFAULT, // initial x size
CW_USEDEFAULT, // initial y size
NULL, // parent window handle
NULL, // window menu handle
hInstance, // program instance handle
NULL); // creation parameters
ShowWindow(hwnd, iCmdShow);
UpdateWindow(hwnd);
while (GetMessage(&msg, NULL, 0, 0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return msg.wParam;
}
void DrawBoxOutline(HWND hwnd, POINT ptBeg, POINT ptEnd)
{
HDC hdc;
hdc = GetDC(hwnd);
SetROP2(hdc, R2_NOT);
SelectObject(hdc, GetStockObject(NULL_BRUSH));
Rectangle(hdc, ptBeg.x, ptBeg.y, ptEnd.x, ptEnd.y);
ReleaseDC(hwnd, hdc);
}
extern(Windows)
LRESULT WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) nothrow
{
scope (failure) assert(0);
static BOOL fBlocking, fValidBox;
static POINT ptBeg, ptEnd, ptBoxBeg, ptBoxEnd;
HDC hdc;
PAINTSTRUCT ps;
switch (message)
{
case WM_LBUTTONDOWN:
{
ptBeg.x = ptEnd.x = cast(short)LOWORD(lParam);
ptBeg.y = ptEnd.y = cast(short)HIWORD(lParam);
DrawBoxOutline(hwnd, ptBeg, ptEnd);
SetCapture(hwnd);
SetCursor(LoadCursor(NULL, IDC_CROSS));
fBlocking = TRUE;
return 0;
}
case WM_MOUSEMOVE:
{
if (fBlocking)
{
SetCursor(LoadCursor(NULL, IDC_CROSS));
DrawBoxOutline(hwnd, ptBeg, ptEnd);
ptEnd.x = cast(short)LOWORD(lParam); // lParam will be negative pair of X and Y short,
ptEnd.y = cast(short)HIWORD(lParam); // however LOWORD and HIWORD return ushort. Cast is needed to
// preserve sign bit.
DrawBoxOutline(hwnd, ptBeg, ptEnd);
}
return 0;
}
case WM_LBUTTONUP:
{
if (fBlocking)
{
DrawBoxOutline(hwnd, ptBeg, ptEnd);
ptBoxBeg = ptBeg;
ptBoxEnd.x = cast(short)LOWORD(lParam);
ptBoxEnd.y = cast(short)HIWORD(lParam);
ReleaseCapture();
SetCursor(LoadCursor(NULL, IDC_ARROW));
fBlocking = FALSE;
fValidBox = TRUE;
InvalidateRect(hwnd, NULL, TRUE);
}
return 0;
}
case WM_CHAR:
{
if (fBlocking && (wParam == '\x1B')) // i.e., Escape
{
DrawBoxOutline(hwnd, ptBeg, ptEnd);
ReleaseCapture();
SetCursor(LoadCursor(NULL, IDC_ARROW));
fBlocking = FALSE;
}
return 0;
}
case WM_PAINT:
{
hdc = BeginPaint(hwnd, &ps);
if (fValidBox)
{
SelectObject(hdc, GetStockObject(BLACK_BRUSH));
Rectangle(hdc, ptBoxBeg.x, ptBoxBeg.y,
ptBoxEnd.x, ptBoxEnd.y);
}
if (fBlocking)
{
SetROP2(hdc, R2_NOT);
SelectObject(hdc, GetStockObject(NULL_BRUSH));
Rectangle(hdc, ptBeg.x, ptBeg.y, ptEnd.x, ptEnd.y);
}
EndPaint(hwnd, &ps);
return 0;
}
case WM_DESTROY:
{
PostQuitMessage(0);
return 0;
}
default:
}
return DefWindowProc(hwnd, message, wParam, lParam);
}
|
D
|
<?xml version="1.0" encoding="ASCII" standalone="no"?>
<di:SashWindowsMngr xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmi:version="2.0">
<pageList>
<availablePage>
<emfPageIdentifier href="VAR_1_BeT-7212371491.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</availablePage>
</pageList>
<sashModel currentSelection="//@sashModel/@windows.0/@children.0">
<windows>
<children xsi:type="di:TabFolder">
<children>
<emfPageIdentifier href="VAR_1_BeT-7212371491.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</children>
</children>
</windows>
</sashModel>
</di:SashWindowsMngr>
|
D
|
module android.java.android.view.inputmethod.InputMethodSubtype_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import0 = android.java.java.lang.CharSequence_d_interface;
import import4 = android.java.java.lang.Class_d_interface;
import import3 = android.java.android.os.Parcel_d_interface;
import import2 = android.java.android.content.pm.ApplicationInfo_d_interface;
import import1 = android.java.android.content.Context_d_interface;
final class InputMethodSubtype : IJavaObject {
static immutable string[] _d_canCastTo = [
"android/os/Parcelable",
];
@Import this(int, int, string, string, string, bool, bool);
@Import this(int, int, string, string, string, bool, bool, int);
@Import int getNameResId();
@Import int getIconResId();
@Import string getLocale();
@Import string getLanguageTag();
@Import string getMode();
@Import string getExtraValue();
@Import bool isAuxiliary();
@Import bool overridesImplicitlyEnabledSubtype();
@Import bool isAsciiCapable();
@Import import0.CharSequence getDisplayName(import1.Context, string, import2.ApplicationInfo);
@Import bool containsExtraValueKey(string);
@Import string getExtraValueOf(string);
@Import int hashCode();
@Import bool equals(IJavaObject);
@Import int describeContents();
@Import void writeToParcel(import3.Parcel, int);
@Import import4.Class getClass();
@Import @JavaName("toString") string toString_();
override string toString() { return arsd.jni.javaObjectToString(this); }
@Import void notify();
@Import void notifyAll();
@Import void wait(long);
@Import void wait(long, int);
@Import void wait();
mixin IJavaObjectImplementation!(false);
public static immutable string _javaParameterString = "Landroid/view/inputmethod/InputMethodSubtype;";
}
|
D
|
module gsl.block_long_double;
/* block/gsl_block_long_double.h
*
* Copyright (C) 1996, 1997, 1998, 1999, 2000, 2007 Gerard Jungman, Brian Gough
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or (at
* your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
/*
* D interface file:
* Author: Chibisi Chima-Okereke
*/
import core.stdc.stdio: FILE;
import gsl.errno;
extern (C){
struct gsl_block_long_double_struct
{
size_t size;
real* data;
};
alias gsl_block_long_double = gsl_block_long_double_struct;
gsl_block_long_double* gsl_block_long_double_alloc (const(size_t) n);
gsl_block_long_double* gsl_block_long_double_calloc (const(size_t) n);
void gsl_block_long_double_free (gsl_block_long_double* b);
int gsl_block_long_double_fread (FILE* stream, gsl_block_long_double* b);
int gsl_block_long_double_fwrite (FILE* stream, const(gsl_block_long_double)* b);
int gsl_block_long_double_fscanf (FILE* stream, gsl_block_long_double* b);
int gsl_block_long_double_fprintf (FILE* stream, const(gsl_block_long_double)* b, const(char)* format);
int gsl_block_long_double_raw_fread (FILE* stream, real* b, const(size_t) n, const(size_t) stride);
int gsl_block_long_double_raw_fwrite (FILE* stream, const(real)* b, const(size_t) n, const(size_t) stride);
int gsl_block_long_double_raw_fscanf (FILE* stream, real* b, const(size_t) n, const(size_t) stride);
int gsl_block_long_double_raw_fprintf (FILE* stream, const(real)* b, const(size_t) n, const(size_t) stride, const(char)* format);
size_t gsl_block_long_double_size (const(gsl_block_long_double)* b);
real* gsl_block_long_double_data (const(gsl_block_long_double)* b);
}
|
D
|
/*
* Copyright (c) 2017-2019 sel-project
*
* 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.
*
*/
/**
* Copyright: Copyright (c) 2017-2019 sel-project
* License: MIT
* Authors: Kripth
* Source: $(HTTP github.com/sel-project/selery/source/selery/entity/entity.d, selery/entity/entity.d)
*/
module selery.entity.entity;
import core.atomic : atomicOp;
import std.algorithm : clamp;
import std.bitmanip : bigEndianToNative, nativeToBigEndian;
import std.conv : to;
import std.file : exists, read, write;
import std.math;
import std.random : uniform01;
import std.string : split, replace;
import std.traits : isArray, isAbstractClass;
import std.typecons : Tuple;
import std.uuid : UUID;
import selery.about;
import selery.block.block : Block, blockInto;
import selery.command.util : Position;
import selery.entity.metadata : Metadata;
import selery.event.event : EventListener;
import selery.event.world.damage;
import selery.event.world.world : WorldEvent;
import selery.item.slot : Slot;
import selery.math.vector;
import selery.node.server : NodeServer;
import selery.player.player : Player;
import selery.util.util : safe, call;
import selery.world.world : World;
static import sul.entities;
public import sul.entities : Entities;
/**
* Base abstract class for every entity.
*/
abstract class Entity : EventListener!WorldEvent {
private static uint count = -1;
public static @safe @nogc uint reserveLocalId() {
return count += 2; // always an odd number (starting from 1)
}
protected uint _id;
protected UUID n_uuid;
protected World n_world;
private Entity[size_t] n_watchlist;
private Entity[size_t] n_viewers; //edited by other entities
public bool ticking = true;
private tick_t n_ticks = 0;
protected bool n_alive = true;
public EntityPosition oldposition;
protected EntityPosition m_position;
protected EntityPosition m_last;
protected EntityPosition m_motion;
protected float m_yaw = 0;
protected float m_body_yaw = 0;
protected float m_pitch = 0;
public bool moved = false;
public bool motionmoved = false;
private bool n_falling= false;
protected bool n_on_ground;
private float highestPoint;
protected Entity last_puncher;
protected double n_eye_height;
private Entity m_vehicle;
private Entity m_passenger;
protected EntityAxis n_box;
public Metadata metadata;
protected uint n_data;
protected float acceleration = 0; // blocks/tick
protected float drag = 0; // percentage (0-1)
protected float terminal_velocity = 0; // blocks/tick
public this() {
// unusable entity
this._id = 0;
}
public this(World world, EntityPosition position) {
//assert(world !is null, "World can't be null");
this._id = reserveLocalId();
this.n_world = world;
this.n_uuid = cast()this.server.nextUUID;
this.m_position = this.m_last = this.oldposition = position;
this.m_motion = EntityPosition(0, 0, 0);
this.highestPoint = this.position.y;
//TODO entity dimensions in space
this.n_eye_height = 0;
this.n_box = new EntityAxis(0, 0, this.position);
this.metadata = new Metadata(); //TODO custom
}
public final pure nothrow @property @safe @nogc uint id() {
return this._id;
}
public pure nothrow @property @safe @nogc sul.entities.Entity data() {
return sul.entities.Entity.init;
}
/**
* Gets the entity's type in a string format.
* Example:
* ---
* assert(creeper.type == "creeper");
* assert(witherSkull.type == "wither_skull");
* ---
*/
public pure nothrow @property @safe string type() {
return this.data.name.replace(" ", "_");
}
/**
* Indicates whether the entity exists in Minecraft.
*/
public pure nothrow @property @safe @nogc bool java() {
return this.data.java.exists;
}
public pure nothrow @property @safe @nogc ubyte javaId() {
return this.data.java.id;
}
/**
* Indicates whether the entity exists in Minecraft.
*/
public pure nothrow @property @safe @nogc bool bedrock() {
return this.data.bedrock.exists;
}
public pure nothrow @property @safe @nogc ubyte bedrockId() {
return this.data.bedrock.id;
}
/**
* Gets the item's width.
* Returns: a number higher than 0 or double.nan if the entity has no size
*/
public pure nothrow @property @safe @nogc double width() {
return this.data.width;
}
/**
* Gets the item's height.
* Returns: a number higher than 0 or double.nan if the entity has no size
*/
public pure nothrow @property @safe @nogc double height() {
return this.data.height;
}
/**
* Indicates whether the entity is an object. If not the entity is
* a mob (living entity).
*/
public pure nothrow @property @safe @nogc bool object() {
return this.data.object;
}
/**
* If the entity is an object gets the object's extra data used
* in Minecraft's SpawnObject packet.
*/
public final pure nothrow @property @safe @nogc int objectData() {
return this.n_data;
}
/**
* Gets the unique identifier (UUID).
* It's usually randomly generated when the entity is
* created and it can only be changed by the child classes.
*/
public final pure nothrow @property @safe @nogc UUID uuid() {
return this.n_uuid;
}
/**
* Gets the world the entity has been spawned into.
* Non-player entities should always have the same world for
* their whole life-cycle.
*/
public pure nothrow @property @safe @nogc World world() {
return this.n_world;
}
public pure nothrow @property @safe @nogc shared(NodeServer) server() {
return this.world.server;
}
// ticks the entity
public void tick() {
this.n_ticks++;
if(this.vehicle !is null && this.vehicle.dead) this.vehicle = null;
if(this.passenger !is null && this.passenger.dead) this.passenger = null;
if(this.metadata.changed) {
this.metadata.changed = false;
this.broadcastMetadata();
}
}
/**
* Gets the amount of ticks for this entity.
* The ticks doesn't indicates the life-time of the entity, but
* how many times it has been ticked by its world.
*/
public final pure nothrow @property @safe @nogc tick_t ticks() {
return this.n_ticks;
}
public @property @trusted bool onFire() {
return this.metadata.get!("onFire", bool)();
}
public @property @trusted bool onFire(bool flag) {
return this.metadata.set!"onFire"(flag);
}
public @property @trusted bool sneaking() {
return this.metadata.get!("sneaking", bool)();
}
public @property @trusted bool sneaking(bool flag) {
return this.metadata.set!"sneaking"(flag);
}
public @property @trusted bool sprinting() {
return this.metadata.get!("sprinting", bool)();
}
public @property @trusted bool sprinting(bool flag) {
return this.metadata.set!"sprinting"(flag);
}
public @property @trusted bool usingItem() {
return this.metadata.get!("usingItem", bool)();
}
public @property @trusted bool actionFlag(bool flag) {
return this.metadata.set!"usingItem"(flag);
}
public @property @trusted bool invisible() {
return this.metadata.get!("invisible", bool)();
}
public @property @trusted bool invisible(bool flag) {
return this.metadata.set!"invisible"(flag);
}
public @property @trusted string nametag() {
return this.metadata.get!("nametag", string)();
}
public @property @trusted string nametag(string nametag) {
this.metadata.set!"nametag"(nametag);
this.metadata.set!"customName"(nametag);
return this.nametag;
}
public @property @trusted bool showNametag() {
return this.metadata.get!("showNametag", bool)();
}
public @property @trusted bool showNametag(bool flag) {
this.metadata.set!"showNametag"(flag);
this.metadata.set!"alwaysShowNametag"(flag);
return flag;
}
public @property @trusted bool noai() {
return this.metadata.get!("noAi", bool)();
}
public @property @trusted bool noai(bool noai) {
return this.metadata.set!"noAi"(noai);
}
/**
* Indicates which entities this one should and should not see.
* By default only the entities indicated as true by this function
* will be shown through the <a href="#Entity.show">show</a> function
* and added to the watchlist.
* For example, an arrow can see a painting, so Arrow.shouldSee(painting)
* will be true, but a painting shouldn't see an arrow, so Painting.shouldSee(arrow)
* will be false.
* This increases the performances as there are less controls, casts and operation
* on arrays in big worlds or chunks of worlds with an high concetration of entities.
*/
public @safe bool shouldSee(Entity entity) {
return true;
}
/**
* Adds an entity to the ones this entity can see.
* Params:
* entity = the entity that will be showed to this entity
* Returns: true if the entity has been added to the visible entities, false otherwise
* Example:
* ---
* foreach(Player player ; world.players) {
* player.show(entity);
* entity.show(player);
* }
* ---
*/
public @safe bool show(Entity entity) {
if(entity.id !in this.n_watchlist && entity.id != this.id) {
this.n_watchlist[entity.id] = entity;
entity.n_viewers[this.id] = this;
return true;
}
return false;
}
/**
* Checks wether this entity can see or not another entity.
* Example:
* ---
* if(!player.sees(arrow)) {
* player.show(arrow);
* }
* ---
*/
public @safe @nogc bool sees(Entity entity) {
return entity.id in this.n_watchlist ? true : false;
}
/**
* Hides an entity from this entity, if this entity can see it.
* Params:
* entity = the entity to be hidden
* Returns: true if the entity has been hidden, false otherwise
* Example:
* ---
* foreach(Living living ; entity.watchlist!Living) {
* entity.hide(living);
* living.hide(entity);
* }
* ---
*/
public @safe bool hide(Entity entity) {
if(entity.id in this.n_watchlist) {
this.n_watchlist.remove(entity.id);
entity.n_viewers.remove(this.id);
return true;
}
return false;
}
/**
* Gets a list of the entities that this entity can see.
* Example:
* ---
* // every entity
* auto entities = entity.watchlist;
*
* // every player
* auto players = entity.watchlist!Player;
* ---
*/
public final @property @trusted T[] watchlist(T:Entity=Entity)() {
static if(is(T == Entity)) {
return this.n_watchlist.values;
} else {
T[] ret;
foreach(ref Entity entity ; this.n_watchlist) {
if(cast(T)entity) ret ~= cast(T)entity;
}
return ret;
}
}
/**
* Gets a list of the entities that can see this entity.
* See_Also: watchlist for the examples on the usage
*/
public final @property @trusted T[] viewers(T:Entity=Entity)() {
static if(is(T == Entity)) {
return this.n_viewers.values;
} else {
T[] ret;
foreach(ref Entity entity ; this.n_viewers) {
if(cast(T)entity) ret ~= cast(T)entity;
}
return ret;
}
}
/**
* Despawns this entity, calling the event in the world.
*/
protected void despawn() {
this.world.despawn(this);
}
public @safe @nogc void setAsDespawned() {
this.n_alive = false;
}
/**
* Checks the dead/alive status of the entity.
* Example:
* ---
* assert(entity.alive ^ entity.dead);
* ---
*/
public @property @safe bool alive() {
return this.n_alive;
}
/// ditto
public @property @safe bool dead() {
return !this.n_alive;
}
/**
* Gets the 16x16 chunk the entity is in.
* A bigger chunk can be obtained by right-shifting the vector
* by the required amount.
* Example:
* ---
* auto chunk = entity.chunk;
* auto chunk128 = entity.chunk >> 3;
* ---
*/
public final @property @safe ChunkPosition chunk() {
return cast(ChunkPosition)this.position >> 4;
}
/**
* Gets the entity's position.
*/
public pure nothrow @property @safe @nogc EntityPosition position() {
return this.m_position;
}
/**
* Gets the entity's motion.
*/
public pure nothrow @property @safe @nogc EntityPosition motion() {
return this.m_motion;
}
/**
* Sets the entity's motion.
*/
public @property @safe EntityPosition motion(EntityPosition motion) {
this.motionmoved = true;
return this.m_motion = motion;
}
/**
* Checks whether or not an entity has motion.
* A motionless entity has every value of the motion's vector
* equal to 0.
*/
public @property @safe bool motionless() {
return this.motion == 0;
}
/**
* Sets the entity as motionless.
* This is equivalent to motion = EntityPosition(0).
*/
public @property @safe bool motionless(bool motionless) {
if(motionless) this.motion = EntityPosition(0, 0, 0);
return this.motionless;
}
/**
* Gets the motion as pc's velocity, ready to be encoded
* in a packet.
* Due to this encoding limitation, the entity's motion should
* never be higher than 4.096 (2^15 / 8000).
* If it is, it will be clamped.
*/
public @property @safe Vector3!short velocity() {
auto ret = this.motion * 8000;
return Vector3!short(clamp(ret.x, short.min, short.max), clamp(ret.y, short.min, short.max), clamp(ret.z, short.min, short.max));
}
/**
* Gets the entity's looking direction (right-left).
* The value should always be in range 0..360.
*/
public final pure nothrow @property @safe @nogc float yaw() {
return this.m_yaw;
}
/**
* Gets the yaw as an unsigned byte for encoding reasons.
* To obtain a valid value the yaw should be in its valid range
* from 0 to 360.
*/
public final @property @safe ubyte angleYaw() {
return safe!ubyte(this.yaw / 360 * 256);
}
/**
* Gets the entity's body facing direction. This variable
* may not affect all the entities.
*/
public pure nothrow @property @safe @nogc float bodyYaw() {
return this.m_body_yaw;
}
public final @property @safe ubyte angleBodyYaw() {
return safe!ubyte(this.bodyYaw / 360 * 256);
}
/**
* Gets the entity's looking direction (up-down).
* The value should be in range -90..90 (90 included).
*/
public final pure nothrow @property @safe @nogc float pitch() {
return this.m_pitch;
}
/**
* Gets the pitch as a byte for encoding reasons.
* To btain a valid value the pitch should be in its valid range
* from -90 to 90.
*/
public final @property @safe byte anglePitch() {
return safe!byte(this.pitch / 90 * 64);
}
/**
* Boolean value indicating whether or not the player is touching
* the ground or is in it.
* This value is true even if the player is in a liquid (like water).
*/
public final pure nothrow @property @safe @nogc bool onGround() {
return this.n_on_ground;
}
/**
* Gets the player's looking direction calculated from yaw and pitch.
* The return value is in range 0..1 and it should be multiplied to
* obtain the desired value.
*/
public final @property @safe EntityPosition direction() {
float y = -sin(this.pitch * PI / 180f);
float xz = cos(this.pitch * PI / 180f);
float x = -xz * sin(this.yaw * PI / 180f);
float z = xz * cos(this.yaw * PI / 180f);
return EntityPosition(x, y, z);
}
/**
* Moves the entity.
*/
public @safe void move(EntityPosition position) {
if(this.position != position) {
this.n_box.update(position);
}
this.m_position = position;
this.moved = true;
}
public void move(EntityPosition position, float yaw, float pitch) {
this.m_yaw = yaw;
this.m_pitch = pitch;
this.move(position);
}
public void move(EntityPosition position, float yaw, float bodyYaw, float pitch) {
this.m_body_yaw = bodyYaw;
this.move(position, yaw, pitch);
}
/**
* Teleports the entity.
*/
public void teleport(EntityPosition position) {
this.n_box.update(position);
this.m_position = position;
this.moved = true;
}
/// ditto
public void teleport(EntityPosition position, float yaw, float pitch) {
this.m_yaw = yaw;
this.m_pitch = pitch;
this.teleport(position);
}
/// ditto
public void teleport(EntityPosition position, float yaw, float bodyYaw, float pitch) {
this.m_body_yaw = bodyYaw;
this.teleport(position, yaw, pitch);
}
/// ditto
public void teleport(World world, EntityPosition position) {
//TODO
}
/// ditto
public void teleport(World world, EntityPosition position, float yaw, float pitch) {
this.m_yaw = yaw;
this.m_pitch = pitch;
this.teleport(world, position);
}
/// ditto
public void teleport(World world, EntityPosition position, float yaw, float bodyYaw, float pitch) {
this.m_body_yaw = bodyYaw;
this.teleport(world, position, yaw, pitch);
}
/// ditto
public void teleport(Position position) {
this.teleport(position.from(this.position));
}
/// ditto
public void teleport(Position position, float yaw, float pitch) {
this.teleport(position.from(this.position), yaw, pitch);
}
/// ditto
public void teleport(Position position, float yaw, float bodyYaw, float pitch) {
this.teleport(position.from(this.position), yaw, bodyYaw, pitch);
}
/// ditto
public void teleport(World world, Position position) {
this.teleport(world, position.from(this.position));
}
/// ditto
public void teleport(World world, Position position, float yaw, float pitch) {
this.teleport(world, position.from(this.position), yaw, pitch);
}
/// ditto
public void teleport(World world, Position position, float yaw, float bodyYaw, float pitch) {
this.teleport(world, position.from(this.position), yaw, bodyYaw, pitch);
}
/**
* Gets entity's sizes.
*/
public final pure nothrow @property @safe @nogc double eyeHeight() {
return this.n_eye_height;
}
/**
* Does the onGround updates.
*/
protected void updateGroundStatus() {
if(this.position.y >= this.m_last.y) {
// going up
this.highestPoint = this.position.y;
this.n_falling = false;
if(this.position.y != this.m_last.y) this.n_on_ground = false;
} else {
// free falling (check collision with the terrain)
this.n_falling = true;
this.n_on_ground = false;
auto min = this.n_box.minimum;
auto max = this.n_box.maximum;
foreach(int x ; min.x.blockInto..max.x.blockInto+1) {
foreach(int z ; min.z.blockInto..max.z.blockInto+1) {
BlockPosition position = BlockPosition(x, to!int(this.position.y) - (to!int(this.position.y) == this.position.y ? 1 : 0), z);
auto block = this.world[position];
if(block.hasBoundingBox) {
block.box.update(position.entityPosition);
if(block.box.intersects(this.n_box)) {
this.n_on_ground = true;
this.doFallDamage(this.highestPoint - this.position.y, block.fallDamageModifier);
this.highestPoint = this.position.y;
this.last_puncher = null;
goto BreakAll;
}
}
}
}
}
BreakAll:
this.m_last = this.position;
}
protected @trusted void doFallDamage(float distance, float modifier=1) {
int damage = to!int(round((distance - 3) * modifier));
if(damage > 0) {
if(this.last_puncher is null) {
this.attack(new EntityFallDamageEvent(this, damage));
} else {
this.attack(new EntityDoomedToFallEvent(this, this.last_puncher, damage));
}
}
}
/**
* Boolean value indicating whether or not the entity
* is falling.
*/
public final pure nothrow @property @safe @nogc bool falling() {
return !this.onGround && this.n_falling;
}
/**
* Does physic movements using the entity's parameters.
*/
protected @safe void doPhysic() {
// update the motion
if(this.acceleration != 0) this.motion = this.motion - [0, this.acceleration, 0];
if(this.motion.y.abs > this.terminal_velocity) this.m_motion = EntityPosition(this.m_motion.x, this.motion.y > 0 ? this.terminal_velocity : -this.terminal_velocity, this.m_motion.z);
// move
this.move(this.position + this.motion/*, atan2(this.motion.x, this.motion.z) * 180f / PI, atan2(this.motion.y, sqrt(this.motion.x * this.motion.x + this.motion.z * this.motion.z)) * 180f / PI*/);
// apply the drag force
if(this.drag != 0) this.motion = this.motion * (1f - this.drag);
}
/**
* Checks collisions with the entities in the watchlist
* and calls onCollideWithEntity on collision.
*/
protected void checkCollisionsWithEntities() {
foreach(ref Entity entity ; this.viewers) {
if(entity.box.intersects(this.n_box) && this.onCollideWithEntity(entity)) return;
}
}
/**
* Function called from checkCollisionWithEntities when
* this entity collides with another entity.
* Returns: false if the calling function should check for more collisions, true otherwise.
*/
protected bool onCollideWithEntity(Entity entity) {
return false;
}
protected void checkCollisionsWithBlocks() {
auto min = this.n_box.minimum;
auto max = this.n_box.maximum;
foreach(int x ; min.x.blockInto..max.x.blockInto+1) {
foreach(int y ; min.y.blockInto..max.y.blockInto+1) {
foreach(int z ; min.z.blockInto..max.z.blockInto+1) {
auto position = BlockPosition(x, y, z);
auto block = this.world[position];
if(block.hasBoundingBox) {
block.box.update(position.entityPosition);
if(block.box.intersects(this.n_box) && this.onCollideWithBlock(block, position, 0)) return;
}
}
}
}
}
protected bool onCollideWithBlock(Block block, BlockPosition position, uint face) {
return false;
}
/**
* Updates the size of the entity and its bounding box.
*/
public @safe void setSize(float width, float height) {
this.n_box.update(width, height);
}
/**
* Gets the entity's bounding box.
*/
public final @property @safe @nogc EntityAxis box() {
return this.n_box;
}
/++
/**
* Gets the entity's width.
*/
public final @property @safe @nogc float width() {
return this.box.width;
}
/**
* Gets the entity's height.
*/
public final @property @safe @nogc float height() {
return this.box.height;
}
++/
public final pure nothrow @property @safe @nogc float scale() {
return 1f;
}
public final @property float scale(float scale) {
version(Minecraft) {
// throw exception
}
version(Pocket) {
}
return 1f;
}
/** Gets the entity's vechicle. */
public @property @safe @nogc Entity vehicle() {
return this.m_vehicle;
}
/** Sets the entity's vehicle. */
protected @property @safe Entity vehicle(Entity vehicle) {
return this.m_vehicle = vehicle;
}
/** Gets the entity's passenger. */
public @property @safe Entity passenger() {
return this.m_passenger;
}
/**
* Sets the entity's passenger.
* The vehicle of the passenger is set automatically.
* Example:
* ---
* Player player = "steve".player;
* Boat boat = world.spawn!Boat;
*
* boat.passenger = player;
* assert(player.vehicle == boat);
* ---
*/
public @property Entity passenger(Entity passenger) {
if(passenger !is null) {
passenger.vehicle = this;
this.viewers!Player.call!"sendPassenger"(cast(ubyte)3u, passenger.id, this.id);
} else if(this.passenger !is null) {
this.passenger.vehicle = null;
this.viewers!Player.call!"sendPassenger"(cast(ubyte)0u, this.passenger.id, this.id);
}
this.m_passenger = passenger;
return this.m_passenger;
}
/**
* Attacks an entity and returns the event used.
*/
public T attack(T:EntityDamageEvent)(T event) if(is(T == class) && !isAbstractClass!T) {
if(this.validateAttack(event)) {
this.world.callEvent(event);
if(!event.cancelled) this.attackImpl(event);
} else {
event.cancel();
}
return event;
}
protected bool validateAttack(EntityDamageEvent event) {
return false;
}
protected void attackImpl(EntityDamageEvent event) {
}
/**
* Send the metadata to the viewers
*/
protected void broadcastMetadata() {
Player[] players = this.viewers!Player;
if(players.length > 0) {
foreach(ref Player player ; players) {
player.sendMetadata(this);
}
}
}
/**
* Drop an item from this entity
*/
public void drop(Slot slot) {
float f0 = uniform01!float(this.world.random) * PI * 2f;
float f1 = uniform01!float(this.world.random) * .02f;
this.world.drop(slot, this.position + [0, this.eyeHeight - .3, 0], this.direction * .3f + [cos(f0) * f1, (uniform01!float(this.world.random) - uniform01!float(this.world.random)) * .1f + .1f, sin(f0) * f1]);
}
public @property @safe string name() {
return typeid(this).to!string.split(".")[$-1];
}
public @property @safe string displayName() {
return this.name;
}
public override @safe bool opEquals(Object o) {
return cast(Entity)o && (cast(Entity)o).id == this.id;
}
public override @safe string toString() {
return typeid(this).to!string ~ "(" ~ to!string(this.id) ~ ")";
}
}
enum Rotation : float {
KEEP = float.nan,
// yaw
WEST = 0,
NORTH = 90,
EAST = 180,
SOUTH = 270,
// pitch
DOWN = 90,
FRONT = 0,
UP = -90,
}
/**
* A template for entities with changes on variables.
* Example:
* ---
* // an entity on fire by default
* alias OnFire(T) = Changed!(T, "this.onFire = true;");
* Creeper creeper = world.spawn!(OnFire!Creeper);
* assert(creeper.onFire);
*
* // multiple changes can be used togheter
* new OnFire!(Unticked!(Noai!Creeper))();
* ---
*/
template VariableChanged(T:Entity, string changes) {
class VariableChanged : T {
public @safe this(E...)(E args) {
super(args);
mixin(changes);
}
}
//alias VariableChanged = X;
}
/**
* An entity without ticking.
*/
alias Unticked(T:Entity) = VariableChanged!(T, "this.ticking = false;");
/**
* An Entity without AI.
*/
alias Noai(T:Entity) = VariableChanged!(T, "this.noai = true");
/**
* An entity without ticking and AI.
*/
alias UntickedNoai(T:Entity) = VariableChanged!(T, "this.ticking = false;this.noai = true;");
/**
* A template for entities with changing on functions.
*/
template FunctionChanged(T:Entity, string changes) {
class FunctionChanged : T {
mixin(changes);
}
}
/**
* An entity without physic.
*/
alias NoPhysic(T:Entity) = FunctionChanged!(T, "protected override void doPhysic(){}");
/**
* An entity that doesn't take fall damage.
*/
alias NoFallDamage(T:Entity) = FunctionChanged!(T, "protected override void doFallDamage(float distance){}");
|
D
|
# FIXED
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/rom/r2/rom_init.c
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/inc/bcomdef.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/osal/src/inc/comdef.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/target/_common/hal_types.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/target/_common/../_common/cc26xx/_hal_types.h
ROM/rom_init.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stdint.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/inc/hal_defs.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/target/_common/hal_types.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/inc/hw_types.h
ROM/rom_init.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stdbool.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/inc/../inc/hw_chip_def.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/rom/rom_jt.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/rom/map_direct.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/common/cc26xx/onboard.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/sys_ctrl.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_memmap.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_ints.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_sysctl.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_prcm.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_nvic.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_aon_wuc.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_aux_wuc.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_aon_ioc.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_ddi_0_osc.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_rfc_pwr.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_adi_3_refsys.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_aon_sysctl.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_aon_rtc.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_fcfg1.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/interrupt.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/debug.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/cpu.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_cpu_scs.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../driverlib/rom.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/pwr_ctrl.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_adi_2_refsys.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/osc.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_ddi.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/ddi.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_aux_smph.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/prcm.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/aon_ioc.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/adi.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_uart.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_adi.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/aux_wuc.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/aon_wuc.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/vims.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_vims.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/target/_common/hal_mcu.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/target/_common/hal_types.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/inc/hw_gpio.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/systick.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/uart.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/gpio.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/flash.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_flash.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/ioc.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_ioc.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/icall/src/inc/icall.h
ROM/rom_init.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stdlib.h
ROM/rom_init.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/linkage.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/inc/hal_assert.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/target/_common/hal_types.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/inc/hal_sleep.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/osal/src/inc/osal.h
ROM/rom_init.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/limits.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/osal/src/inc/osal_memory.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/osal/src/inc/osal_timers.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/osal/src/inc/osal_pwrmgr.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/osal/src/inc/osal_bufmgr.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/osal/src/inc/osal_cbtimer.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/inc/hci_tl.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/inc/hci.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/controller/cc26xx_r2/inc/ll_common.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/drivers/rf/RF.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/drivers/dpl/ClockP.h
ROM/rom_init.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stddef.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/drivers/dpl/SemaphoreP.h
ROM/rom_init.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stddef.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/DeviceFamily.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/rf_common_cmd.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/rf_mailbox.h
ROM/rom_init.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/string.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/rf_prop_cmd.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/rf_ble_cmd.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/target/_common/cc26xx/rf_hal.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/target/_common/hal_types.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/controller/cc26xx_r2/inc/ll.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/controller/cc26xx_r2/inc/ll_scheduler.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/inc/hci_data.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/inc/hci_event.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/inc/hci_tl.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/target/_common/hal_trng_wrapper.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/target/_common/hal_types.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/trng.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_trng.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/target/_common/cc26xx/mb.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/target/_common/hal_types.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/inc/hw_rfc_dbell.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/controller/cc26xx_r2/inc/ll_config.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/controller/cc26xx_r2/inc/ll_user_config.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/icall/inc/ble_user_config.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/icall/src/inc/icall_user_config.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/icall/inc/ble_dispatch.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/controller/cc26xx_r2/inc/ll_sleep.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/inc/ecc_rom.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/inc/linkdb.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/inc/l2cap.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/inc/att.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/inc/gatt.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/inc/gattservapp.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/inc/gatt_uuid.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/inc/gap.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/inc/sm.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/controller/cc26xx_r2/inc/ll_enc.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/controller/cc26xx_r2/inc/ll_wl.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/controller/cc26xx_r2/inc/ll_timer_drift.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/controller/cc26xx_r2/inc/ble.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/controller/cc26xx_r2/inc/ll_rat.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/inc/hw_rfc_rat.h
ROM/rom_init.obj: C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/controller/cc26xx_r2/inc/ll_privacy.h
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/rom/r2/rom_init.c:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/inc/bcomdef.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/osal/src/inc/comdef.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/target/_common/hal_types.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/target/_common/../_common/cc26xx/_hal_types.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stdint.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/inc/hal_defs.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/target/_common/hal_types.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/inc/hw_types.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stdbool.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/inc/../inc/hw_chip_def.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/rom/rom_jt.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/rom/map_direct.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/common/cc26xx/onboard.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/sys_ctrl.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_memmap.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_ints.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_sysctl.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_prcm.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_nvic.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_aon_wuc.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_aux_wuc.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_aon_ioc.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_ddi_0_osc.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_rfc_pwr.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_adi_3_refsys.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_aon_sysctl.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_aon_rtc.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_fcfg1.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/interrupt.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/debug.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/cpu.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_cpu_scs.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../driverlib/rom.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/pwr_ctrl.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_adi_2_refsys.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/osc.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_ddi.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/ddi.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_aux_smph.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/prcm.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/aon_ioc.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/adi.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_uart.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_adi.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/aux_wuc.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/aon_wuc.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/vims.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_vims.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/target/_common/hal_mcu.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/target/_common/hal_types.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/inc/hw_gpio.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/systick.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/uart.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/gpio.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/flash.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_flash.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/ioc.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_ioc.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/icall/src/inc/icall.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stdlib.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/linkage.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/inc/hal_assert.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/target/_common/hal_types.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/inc/hal_sleep.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/osal/src/inc/osal.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/limits.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/osal/src/inc/osal_memory.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/osal/src/inc/osal_timers.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/osal/src/inc/osal_pwrmgr.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/osal/src/inc/osal_bufmgr.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/osal/src/inc/osal_cbtimer.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/inc/hci_tl.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/inc/hci.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/controller/cc26xx_r2/inc/ll_common.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/drivers/rf/RF.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/drivers/dpl/ClockP.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stddef.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/drivers/dpl/SemaphoreP.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/stddef.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/DeviceFamily.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/rf_common_cmd.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/rf_mailbox.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.3.LTS/include/string.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/rf_prop_cmd.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/rf_ble_cmd.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/target/_common/cc26xx/rf_hal.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/target/_common/hal_types.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/controller/cc26xx_r2/inc/ll.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/controller/cc26xx_r2/inc/ll_scheduler.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/inc/hci_data.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/inc/hci_event.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/inc/hci_tl.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/target/_common/hal_trng_wrapper.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/target/_common/hal_types.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/trng.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/driverlib/../inc/hw_trng.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/target/_common/cc26xx/mb.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/hal/src/target/_common/hal_types.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/inc/hw_rfc_dbell.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/controller/cc26xx_r2/inc/ll_config.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/controller/cc26xx_r2/inc/ll_user_config.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/icall/inc/ble_user_config.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/icall/src/inc/icall_user_config.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/icall/inc/ble_dispatch.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/controller/cc26xx_r2/inc/ll_sleep.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/inc/ecc_rom.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/inc/linkdb.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/inc/l2cap.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/inc/att.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/inc/gatt.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/inc/gattservapp.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/inc/gatt_uuid.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/inc/gap.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/inc/sm.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/controller/cc26xx_r2/inc/ll_enc.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/controller/cc26xx_r2/inc/ll_wl.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/controller/cc26xx_r2/inc/ll_timer_drift.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/controller/cc26xx_r2/inc/ble.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/controller/cc26xx_r2/inc/ll_rat.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/devices/cc26x0r2/inc/hw_rfc_rat.h:
C:/ti/simplelink_cc2640r2_sdk_1_40_00_45/source/ti/blestack/controller/cc26xx_r2/inc/ll_privacy.h:
|
D
|
/*
* This file was automatically generated by sel-utils and
* released under the MIT License.
*
* License: https://github.com/sel-project/sel-utils/blob/master/LICENSE
* Repository: https://github.com/sel-project/sel-utils
* Generated from https://github.com/sel-project/sel-utils/blob/master/xml/protocol/java335.xml
*/
module sul.protocol.java335.types;
import std.bitmanip : write, peek;
static import std.conv;
import std.system : Endian;
import std.typecons : Tuple;
import std.uuid : UUID;
import sul.utils.buffer;
import sul.utils.var;
static if(__traits(compiles, { import sul.metadata.java335; })) import sul.metadata.java335;
struct Statistic {
public enum string[] FIELDS = ["name", "value"];
public string name;
public uint value;
public pure nothrow @safe void encode(Buffer buffer) {
with(buffer) {
writeBytes(varuint.encode(cast(uint)name.length)); writeString(name);
writeBytes(varuint.encode(value));
}
}
public pure nothrow @safe void decode(Buffer buffer) {
with(buffer) {
uint bfz=varuint.decode(_buffer, &_index); name=readString(bfz);
value=varuint.decode(_buffer, &_index);
}
}
public string toString() {
return "Statistic(name: " ~ std.conv.to!string(this.name) ~ ", value: " ~ std.conv.to!string(this.value) ~ ")";
}
}
struct BlockChange {
public enum string[] FIELDS = ["xz", "y", "block"];
public ubyte xz;
public ubyte y;
public uint block;
public pure nothrow @safe void encode(Buffer buffer) {
with(buffer) {
writeBigEndianUbyte(xz);
writeBigEndianUbyte(y);
writeBytes(varuint.encode(block));
}
}
public pure nothrow @safe void decode(Buffer buffer) {
with(buffer) {
xz=readBigEndianUbyte();
y=readBigEndianUbyte();
block=varuint.decode(_buffer, &_index);
}
}
public string toString() {
return "BlockChange(xz: " ~ std.conv.to!string(this.xz) ~ ", y: " ~ std.conv.to!string(this.y) ~ ", block: " ~ std.conv.to!string(this.block) ~ ")";
}
}
struct Slot {
public enum string[] FIELDS = ["id", "count", "damage", "nbt"];
public short id;
public ubyte count;
public ushort damage;
public ubyte[] nbt;
public pure nothrow @safe void encode(Buffer buffer) {
with(buffer) {
writeBigEndianShort(id);
if(id>0){ writeBigEndianUbyte(count); }
if(id>0){ writeBigEndianUshort(damage); }
if(id>0){ writeBytes(nbt); }
}
}
public pure nothrow @safe void decode(Buffer buffer) {
with(buffer) {
id=readBigEndianShort();
if(id>0){ count=readBigEndianUbyte(); }
if(id>0){ damage=readBigEndianUshort(); }
if(id>0){ nbt=_buffer[_index..$].dup; _index=_buffer.length; }
}
}
public string toString() {
return "Slot(id: " ~ std.conv.to!string(this.id) ~ ", count: " ~ std.conv.to!string(this.count) ~ ", damage: " ~ std.conv.to!string(this.damage) ~ ", nbt: " ~ std.conv.to!string(this.nbt) ~ ")";
}
}
struct Icon {
// direction and type
public enum ubyte WHITE_ARROW = 0;
public enum ubyte GREEN_ARROW = 1;
public enum ubyte RED_ARROW = 2;
public enum ubyte BLUE_ARROW = 3;
public enum ubyte WHITE_CROSS = 4;
public enum ubyte RED_POINTER = 5;
public enum ubyte WHITE_CIRCLE = 6;
public enum ubyte SMALL_WHITE_CIRCLE = 7;
public enum ubyte MANSION = 8;
public enum ubyte TEMPLE = 9;
public enum string[] FIELDS = ["directionAndType", "position"];
public ubyte directionAndType;
public Tuple!(ubyte, "x", ubyte, "z") position;
public pure nothrow @safe void encode(Buffer buffer) {
with(buffer) {
writeBigEndianUbyte(directionAndType);
writeBigEndianUbyte(position.x); writeBigEndianUbyte(position.z);
}
}
public pure nothrow @safe void decode(Buffer buffer) {
with(buffer) {
directionAndType=readBigEndianUbyte();
position.x=readBigEndianUbyte(); position.z=readBigEndianUbyte();
}
}
public string toString() {
return "Icon(directionAndType: " ~ std.conv.to!string(this.directionAndType) ~ ", position: " ~ std.conv.to!string(this.position) ~ ")";
}
}
struct Property {
public enum string[] FIELDS = ["name", "value", "signed", "signature"];
public string name;
public string value;
public bool signed;
public string signature;
public pure nothrow @safe void encode(Buffer buffer) {
with(buffer) {
writeBytes(varuint.encode(cast(uint)name.length)); writeString(name);
writeBytes(varuint.encode(cast(uint)value.length)); writeString(value);
writeBigEndianBool(signed);
if(signed==true){ writeBytes(varuint.encode(cast(uint)signature.length)); writeString(signature); }
}
}
public pure nothrow @safe void decode(Buffer buffer) {
with(buffer) {
uint bfz=varuint.decode(_buffer, &_index); name=readString(bfz);
uint dfdu=varuint.decode(_buffer, &_index); value=readString(dfdu);
signed=readBigEndianBool();
if(signed==true){ uint clbfdj=varuint.decode(_buffer, &_index); signature=readString(clbfdj); }
}
}
public string toString() {
return "Property(name: " ~ std.conv.to!string(this.name) ~ ", value: " ~ std.conv.to!string(this.value) ~ ", signed: " ~ std.conv.to!string(this.signed) ~ ", signature: " ~ std.conv.to!string(this.signature) ~ ")";
}
}
struct ListAddPlayer {
// gamemode
public enum uint SURVIVAL = 0;
public enum uint CREATIVE = 1;
public enum uint ADVENTURE = 2;
public enum uint SPECTATOR = 3;
public enum string[] FIELDS = ["uuid", "name", "properties", "gamemode", "latency", "hasDisplayName", "displayName"];
public UUID uuid;
public string name;
public sul.protocol.java335.types.Property[] properties;
public uint gamemode;
public uint latency;
public bool hasDisplayName;
public string displayName;
public pure nothrow @safe void encode(Buffer buffer) {
with(buffer) {
writeBytes(uuid.data);
writeBytes(varuint.encode(cast(uint)name.length)); writeString(name);
writeBytes(varuint.encode(cast(uint)properties.length)); foreach(cjcvdlc;properties){ cjcvdlc.encode(bufferInstance); }
writeBytes(varuint.encode(gamemode));
writeBytes(varuint.encode(latency));
writeBigEndianBool(hasDisplayName);
if(hasDisplayName==true){ writeBytes(varuint.encode(cast(uint)displayName.length)); writeString(displayName); }
}
}
public pure nothrow @safe void decode(Buffer buffer) {
with(buffer) {
if(_buffer.length>=_index+16){ ubyte[16] dvz=_buffer[_index.._index+16].dup; _index+=16; uuid=UUID(dvz); }
uint bfz=varuint.decode(_buffer, &_index); name=readString(bfz);
properties.length=varuint.decode(_buffer, &_index); foreach(ref cjcvdlc;properties){ cjcvdlc.decode(bufferInstance); }
gamemode=varuint.decode(_buffer, &_index);
latency=varuint.decode(_buffer, &_index);
hasDisplayName=readBigEndianBool();
if(hasDisplayName==true){ uint zlcxe5bu=varuint.decode(_buffer, &_index); displayName=readString(zlcxe5bu); }
}
}
public string toString() {
return "ListAddPlayer(uuid: " ~ std.conv.to!string(this.uuid) ~ ", name: " ~ std.conv.to!string(this.name) ~ ", properties: " ~ std.conv.to!string(this.properties) ~ ", gamemode: " ~ std.conv.to!string(this.gamemode) ~ ", latency: " ~ std.conv.to!string(this.latency) ~ ", hasDisplayName: " ~ std.conv.to!string(this.hasDisplayName) ~ ", displayName: " ~ std.conv.to!string(this.displayName) ~ ")";
}
}
struct ListUpdateGamemode {
// gamemode
public enum uint SURVIVAL = 0;
public enum uint CREATIVE = 1;
public enum uint ADVENTURE = 2;
public enum uint SPECTATOR = 3;
public enum string[] FIELDS = ["uuid", "gamemode"];
public UUID uuid;
public uint gamemode;
public pure nothrow @safe void encode(Buffer buffer) {
with(buffer) {
writeBytes(uuid.data);
writeBytes(varuint.encode(gamemode));
}
}
public pure nothrow @safe void decode(Buffer buffer) {
with(buffer) {
if(_buffer.length>=_index+16){ ubyte[16] dvz=_buffer[_index.._index+16].dup; _index+=16; uuid=UUID(dvz); }
gamemode=varuint.decode(_buffer, &_index);
}
}
public string toString() {
return "ListUpdateGamemode(uuid: " ~ std.conv.to!string(this.uuid) ~ ", gamemode: " ~ std.conv.to!string(this.gamemode) ~ ")";
}
}
struct ListUpdateLatency {
public enum string[] FIELDS = ["uuid", "latency"];
public UUID uuid;
public uint latency;
public pure nothrow @safe void encode(Buffer buffer) {
with(buffer) {
writeBytes(uuid.data);
writeBytes(varuint.encode(latency));
}
}
public pure nothrow @safe void decode(Buffer buffer) {
with(buffer) {
if(_buffer.length>=_index+16){ ubyte[16] dvz=_buffer[_index.._index+16].dup; _index+=16; uuid=UUID(dvz); }
latency=varuint.decode(_buffer, &_index);
}
}
public string toString() {
return "ListUpdateLatency(uuid: " ~ std.conv.to!string(this.uuid) ~ ", latency: " ~ std.conv.to!string(this.latency) ~ ")";
}
}
struct ListUpdateDisplayName {
public enum string[] FIELDS = ["uuid", "hasDisplayName", "displayName"];
public UUID uuid;
public bool hasDisplayName;
public string displayName;
public pure nothrow @safe void encode(Buffer buffer) {
with(buffer) {
writeBytes(uuid.data);
writeBigEndianBool(hasDisplayName);
if(hasDisplayName==true){ writeBytes(varuint.encode(cast(uint)displayName.length)); writeString(displayName); }
}
}
public pure nothrow @safe void decode(Buffer buffer) {
with(buffer) {
if(_buffer.length>=_index+16){ ubyte[16] dvz=_buffer[_index.._index+16].dup; _index+=16; uuid=UUID(dvz); }
hasDisplayName=readBigEndianBool();
if(hasDisplayName==true){ uint zlcxe5bu=varuint.decode(_buffer, &_index); displayName=readString(zlcxe5bu); }
}
}
public string toString() {
return "ListUpdateDisplayName(uuid: " ~ std.conv.to!string(this.uuid) ~ ", hasDisplayName: " ~ std.conv.to!string(this.hasDisplayName) ~ ", displayName: " ~ std.conv.to!string(this.displayName) ~ ")";
}
}
struct Modifier {
// operation
public enum ubyte ADD_SUBSTRACT_AMOUNT = 0;
public enum ubyte ADD_SUBSTRACT_AMOUNT_PERCENTAGE = 1;
public enum ubyte MULTIPLY_AMOUNT_PERCENTAGE = 2;
public enum string[] FIELDS = ["uuid", "amount", "operation"];
public UUID uuid;
public double amount;
public ubyte operation;
public pure nothrow @safe void encode(Buffer buffer) {
with(buffer) {
writeBytes(uuid.data);
writeBigEndianDouble(amount);
writeBigEndianUbyte(operation);
}
}
public pure nothrow @safe void decode(Buffer buffer) {
with(buffer) {
if(_buffer.length>=_index+16){ ubyte[16] dvz=_buffer[_index.._index+16].dup; _index+=16; uuid=UUID(dvz); }
amount=readBigEndianDouble();
operation=readBigEndianUbyte();
}
}
public string toString() {
return "Modifier(uuid: " ~ std.conv.to!string(this.uuid) ~ ", amount: " ~ std.conv.to!string(this.amount) ~ ", operation: " ~ std.conv.to!string(this.operation) ~ ")";
}
}
struct Attribute {
public enum string[] FIELDS = ["key", "value", "modifiers"];
public string key;
public double value;
public sul.protocol.java335.types.Modifier[] modifiers;
public pure nothrow @safe void encode(Buffer buffer) {
with(buffer) {
writeBytes(varuint.encode(cast(uint)key.length)); writeString(key);
writeBigEndianDouble(value);
writeBytes(varuint.encode(cast(uint)modifiers.length)); foreach(b9azzj;modifiers){ b9azzj.encode(bufferInstance); }
}
}
public pure nothrow @safe void decode(Buffer buffer) {
with(buffer) {
uint av=varuint.decode(_buffer, &_index); key=readString(av);
value=readBigEndianDouble();
modifiers.length=varuint.decode(_buffer, &_index); foreach(ref b9azzj;modifiers){ b9azzj.decode(bufferInstance); }
}
}
public string toString() {
return "Attribute(key: " ~ std.conv.to!string(this.key) ~ ", value: " ~ std.conv.to!string(this.value) ~ ", modifiers: " ~ std.conv.to!string(this.modifiers) ~ ")";
}
}
struct Entry {
public enum string[] FIELDS = ["item", "craftingSlot", "playerSlot"];
public sul.protocol.java335.types.Slot item;
public ubyte craftingSlot;
public ubyte playerSlot;
public pure nothrow @safe void encode(Buffer buffer) {
with(buffer) {
item.encode(bufferInstance);
writeBigEndianUbyte(craftingSlot);
writeBigEndianUbyte(playerSlot);
}
}
public pure nothrow @safe void decode(Buffer buffer) {
with(buffer) {
item.decode(bufferInstance);
craftingSlot=readBigEndianUbyte();
playerSlot=readBigEndianUbyte();
}
}
public string toString() {
return "Entry(item: " ~ std.conv.to!string(this.item) ~ ", craftingSlot: " ~ std.conv.to!string(this.craftingSlot) ~ ", playerSlot: " ~ std.conv.to!string(this.playerSlot) ~ ")";
}
}
struct OptionalPosition {
public enum string[] FIELDS = ["hasPosition", "position"];
public bool hasPosition;
public ulong position;
public pure nothrow @safe void encode(Buffer buffer) {
with(buffer) {
writeBigEndianBool(hasPosition);
if(hasPosition==true){ writeBigEndianUlong(position); }
}
}
public pure nothrow @safe void decode(Buffer buffer) {
with(buffer) {
hasPosition=readBigEndianBool();
if(hasPosition==true){ position=readBigEndianUlong(); }
}
}
public string toString() {
return "OptionalPosition(hasPosition: " ~ std.conv.to!string(this.hasPosition) ~ ", position: " ~ std.conv.to!string(this.position) ~ ")";
}
}
struct OptionalUuid {
public enum string[] FIELDS = ["hasUuid", "uuid"];
public bool hasUuid;
public UUID uuid;
public pure nothrow @safe void encode(Buffer buffer) {
with(buffer) {
writeBigEndianBool(hasUuid);
writeBytes(uuid.data);
}
}
public pure nothrow @safe void decode(Buffer buffer) {
with(buffer) {
hasUuid=readBigEndianBool();
if(_buffer.length>=_index+16){ ubyte[16] dvz=_buffer[_index.._index+16].dup; _index+=16; uuid=UUID(dvz); }
}
}
public string toString() {
return "OptionalUuid(hasUuid: " ~ std.conv.to!string(this.hasUuid) ~ ", uuid: " ~ std.conv.to!string(this.uuid) ~ ")";
}
}
|
D
|
/Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Fluent.build/Utilities/Exports.swift.o : /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/UUID.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Database+Schema.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Blob.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Field.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/ComputedField.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Method+Node.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Filter+Node.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Query+Page.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Page.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Storage.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Timestampable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Paginatable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Transactable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/SoftDeletable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/QueryRepresentable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/RowConvertible.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Filter+Scope.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/IdentifierType.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Database.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Aggregate.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Scope+String.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Relation+String.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Comparison+String.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Log.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Chunk.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/PivotProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/ThreadConnectionPool.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Children.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Join.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Database+Preparation.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Preparation.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Migration.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Action.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Connection.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/KeyNamingConvention.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Comparison.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Query+Group.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Builder.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Modifier.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Query+Filter.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Filter.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Driver.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQLite/SQLiteDriver.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQL/SQLSerializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQL/GeneralSQLSerializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQLite/SQLiteSerializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/RelationError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/PaginationError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/PreparationError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/PivotError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/QueryError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/EntityError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Creator.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Executor.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Siblings.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/Exports.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Distinct.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Limit.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Parent.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/Pivot.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/DoublePivot.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Sort.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/RowContext.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Raw.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/Row.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Index.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/ForeignKey.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Query.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Entity.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Dirty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Node.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/SQLite.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/sqlite.git--8232814251736334455/Sources/CSQLite/include/sqlite3.h /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Fluent.build/Exports~partial.swiftmodule : /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/UUID.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Database+Schema.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Blob.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Field.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/ComputedField.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Method+Node.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Filter+Node.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Query+Page.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Page.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Storage.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Timestampable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Paginatable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Transactable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/SoftDeletable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/QueryRepresentable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/RowConvertible.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Filter+Scope.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/IdentifierType.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Database.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Aggregate.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Scope+String.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Relation+String.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Comparison+String.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Log.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Chunk.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/PivotProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/ThreadConnectionPool.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Children.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Join.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Database+Preparation.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Preparation.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Migration.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Action.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Connection.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/KeyNamingConvention.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Comparison.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Query+Group.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Builder.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Modifier.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Query+Filter.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Filter.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Driver.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQLite/SQLiteDriver.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQL/SQLSerializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQL/GeneralSQLSerializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQLite/SQLiteSerializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/RelationError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/PaginationError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/PreparationError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/PivotError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/QueryError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/EntityError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Creator.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Executor.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Siblings.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/Exports.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Distinct.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Limit.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Parent.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/Pivot.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/DoublePivot.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Sort.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/RowContext.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Raw.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/Row.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Index.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/ForeignKey.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Query.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Entity.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Dirty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Node.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/SQLite.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/sqlite.git--8232814251736334455/Sources/CSQLite/include/sqlite3.h /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Fluent.build/Exports~partial.swiftdoc : /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/UUID.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Database+Schema.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Blob.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Field.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/ComputedField.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Method+Node.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Filter+Node.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Query+Page.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Page.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Storage.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Timestampable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/Paginatable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Transactable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/SoftDeletable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/QueryRepresentable.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/RowConvertible.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Filter+Scope.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/IdentifierType.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Database.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Aggregate.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Scope+String.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Relation+String.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/NodeUtilities/Comparison+String.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Log.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Chunk.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/PivotProtocol.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/ThreadConnectionPool.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Children.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Join.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Database+Preparation.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Preparation.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/Migration.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Action.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Connection.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/KeyNamingConvention.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Comparison.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Query+Group.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Builder.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Modifier.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Query+Filter.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Filter/Filter.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Driver.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQLite/SQLiteDriver.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQL/SQLSerializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQL/GeneralSQLSerializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/SQLite/SQLiteSerializer.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/RelationError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pagination/PaginationError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Preparation/PreparationError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/PivotError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/QueryError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/EntityError.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Creator.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Database/Executor.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Siblings.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Utilities/Exports.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Distinct.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Limit.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Relations/Parent.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/Pivot.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Pivot/DoublePivot.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Sort.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/RowContext.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Raw.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Row/Row.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/Index.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Schema/ForeignKey.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Query/Query.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Entity.swift /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/fluent.git-6251908308727715749/Sources/Fluent/Entity/Dirty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/libc.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Node.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/PathIndexable.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Core.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/SQLite.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Random.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/Bits.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/chenzuncheng/Desktop/vaporTest/.build/checkouts/sqlite.git--8232814251736334455/Sources/CSQLite/include/sqlite3.h /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/CHTTP.build/module.modulemap /Users/chenzuncheng/Desktop/vaporTest/.build/x86_64-apple-macosx10.10/debug/CSQLite.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
|
D
|
//////////////////////////////////////////////////////////////////////////
// MOb_ArenaWheel
// ==============
// Sperrt das Drehkreuz in der Arena für den Spieler
//////////////////////////////////////////////////////////////////////////
func int MOB_ARENAWHEEL_CONDITION ()
{
PrintDebugCh (PD_ITEM_MOBSI, "### MOB_ARENAWHEEL_CONDITION");
PrintGlobals (PD_ITEM_MOBSI);
if Npc_IsPlayer (self)
{
PrintDebugCh (PD_ITEM_MOBSI, "### ...nur Arenameister");
AI_PlayAni (self, "T_DONTKNOW");
PrintScreen (_STR_MESSAGE_ARENAWHEEL, -1, _YPOS_MESSAGE_REFUSEACTION, FONT_OLD_SMALL, _TIME_MESSAGE_REFUSEACTION);
return FALSE;
}
else
{
PrintDebugCh (PD_ITEM_MOBSI, "### ...OK");
return TRUE;
};
};
func int MOB_ARENAWHEEL_S0 ()
{
PrintDebugCh (PD_ITEM_MOBSI, "### MOB_ARENAWHEEL_S0");
//Arena_GatesClosed = FALSE;
};
func int MOB_ARENAWHEEL_S1 ()
{
PrintDebugCh (PD_ITEM_MOBSI, "### MOB_ARENAWHEEL_S1");
if Arena_GatesClosed
{
Arena_GatesClosed = FALSE;
PrintDebugCh (PD_ITEM_MOBSI, "### ...gates opened");
}
else
{
Arena_GatesClosed = TRUE;
PrintDebugCh (PD_ITEM_MOBSI, "### ...gates closed");
};
};
|
D
|
/Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Service.build/Provider/Provider.swift.o : /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Services/ServiceID.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Utilities/Deprecated.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Services/Service.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Services/ServiceCache.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Utilities/Extendable.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Services/ServiceType.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Config/Config.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Provider/Provider.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Container/Container.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Container/SubContainer.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Container/BasicSubContainer.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Container/BasicContainer.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Utilities/ServiceError.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Container/ContainerAlias.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Services/Services.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Utilities/Exports.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Environment/Environment.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Services/ServiceFactory.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Services/BasicServiceFactory.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Services/TypeServiceFactory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.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/nathanwhite/Desktop/vaporserver/simpleVapor/.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/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.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/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Service.build/Provider/Provider~partial.swiftmodule : /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Services/ServiceID.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Utilities/Deprecated.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Services/Service.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Services/ServiceCache.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Utilities/Extendable.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Services/ServiceType.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Config/Config.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Provider/Provider.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Container/Container.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Container/SubContainer.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Container/BasicSubContainer.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Container/BasicContainer.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Utilities/ServiceError.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Container/ContainerAlias.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Services/Services.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Utilities/Exports.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Environment/Environment.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Services/ServiceFactory.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Services/BasicServiceFactory.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Services/TypeServiceFactory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.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/nathanwhite/Desktop/vaporserver/simpleVapor/.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/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.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/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Service.build/Provider/Provider~partial.swiftdoc : /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Services/ServiceID.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Utilities/Deprecated.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Services/Service.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Services/ServiceCache.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Utilities/Extendable.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Services/ServiceType.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Config/Config.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Provider/Provider.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Container/Container.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Container/SubContainer.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Container/BasicSubContainer.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Container/BasicContainer.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Utilities/ServiceError.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Container/ContainerAlias.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Services/Services.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Utilities/Exports.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Environment/Environment.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Services/ServiceFactory.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Services/BasicServiceFactory.swift /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/service/Sources/Service/Services/TypeServiceFactory.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.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/nathanwhite/Desktop/vaporserver/simpleVapor/.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/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/nathanwhite/Desktop/vaporserver/simpleVapor/.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
|
instance ItMi_MariasGoldPlate(C_Item)
{
name = "Тяжелое золотое блюдо";
mainflag = ITEM_KAT_NONE;
flags = ITEM_MULTI;
value = Value_GoldPlate;
visual = "ItMi_GoldPlate.3DS";
material = MAT_METAL;
description = name;
text[2] = "На этом блюде выгравированы";
text[3] = "имена: Онар и Мария.";
text[5] = NAME_Value;
count[5] = value;
};
instance ItRi_ValentinosRing(C_Item)
{
name = NAME_Ring;
mainflag = ITEM_KAT_MAGIC;
flags = ITEM_RING;
value = Value_Ri_ProtEdge;
visual = "ItRi_Prot_Edge_01.3ds";
visual_skin = 0;
material = MAT_METAL;
on_equip = Equip_ValentinosRing;
on_unequip = UnEquip_ValentinosRing;
wear = WEAR_EFFECT;
effect = "SPELLFX_ITEMGLIMMER";
description = "Кольцо Валентино";
text[2] = NAME_Prot_Edge;
count[2] = Ri_ProtEdge;
text[5] = NAME_Value;
count[5] = value;
inv_zbias = INVCAM_ENTF_RING_STANDARD;
inv_rotz = INVCAM_Z_RING_STANDARD;
inv_rotx = INVCAM_X_RING_STANDARD;
};
func void Equip_ValentinosRing()
{
self.protection[PROT_EDGE] += Ri_ProtEdge;
self.protection[PROT_BLUNT] += Ri_ProtEdge;
};
func void UnEquip_ValentinosRing()
{
self.protection[PROT_EDGE] -= Ri_ProtEdge;
self.protection[PROT_BLUNT] -= Ri_ProtEdge;
};
instance ItWr_ManaRezept(C_Item)
{
name = "Рецепт";
mainflag = ITEM_KAT_DOCS;
flags = ITEM_MISSION;
value = 20;
visual = "ItWr_Scroll_01.3DS";
material = MAT_LEATHER;
on_state[0] = Use_ManaRezept;
scemeName = "MAP";
description = "Рецепт магической эссенции.";
};
func void Use_ManaRezept()
{
var int nDocID;
nDocID = Doc_Create();
Doc_SetPages(nDocID,1);
Doc_SetPage(nDocID,0,"letters.TGA",0);
Doc_SetFont(nDocID,-1,FONT_Book);
Doc_SetMargins(nDocID,-1,50,50,50,50,1);
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"Магические зелья");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLines(nDocID,0,"Чтобы сварить магическое зелье, опытному алхимику необходимы:");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"Огненная крапива");
Doc_PrintLine(nDocID,0,"Огненная трава");
Doc_PrintLine(nDocID,0,"Огненный корень");
Doc_PrintLines(nDocID,0,"Также ему понадобится");
Doc_PrintLine(nDocID,0,"Луговой горец");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"Мастер Неорас");
Doc_SetMargins(nDocID,-1,200,50,50,50,1);
Doc_Show(nDocID);
};
instance ItWr_Passierschein(C_Item)
{
name = "Пропуск";
mainflag = ITEM_KAT_DOCS;
flags = ITEM_MISSION;
value = 50;
visual = "ItWr_Scroll_01.3DS";
material = MAT_LEATHER;
on_state[0] = UsePassierschein;
scemeName = "MAP";
description = name;
text[3] = "Эти бумаги позволят мне";
text[4] = "пройти мимо стражников у ворот.";
};
func void UsePassierschein()
{
var int nDocID;
nDocID = Doc_Create();
Doc_SetPages(nDocID,1);
Doc_SetPage(nDocID,0,"letters.TGA",0);
Doc_SetFont(nDocID,-1,FONT_BookHeadline);
Doc_SetMargins(nDocID,-1,50,50,50,50,1);
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0," Пропуск");
Doc_PrintLine(nDocID,0," Хоринис ");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"");
Doc_SetFont(nDocID,0,FONT_Book);
Doc_PrintLine(nDocID,0," Этот документ дает право");
Doc_PrintLine(nDocID,0," свободного прохода по всему нижнему");
Doc_PrintLine(nDocID,0," Хоринису на неограниченный период времени.");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0," Лариус");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0," королевский губернатор");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"");
Doc_SetMargins(nDocID,-1,200,50,50,50,1);
Doc_Show(nDocID);
};
instance ItMi_HerbPaket(C_Item)
{
name = "Тюк травы";
mainflag = ITEM_KAT_NONE;
flags = ITEM_MISSION;
value = 0;
visual = "ItMi_Packet.3ds";
material = MAT_LEATHER;
description = name;
text[2] = "Тяжелый, липкий тюк,";
text[3] = "пахнущий болотной травой.";
text[5] = NAME_Value;
count[5] = 200;
};
instance ItKe_Storage(C_Item)
{
name = "Ключ от склада";
mainflag = ITEM_KAT_NONE;
flags = ITEM_MISSION;
value = Value_Key_01;
visual = "ItKe_Key_01.3ds";
material = MAT_METAL;
description = name;
text[2] = "Ключ от портового";
text[3] = "склада.";
};
instance ItMw_AlriksSword_Mis(C_Item)
{
name = "Меч Альрика";
mainflag = ITEM_KAT_NF;
flags = ITEM_MISSION | ITEM_SWD;
material = MAT_METAL;
value = Value_Alrik;
damageTotal = Damage_Alrik;
damagetype = DAM_EDGE;
range = Range_Alrik;
cond_atr[2] = ATR_STRENGTH;
cond_value[2] = Condition_Alrik;
visual = "ItMw_025_1h_Sld_Sword_01.3DS";
on_equip = Equip_AlriksSword;
on_unequip = UnEquip_AlriksSword;
description = name;
text[2] = NAME_Damage;
count[2] = damageTotal;
text[3] = NAME_Str_needed;
count[3] = cond_value[2];
text[4] = NAME_OneHanded;
text[5] = NAME_Value;
count[5] = value;
};
func void Equip_AlriksSword()
{
B_AddFightSkill(self,NPC_TALENT_1H,10);
};
func void UnEquip_AlriksSword()
{
B_AddFightSkill(self,NPC_TALENT_1H,-10);
};
instance ItKe_Hotel(C_Item)
{
name = "Ключ от комнаты";
mainflag = ITEM_KAT_NONE;
flags = ITEM_MISSION;
value = 0;
visual = "ItKe_Key_02.3ds";
material = MAT_METAL;
description = name;
text[2] = "Ключ от комнаты";
text[3] = "отеля.";
};
instance ItKe_ThiefGuildKey_MIS(C_Item)
{
name = "Ржавый ключ";
mainflag = ITEM_KAT_NONE;
flags = ITEM_MISSION;
value = 0;
visual = "ItKe_Key_01.3ds";
material = MAT_METAL;
description = name;
text[2] = "Этот ключ изъеден соленой морской водой.";
};
instance ItKe_ThiefGuildKey_Hotel_MIS(C_Item)
{
name = "Ржавый ключ";
mainflag = ITEM_KAT_NONE;
flags = ITEM_MISSION;
value = 0;
visual = "ItKe_Key_01.3ds";
material = MAT_METAL;
description = name;
text[2] = "Это ключ от погреба отеля.";
};
instance ItKe_Innos_MIS(C_Item)
{
name = NAME_Key;
mainflag = ITEM_KAT_NONE;
flags = ITEM_MISSION;
value = 0;
visual = "ItKe_Key_02.3ds";
material = MAT_METAL;
description = name;
text[2] = "Это ключ от входа в";
text[3] = "монастырь Инноса.";
};
instance ItKe_KlosterSchatz(C_Item)
{
name = NAME_Key;
mainflag = ITEM_KAT_NONE;
flags = ITEM_MISSION;
value = Value_Key_01;
visual = "ItKe_Key_02.3ds";
material = MAT_METAL;
description = name;
text[2] = "Это ключ от монастырской";
text[3] = "сокровищницы.";
};
instance ItKe_KlosterStore(C_Item)
{
name = NAME_Key;
mainflag = ITEM_KAT_NONE;
flags = ITEM_MISSION;
value = Value_Key_01;
visual = "ItKe_Key_01.3ds";
material = MAT_METAL;
description = name;
text[2] = "Это ключ от монастырской";
text[3] = "кладовой.";
};
instance ItKe_KDFPlayer(C_Item)
{
name = NAME_Key;
mainflag = ITEM_KAT_NONE;
flags = ITEM_MISSION;
value = Value_Key_01;
visual = "ItKe_Key_02.3ds";
material = MAT_METAL;
description = name;
text[2] = "Это ключ от монастырской";
text[3] = "кельи.";
};
instance ItKe_KlosterBibliothek(C_Item)
{
name = NAME_Key;
mainflag = ITEM_KAT_NONE;
flags = ITEM_MISSION;
value = Value_Key_01;
visual = "ItKe_Key_01.3ds";
material = MAT_METAL;
description = name;
text[2] = "Это ключ от монастырской";
text[3] = "библиотеки.";
};
instance ItPo_Perm_LittleMana(C_Item)
{
name = NAME_Trank;
mainflag = ITEM_KAT_POTIONS;
flags = ITEM_MULTI;
value = 150;
visual = "ItPo_Perm_Mana.3ds";
material = MAT_GLAS;
on_state[0] = UseItPo_LittleMana;
scemeName = "POTIONFAST";
wear = WEAR_EFFECT;
effect = "SPELLFX_MANAPOTION";
description = "Эссенция духа";
text[1] = NAME_Bonus_ManaMax;
count[1] = 3;
text[5] = NAME_Value;
count[5] = value;
};
func void UseItPo_LittleMana()
{
B_RaiseAttribute(self,ATR_MANA_MAX,3);
Npc_ChangeAttribute(self,ATR_MANA,3);
};
instance Holy_Hammer_MIS(C_Item)
{
name = "Священный молот";
mainflag = ITEM_KAT_NF;
flags = ITEM_MISSION | ITEM_2HD_AXE;
material = MAT_METAL;
value = Value_HolyHammer;
owner = Nov_608_Garwig;
damageTotal = Damage_HolyHammer;
damagetype = DAM_BLUNT;
range = Range_HolyHammer;
cond_atr[2] = ATR_STRENGTH;
cond_value[2] = Condition_HolyHammer;
visual = "ItMw_030_2h_kdf_hammer_01.3DS";
description = name;
text[2] = "Урон: ??";
text[3] = "Необходима сила: ??";
text[4] = "Двуручное оружие";
text[5] = "Цена: невозможно определить";
};
instance ItKe_MagicChest(C_Item)
{
name = "Старый ключ";
mainflag = ITEM_KAT_NONE;
flags = ITEM_MISSION | ITEM_MULTI;
value = 0;
visual = "ItKe_Key_02.3ds";
material = MAT_METAL;
description = name;
text[2] = "Старый железный ключ.";
text[3] = "Возможно, это ключ";
text[4] = "от висячего замка.";
};
/*
instance ItWr_Poster_MIS(C_Item)
{
name = "Объявление о розыске";
mainflag = ITEM_KAT_DOCS;
flags = ITEM_MULTI | ITEM_MISSION;
value = 0;
visual = "ItWr_Scroll_01.3DS";
material = MAT_LEATHER;
on_state[0] = UsePoster;
scemeName = "MAP";
description = name;
text[3] = "Мое изображение!";
text[4] = "";
};
func void UsePoster()
{
var int nDocID;
nDocID = Doc_Create();
Doc_SetPages(nDocID,1);
Doc_SetPage(nDocID,0,"Gesucht.TGA",0);
Doc_Show(nDocID);
};
//*/
instance ItKe_Bandit(C_Item)
{
name = "Ключ от сундука";
mainflag = ITEM_KAT_NONE;
flags = ITEM_MISSION;
value = Value_Key_01;
visual = "ItKe_Key_01.3ds";
material = MAT_METAL;
description = name;
text[2] = "Этот ключ принадлежал";
text[3] = "бандиту.";
};
instance ItRw_Bow_L_03_MIS(C_Item)
{
name = "Охотничий лук";
mainflag = ITEM_KAT_FF;
flags = ITEM_BOW | ITEM_MISSION;
material = MAT_WOOD;
value = Value_Jagdbogen;
damageTotal = Damage_Jagdbogen;
damagetype = DAM_POINT;
munition = ItRw_Arrow;
cond_atr[2] = ATR_DEXTERITY;
cond_value[2] = Condition_Jagdbogen;
visual = "ItRw_Bow_L_03.mms";
description = name;
text[2] = NAME_Damage;
count[2] = damageTotal;
text[3] = NAME_Dex_needed;
count[3] = cond_value[2];
text[4] = "Охотничий лук Боспера.";
text[5] = NAME_Value;
count[5] = value;
};
instance ItRi_Prot_Point_01_MIS(C_Item)
{
name = "Кольцо Константино";
mainflag = ITEM_KAT_MAGIC;
flags = ITEM_RING | ITEM_MISSION;
value = Value_Ri_ProtPoint;
visual = "ItRi_Prot_Point_01.3ds";
visual_skin = 0;
material = MAT_METAL;
on_equip = Equip_ItRi_Prot_Point_01_MIS;
on_unequip = UnEquip_ItRi_Prot_Point_01_MIS;
wear = WEAR_EFFECT;
effect = "SPELLFX_ITEMGLIMMER";
description = "Деревянная защита";
text[2] = NAME_Prot_Point;
count[2] = Ri_ProtPoint;
text[5] = NAME_Value;
count[5] = value;
inv_zbias = INVCAM_ENTF_RING_STANDARD;
inv_rotz = INVCAM_Z_RING_STANDARD;
inv_rotx = INVCAM_X_RING_STANDARD;
};
func void Equip_ItRi_Prot_Point_01_MIS()
{
self.protection[PROT_POINT] += Ri_ProtPoint;
};
func void UnEquip_ItRi_Prot_Point_01_MIS()
{
self.protection[PROT_POINT] -= Ri_ProtPoint;
};
instance ItMi_EddasStatue(C_Item)
{
name = "Статуя Инноса";
mainflag = ITEM_KAT_NONE;
flags = ITEM_MULTI | ITEM_MISSION;
value = 50;
visual = "ItMi_InnosStatue.3DS";
material = MAT_METAL;
description = name;
text[2] = "Иннос, бог правосудия";
text[3] = "благослови и сохрани меня,";
text[4] = "и защити меня от боли.";
text[5] = NAME_Value;
count[5] = value;
};
instance ItKe_EVT_CRYPT_01(C_Item)
{
name = "Старый латунный ключ";
mainflag = ITEM_KAT_NONE;
flags = ITEM_MISSION;
value = Value_Key_01;
visual = "ItKe_Key_01.3ds";
material = MAT_METAL;
description = name;
text[2] = "Это ключ скелета в комнате 1";
};
instance ItKe_EVT_CRYPT_02(C_Item)
{
name = "Старый латунный ключ";
mainflag = ITEM_KAT_NONE;
flags = ITEM_MISSION;
value = Value_Key_01;
visual = "ItKe_Key_01.3ds";
material = MAT_METAL;
description = name;
text[2] = "Это ключ скелета в комнате 2";
};
instance ItKe_EVT_CRYPT_03(C_Item)
{
name = "Старый латунный ключ";
mainflag = ITEM_KAT_NONE;
flags = ITEM_MISSION;
value = Value_Key_01;
visual = "ItKe_Key_01.3ds";
material = MAT_METAL;
description = name;
text[2] = "Это ключ скелета в комнате 3";
};
instance ItKe_Valentino(C_Item)
{
name = "Ключ от сундука";
mainflag = ITEM_KAT_NONE;
flags = ITEM_MISSION;
value = Value_Key_01;
visual = "ItKe_Key_01.3ds";
material = MAT_METAL;
description = name;
text[2] = "Это ключ от сундука,";
text[3] = "принадлежащего Валентино.";
};
instance ItKe_Buerger(C_Item)
{
name = "Ключ от сундука";
mainflag = ITEM_KAT_NONE;
flags = ITEM_MISSION;
value = Value_Key_01;
visual = "ItKe_Key_01.3ds";
material = MAT_METAL;
description = name;
text[2] = "Он лежал на подоконнике.";
text[3] = "";
};
instance ItKe_Richter(C_Item)
{
name = "Ключ от сундука";
mainflag = ITEM_KAT_NONE;
flags = ITEM_MISSION;
value = Value_Key_01;
visual = "ItKe_Key_01.3ds";
material = MAT_METAL;
description = name;
text[2] = "Это ключ от сундука,";
text[3] = "принадлежащего судье.";
};
instance ItKe_Salandril(C_Item)
{
name = "Ключ от сундука, принадлежащего";
mainflag = ITEM_KAT_NONE;
flags = ITEM_MISSION;
value = Value_Key_01;
visual = "ItKe_Key_01.3ds";
material = MAT_METAL;
description = name;
text[2] = "Саландрилу алхимику.";
text[3] = "";
};
instance ItKe_PaladinTruhe(C_Item)
{
name = "Ключ от сундука";
mainflag = ITEM_KAT_NONE;
flags = ITEM_MISSION;
value = Value_Key_01;
visual = "ItKe_Key_01.3ds";
material = MAT_METAL;
description = name;
text[2] = "Маленький латунный ключик";
text[3] = "от дома паладинов.";
};
instance ItKe_ThiefTreasure(C_Item)
{
name = NAME_Key;
mainflag = ITEM_KAT_NONE;
flags = ITEM_MISSION | ITEM_MULTI;
value = Value_Key_01;
visual = "ItKe_Key_03.3ds";
material = MAT_METAL;
description = name;
text[2] = "Маленький ключик.";
};
instance ItKe_Fingers(C_Item)
{
name = NAME_Key;
mainflag = ITEM_KAT_NONE;
flags = ITEM_MISSION;
value = Value_Key_01;
visual = "ItKe_Key_03.3ds";
material = MAT_METAL;
description = name;
text[2] = "Ржавый ключ от двери";
text[3] = "в канализации.";
};
instance ItWr_Schuldenbuch(C_Item)
{
name = "Долговая книга";
mainflag = ITEM_KAT_DOCS;
flags = 0;
value = 100;
visual = "ItWr_Book_02_05.3ds";
material = MAT_LEATHER;
scemeName = "MAP";
description = "Долговая книга Лемара.";
text[5] = NAME_Value;
count[5] = value;
// on_state[0] = UseSchuldBuch;
};
func void UseSchuldBuch()
{
// откл.
var int nDocID;
nDocID = Doc_Create();
Doc_SetPages(nDocID,2);
Doc_SetPage(nDocID,0,"Book_Brown_L.tga",0);
Doc_SetPage(nDocID,1,"Book_Brown_R.tga",0);
Doc_SetMargins(nDocID,0,275,20,30,20,1);
Doc_SetFont(nDocID,0,FONT_BookHeadline);
Doc_PrintLine(nDocID,0,"");
Doc_PrintLines(nDocID,0,"Сделки и долги");
Doc_SetFont(nDocID,0,FONT_Book);
Doc_PrintLine(nDocID,0,"");
Doc_PrintLines(nDocID,0,"Я, мастер Торбен, плотник Хориниса, должен глубокоуважаемому Лемару 200 золотых монет.");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0," Торбен");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLines(nDocID,0,"Я, Корагон, трактирщик Хориниса, должен глубокоуважаемому Лемару 150 золотых монет.");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0," Корагон");
Doc_PrintLine(nDocID,0,"");
Doc_SetMargins(nDocID,-1,30,20,275,20,1);
Doc_SetFont(nDocID,1,FONT_Book);
Doc_PrintLine(nDocID,1,"");
Doc_PrintLine(nDocID,1,"");
Doc_PrintLine(nDocID,1,"");
Doc_PrintLines(nDocID,1,"Я, Ханна, владелица отеля Хориниса, должна глубокоуважаемому Лемару 250 золотых монет.");
Doc_PrintLine(nDocID,1,"");
Doc_PrintLine(nDocID,1," Ханна");
Doc_PrintLines(nDocID,1,"");
Doc_Show(nDocID);
};
instance ItPl_Sagitta_Herb_MIS(C_Item)
{
name = "Солнечное алоэ";
mainflag = ITEM_KAT_FOOD;
flags = ITEM_MULTI;
value = Value_Strength_Herb_01;
visual = "ItPl_Strength_Herb_01.3DS";
material = MAT_WOOD;
scemeName = "FOOD";
description = name;
text[5] = NAME_Value;
count[5] = Value_Strength_Herb_01;
};
instance ITKE_ORLAN_HOTELZIMMER(C_Item)
{
name = "Ключ ";
mainflag = ITEM_KAT_NONE;
flags = 0;
value = Value_Key_01;
visual = "ItKe_Key_01.3ds";
material = MAT_METAL;
description = name;
text[2] = "от первой комнаты";
text[3] = "в таверне “Мертвая Гарпия“.";
};
instance ITKE_ORLAN_HOTELZIMMER_02(C_Item)
{
name = "Ключ от комнаты";
mainflag = ITEM_KAT_NONE;
flags = ITEM_MISSION;
value = Value_Key_01;
visual = "ItKe_Key_01.3ds";
material = MAT_METAL;
description = name;
text[2] = "от второй комнаты";
text[3] = "в таверне “Мертвая Гарпия“.";
};
instance ItRw_DragomirsArmbrust_MIS(C_Item)
{
name = "Арбалет Драгомира";
mainflag = ITEM_KAT_FF;
flags = ITEM_CROSSBOW;
material = MAT_WOOD;
value = Value_LeichteArmbrust;
damageTotal = Damage_LeichteArmbrust;
damagetype = DAM_POINT;
munition = ItRw_Bolt;
cond_atr[2] = ATR_STRENGTH;
cond_value[2] = Condition_LeichteArmbrust;
visual = "ItRw_Crossbow_L_02.mms";
description = name;
text[2] = NAME_Damage;
count[2] = damageTotal;
text[3] = NAME_Str_needed;
count[3] = cond_value[2];
text[5] = NAME_Value;
count[5] = value;
};
const int VALUE_ITAR_PAL_SKEL = 500;
instance ITAR_PAL_SKEL(C_Item)
{
name = "Старые рыцарские доспехи";
mainflag = ITEM_KAT_ARMOR;
flags = 0;
protection[PROT_EDGE] = 100;
protection[PROT_BLUNT] = 100;
protection[PROT_POINT] = 100;
protection[PROT_FIRE] = 50;
protection[PROT_MAGIC] = 50;
value = value_itar_pal_skel;
wear = WEAR_TORSO;
visual = "ItAr_Pal_H.3ds";
visual_change = "Armor_Pal_Skeleton.asc";
visual_skin = 0;
material = MAT_LEATHER;
description = name;
text[1] = NAME_Prot_Edge;
count[1] = protection[PROT_EDGE];
text[2] = NAME_Prot_Point;
count[2] = protection[PROT_POINT];
text[3] = NAME_Prot_Fire;
count[3] = protection[PROT_FIRE];
text[4] = NAME_Prot_Magic;
count[4] = protection[PROT_MAGIC];
text[5] = NAME_Value;
count[5] = value;
};
instance ItFo_Schafswurst(C_Item)
{
name = "Баранья колбаса";
mainflag = ITEM_KAT_FOOD;
flags = ITEM_MULTI;
value = Value_Sausage;
visual = "ItFo_Sausage.3DS";
material = MAT_LEATHER;
scemeName = "FOOD";
on_state[0] = Use_Schafswurst;
description = name;
text[1] = NAME_Bonus_HP;
count[1] = HP_Sausage;
text[5] = NAME_Value;
count[5] = Value_Sausage;
};
func void Use_Schafswurst()
{
Npc_ChangeAttribute(self,ATR_HITPOINTS,HP_Sausage);
};
|
D
|
/Users/macbookpro/Documents/rust_tests/minigrep/target/rls/debug/deps/minigrep-a51e20c7c07b00fa.rmeta: src/main.rs
/Users/macbookpro/Documents/rust_tests/minigrep/target/rls/debug/deps/minigrep-a51e20c7c07b00fa.d: src/main.rs
src/main.rs:
|
D
|
/Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/CombinedHighlighter.o : /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Animation/Animator.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/AxisBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/BarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/ChartUtils.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/ComponentBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Filters/DataApproximator.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/Description.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/Fill.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/Highlight.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/IMarker.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/Legend.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/LegendEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/LineChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/MarkerImage.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/MarkerView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/PieChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/Platform.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/RadarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/Range.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBarLineScatterCandleBubbleDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBaseDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBubbleDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmCandleDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmLineDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmLineRadarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmLineScatterCandleRadarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmPieDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmRadarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmScatterDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Renderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/Transformer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/XAxis.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/YAxis.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Target\ Support\ Files/Charts/Charts-umbrella.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Pods.build/Debug-iphonesimulator/Charts.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealm_Dynamic.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMSchema_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMResults_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMRealm_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMRealmConfiguration_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMProperty_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMOptionalBase.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObject_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObjectStore.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObjectSchema_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectBase_Dynamic.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMListBase.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMArray_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMAccessor.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSchema.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMResults.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealmConfiguration.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealm.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMConstants.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMProperty.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMPlatform.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectSchema.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectBase.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObject.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMMigration.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMCollection.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMArray.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/Realm.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Pods.build/Debug-iphonesimulator/Realm.build/module.modulemap
/Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/CombinedHighlighter~partial.swiftmodule : /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Animation/Animator.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/AxisBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/BarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/ChartUtils.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/ComponentBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Filters/DataApproximator.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/Description.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/Fill.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/Highlight.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/IMarker.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/Legend.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/LegendEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/LineChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/MarkerImage.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/MarkerView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/PieChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/Platform.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/RadarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/Range.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBarLineScatterCandleBubbleDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBaseDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBubbleDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmCandleDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmLineDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmLineRadarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmLineScatterCandleRadarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmPieDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmRadarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmScatterDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Renderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/Transformer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/XAxis.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/YAxis.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Target\ Support\ Files/Charts/Charts-umbrella.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Pods.build/Debug-iphonesimulator/Charts.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealm_Dynamic.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMSchema_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMResults_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMRealm_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMRealmConfiguration_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMProperty_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMOptionalBase.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObject_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObjectStore.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObjectSchema_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectBase_Dynamic.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMListBase.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMArray_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMAccessor.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSchema.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMResults.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealmConfiguration.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealm.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMConstants.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMProperty.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMPlatform.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectSchema.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectBase.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObject.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMMigration.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMCollection.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMArray.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/Realm.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Pods.build/Debug-iphonesimulator/Realm.build/module.modulemap
/Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/CombinedHighlighter~partial.swiftdoc : /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Animation/Animator.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/AxisBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/BarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/ChartUtils.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/ComponentBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Filters/DataApproximator.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/Description.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/Fill.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/Highlight.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/IMarker.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/Legend.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/LegendEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/LineChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/MarkerImage.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/MarkerView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/PieChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/Platform.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/RadarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/Range.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBarLineScatterCandleBubbleDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBaseDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBubbleDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmCandleDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmLineDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmLineRadarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmLineScatterCandleRadarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmPieDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmRadarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmScatterDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Renderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/Transformer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/XAxis.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/YAxis.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Target\ Support\ Files/Charts/Charts-umbrella.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Pods.build/Debug-iphonesimulator/Charts.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealm_Dynamic.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMSchema_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMResults_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMRealm_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMRealmConfiguration_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMProperty_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMOptionalBase.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObject_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObjectStore.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObjectSchema_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectBase_Dynamic.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMListBase.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMArray_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMAccessor.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSchema.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMResults.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealmConfiguration.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealm.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMConstants.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMProperty.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMPlatform.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectSchema.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectBase.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObject.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMMigration.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMCollection.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMArray.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/Realm.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Pods.build/Debug-iphonesimulator/Realm.build/module.modulemap
|
D
|
<?xml version="1.0" encoding="ASCII"?>
<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="_YXjZAFz6Eemem_7_jX00Yw-Statemachine.notation#_0FS3I10VEemPzIHwcwrhwQ"/>
</availablePage>
</pageList>
<sashModel currentSelection="//@sashModel/@windows.0/@children.0">
<windows>
<children xsi:type="di:TabFolder">
<children>
<emfPageIdentifier href="_YXjZAFz6Eemem_7_jX00Yw-Statemachine.notation#_0FS3I10VEemPzIHwcwrhwQ"/>
</children>
</children>
</windows>
</sashModel>
</di:SashWindowsMngr>
|
D
|
/users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Build/Intermediates/SwiftIO.build/Debug-iphoneos/SwiftIO_iOS.build/Objects-normal/arm64/Address.o : /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/NullStream.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/Datagram+Streams.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/FileStream.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/BasicTypes+BinaryInputStreamable.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/sockaddr_storage+Extensions.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/Inet.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/Utilities.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/inet+Extensions.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/BinaryStreamable.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/Socket.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/BinaryOutputStreams.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/NetworkEndian.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/TCPServer.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/UDPChannel.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/Address.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/BinaryDecodable.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/TCPListener.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/Datagram.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/Resolver.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/RandomAccess.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/Address+Interfaces.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/SocketOptions.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/BasicTypes+BinaryOutputStreamable.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/BinaryInputStreams.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/Connectable.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/AddressScanner.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/MemoryStream.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/Logging.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/TCPChannel.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/TLV.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /users/tommy-b-10/Desktop/SidePilotApp/Modules/module.map /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/SwiftIOSupport.h /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/SwiftIO.h /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Build/Intermediates/SwiftIO.build/Debug-iphoneos/SwiftIO_iOS.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SwiftOnoneSupport.swiftmodule /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Carthage/Build/iOS/SwiftUtilities.framework/Modules/SwiftUtilities.swiftmodule/arm64.swiftmodule /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Carthage/Build/iOS/SwiftUtilities.framework/Headers/SwiftUtilities-Swift.h /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Carthage/Build/iOS/SwiftUtilities.framework/Headers/SwiftUtilities.h /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Carthage/Build/iOS/SwiftUtilities.framework/Modules/module.modulemap
/users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Build/Intermediates/SwiftIO.build/Debug-iphoneos/SwiftIO_iOS.build/Objects-normal/arm64/Address~partial.swiftmodule : /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/NullStream.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/Datagram+Streams.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/FileStream.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/BasicTypes+BinaryInputStreamable.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/sockaddr_storage+Extensions.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/Inet.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/Utilities.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/inet+Extensions.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/BinaryStreamable.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/Socket.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/BinaryOutputStreams.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/NetworkEndian.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/TCPServer.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/UDPChannel.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/Address.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/BinaryDecodable.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/TCPListener.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/Datagram.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/Resolver.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/RandomAccess.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/Address+Interfaces.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/SocketOptions.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/BasicTypes+BinaryOutputStreamable.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/BinaryInputStreams.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/Connectable.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/AddressScanner.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/MemoryStream.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/Logging.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/TCPChannel.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/TLV.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /users/tommy-b-10/Desktop/SidePilotApp/Modules/module.map /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/SwiftIOSupport.h /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/SwiftIO.h /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Build/Intermediates/SwiftIO.build/Debug-iphoneos/SwiftIO_iOS.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SwiftOnoneSupport.swiftmodule /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Carthage/Build/iOS/SwiftUtilities.framework/Modules/SwiftUtilities.swiftmodule/arm64.swiftmodule /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Carthage/Build/iOS/SwiftUtilities.framework/Headers/SwiftUtilities-Swift.h /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Carthage/Build/iOS/SwiftUtilities.framework/Headers/SwiftUtilities.h /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Carthage/Build/iOS/SwiftUtilities.framework/Modules/module.modulemap
/users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Build/Intermediates/SwiftIO.build/Debug-iphoneos/SwiftIO_iOS.build/Objects-normal/arm64/Address~partial.swiftdoc : /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/NullStream.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/Datagram+Streams.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/FileStream.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/BasicTypes+BinaryInputStreamable.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/sockaddr_storage+Extensions.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/Inet.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/Utilities.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/inet+Extensions.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/BinaryStreamable.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/Socket.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/BinaryOutputStreams.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/NetworkEndian.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/TCPServer.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/UDPChannel.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/Address.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/BinaryDecodable.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/TCPListener.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/Datagram.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/Resolver.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/RandomAccess.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/Address+Interfaces.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/SocketOptions.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/BasicTypes+BinaryOutputStreamable.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/BinaryInputStreams.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/Connectable.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/AddressScanner.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/MemoryStream.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/Logging.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/TCPChannel.swift /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/TLV.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /users/tommy-b-10/Desktop/SidePilotApp/Modules/module.map /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/SwiftIOSupport.h /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Sources/SwiftIO.h /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Build/Intermediates/SwiftIO.build/Debug-iphoneos/SwiftIO_iOS.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SwiftOnoneSupport.swiftmodule /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Carthage/Build/iOS/SwiftUtilities.framework/Modules/SwiftUtilities.swiftmodule/arm64.swiftmodule /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Carthage/Build/iOS/SwiftUtilities.framework/Headers/SwiftUtilities-Swift.h /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Carthage/Build/iOS/SwiftUtilities.framework/Headers/SwiftUtilities.h /users/tommy-b-10/Desktop/SidePilotApp/Carthage/Checkouts/SwiftIO/Carthage/Build/iOS/SwiftUtilities.framework/Modules/module.modulemap
|
D
|
/Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Intermediates.noindex/MVC.build/Debug-iphonesimulator/MVC.build/Objects-normal/x86_64/SceneDelegate.o : /Users/hanykaram/Desktop/MVC/MVC/MVC/Controller/HomeVC.swift /Users/hanykaram/Desktop/MVC/MVC/MVC/Controller/LoginVC.swift /Users/hanykaram/Desktop/MVC/MVC/NetWork/BaseURL.swift /Users/hanykaram/Desktop/MVC/MVC/Cutome\ +\ Extenstion/Custome.swift /Users/hanykaram/Desktop/MVC/MVC/Delegate/SceneDelegate.swift /Users/hanykaram/Desktop/MVC/MVC/Delegate/AppDelegate.swift /Users/hanykaram/Desktop/MVC/MVC/LoginModel.swift /Users/hanykaram/Desktop/MVC/MVC/ProductModel.swift /Users/hanykaram/Desktop/MVC/MVC/MVC/View/CustomeTableView/TableViewCell.swift /Users/hanykaram/Desktop/MVC/MVC/Cutome\ +\ Extenstion/CustomeButton.swift /Users/hanykaram/Desktop/MVC/MVC/NetWork/NetworkManager.swift /Users/hanykaram/Desktop/MVC/MVC/Cutome\ +\ Extenstion/ActivityIndector.swift /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreData.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Accelerate.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/os.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/PKHUD/PKHUD.framework/Modules/PKHUD.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Modules/Kingfisher.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/NVActivityIndicatorView/NVActivityIndicatorView.framework/Modules/NVActivityIndicatorView.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/PKHUD/PKHUD.framework/Headers/PKHUD.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/PKHUD/PKHUD.framework/Headers/PKHUD-umbrella.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Headers/Kingfisher-umbrella.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/NVActivityIndicatorView/NVActivityIndicatorView.framework/Headers/NVActivityIndicatorView-umbrella.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Headers/Kingfisher.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/PKHUD/PKHUD.framework/Headers/PKHUD-Swift.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-Swift.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Headers/Kingfisher-Swift.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/NVActivityIndicatorView/NVActivityIndicatorView.framework/Headers/NVActivityIndicatorView-Swift.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/PKHUD/PKHUD.framework/Modules/module.modulemap /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/module.modulemap /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Modules/module.modulemap /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/NVActivityIndicatorView/NVActivityIndicatorView.framework/Modules/module.modulemap /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/usr/include/objc/ObjectiveC.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/usr/include/Darwin.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Intermediates.noindex/MVC.build/Debug-iphonesimulator/MVC.build/Objects-normal/x86_64/SceneDelegate~partial.swiftmodule : /Users/hanykaram/Desktop/MVC/MVC/MVC/Controller/HomeVC.swift /Users/hanykaram/Desktop/MVC/MVC/MVC/Controller/LoginVC.swift /Users/hanykaram/Desktop/MVC/MVC/NetWork/BaseURL.swift /Users/hanykaram/Desktop/MVC/MVC/Cutome\ +\ Extenstion/Custome.swift /Users/hanykaram/Desktop/MVC/MVC/Delegate/SceneDelegate.swift /Users/hanykaram/Desktop/MVC/MVC/Delegate/AppDelegate.swift /Users/hanykaram/Desktop/MVC/MVC/LoginModel.swift /Users/hanykaram/Desktop/MVC/MVC/ProductModel.swift /Users/hanykaram/Desktop/MVC/MVC/MVC/View/CustomeTableView/TableViewCell.swift /Users/hanykaram/Desktop/MVC/MVC/Cutome\ +\ Extenstion/CustomeButton.swift /Users/hanykaram/Desktop/MVC/MVC/NetWork/NetworkManager.swift /Users/hanykaram/Desktop/MVC/MVC/Cutome\ +\ Extenstion/ActivityIndector.swift /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreData.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Accelerate.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/os.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/PKHUD/PKHUD.framework/Modules/PKHUD.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Modules/Kingfisher.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/NVActivityIndicatorView/NVActivityIndicatorView.framework/Modules/NVActivityIndicatorView.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/PKHUD/PKHUD.framework/Headers/PKHUD.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/PKHUD/PKHUD.framework/Headers/PKHUD-umbrella.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Headers/Kingfisher-umbrella.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/NVActivityIndicatorView/NVActivityIndicatorView.framework/Headers/NVActivityIndicatorView-umbrella.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Headers/Kingfisher.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/PKHUD/PKHUD.framework/Headers/PKHUD-Swift.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-Swift.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Headers/Kingfisher-Swift.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/NVActivityIndicatorView/NVActivityIndicatorView.framework/Headers/NVActivityIndicatorView-Swift.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/PKHUD/PKHUD.framework/Modules/module.modulemap /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/module.modulemap /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Modules/module.modulemap /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/NVActivityIndicatorView/NVActivityIndicatorView.framework/Modules/module.modulemap /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/usr/include/objc/ObjectiveC.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/usr/include/Darwin.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Intermediates.noindex/MVC.build/Debug-iphonesimulator/MVC.build/Objects-normal/x86_64/SceneDelegate~partial.swiftdoc : /Users/hanykaram/Desktop/MVC/MVC/MVC/Controller/HomeVC.swift /Users/hanykaram/Desktop/MVC/MVC/MVC/Controller/LoginVC.swift /Users/hanykaram/Desktop/MVC/MVC/NetWork/BaseURL.swift /Users/hanykaram/Desktop/MVC/MVC/Cutome\ +\ Extenstion/Custome.swift /Users/hanykaram/Desktop/MVC/MVC/Delegate/SceneDelegate.swift /Users/hanykaram/Desktop/MVC/MVC/Delegate/AppDelegate.swift /Users/hanykaram/Desktop/MVC/MVC/LoginModel.swift /Users/hanykaram/Desktop/MVC/MVC/ProductModel.swift /Users/hanykaram/Desktop/MVC/MVC/MVC/View/CustomeTableView/TableViewCell.swift /Users/hanykaram/Desktop/MVC/MVC/Cutome\ +\ Extenstion/CustomeButton.swift /Users/hanykaram/Desktop/MVC/MVC/NetWork/NetworkManager.swift /Users/hanykaram/Desktop/MVC/MVC/Cutome\ +\ Extenstion/ActivityIndector.swift /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreData.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Accelerate.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/os.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/PKHUD/PKHUD.framework/Modules/PKHUD.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Modules/Kingfisher.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/NVActivityIndicatorView/NVActivityIndicatorView.framework/Modules/NVActivityIndicatorView.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/PKHUD/PKHUD.framework/Headers/PKHUD.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/PKHUD/PKHUD.framework/Headers/PKHUD-umbrella.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Headers/Kingfisher-umbrella.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/NVActivityIndicatorView/NVActivityIndicatorView.framework/Headers/NVActivityIndicatorView-umbrella.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Headers/Kingfisher.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/PKHUD/PKHUD.framework/Headers/PKHUD-Swift.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-Swift.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Headers/Kingfisher-Swift.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/NVActivityIndicatorView/NVActivityIndicatorView.framework/Headers/NVActivityIndicatorView-Swift.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/PKHUD/PKHUD.framework/Modules/module.modulemap /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/module.modulemap /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Modules/module.modulemap /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/NVActivityIndicatorView/NVActivityIndicatorView.framework/Modules/module.modulemap /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/usr/include/objc/ObjectiveC.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/usr/include/Darwin.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Intermediates.noindex/MVC.build/Debug-iphonesimulator/MVC.build/Objects-normal/x86_64/SceneDelegate~partial.swiftsourceinfo : /Users/hanykaram/Desktop/MVC/MVC/MVC/Controller/HomeVC.swift /Users/hanykaram/Desktop/MVC/MVC/MVC/Controller/LoginVC.swift /Users/hanykaram/Desktop/MVC/MVC/NetWork/BaseURL.swift /Users/hanykaram/Desktop/MVC/MVC/Cutome\ +\ Extenstion/Custome.swift /Users/hanykaram/Desktop/MVC/MVC/Delegate/SceneDelegate.swift /Users/hanykaram/Desktop/MVC/MVC/Delegate/AppDelegate.swift /Users/hanykaram/Desktop/MVC/MVC/LoginModel.swift /Users/hanykaram/Desktop/MVC/MVC/ProductModel.swift /Users/hanykaram/Desktop/MVC/MVC/MVC/View/CustomeTableView/TableViewCell.swift /Users/hanykaram/Desktop/MVC/MVC/Cutome\ +\ Extenstion/CustomeButton.swift /Users/hanykaram/Desktop/MVC/MVC/NetWork/NetworkManager.swift /Users/hanykaram/Desktop/MVC/MVC/Cutome\ +\ Extenstion/ActivityIndector.swift /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreData.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Accelerate.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/os.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64.swiftmodule /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/PKHUD/PKHUD.framework/Modules/PKHUD.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/Alamofire.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Modules/Kingfisher.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/NVActivityIndicatorView/NVActivityIndicatorView.framework/Modules/NVActivityIndicatorView.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/PKHUD/PKHUD.framework/Headers/PKHUD.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/PKHUD/PKHUD.framework/Headers/PKHUD-umbrella.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-umbrella.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Headers/Kingfisher-umbrella.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/NVActivityIndicatorView/NVActivityIndicatorView.framework/Headers/NVActivityIndicatorView-umbrella.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Headers/Kingfisher.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/PKHUD/PKHUD.framework/Headers/PKHUD-Swift.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Headers/Alamofire-Swift.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Headers/Kingfisher-Swift.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/NVActivityIndicatorView/NVActivityIndicatorView.framework/Headers/NVActivityIndicatorView-Swift.h /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/PKHUD/PKHUD.framework/Modules/module.modulemap /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Alamofire/Alamofire.framework/Modules/module.modulemap /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/Kingfisher/Kingfisher.framework/Modules/module.modulemap /Users/hanykaram/Desktop/MVC/DerivedData/MVC/Build/Intermediates.noindex/SwiftMigration/MVC/Products/Debug-iphonesimulator/NVActivityIndicatorView/NVActivityIndicatorView.framework/Modules/module.modulemap /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/usr/include/objc/ObjectiveC.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/Accelerate.framework/Headers/Accelerate.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/usr/include/Darwin.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/os.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Users/hanykaram/Desktop/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator13.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
D
|
func int b_getcurrentabsolutionlevel(var C_NPC slf)
{
if(c_npcbelongstooldcamp(slf))
{
return ABSOLUTIONLEVEL_OLDCAMP;
};
if(c_npcbelongstocity(slf))
{
return ABSOLUTIONLEVEL_CITY;
};
if(c_npcbelongstomonastery(slf))
{
return ABSOLUTIONLEVEL_MONASTERY;
};
if(c_npcbelongstofarm(slf))
{
return ABSOLUTIONLEVEL_FARM;
};
return 0;
};
|
D
|
/home/nirav/Documents/Programming/Rust_Projects/Chapter_9/ch9_03/target/debug/deps/rand-26719f7b806c91b5.rmeta: /home/nirav/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.3.23/src/lib.rs /home/nirav/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.3.23/src/distributions/mod.rs /home/nirav/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.3.23/src/rand_impls.rs
/home/nirav/Documents/Programming/Rust_Projects/Chapter_9/ch9_03/target/debug/deps/librand-26719f7b806c91b5.rlib: /home/nirav/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.3.23/src/lib.rs /home/nirav/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.3.23/src/distributions/mod.rs /home/nirav/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.3.23/src/rand_impls.rs
/home/nirav/Documents/Programming/Rust_Projects/Chapter_9/ch9_03/target/debug/deps/rand-26719f7b806c91b5.d: /home/nirav/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.3.23/src/lib.rs /home/nirav/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.3.23/src/distributions/mod.rs /home/nirav/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.3.23/src/rand_impls.rs
/home/nirav/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.3.23/src/lib.rs:
/home/nirav/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.3.23/src/distributions/mod.rs:
/home/nirav/.cargo/registry/src/github.com-1ecc6299db9ec823/rand-0.3.23/src/rand_impls.rs:
|
D
|
/*******************************************************************************
Base task class for test runner and application class to handle
command-line flags to forward to that test runner.
Copyright: Copyright (c) 2015-2017 sociomantic labs GmbH. All rights reserved
License: Boost Software License Version 1.0. See LICENSE for details.
*******************************************************************************/
module turtle.runner.Runner;
import Version;
static if (is(typeof(version_info)))
alias version_info v_info;
else
alias versionInfo v_info;
import core.thread;
import core.sys.posix.sys.stat;
import ocean.transition;
import ocean.core.Time;
import ocean.core.Array;
import ocean.core.Enforce;
import ocean.core.Array;
import ocean.stdc.posix.sys.un;
import ocean.io.FilePath;
import ocean.io.Stdout;
import ocean.sys.Environment;
import ocean.util.app.CliApp;
import ocean.task.Scheduler;
import ocean.task.Task;
import ocean.task.extensions.ExceptionForwarding;
import ocean.task.util.Timer;
import ocean.text.Arguments;
import ocean.util.log.Logger;
import ocean.text.convert.Formatter;
import ocean.text.util.StringC;
import ocean.stdc.posix.stdlib : mkdtemp;
import turtle.TestCase;
import turtle.Exception;
import turtle.runner.Context;
import turtle.runner.Logging;
import turtle.runner.internal.RunnerConfig;
import turtle.application.TestedDaemonApplication;
import turtle.application.TestedCliApplication;
import turtle.env.Shell;
import turtle.env.model.Registry;
import turtle.env.ControlSocket;
// import aggregator
struct Actions
{
import turtle.runner.actions.RunAll : runAll;
import turtle.runner.actions.RunTwiceCompareStats : runTwiceCompareStats;
import turtle.runner.actions.RunOne : runOne;
import turtle.runner.actions.List : listAllTests;
}
/*******************************************************************************
Used to differentiate between the three main turtle test modes:
* A persistent tested application which is run as a background service
(i.e. a daemon).
* A tested application which runs and exits, presumably once per test case
(i.e. a CLI application).
* Connecting/attaching to already running application with no sandbox setup,
means tested app is not controlled by turtle at all.
There is also a special "manual" mode for use when the tested application
is run manually but sandbox is still created. It is mostly a legacy option
that existed before `TestedAppKind.None` but very few apps use it to
implement custom daemon app starting logic in tests.
*******************************************************************************/
enum TestedAppKind
{
Daemon,
CLI,
Manual,
None
}
/*******************************************************************************
Ocean scheduler task responsible for finding and executing all test
cases. All required context is configured by application class that
owns the task instance.
*******************************************************************************/
class TurtleRunnerTask ( TestedAppKind Kind ) : TaskWith!(ExceptionForwarding)
{
static if (Kind == TestedAppKind.Daemon)
{
const AutoStartTestedApp = true;
const SetupSandbox = true;
}
else static if (Kind == TestedAppKind.CLI)
{
const AutoStartTestedApp = true;
const SetupSandbox = true;
}
else static if (Kind == TestedAppKind.Manual)
{
const AutoStartTestedApp = false;
const SetupSandbox = true;
}
else static if (Kind == TestedAppKind.None)
{
const AutoStartTestedApp = false;
const SetupSandbox = false;
}
/***************************************************************************
Part of configuration / application context that may be necessary for
test cases too. It gets passed to each test case during initialization.
Refer to `turtle.app.Context.ApplicationContext` for more details.
***************************************************************************/
protected Context context;
/***************************************************************************
Collection of configuration options that affect behaviour of test runner
***************************************************************************/
protected RunnerConfig config;
/***************************************************************************
Used to pass turtle runner exit status flag from main task to `run`
method so that it can be used to deduce application exit status code.
It is merely a workaround for the fact that tango.core.Fiber doesn't
save co-routine exit value on its own.
***************************************************************************/
protected bool ok;
/***************************************************************************
Defines sub-package that contains test cases
***************************************************************************/
protected istring test_package;
/***************************************************************************
Override this method to start any additional services or modify sandbox
before any tests start.
***************************************************************************/
protected void prepare ( ) { }
/***************************************************************************
Override this method if you use any mock environment services
which have persistent state and need to reset all changes between
tests.
Will also be run once before running any test case and thus can be
used to define initial common set of data to run test on.
NB: this method will only be called if test case has
`reset_env` set to 'true' in its description. In that case `reset` will
be called after the test case.
***************************************************************************/
protected void reset ( ) { }
/***************************************************************************
Augments overriden `reset` with sending command to control unix socket
if it is initialized.
***************************************************************************/
private void resetSync ( )
{
this.reset();
if (this.context.control_socket !is null)
{
enforce!(TurtleException)(
sendCommand(this.context.control_socket, "reset") == "ACK");
}
}
/***************************************************************************
Allows to temporarily disable some test cases when overridden
Returns:
an array of fully-qualified class names for test cases that must
be ignored by this test runner despite being compiled in.
***************************************************************************/
protected istring[] disabledTestCases ( ) { return null; }
/***************************************************************************
Task entry point
***************************************************************************/
public final override void run ( )
{
// suspend once so that rest of the code will execute
// only when eventLoop is known to be running
theScheduler.processEvents();
// force shutdown in the end to avoid being stuck with
// left-over epoll events
scope(exit)
theScheduler.shutdown();
.log.trace("Started test runner task");
this.ok = this.testMain();
// TestedApplicationBase.stop() sets a timer which sends a series of
// signals to the app to stop it. As the scope(exit) of this method
// kills the eventloop (thus preventing the timer from being handled),
// we wait here until the application stops. (If all of the signals
// fail, the test will be aborted with an assert(false), anyway.)
if (this.context.app)
{
while (this.context.app.isRunning())
{
.log.trace("Tested application ({}) is still running",
this.context.app.pid());
.wait(100_000);
}
}
}
/***************************************************************************
The Test Runner
It is possible to override this method to run specified actions
several times. To do so, call `super.testMain()` each time and check
its return value. Example:
---
override public bool testMain ( )
{
// first attempt
if (!super.testMain())
return false;
// do nothing else for informational actions
if (this.config.list_only)
return true;
// enable extra checks and run action again:
doSomething();
return super.testMain();
}
---
Returns:
test suite success status
***************************************************************************/
public bool testMain ( )
{
try
{
if (this.config.delay > 0)
{
log.info("Test suite ready, sleeping for {} seconds before " ~
"running actual tests (--delay={})", this.config.delay,
this.config.delay);
Thread.sleep(seconds(this.config.delay));
}
if (this.config.list_only)
return Actions.listAllTests(this.config);
this.prepareEnvironment();
scope(exit)
{
// before killing tested app, unregister all know environment
// additions to avoid irrelevant errors being printed because
// of shutdown sequence
turtle_env_registry.unregisterAll();
if (this.context.app !is null)
this.context.app.stop();
}
if (this.config.test_id >= 0)
{
return Actions.runOne(this.config, this.context,
&this.resetSync);
}
if (this.config.memcheck)
{
return Actions.runTwiceCompareStats(this.config,
this.context, &this.resetSync,
this.disabledTestCases());
}
else
{
return Actions.runAll(this.config, this.context,
&this.resetSync, this.disabledTestCases());
}
}
catch (Exception e)
{
log.fatal("Unexpected failure in test runner!");
log.fatal("{}: {} ({}:{})", e.classinfo.name, getMsg(e), e.file, e.line);
return false;
}
}
/***************************************************************************
Run by test task to prepare folder layout. In most cases default
implementation is good enough but you can override it if any additional
file operations are required. In that case, call `super.createSandbox`
in the very beginning to create basic sandbox and switch current
working directory to it.
***************************************************************************/
protected void createSandbox ( )
{
// recreate folder layout and change working directory
auto path = this.context.paths.tmp_dir;
cstring sandbox;
if (this.config.name.length == 0)
{
auto generated = mkdtemp(format(
"{}/sandbox-{}-XXXXXXXX\0",
path,
this.context.binary
).dup.ptr);
enforce!(TurtleException)(generated !is null);
auto sandbox_path = FilePath(StringC.toDString(generated));
this.config.name = idup(sandbox_path.file());
sandbox = sandbox_path.toString() ~ "/";
this.context.paths.sandbox = idup(sandbox);
.log.trace("Created dir '{}' via mkdtemp", sandbox);
}
else
{
// remove when removing deprecated Runner constructor
sandbox = this.context.paths.sandbox;
shell("rm -rf " ~ sandbox);
shell("mkdir " ~ sandbox);
}
cwd(sandbox);
shell("mkdir ./bin");
shell("mkdir ./etc");
shell("mkdir ./log");
shell("install -m755 " ~ this.context.paths.binary ~ " ./bin/");
foreach (file; this.copyFiles())
{
auto dst = FilePath(this.context.paths.sandbox)
.append(file.dst_path)
.toString();
if (file.src_path.length)
{
auto dirname = shell("dirname " ~ dst);
shell("mkdir -p " ~ dirname.stdout);
auto src = FilePath(this.context.paths.top_dir)
.append(file.src_path)
.toString();
shell("cp -r " ~ src ~ " " ~ dst);
}
else
shell("mkdir -p " ~ dst);
}
log.info("Temporary sandbox created at '{}'", sandbox);
}
/***************************************************************************
Defines what files/folders to copy from project directory to sandbox
directory (if overridden).
Copies recursively. All intermediate directories in sandbox will be
automatically created.
Returns:
Array of structs containing source path (relative to project top
directory) and destination path (relative to sandbox root).
Source path can be empty, in that case destination path is
interpreted as empty directory to be created.
***************************************************************************/
protected CopyFileEntry[] copyFiles ( ) { return null; }
public static struct CopyFileEntry
{
istring src_path;
istring dst_path;
}
static if (AutoStartTestedApp)
{
/***********************************************************************
Must override this method to configure how tested application
process is to be started. Meaning of `duration` argument varies
between `TestedAppKind.Daemon` and `TestedAppKind.CLI`.
Params:
duration =
TestedAppKind.Daemon : seconds to wait for spawned
process to get ready
TestedAppKind.CLI : seconds to wait while spawned
process finishes
args = CLI arguments for spawned process
env = shell environment arguments for spawned process
***********************************************************************/
abstract protected void configureTestedApplication (
out double duration, out istring[] args, out istring[istring] env );
/***********************************************************************
Starts './bin/<this.context.binary>' as an external process with arguments
provided by `this.configureTestedApplication`
***********************************************************************/
private void startTestedApplication ( )
{
double delay;
istring[] iargs;
istring[istring] env;
this.configureTestedApplication(delay, iargs, env);
// workaround until ocean Process has better const API
auto args = new cstring[iargs.length];
args[] = iargs[];
auto rel_bin = "bin/" ~ this.context.binary;
static if (Kind == TestedAppKind.Daemon)
alias TestedDaemonApplication TestedApp;
else
alias TestedCliApplication TestedApp;
this.context.app = new TestedApp(
rel_bin,
delay,
this.context.paths.sandbox,
args,
env
);
static if (Kind == TestedAppKind.Daemon)
{
this.context.app.start();
log.trace("Tested application started.");
}
else
{
// CLI app will be started from test cases
}
}
}
/***************************************************************************
Takes care of initial environment preparation that happens once before
all test get run. This includes creating sandbox files, starting tested
application if needed and running user prepare/reset hooks.
***************************************************************************/
private void prepareEnvironment ( )
{
static if (SetupSandbox)
{
// creates all folders and copy necessary files
this.createSandbox();
}
// user hook for starting services / processes
this.prepare();
static if (AutoStartTestedApp)
{
// binary to test
this.startTestedApplication();
}
// try connecting to unix socket at path `pwd`/turtle.socket in case
// it was created by tested app
auto socket_path = Environment.toAbsolute("turtle.socket".dup);
if (FilePath(socket_path).exists())
{
.log.trace("Found {}, connecting", socket_path);
auto addr = sockaddr_un.create(socket_path);
this.context.control_socket = new typeof(this.context.control_socket);
enforce!(TurtleException)(this.context.control_socket.socket() >= 0);
auto status = this.context.control_socket.connect(&addr);
enforce!(TurtleException)(status == 0);
}
else
this.context.control_socket = null;
// user hook to reset service state
// normally called between tests but also runs once before to
// ensure consistent state
this.resetSync();
}
}
/*******************************************************************************
Inherit your turtle application class (the test runner) from this base class
It automatically handles:
- creating event loop (epoll)
- creating test task (for wrapping async utilities in blocking API)
- reading configuration from CLI and Makd environment variables
- creation of sandbox folder structure
- copying tested binary / config files into sandbox
- discovery and running of test cases
- resetting environment as defined by test cases
Params:
Kind = tested application kind. Affect how environment preparation is
being done
*******************************************************************************/
class TurtleRunner ( TaskT ) : CliApp
{
/***************************************************************************
Task
***************************************************************************/
protected TaskT task;
/***************************************************************************
Constructor
Params:
binary = name of tested binary (to be found in `this.bin_dir`)
test_package = prefix for the module name(s) to look into for
test case classes. If empty, no filter is used.
***************************************************************************/
public this ( istring binary, istring test_package = "" )
{
.setupLogging();
auto desc = "External functional test suite for " ~ binary;
super("turtle", desc, v_info);
this.task = new TaskT();
this.task.config.test_package = test_package;
this.task.context.binary = binary;
this.task.context.app = null;
}
deprecated("Use implicit random test suite name to prevent accidental clashes")
public this ( istring binary, istring test_package, istring name )
{
this(binary, test_package);
this.task.config.name = name;
}
/***************************************************************************
Starts the application. Should never be touched.
Will result in `TurtleRunnerTask` being scheduled
Params:
args = arguments parser instance.
***************************************************************************/
final public override int run ( Arguments args )
{
SchedulerConfiguration config;
initScheduler(config);
// clear exception handler to workaround regression caused by ocean
// v3.6.0 and later which causes test suite to abort during termination
// of the tested app because of unhandled exception:
theScheduler.exception_handler = null;
theScheduler.schedule(this.task);
theScheduler.eventLoop();
return this.task.ok ? 0 : -1;
}
/***************************************************************************
Set up the command line arguments parser for the Application
Params:
app = application instance
args = arguments parser to configure
***************************************************************************/
protected override void setupArgs (IApplication app, Arguments args)
{
static if (TaskT.SetupSandbox)
{
args("tmpdir")
.params(1)
.help("Temporary directory used for preparing the sandbox");
args("bindir")
.params(1)
.help("Directory where tested binary is expected to be found");
args("projdir")
.params(1)
.help("Root dir of git repository");
}
args("list")
.conflicts("id")
.conflicts("filter")
.help("Only list root test case names, run nothing");
args("id")
.params(1)
.conflicts("list")
.conflicts("filter")
.help("Number of a test case to run (from --list)");
args("filter")
.params(1)
.conflicts("id")
.conflicts("list")
.help("Regular expression (for a test name) to filter tests to run");
args("verbose")
.params(1)
.help("0 - only error messages, " ~
"1 - informational messages, 2 - detailed trace");
args("delay")
.params(1)
.help("Sleep for N seconds between initializing sandbox and " ~
"starting to run tests");
args("progress")
.params(1)
.help("Report test progress in silent mode by printing status " ~
"each N seconds");
args("fatal")
.help("Treat all test case failures as fatal");
static if (TaskT.AutoStartTestedApp)
{
args("memcheck")
.help("Runs whole test suite twice, ensuring that memory " ~
"usage does not change for the second run");
}
}
/***************************************************************************
Read command-line arguments for the application
Params:
app = application instance
args = arguments parser to read from
***************************************************************************/
protected override void processArgs (IApplication app, Arguments args)
{
auto verbose = args.getString("verbose");
if (verbose.length == 0)
verbose = Environment.get("MAKD_VERBOSE");
if (verbose == "1")
Log.root.level(Level.Info, true);
if (verbose == "2")
Log.root.level(Level.Trace, true);
auto progress = args.getInt!(long)("progress");
enforce(progress <= 0 || verbose.length == 0 || verbose == "0");
this.task.config.progress_dump_interval = progress;
this.task.config.list_only = args.exists("list");
this.task.config.forced_fatal = args.exists("fatal");
this.task.config.delay = args.getInt!(long)("delay");
if (args.exists("id")) // to avoid overwriting initial -1
this.task.config.test_id = args.getInt!(long)("id");
if (args.exists("filter"))
this.task.config.name_filter = args.getString("filter");
if (args.exists("memcheck"))
this.task.config.memcheck = true;
static if (TaskT.SetupSandbox)
{
istring path;
path = args.getString("tmpdir");
if (path.length == 0)
path = Environment.get("MAKD_TMPDIR");
enforce!(TurtleException)(
path.length > 0,
"Must set temporary directory path (sandbox) either via " ~
"--tmpdir argument or via MAKD_TMPDIR environment variable"
);
this.task.context.paths.tmp_dir = path;
path = args.getString("bindir");
if (path.length == 0)
path = Environment.get("MAKD_BINDIR");
enforce!(TurtleException)(
path.length > 0,
"Must set directory path with binaries either via " ~
"--bindir argument or via MAKD_BINDIR environment variable"
);
this.task.context.paths.bin_dir = path;
path = args.getString("projdir");
if (path.length == 0)
path = Environment.get("MAKD_TOPDIR");
enforce!(TurtleException)(
path.length > 0,
"Must set root project directory either via " ~
"--projdir argument or via MAKD_TOPDIR environment variable"
);
this.task.context.paths.top_dir = path;
with (this.task.context)
{
paths.binary = paths.bin_dir ~ "/" ~ this.task.context.binary;
enforce!(TurtleException)(FilePath(paths.binary).exists,
"File '" ~ paths.binary ~ "' not found");
}
// Remove when removing deprecated Runner constructor
if (this.task.config.name.length > 0)
{
path = this.task.context.paths.tmp_dir;
this.task.context.paths.sandbox = path
~ "/sandbox-" ~ this.task.config.name ~ "/";
}
log.info("Testing '{}'", this.task.context.paths.binary);
}
}
}
unittest
{
// create template instances to verify compilation
static class One : TurtleRunnerTask!(TestedAppKind.Manual)
{
override void prepare ( ) { }
}
static class Two : TurtleRunnerTask!(TestedAppKind.Daemon)
{
override void prepare ( ) { }
override protected void configureTestedApplication (
out double, out istring[], out istring[istring] ) { }
}
static class Three : TurtleRunnerTask!(TestedAppKind.CLI)
{
override void prepare ( ) { }
override protected void configureTestedApplication (
out double, out istring[], out istring[istring] ) { }
}
static class Four : TurtleRunnerTask!(TestedAppKind.None)
{
override void prepare ( ) { }
}
alias TurtleRunner!(One) RunnerOne;
alias TurtleRunner!(Two) RunnerTwo;
alias TurtleRunner!(Three) RunnerThree;
alias TurtleRunner!(Four) RunnerFour;
}
/*******************************************************************************
Utility to change working directory while trace logging new one
Params:
dir = new working directory
*******************************************************************************/
private void cwd ( cstring dir )
{
.log.trace("Changing working dir to '{}'", dir);
Environment.cwd(dir);
}
|
D
|
/**
* Compiler implementation of the
* $(LINK2 http://www.dlang.org, D programming language).
*
* Copyright: Copyright (c) 1999-2016 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: $(DMDSRC _opover.d)
*/
module ddmd.opover;
import core.stdc.stdio;
import ddmd.aggregate;
import ddmd.aliasthis;
import ddmd.arraytypes;
import ddmd.dclass;
import ddmd.declaration;
import ddmd.dscope;
import ddmd.dstruct;
import ddmd.dsymbol;
import ddmd.dtemplate;
import ddmd.errors;
import ddmd.expression;
import ddmd.func;
import ddmd.globals;
import ddmd.id;
import ddmd.identifier;
import ddmd.mtype;
import ddmd.statement;
import ddmd.tokens;
import ddmd.visitor;
/***********************************
* Determine if operands of binary op can be reversed
* to fit operator overload.
*/
extern (C++) bool isCommutative(TOK op)
{
switch (op)
{
case TOKadd:
case TOKmul:
case TOKand:
case TOKor:
case TOKxor:
// EqualExp
case TOKequal:
case TOKnotequal:
// CmpExp
case TOKlt:
case TOKle:
case TOKgt:
case TOKge:
return true;
default:
break;
}
return false;
}
/***********************************
* Get Identifier for operator overload.
*/
extern (C++) static Identifier opId(Expression e)
{
extern (C++) final class OpIdVisitor : Visitor
{
alias visit = super.visit;
public:
Identifier id;
override void visit(Expression e)
{
assert(0);
}
override void visit(UAddExp e)
{
id = Id.uadd;
}
override void visit(NegExp e)
{
id = Id.neg;
}
override void visit(ComExp e)
{
id = Id.com;
}
override void visit(CastExp e)
{
id = Id._cast;
}
override void visit(InExp e)
{
id = Id.opIn;
}
override void visit(PostExp e)
{
id = (e.op == TOKplusplus) ? Id.postinc : Id.postdec;
}
override void visit(AddExp e)
{
id = Id.add;
}
override void visit(MinExp e)
{
id = Id.sub;
}
override void visit(MulExp e)
{
id = Id.mul;
}
override void visit(DivExp e)
{
id = Id.div;
}
override void visit(ModExp e)
{
id = Id.mod;
}
override void visit(PowExp e)
{
id = Id.pow;
}
override void visit(ShlExp e)
{
id = Id.shl;
}
override void visit(ShrExp e)
{
id = Id.shr;
}
override void visit(UshrExp e)
{
id = Id.ushr;
}
override void visit(AndExp e)
{
id = Id.iand;
}
override void visit(OrExp e)
{
id = Id.ior;
}
override void visit(XorExp e)
{
id = Id.ixor;
}
override void visit(CatExp e)
{
id = Id.cat;
}
override void visit(AssignExp e)
{
id = Id.assign;
}
override void visit(AddAssignExp e)
{
id = Id.addass;
}
override void visit(MinAssignExp e)
{
id = Id.subass;
}
override void visit(MulAssignExp e)
{
id = Id.mulass;
}
override void visit(DivAssignExp e)
{
id = Id.divass;
}
override void visit(ModAssignExp e)
{
id = Id.modass;
}
override void visit(AndAssignExp e)
{
id = Id.andass;
}
override void visit(OrAssignExp e)
{
id = Id.orass;
}
override void visit(XorAssignExp e)
{
id = Id.xorass;
}
override void visit(ShlAssignExp e)
{
id = Id.shlass;
}
override void visit(ShrAssignExp e)
{
id = Id.shrass;
}
override void visit(UshrAssignExp e)
{
id = Id.ushrass;
}
override void visit(CatAssignExp e)
{
id = Id.catass;
}
override void visit(PowAssignExp e)
{
id = Id.powass;
}
override void visit(EqualExp e)
{
id = Id.eq;
}
override void visit(CmpExp e)
{
id = Id.cmp;
}
override void visit(ArrayExp e)
{
id = Id.index;
}
override void visit(PtrExp e)
{
id = Id.opStar;
}
}
scope OpIdVisitor v = new OpIdVisitor();
e.accept(v);
return v.id;
}
/***********************************
* Get Identifier for reverse operator overload,
* NULL if not supported for this operator.
*/
extern (C++) static Identifier opId_r(Expression e)
{
extern (C++) final class OpIdRVisitor : Visitor
{
alias visit = super.visit;
public:
Identifier id;
override void visit(Expression e)
{
id = null;
}
override void visit(InExp e)
{
id = Id.opIn_r;
}
override void visit(AddExp e)
{
id = Id.add_r;
}
override void visit(MinExp e)
{
id = Id.sub_r;
}
override void visit(MulExp e)
{
id = Id.mul_r;
}
override void visit(DivExp e)
{
id = Id.div_r;
}
override void visit(ModExp e)
{
id = Id.mod_r;
}
override void visit(PowExp e)
{
id = Id.pow_r;
}
override void visit(ShlExp e)
{
id = Id.shl_r;
}
override void visit(ShrExp e)
{
id = Id.shr_r;
}
override void visit(UshrExp e)
{
id = Id.ushr_r;
}
override void visit(AndExp e)
{
id = Id.iand_r;
}
override void visit(OrExp e)
{
id = Id.ior_r;
}
override void visit(XorExp e)
{
id = Id.ixor_r;
}
override void visit(CatExp e)
{
id = Id.cat_r;
}
}
scope OpIdRVisitor v = new OpIdRVisitor();
e.accept(v);
return v.id;
}
/************************************
* If type is a class or struct, return the symbol for it,
* else NULL
*/
extern (C++) AggregateDeclaration isAggregate(Type t)
{
t = t.toBasetype();
if (t.ty == Tclass)
{
return (cast(TypeClass)t).sym;
}
else if (t.ty == Tstruct)
{
return (cast(TypeStruct)t).sym;
}
return null;
}
/*******************************************
* Helper function to turn operator into template argument list
*/
extern (C++) Objects* opToArg(Scope* sc, TOK op)
{
/* Remove the = from op=
*/
switch (op)
{
case TOKaddass:
op = TOKadd;
break;
case TOKminass:
op = TOKmin;
break;
case TOKmulass:
op = TOKmul;
break;
case TOKdivass:
op = TOKdiv;
break;
case TOKmodass:
op = TOKmod;
break;
case TOKandass:
op = TOKand;
break;
case TOKorass:
op = TOKor;
break;
case TOKxorass:
op = TOKxor;
break;
case TOKshlass:
op = TOKshl;
break;
case TOKshrass:
op = TOKshr;
break;
case TOKushrass:
op = TOKushr;
break;
case TOKcatass:
op = TOKcat;
break;
case TOKpowass:
op = TOKpow;
break;
default:
break;
}
Expression e = new StringExp(Loc(), cast(char*)Token.toChars(op));
e = e.semantic(sc);
auto tiargs = new Objects();
tiargs.push(e);
return tiargs;
}
/************************************
* Operator overload.
* Check for operator overload, if so, replace
* with function call.
* Return NULL if not an operator overload.
*/
extern (C++) Expression op_overload(Expression e, Scope* sc)
{
extern (C++) final class OpOverload : Visitor
{
alias visit = super.visit;
public:
Scope* sc;
Expression result;
extern (D) this(Scope* sc)
{
this.sc = sc;
}
override void visit(Expression e)
{
assert(0);
}
override void visit(UnaExp e)
{
//printf("UnaExp::op_overload() (%s)\n", e->toChars());
if (e.e1.op == TOKarray)
{
ArrayExp ae = cast(ArrayExp)e.e1;
ae.e1 = ae.e1.semantic(sc);
ae.e1 = resolveProperties(sc, ae.e1);
Expression ae1old = ae.e1;
const(bool) maybeSlice = (ae.arguments.dim == 0 || ae.arguments.dim == 1 && (*ae.arguments)[0].op == TOKinterval);
IntervalExp ie = null;
if (maybeSlice && ae.arguments.dim)
{
assert((*ae.arguments)[0].op == TOKinterval);
ie = cast(IntervalExp)(*ae.arguments)[0];
}
while (true)
{
if (ae.e1.op == TOKerror)
{
result = ae.e1;
return;
}
Expression e0 = null;
Expression ae1save = ae.e1;
ae.lengthVar = null;
Type t1b = ae.e1.type.toBasetype();
AggregateDeclaration ad = isAggregate(t1b);
if (!ad)
break;
if (search_function(ad, Id.opIndexUnary))
{
// Deal with $
result = resolveOpDollar(sc, ae, &e0);
if (!result) // op(a[i..j]) might be: a.opSliceUnary!(op)(i, j)
goto Lfallback;
if (result.op == TOKerror)
return;
/* Rewrite op(a[arguments]) as:
* a.opIndexUnary!(op)(arguments)
*/
Expressions* a = ae.arguments.copy();
Objects* tiargs = opToArg(sc, e.op);
result = new DotTemplateInstanceExp(e.loc, ae.e1, Id.opIndexUnary, tiargs);
result = new CallExp(e.loc, result, a);
if (maybeSlice) // op(a[]) might be: a.opSliceUnary!(op)()
result = result.trySemantic(sc);
else
result = result.semantic(sc);
if (result)
{
result = Expression.combine(e0, result);
return;
}
}
Lfallback:
if (maybeSlice && search_function(ad, Id.opSliceUnary))
{
// Deal with $
result = resolveOpDollar(sc, ae, ie, &e0);
if (result.op == TOKerror)
return;
/* Rewrite op(a[i..j]) as:
* a.opSliceUnary!(op)(i, j)
*/
auto a = new Expressions();
if (ie)
{
a.push(ie.lwr);
a.push(ie.upr);
}
Objects* tiargs = opToArg(sc, e.op);
result = new DotTemplateInstanceExp(e.loc, ae.e1, Id.opSliceUnary, tiargs);
result = new CallExp(e.loc, result, a);
result = result.semantic(sc);
result = Expression.combine(e0, result);
return;
}
// Didn't find it. Forward to aliasthis
if (ad.aliasthis && t1b != ae.att1)
{
if (!ae.att1 && t1b.checkAliasThisRec())
ae.att1 = t1b;
/* Rewrite op(a[arguments]) as:
* op(a.aliasthis[arguments])
*/
ae.e1 = resolveAliasThis(sc, ae1save, true);
if (ae.e1)
continue;
}
break;
}
ae.e1 = ae1old; // recovery
ae.lengthVar = null;
}
e.e1 = e.e1.semantic(sc);
e.e1 = resolveProperties(sc, e.e1);
if (e.e1.op == TOKerror)
{
result = e.e1;
return;
}
AggregateDeclaration ad = isAggregate(e.e1.type);
if (ad)
{
Dsymbol fd = null;
version (all)
{
// Old way, kept for compatibility with D1
if (e.op != TOKpreplusplus && e.op != TOKpreminusminus)
{
fd = search_function(ad, opId(e));
if (fd)
{
// Rewrite +e1 as e1.add()
result = build_overload(e.loc, sc, e.e1, null, fd);
return;
}
}
}
/* Rewrite as:
* e1.opUnary!(op)()
*/
fd = search_function(ad, Id.opUnary);
if (fd)
{
Objects* tiargs = opToArg(sc, e.op);
result = new DotTemplateInstanceExp(e.loc, e.e1, fd.ident, tiargs);
result = new CallExp(e.loc, result);
result = result.semantic(sc);
return;
}
// Didn't find it. Forward to aliasthis
if (ad.aliasthis && e.e1.type != e.att1)
{
/* Rewrite op(e1) as:
* op(e1.aliasthis)
*/
//printf("att una %s e1 = %s\n", Token::toChars(op), this->e1->type->toChars());
Expression e1 = new DotIdExp(e.loc, e.e1, ad.aliasthis.ident);
UnaExp ue = cast(UnaExp)e.copy();
if (!ue.att1 && e.e1.type.checkAliasThisRec())
ue.att1 = e.e1.type;
ue.e1 = e1;
result = ue.trySemantic(sc);
return;
}
}
}
override void visit(ArrayExp ae)
{
//printf("ArrayExp::op_overload() (%s)\n", ae->toChars());
ae.e1 = ae.e1.semantic(sc);
ae.e1 = resolveProperties(sc, ae.e1);
Expression ae1old = ae.e1;
const(bool) maybeSlice = (ae.arguments.dim == 0 || ae.arguments.dim == 1 && (*ae.arguments)[0].op == TOKinterval);
IntervalExp ie = null;
if (maybeSlice && ae.arguments.dim)
{
assert((*ae.arguments)[0].op == TOKinterval);
ie = cast(IntervalExp)(*ae.arguments)[0];
}
while (true)
{
if (ae.e1.op == TOKerror)
{
result = ae.e1;
return;
}
Expression e0 = null;
Expression ae1save = ae.e1;
ae.lengthVar = null;
Type t1b = ae.e1.type.toBasetype();
AggregateDeclaration ad = isAggregate(t1b);
if (!ad)
{
// If the non-aggregate expression ae->e1 is indexable or sliceable,
// convert it to the corresponding concrete expression.
if (t1b.ty == Tpointer || t1b.ty == Tsarray || t1b.ty == Tarray || t1b.ty == Taarray ||
t1b.ty == Ttuple || t1b.ty == Tvector || ae.e1.op == TOKtype)
{
// Convert to SliceExp
if (maybeSlice)
{
result = new SliceExp(ae.loc, ae.e1, ie);
result = result.semantic(sc);
return;
}
// Convert to IndexExp
if (ae.arguments.dim == 1)
{
result = new IndexExp(ae.loc, ae.e1, (*ae.arguments)[0]);
result = result.semantic(sc);
return;
}
}
break;
}
if (search_function(ad, Id.index))
{
// Deal with $
result = resolveOpDollar(sc, ae, &e0);
if (!result) // a[i..j] might be: a.opSlice(i, j)
goto Lfallback;
if (result.op == TOKerror)
return;
/* Rewrite e1[arguments] as:
* e1.opIndex(arguments)
*/
Expressions* a = ae.arguments.copy();
result = new DotIdExp(ae.loc, ae.e1, Id.index);
result = new CallExp(ae.loc, result, a);
if (maybeSlice) // a[] might be: a.opSlice()
result = result.trySemantic(sc);
else
result = result.semantic(sc);
if (result)
{
result = Expression.combine(e0, result);
return;
}
}
Lfallback:
if (maybeSlice && ae.e1.op == TOKtype)
{
result = new SliceExp(ae.loc, ae.e1, ie);
result = result.semantic(sc);
result = Expression.combine(e0, result);
return;
}
if (maybeSlice && search_function(ad, Id.slice))
{
// Deal with $
result = resolveOpDollar(sc, ae, ie, &e0);
if (result.op == TOKerror)
return;
/* Rewrite a[i..j] as:
* a.opSlice(i, j)
*/
auto a = new Expressions();
if (ie)
{
a.push(ie.lwr);
a.push(ie.upr);
}
result = new DotIdExp(ae.loc, ae.e1, Id.slice);
result = new CallExp(ae.loc, result, a);
result = result.semantic(sc);
result = Expression.combine(e0, result);
return;
}
// Didn't find it. Forward to aliasthis
if (ad.aliasthis && t1b != ae.att1)
{
if (!ae.att1 && t1b.checkAliasThisRec())
ae.att1 = t1b;
//printf("att arr e1 = %s\n", this->e1->type->toChars());
/* Rewrite op(a[arguments]) as:
* op(a.aliasthis[arguments])
*/
ae.e1 = resolveAliasThis(sc, ae1save, true);
if (ae.e1)
continue;
}
break;
}
ae.e1 = ae1old; // recovery
ae.lengthVar = null;
}
/***********************************************
* This is mostly the same as UnaryExp::op_overload(), but has
* a different rewrite.
*/
override void visit(CastExp e)
{
//printf("CastExp::op_overload() (%s)\n", e->toChars());
AggregateDeclaration ad = isAggregate(e.e1.type);
if (ad)
{
Dsymbol fd = null;
/* Rewrite as:
* e1.opCast!(T)()
*/
fd = search_function(ad, Id._cast);
if (fd)
{
version (all)
{
// Backwards compatibility with D1 if opCast is a function, not a template
if (fd.isFuncDeclaration())
{
// Rewrite as: e1.opCast()
result = build_overload(e.loc, sc, e.e1, null, fd);
return;
}
}
auto tiargs = new Objects();
tiargs.push(e.to);
result = new DotTemplateInstanceExp(e.loc, e.e1, fd.ident, tiargs);
result = new CallExp(e.loc, result);
result = result.semantic(sc);
return;
}
// Didn't find it. Forward to aliasthis
if (ad.aliasthis)
{
/* Rewrite op(e1) as:
* op(e1.aliasthis)
*/
Expression e1 = new DotIdExp(e.loc, e.e1, ad.aliasthis.ident);
result = e.copy();
(cast(UnaExp)result).e1 = e1;
result = result.trySemantic(sc);
return;
}
}
}
override void visit(BinExp e)
{
//printf("BinExp::op_overload() (%s)\n", e->toChars());
Identifier id = opId(e);
Identifier id_r = opId_r(e);
Expressions args1;
Expressions args2;
int argsset = 0;
AggregateDeclaration ad1 = isAggregate(e.e1.type);
AggregateDeclaration ad2 = isAggregate(e.e2.type);
if (e.op == TOKassign && ad1 == ad2)
{
StructDeclaration sd = ad1.isStructDeclaration();
if (sd && !sd.hasIdentityAssign)
{
/* This is bitwise struct assignment. */
return;
}
}
Dsymbol s = null;
Dsymbol s_r = null;
version (all)
{
// the old D1 scheme
if (ad1 && id)
{
s = search_function(ad1, id);
}
if (ad2 && id_r)
{
s_r = search_function(ad2, id_r);
// Bugzilla 12778: If both x.opBinary(y) and y.opBinaryRight(x) found,
// and they are exactly same symbol, x.opBinary(y) should be preferred.
if (s_r && s_r == s)
s_r = null;
}
}
Objects* tiargs = null;
if (e.op == TOKplusplus || e.op == TOKminusminus)
{
// Bug4099 fix
if (ad1 && search_function(ad1, Id.opUnary))
return;
}
if (!s && !s_r && e.op != TOKequal && e.op != TOKnotequal && e.op != TOKassign && e.op != TOKplusplus && e.op != TOKminusminus)
{
/* Try the new D2 scheme, opBinary and opBinaryRight
*/
if (ad1)
{
s = search_function(ad1, Id.opBinary);
if (s && !s.isTemplateDeclaration())
{
e.e1.error("%s.opBinary isn't a template", e.e1.toChars());
result = new ErrorExp();
return;
}
}
if (ad2)
{
s_r = search_function(ad2, Id.opBinaryRight);
if (s_r && !s_r.isTemplateDeclaration())
{
e.e2.error("%s.opBinaryRight isn't a template", e.e2.toChars());
result = new ErrorExp();
return;
}
if (s_r && s_r == s) // Bugzilla 12778
s_r = null;
}
// Set tiargs, the template argument list, which will be the operator string
if (s || s_r)
{
id = Id.opBinary;
id_r = Id.opBinaryRight;
tiargs = opToArg(sc, e.op);
}
}
if (s || s_r)
{
/* Try:
* a.opfunc(b)
* b.opfunc_r(a)
* and see which is better.
*/
args1.setDim(1);
args1[0] = e.e1;
expandTuples(&args1);
args2.setDim(1);
args2[0] = e.e2;
expandTuples(&args2);
argsset = 1;
Match m;
m.last = MATCHnomatch;
if (s)
{
functionResolve(&m, s, e.loc, sc, tiargs, e.e1.type, &args2);
if (m.lastf && (m.lastf.errors || m.lastf.semantic3Errors))
{
result = new ErrorExp();
return;
}
}
FuncDeclaration lastf = m.lastf;
if (s_r)
{
functionResolve(&m, s_r, e.loc, sc, tiargs, e.e2.type, &args1);
if (m.lastf && (m.lastf.errors || m.lastf.semantic3Errors))
{
result = new ErrorExp();
return;
}
}
if (m.count > 1)
{
// Error, ambiguous
e.error("overloads %s and %s both match argument list for %s", m.lastf.type.toChars(), m.nextf.type.toChars(), m.lastf.toChars());
}
else if (m.last <= MATCHnomatch)
{
m.lastf = m.anyf;
if (tiargs)
goto L1;
}
if (e.op == TOKplusplus || e.op == TOKminusminus)
{
// Kludge because operator overloading regards e++ and e--
// as unary, but it's implemented as a binary.
// Rewrite (e1 ++ e2) as e1.postinc()
// Rewrite (e1 -- e2) as e1.postdec()
result = build_overload(e.loc, sc, e.e1, null, m.lastf ? m.lastf : s);
}
else if (lastf && m.lastf == lastf || !s_r && m.last <= MATCHnomatch)
{
// Rewrite (e1 op e2) as e1.opfunc(e2)
result = build_overload(e.loc, sc, e.e1, e.e2, m.lastf ? m.lastf : s);
}
else
{
// Rewrite (e1 op e2) as e2.opfunc_r(e1)
result = build_overload(e.loc, sc, e.e2, e.e1, m.lastf ? m.lastf : s_r);
}
return;
}
L1:
version (all)
{
// Retained for D1 compatibility
if (isCommutative(e.op) && !tiargs)
{
s = null;
s_r = null;
if (ad1 && id_r)
{
s_r = search_function(ad1, id_r);
}
if (ad2 && id)
{
s = search_function(ad2, id);
if (s && s == s_r) // Bugzilla 12778
s = null;
}
if (s || s_r)
{
/* Try:
* a.opfunc_r(b)
* b.opfunc(a)
* and see which is better.
*/
if (!argsset)
{
args1.setDim(1);
args1[0] = e.e1;
expandTuples(&args1);
args2.setDim(1);
args2[0] = e.e2;
expandTuples(&args2);
}
Match m;
m.last = MATCHnomatch;
if (s_r)
{
functionResolve(&m, s_r, e.loc, sc, tiargs, e.e1.type, &args2);
if (m.lastf && (m.lastf.errors || m.lastf.semantic3Errors))
{
result = new ErrorExp();
return;
}
}
FuncDeclaration lastf = m.lastf;
if (s)
{
functionResolve(&m, s, e.loc, sc, tiargs, e.e2.type, &args1);
if (m.lastf && (m.lastf.errors || m.lastf.semantic3Errors))
{
result = new ErrorExp();
return;
}
}
if (m.count > 1)
{
// Error, ambiguous
e.error("overloads %s and %s both match argument list for %s", m.lastf.type.toChars(), m.nextf.type.toChars(), m.lastf.toChars());
}
else if (m.last <= MATCHnomatch)
{
m.lastf = m.anyf;
}
if (lastf && m.lastf == lastf || !s && m.last <= MATCHnomatch)
{
// Rewrite (e1 op e2) as e1.opfunc_r(e2)
result = build_overload(e.loc, sc, e.e1, e.e2, m.lastf ? m.lastf : s_r);
}
else
{
// Rewrite (e1 op e2) as e2.opfunc(e1)
result = build_overload(e.loc, sc, e.e2, e.e1, m.lastf ? m.lastf : s);
}
// When reversing operands of comparison operators,
// need to reverse the sense of the op
switch (e.op)
{
case TOKlt:
e.op = TOKgt;
break;
case TOKgt:
e.op = TOKlt;
break;
case TOKle:
e.op = TOKge;
break;
case TOKge:
e.op = TOKle;
break;
default:
break;
}
return;
}
}
}
// Try alias this on first operand
if (ad1 && ad1.aliasthis && !(e.op == TOKassign && ad2 && ad1 == ad2)) // See Bugzilla 2943
{
/* Rewrite (e1 op e2) as:
* (e1.aliasthis op e2)
*/
if (e.att1 && e.e1.type == e.att1)
return;
//printf("att bin e1 = %s\n", this->e1->type->toChars());
Expression e1 = new DotIdExp(e.loc, e.e1, ad1.aliasthis.ident);
BinExp be = cast(BinExp)e.copy();
if (!be.att1 && e.e1.type.checkAliasThisRec())
be.att1 = e.e1.type;
be.e1 = e1;
result = be.trySemantic(sc);
return;
}
// Try alias this on second operand
/* Bugzilla 2943: make sure that when we're copying the struct, we don't
* just copy the alias this member
*/
if (ad2 && ad2.aliasthis && !(e.op == TOKassign && ad1 && ad1 == ad2))
{
/* Rewrite (e1 op e2) as:
* (e1 op e2.aliasthis)
*/
if (e.att2 && e.e2.type == e.att2)
return;
//printf("att bin e2 = %s\n", e->e2->type->toChars());
Expression e2 = new DotIdExp(e.loc, e.e2, ad2.aliasthis.ident);
BinExp be = cast(BinExp)e.copy();
if (!be.att2 && e.e2.type.checkAliasThisRec())
be.att2 = e.e2.type;
be.e2 = e2;
result = be.trySemantic(sc);
return;
}
return;
}
override void visit(EqualExp e)
{
//printf("EqualExp::op_overload() (%s)\n", e->toChars());
Type t1 = e.e1.type.toBasetype();
Type t2 = e.e2.type.toBasetype();
/* Check for array equality.
*/
if ((t1.ty == Tarray || t1.ty == Tsarray) &&
(t2.ty == Tarray || t2.ty == Tsarray))
{
bool needsDirectEq()
{
Type t1n = t1.nextOf().toBasetype();
Type t2n = t2.nextOf().toBasetype();
if (((t1n.ty == Tchar || t1n.ty == Twchar || t1n.ty == Tdchar) &&
(t2n.ty == Tchar || t2n.ty == Twchar || t2n.ty == Tdchar)) ||
(t1n.ty == Tvoid || t2n.ty == Tvoid))
{
return false;
}
if (t1n.constOf() != t2n.constOf())
return true;
Type t = t1n;
while (t.toBasetype().nextOf())
t = t.nextOf().toBasetype();
if (t.ty != Tstruct)
return false;
semanticTypeInfo(sc, t);
return (cast(TypeStruct)t).sym.hasIdentityEquals;
}
if (needsDirectEq())
{
/* Rewrite as:
* _ArrayEq(e1, e2)
*/
Expression eeq = new IdentifierExp(e.loc, Id._ArrayEq);
result = new CallExp(e.loc, eeq, e.e1, e.e2);
if (e.op == TOKnotequal)
result = new NotExp(e.loc, result);
result = result.trySemantic(sc); // for better error message
if (!result)
{
e.error("cannot compare %s and %s", t1.toChars(), t2.toChars());
result = new ErrorExp();
}
return;
}
}
/* Check for class equality with null literal or typeof(null).
*/
if (t1.ty == Tclass && e.e2.op == TOKnull ||
t2.ty == Tclass && e.e1.op == TOKnull)
{
e.error("use '%s' instead of '%s' when comparing with null",
Token.toChars(e.op == TOKequal ? TOKidentity : TOKnotidentity),
Token.toChars(e.op));
result = new ErrorExp();
return;
}
if (t1.ty == Tclass && t2.ty == Tnull ||
t1.ty == Tnull && t2.ty == Tclass)
{
// Comparing a class with typeof(null) should not call opEquals
return;
}
/* Check for class equality.
*/
if (t1.ty == Tclass && t2.ty == Tclass)
{
ClassDeclaration cd1 = t1.isClassHandle();
ClassDeclaration cd2 = t2.isClassHandle();
if (!(cd1.cpp || cd2.cpp))
{
/* Rewrite as:
* .object.opEquals(e1, e2)
*/
Expression e1x = e.e1;
Expression e2x = e.e2;
/* The explicit cast is necessary for interfaces,
* see Bugzilla 4088.
*/
Type to = ClassDeclaration.object.getType();
if (cd1.isInterfaceDeclaration())
e1x = new CastExp(e.loc, e.e1, t1.isMutable() ? to : to.constOf());
if (cd2.isInterfaceDeclaration())
e2x = new CastExp(e.loc, e.e2, t2.isMutable() ? to : to.constOf());
result = new IdentifierExp(e.loc, Id.empty);
result = new DotIdExp(e.loc, result, Id.object);
result = new DotIdExp(e.loc, result, Id.eq);
result = new CallExp(e.loc, result, e1x, e2x);
if (e.op == TOKnotequal)
result = new NotExp(e.loc, result);
result = result.semantic(sc);
return;
}
}
result = compare_overload(e, sc, Id.eq);
if (result)
{
if (result.op == TOKcall && e.op == TOKnotequal)
{
result = new NotExp(result.loc, result);
result = result.semantic(sc);
}
return;
}
/* Check for pointer equality.
*/
if (t1.ty == Tpointer || t2.ty == Tpointer)
{
/* Rewrite:
* ptr1 == ptr2
* as:
* ptr1 is ptr2
*
* This is just a rewriting for deterministic AST representation
* as the backend input.
*/
auto op2 = e.op == TOKequal ? TOKidentity : TOKnotidentity;
result = new IdentityExp(op2, e.loc, e.e1, e.e2);
result = result.semantic(sc);
return;
}
/* Check for struct equality without opEquals.
*/
if (t1.ty == Tstruct && t2.ty == Tstruct)
{
auto sd = (cast(TypeStruct)t1).sym;
if (sd != (cast(TypeStruct)t2).sym)
return;
import ddmd.clone : needOpEquals;
if (!needOpEquals(sd))
{
// Use bitwise equality.
auto op2 = e.op == TOKequal ? TOKidentity : TOKnotidentity;
result = new IdentityExp(op2, e.loc, e.e1, e.e2);
result = result.semantic(sc);
return;
}
/* Do memberwise equality.
* Rewrite:
* e1 == e2
* as:
* e1.tupleof == e2.tupleof
*
* If sd is a nested struct, and if it's nested in a class, it will
* also compare the parent class's equality. Otherwise, compares
* the identity of parent context through void*.
*/
if (e.att1 && t1 == e.att1) return;
if (e.att2 && t2 == e.att2) return;
e = cast(EqualExp)e.copy();
if (!e.att1) e.att1 = t1;
if (!e.att2) e.att2 = t2;
e.e1 = new DotIdExp(e.loc, e.e1, Id._tupleof);
e.e2 = new DotIdExp(e.loc, e.e2, Id._tupleof);
result = e.semantic(sc);
/* Bugzilla 15292, if the rewrite result is same with the original,
* the equality is unresolvable because it has recursive definition.
*/
if (result.op == e.op &&
(cast(EqualExp)result).e1.type.toBasetype() == t1)
{
e.error("cannot compare %s because its auto generated member-wise equality has recursive definition",
t1.toChars());
result = new ErrorExp();
}
return;
}
/* Check for tuple equality.
*/
if (e.e1.op == TOKtuple && e.e2.op == TOKtuple)
{
auto tup1 = cast(TupleExp)e.e1;
auto tup2 = cast(TupleExp)e.e2;
size_t dim = tup1.exps.dim;
if (dim != tup2.exps.dim)
{
e.error("mismatched tuple lengths, %d and %d",
cast(int)dim, cast(int)tup2.exps.dim);
result = new ErrorExp();
return;
}
if (dim == 0)
{
// zero-length tuple comparison should always return true or false.
result = new IntegerExp(e.loc, (e.op == TOKequal), Type.tbool);
}
else
{
for (size_t i = 0; i < dim; i++)
{
auto ex1 = (*tup1.exps)[i];
auto ex2 = (*tup2.exps)[i];
auto eeq = new EqualExp(e.op, e.loc, ex1, ex2);
eeq.att1 = e.att1;
eeq.att2 = e.att2;
if (!result)
result = eeq;
else if (e.op == TOKequal)
result = new AndAndExp(e.loc, result, eeq);
else
result = new OrOrExp(e.loc, result, eeq);
}
assert(result);
}
result = Expression.combine(Expression.combine(tup1.e0, tup2.e0), result);
result = result.semantic(sc);
return;
}
}
override void visit(CmpExp e)
{
//printf("CmpExp::op_overload() (%s)\n", e->toChars());
result = compare_overload(e, sc, Id.cmp);
}
/*********************************
* Operator overloading for op=
*/
override void visit(BinAssignExp e)
{
//printf("BinAssignExp::op_overload() (%s)\n", e->toChars());
if (e.e1.op == TOKarray)
{
ArrayExp ae = cast(ArrayExp)e.e1;
ae.e1 = ae.e1.semantic(sc);
ae.e1 = resolveProperties(sc, ae.e1);
Expression ae1old = ae.e1;
const(bool) maybeSlice = (ae.arguments.dim == 0 || ae.arguments.dim == 1 && (*ae.arguments)[0].op == TOKinterval);
IntervalExp ie = null;
if (maybeSlice && ae.arguments.dim)
{
assert((*ae.arguments)[0].op == TOKinterval);
ie = cast(IntervalExp)(*ae.arguments)[0];
}
while (true)
{
if (ae.e1.op == TOKerror)
{
result = ae.e1;
return;
}
Expression e0 = null;
Expression ae1save = ae.e1;
ae.lengthVar = null;
Type t1b = ae.e1.type.toBasetype();
AggregateDeclaration ad = isAggregate(t1b);
if (!ad)
break;
if (search_function(ad, Id.opIndexOpAssign))
{
// Deal with $
result = resolveOpDollar(sc, ae, &e0);
if (!result) // (a[i..j] op= e2) might be: a.opSliceOpAssign!(op)(e2, i, j)
goto Lfallback;
if (result.op == TOKerror)
return;
result = e.e2.semantic(sc);
if (result.op == TOKerror)
return;
e.e2 = result;
/* Rewrite a[arguments] op= e2 as:
* a.opIndexOpAssign!(op)(e2, arguments)
*/
Expressions* a = ae.arguments.copy();
a.insert(0, e.e2);
Objects* tiargs = opToArg(sc, e.op);
result = new DotTemplateInstanceExp(e.loc, ae.e1, Id.opIndexOpAssign, tiargs);
result = new CallExp(e.loc, result, a);
if (maybeSlice) // (a[] op= e2) might be: a.opSliceOpAssign!(op)(e2)
result = result.trySemantic(sc);
else
result = result.semantic(sc);
if (result)
{
result = Expression.combine(e0, result);
return;
}
}
Lfallback:
if (maybeSlice && search_function(ad, Id.opSliceOpAssign))
{
// Deal with $
result = resolveOpDollar(sc, ae, ie, &e0);
if (result.op == TOKerror)
return;
result = e.e2.semantic(sc);
if (result.op == TOKerror)
return;
e.e2 = result;
/* Rewrite (a[i..j] op= e2) as:
* a.opSliceOpAssign!(op)(e2, i, j)
*/
auto a = new Expressions();
a.push(e.e2);
if (ie)
{
a.push(ie.lwr);
a.push(ie.upr);
}
Objects* tiargs = opToArg(sc, e.op);
result = new DotTemplateInstanceExp(e.loc, ae.e1, Id.opSliceOpAssign, tiargs);
result = new CallExp(e.loc, result, a);
result = result.semantic(sc);
result = Expression.combine(e0, result);
return;
}
// Didn't find it. Forward to aliasthis
if (ad.aliasthis && t1b != ae.att1)
{
if (!ae.att1 && t1b.checkAliasThisRec())
ae.att1 = t1b;
/* Rewrite (a[arguments] op= e2) as:
* a.aliasthis[arguments] op= e2
*/
ae.e1 = resolveAliasThis(sc, ae1save, true);
if (ae.e1)
continue;
}
break;
}
ae.e1 = ae1old; // recovery
ae.lengthVar = null;
}
result = e.binSemanticProp(sc);
if (result)
return;
// Don't attempt 'alias this' if an error occured
if (e.e1.type.ty == Terror || e.e2.type.ty == Terror)
{
result = new ErrorExp();
return;
}
Identifier id = opId(e);
Expressions args2;
AggregateDeclaration ad1 = isAggregate(e.e1.type);
Dsymbol s = null;
version (all)
{
// the old D1 scheme
if (ad1 && id)
{
s = search_function(ad1, id);
}
}
Objects* tiargs = null;
if (!s)
{
/* Try the new D2 scheme, opOpAssign
*/
if (ad1)
{
s = search_function(ad1, Id.opOpAssign);
if (s && !s.isTemplateDeclaration())
{
e.error("%s.opOpAssign isn't a template", e.e1.toChars());
result = new ErrorExp();
return;
}
}
// Set tiargs, the template argument list, which will be the operator string
if (s)
{
id = Id.opOpAssign;
tiargs = opToArg(sc, e.op);
}
}
if (s)
{
/* Try:
* a.opOpAssign(b)
*/
args2.setDim(1);
args2[0] = e.e2;
expandTuples(&args2);
Match m;
m.last = MATCHnomatch;
if (s)
{
functionResolve(&m, s, e.loc, sc, tiargs, e.e1.type, &args2);
if (m.lastf && (m.lastf.errors || m.lastf.semantic3Errors))
{
result = new ErrorExp();
return;
}
}
if (m.count > 1)
{
// Error, ambiguous
e.error("overloads %s and %s both match argument list for %s", m.lastf.type.toChars(), m.nextf.type.toChars(), m.lastf.toChars());
}
else if (m.last <= MATCHnomatch)
{
m.lastf = m.anyf;
if (tiargs)
goto L1;
}
// Rewrite (e1 op e2) as e1.opOpAssign(e2)
result = build_overload(e.loc, sc, e.e1, e.e2, m.lastf ? m.lastf : s);
return;
}
L1:
// Try alias this on first operand
if (ad1 && ad1.aliasthis)
{
/* Rewrite (e1 op e2) as:
* (e1.aliasthis op e2)
*/
if (e.att1 && e.e1.type == e.att1)
return;
//printf("att %s e1 = %s\n", Token::toChars(e->op), e->e1->type->toChars());
Expression e1 = new DotIdExp(e.loc, e.e1, ad1.aliasthis.ident);
BinExp be = cast(BinExp)e.copy();
if (!be.att1 && e.e1.type.checkAliasThisRec())
be.att1 = e.e1.type;
be.e1 = e1;
result = be.trySemantic(sc);
return;
}
// Try alias this on second operand
AggregateDeclaration ad2 = isAggregate(e.e2.type);
if (ad2 && ad2.aliasthis)
{
/* Rewrite (e1 op e2) as:
* (e1 op e2.aliasthis)
*/
if (e.att2 && e.e2.type == e.att2)
return;
//printf("att %s e2 = %s\n", Token::toChars(e->op), e->e2->type->toChars());
Expression e2 = new DotIdExp(e.loc, e.e2, ad2.aliasthis.ident);
BinExp be = cast(BinExp)e.copy();
if (!be.att2 && e.e2.type.checkAliasThisRec())
be.att2 = e.e2.type;
be.e2 = e2;
result = be.trySemantic(sc);
return;
}
}
}
scope OpOverload v = new OpOverload(sc);
e.accept(v);
return v.result;
}
/******************************************
* Common code for overloading of EqualExp and CmpExp
*/
extern (C++) Expression compare_overload(BinExp e, Scope* sc, Identifier id)
{
//printf("BinExp::compare_overload(id = %s) %s\n", id->toChars(), e->toChars());
AggregateDeclaration ad1 = isAggregate(e.e1.type);
AggregateDeclaration ad2 = isAggregate(e.e2.type);
Dsymbol s = null;
Dsymbol s_r = null;
if (ad1)
{
s = search_function(ad1, id);
}
if (ad2)
{
s_r = search_function(ad2, id);
if (s == s_r)
s_r = null;
}
Objects* tiargs = null;
if (s || s_r)
{
/* Try:
* a.opEquals(b)
* b.opEquals(a)
* and see which is better.
*/
Expressions args1;
Expressions args2;
args1.setDim(1);
args1[0] = e.e1;
expandTuples(&args1);
args2.setDim(1);
args2[0] = e.e2;
expandTuples(&args2);
Match m;
m.last = MATCHnomatch;
if (0 && s && s_r)
{
printf("s : %s\n", s.toPrettyChars());
printf("s_r: %s\n", s_r.toPrettyChars());
}
if (s)
{
functionResolve(&m, s, e.loc, sc, tiargs, e.e1.type, &args2);
if (m.lastf && (m.lastf.errors || m.lastf.semantic3Errors))
return new ErrorExp();
}
FuncDeclaration lastf = m.lastf;
int count = m.count;
if (s_r)
{
functionResolve(&m, s_r, e.loc, sc, tiargs, e.e2.type, &args1);
if (m.lastf && (m.lastf.errors || m.lastf.semantic3Errors))
return new ErrorExp();
}
if (m.count > 1)
{
/* The following if says "not ambiguous" if there's one match
* from s and one from s_r, in which case we pick s.
* This doesn't follow the spec, but is a workaround for the case
* where opEquals was generated from templates and we cannot figure
* out if both s and s_r came from the same declaration or not.
* The test case is:
* import std.typecons;
* void main() {
* assert(tuple("has a", 2u) == tuple("has a", 1));
* }
*/
if (!(m.lastf == lastf && m.count == 2 && count == 1))
{
// Error, ambiguous
e.error("overloads %s and %s both match argument list for %s", m.lastf.type.toChars(), m.nextf.type.toChars(), m.lastf.toChars());
}
}
else if (m.last <= MATCHnomatch)
{
m.lastf = m.anyf;
}
Expression result;
if (lastf && m.lastf == lastf || !s_r && m.last <= MATCHnomatch)
{
// Rewrite (e1 op e2) as e1.opfunc(e2)
result = build_overload(e.loc, sc, e.e1, e.e2, m.lastf ? m.lastf : s);
}
else
{
// Rewrite (e1 op e2) as e2.opfunc_r(e1)
result = build_overload(e.loc, sc, e.e2, e.e1, m.lastf ? m.lastf : s_r);
// When reversing operands of comparison operators,
// need to reverse the sense of the op
switch (e.op)
{
case TOKlt:
e.op = TOKgt;
break;
case TOKgt:
e.op = TOKlt;
break;
case TOKle:
e.op = TOKge;
break;
case TOKge:
e.op = TOKle;
break;
default:
break;
}
}
return result;
}
// Try alias this on first operand
if (ad1 && ad1.aliasthis)
{
/* Rewrite (e1 op e2) as:
* (e1.aliasthis op e2)
*/
if (e.att1 && e.e1.type == e.att1)
return null;
//printf("att cmp_bin e1 = %s\n", e->e1->type->toChars());
Expression e1 = new DotIdExp(e.loc, e.e1, ad1.aliasthis.ident);
BinExp be = cast(BinExp)e.copy();
if (!be.att1 && e.e1.type.checkAliasThisRec())
be.att1 = e.e1.type;
be.e1 = e1;
return be.trySemantic(sc);
}
// Try alias this on second operand
if (ad2 && ad2.aliasthis)
{
/* Rewrite (e1 op e2) as:
* (e1 op e2.aliasthis)
*/
if (e.att2 && e.e2.type == e.att2)
return null;
//printf("att cmp_bin e2 = %s\n", e->e2->type->toChars());
Expression e2 = new DotIdExp(e.loc, e.e2, ad2.aliasthis.ident);
BinExp be = cast(BinExp)e.copy();
if (!be.att2 && e.e2.type.checkAliasThisRec())
be.att2 = e.e2.type;
be.e2 = e2;
return be.trySemantic(sc);
}
return null;
}
/***********************************
* Utility to build a function call out of this reference and argument.
*/
extern (C++) Expression build_overload(Loc loc, Scope* sc, Expression ethis, Expression earg, Dsymbol d)
{
assert(d);
Expression e;
//printf("build_overload(id = '%s')\n", id->toChars());
//earg->print();
//earg->type->print();
Declaration decl = d.isDeclaration();
if (decl)
e = new DotVarExp(loc, ethis, decl, false);
else
e = new DotIdExp(loc, ethis, d.ident);
e = new CallExp(loc, e, earg);
e = e.semantic(sc);
return e;
}
/***************************************
* Search for function funcid in aggregate ad.
*/
extern (C++) Dsymbol search_function(ScopeDsymbol ad, Identifier funcid)
{
Dsymbol s = ad.search(Loc(), funcid);
if (s)
{
//printf("search_function: s = '%s'\n", s->kind());
Dsymbol s2 = s.toAlias();
//printf("search_function: s2 = '%s'\n", s2->kind());
FuncDeclaration fd = s2.isFuncDeclaration();
if (fd && fd.type.ty == Tfunction)
return fd;
TemplateDeclaration td = s2.isTemplateDeclaration();
if (td)
return td;
}
return null;
}
extern (C++) bool inferAggregate(ForeachStatement fes, Scope* sc, ref Dsymbol sapply)
{
//printf("inferAggregate(%s)\n", fes.aggr.toChars());
Identifier idapply = (fes.op == TOKforeach) ? Id.apply : Id.applyReverse;
Identifier idfront = (fes.op == TOKforeach) ? Id.Ffront : Id.Fback;
int sliced = 0;
Type tab;
Type att = null;
Expression aggr = fes.aggr;
AggregateDeclaration ad;
while (1)
{
aggr = aggr.semantic(sc);
aggr = resolveProperties(sc, aggr);
aggr = aggr.optimize(WANTvalue);
if (!aggr.type || aggr.op == TOKerror)
goto Lerr;
tab = aggr.type.toBasetype();
switch (tab.ty)
{
case Tarray:
case Tsarray:
case Ttuple:
case Taarray:
break;
case Tclass:
ad = (cast(TypeClass)tab).sym;
goto Laggr;
case Tstruct:
ad = (cast(TypeStruct)tab).sym;
goto Laggr;
Laggr:
if (!sliced)
{
sapply = search_function(ad, idapply);
if (sapply)
{
// opApply aggregate
break;
}
if (fes.aggr.op != TOKtype)
{
Expression rinit = new ArrayExp(aggr.loc, fes.aggr);
rinit = rinit.trySemantic(sc);
if (rinit) // if application of [] succeeded
{
aggr = rinit;
sliced = 1;
continue;
}
}
}
if (ad.search(Loc(), idfront))
{
// range aggregate
break;
}
if (ad.aliasthis)
{
if (att == tab)
goto Lerr;
if (!att && tab.checkAliasThisRec())
att = tab;
aggr = resolveAliasThis(sc, aggr);
continue;
}
goto Lerr;
case Tdelegate:
if (aggr.op == TOKdelegate)
{
sapply = (cast(DelegateExp)aggr).func;
}
break;
case Terror:
break;
default:
goto Lerr;
}
break;
}
fes.aggr = aggr;
return true;
Lerr:
return false;
}
/*****************************************
* Given array of parameters and an aggregate type,
* if any of the parameter types are missing, attempt to infer
* them from the aggregate type.
*/
extern (C++) bool inferApplyArgTypes(ForeachStatement fes, Scope* sc, ref Dsymbol sapply)
{
if (!fes.parameters || !fes.parameters.dim)
return false;
if (sapply) // prefer opApply
{
for (size_t u = 0; u < fes.parameters.dim; u++)
{
Parameter p = (*fes.parameters)[u];
if (p.type)
{
p.type = p.type.semantic(fes.loc, sc);
p.type = p.type.addStorageClass(p.storageClass);
}
}
Expression ethis;
Type tab = fes.aggr.type.toBasetype();
if (tab.ty == Tclass || tab.ty == Tstruct)
ethis = fes.aggr;
else
{
assert(tab.ty == Tdelegate && fes.aggr.op == TOKdelegate);
ethis = (cast(DelegateExp)fes.aggr).e1;
}
/* Look for like an
* int opApply(int delegate(ref Type [, ...]) dg);
* overload
*/
FuncDeclaration fd = sapply.isFuncDeclaration();
if (fd)
{
sapply = inferApplyArgTypesX(ethis, fd, fes.parameters);
}
return sapply !is null;
}
/* Return if no parameters need types.
*/
for (size_t u = 0; u < fes.parameters.dim; u++)
{
Parameter p = (*fes.parameters)[u];
if (!p.type)
break;
}
AggregateDeclaration ad;
Parameter p = (*fes.parameters)[0];
Type taggr = fes.aggr.type;
assert(taggr);
Type tab = taggr.toBasetype();
switch (tab.ty)
{
case Tarray:
case Tsarray:
case Ttuple:
if (fes.parameters.dim == 2)
{
if (!p.type)
{
p.type = Type.tsize_t; // key type
p.type = p.type.addStorageClass(p.storageClass);
}
p = (*fes.parameters)[1];
}
if (!p.type && tab.ty != Ttuple)
{
p.type = tab.nextOf(); // value type
p.type = p.type.addStorageClass(p.storageClass);
}
break;
case Taarray:
{
TypeAArray taa = cast(TypeAArray)tab;
if (fes.parameters.dim == 2)
{
if (!p.type)
{
p.type = taa.index; // key type
p.type = p.type.addStorageClass(p.storageClass);
if (p.storageClass & STCref) // key must not be mutated via ref
p.type = p.type.addMod(MODconst);
}
p = (*fes.parameters)[1];
}
if (!p.type)
{
p.type = taa.next; // value type
p.type = p.type.addStorageClass(p.storageClass);
}
break;
}
case Tclass:
ad = (cast(TypeClass)tab).sym;
goto Laggr;
case Tstruct:
ad = (cast(TypeStruct)tab).sym;
goto Laggr;
Laggr:
if (fes.parameters.dim == 1)
{
if (!p.type)
{
/* Look for a front() or back() overload
*/
Identifier id = (fes.op == TOKforeach) ? Id.Ffront : Id.Fback;
Dsymbol s = ad.search(Loc(), id);
FuncDeclaration fd = s ? s.isFuncDeclaration() : null;
if (fd)
{
// Resolve inout qualifier of front type
p.type = fd.type.nextOf();
if (p.type)
{
p.type = p.type.substWildTo(tab.mod);
p.type = p.type.addStorageClass(p.storageClass);
}
}
else if (s && s.isTemplateDeclaration())
{
}
else if (s && s.isDeclaration())
p.type = (cast(Declaration)s).type;
else
break;
}
break;
}
break;
case Tdelegate:
{
if (!inferApplyArgTypesY(cast(TypeFunction)tab.nextOf(), fes.parameters))
return false;
break;
}
default:
break; // ignore error, caught later
}
return true;
}
extern (C++) static Dsymbol inferApplyArgTypesX(Expression ethis, FuncDeclaration fstart, Parameters* parameters)
{
MOD mod = ethis.type.mod;
MATCH match = MATCHnomatch;
FuncDeclaration fd_best;
FuncDeclaration fd_ambig;
overloadApply(fstart, (Dsymbol s)
{
auto f = s.isFuncDeclaration();
if (!f)
return 0;
auto tf = cast(TypeFunction)f.type;
MATCH m = MATCHexact;
if (f.isThis())
{
if (!MODimplicitConv(mod, tf.mod))
m = MATCHnomatch;
else if (mod != tf.mod)
m = MATCHconst;
}
if (!inferApplyArgTypesY(tf, parameters, 1))
m = MATCHnomatch;
if (m > match)
{
fd_best = f;
fd_ambig = null;
match = m;
}
else if (m == match)
fd_ambig = f;
return 0;
});
if (fd_best)
{
inferApplyArgTypesY(cast(TypeFunction)fd_best.type, parameters);
if (fd_ambig)
{
.error(ethis.loc, "%s.%s matches more than one declaration:\n%s: %s\nand:\n%s: %s",
ethis.toChars(), fstart.ident.toChars(),
fd_best.loc.toChars(), fd_best.type.toChars(),
fd_ambig.loc.toChars(), fd_ambig.type.toChars());
fd_best = null;
}
}
return fd_best;
}
/******************************
* Infer parameters from type of function.
* Returns:
* 1 match for this function
* 0 no match for this function
*/
extern (C++) static int inferApplyArgTypesY(TypeFunction tf, Parameters* parameters, int flags = 0)
{
size_t nparams;
Parameter p;
if (Parameter.dim(tf.parameters) != 1)
goto Lnomatch;
p = Parameter.getNth(tf.parameters, 0);
if (p.type.ty != Tdelegate)
goto Lnomatch;
tf = cast(TypeFunction)p.type.nextOf();
assert(tf.ty == Tfunction);
/* We now have tf, the type of the delegate. Match it against
* the parameters, filling in missing parameter types.
*/
nparams = Parameter.dim(tf.parameters);
if (nparams == 0 || tf.varargs)
goto Lnomatch; // not enough parameters
if (parameters.dim != nparams)
goto Lnomatch; // not enough parameters
for (size_t u = 0; u < nparams; u++)
{
p = (*parameters)[u];
Parameter param = Parameter.getNth(tf.parameters, u);
if (p.type)
{
if (!p.type.equals(param.type))
goto Lnomatch;
}
else if (!flags)
{
p.type = param.type;
p.type = p.type.addStorageClass(p.storageClass);
}
}
return 1;
Lnomatch:
return 0;
}
|
D
|
/** DGui project file.
Copyright: Trogu Antonio Davide 2011-2013
License: $(HTTP boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: Trogu Antonio Davide
*/
module dguihub.layout.layoutcontrol;
import dguihub.core.interfaces.ilayoutcontrol;
public import dguihub.core.controls.containercontrol;
class ResizeManager : Handle!(HDWP), IDisposable {
public this(int c) {
if (c > 1) {
this._handle = BeginDeferWindowPos(c);
}
}
public ~this() {
this.dispose();
}
public void dispose() {
if (this._handle) {
EndDeferWindowPos(this._handle);
}
}
public void setPosition(Control ctrl, Point pt) {
this.setPosition(ctrl, pt.x, pt.y);
}
public void setPosition(Control ctrl, int x, int y) {
this.resizeControl(ctrl, x, y, 0, 0, PositionSpecified.position);
}
public void setSize(Control ctrl, Size sz) {
this.setSize(ctrl, sz.width, sz.height);
}
public void setSize(Control ctrl, int w, int h) {
this.resizeControl(ctrl, 0, 0, w, h, PositionSpecified.size);
}
public void resizeControl(Control ctrl, Rect r, PositionSpecified ps = PositionSpecified.all) {
this.resizeControl(ctrl, r.x, r.y, r.width, r.height, ps);
}
public void resizeControl(Control ctrl, int x, int y, int w, int h,
PositionSpecified ps = PositionSpecified.all) {
uint wpf = SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOOWNERZORDER | SWP_NOMOVE | SWP_NOSIZE;
if (ps !is PositionSpecified.all) {
if (ps is PositionSpecified.position) {
wpf &= ~SWP_NOMOVE;
} else //if(ps is PositionSpecified.size)
{
wpf &= ~SWP_NOSIZE;
}
} else {
wpf &= ~(SWP_NOMOVE | SWP_NOSIZE);
}
if (this._handle) {
this._handle = DeferWindowPos(this._handle, ctrl.handle, null, x, y, w, h, wpf);
} else {
SetWindowPos(ctrl.handle, null, x, y, w, h, wpf); //Bounds updated in WM_WINDOWPOSCHANGED
}
}
}
abstract class LayoutControl : ContainerControl, ILayoutControl {
public override void show() {
super.show();
this.updateLayout();
}
public void updateLayout() {
if (this._childControls && this.created && this.visible) {
scope ResizeManager rm = new ResizeManager(this._childControls.length);
Rect da = Rect(nullPoint, this.clientSize);
foreach (Control c; this._childControls) {
if (da.empty) {
rm.dispose();
break;
}
if (c.dock !is DockStyle.none && c.visible && c.created) {
switch (c.dock) {
case DockStyle.left:
//c.bounds = Rect(da.left, da.top, c.width, da.height);
rm.resizeControl(c, da.left, da.top, c.width, da.height);
da.left += c.width;
break;
case DockStyle.top:
//c.bounds = Rect(da.left, da.top, da.width, c.height);
rm.resizeControl(c, da.left, da.top, da.width, c.height);
da.top += c.height;
break;
case DockStyle.right:
//c.bounds = Rect(da.right - c.width, da.top, c.width, da.height);
rm.resizeControl(c, da.right - c.width,
da.top, c.width, da.height);
da.right -= c.width;
break;
case DockStyle.bottom:
//c.bounds = Rect(c, da.left, da.bottom - c.height, da.width, c.height);
rm.resizeControl(c, da.left,
da.bottom - c.height, da.width, c.height);
da.bottom -= c.height;
break;
case DockStyle.fill:
//c.bounds = da;
rm.resizeControl(c, da);
da.size = nullSize;
break;
default:
rm.dispose();
assert(false, "Unknown DockStyle");
//break;
}
}
}
}
}
protected override void onDGuiMessage(ref Message m) {
switch (m.msg) {
case DGUI_DOLAYOUT:
this.updateLayout();
break;
case DGUI_CHILDCONTROLCREATED: {
Control c = winCast!(Control)(m.wParam);
if (c.dock !is DockStyle.none && c.visible) {
this.updateLayout();
}
}
break;
default:
break;
}
super.onDGuiMessage(m);
}
protected override void onHandleCreated(EventArgs e) {
super.onHandleCreated(e);
this.updateLayout();
}
protected override void onResize(EventArgs e) {
this.updateLayout();
InvalidateRect(this._handle, null, true);
UpdateWindow(this._handle);
super.onResize(e);
}
}
|
D
|
/**
* Authors: The D DBI project
*
* Version: 0.2.5
*
* Copyright: BSD license
*/
module dbi.msql.all;
version (build) {
pragma (ignore);
}
public import dbi.msql.MsqlDatabase,
dbi.msql.MsqlResult,
dbi.all;
|
D
|
<?xml version="1.0" encoding="ASCII" standalone="no"?>
<di:SashWindowsMngr xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmi:version="2.0">
<pageList>
<availablePage>
<emfPageIdentifier href="VAR_17_MobileMedia-5824143117.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</availablePage>
</pageList>
<sashModel currentSelection="//@sashModel/@windows.0/@children.0">
<windows>
<children xsi:type="di:TabFolder">
<children>
<emfPageIdentifier href="VAR_17_MobileMedia-5824143117.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</children>
</children>
</windows>
</sashModel>
</di:SashWindowsMngr>
|
D
|
module scid.matrix;
import scid.internal.assertmessages;
import scid.ops.common;
import scid.storage.generalmat;
import scid.storage.generalmatview;
import scid.storage.triangular;
import scid.storage.symmetric;
import scid.storage.diagonalmat;
import scid.storage.cowmatrix;
import scid.storage.external;
import scid.storage.constant;
import scid.common.traits;
import scid.common.meta;
import std.algorithm, std.range, std.conv;
enum MatrixTriangle {
Upper, Lower
}
enum StorageOrder {
RowMajor, ColumnMajor
}
enum MatrixStorageType {
Virtual, General,
Triangular, Symmetric, Hermitian,
GeneralBand, SymmetricBand, HermitianBand,
Diagonal
};
template storageOrderOf( M ) {
static if( is( typeof(M.storageOrder) ) )
enum storageOrderOf = M.storageOrder;
else static if( is( M E : RefCounted!(E,a), uint a ) )
enum storageOrderOf = storageOrderOf!E;
else {
static assert( false, M.stringof ~ " hasn't got a storage order. ");
}
}
template storageTypeOf( M ) {
static if( is( typeof(M.storageType) ) )
enum storageTypeOf = M.storageType;
else static if( is( M E : RefCounted!(E,a), uint a ) )
enum storageTypeOf = storageTypeOf!E;
else {
static assert( false, M.stringof ~ " hasn't got a storage type. ");
}
}
/**
This template allows for the creation of SciD's general (i.e. not triangular,
symmetric, banded, etc.) matrix storage type. A SciD Matrix is a
two-dimensional array-like object that has reference-counted copy-on-write
semantics. It can be used in SciD expressions. StorageOrder controls whether
the elements within each column are stored at consecutive memory addresses
(ColumnMajor) or the elements within each row are stored at consecutive memory
addresses (RowMajor).
Examples:
---
// Create a SciD matrix from an array-of-arrays.
double[][] arrayOfArrays = [[1.0, 2.0], [3.0, 4.0]];
auto mat1 = Matrix!double(arrayOfArrays);
mat1[0, 0] = 42;
assert(arrayOfArrays[0][0] == 1); // arrayOfArrays is copied.
auto mat2 = mat1;
mat2[1, 1] = 84;
assert(mat1[1, 1] == 4); // Value semantics.
// Create a SciD matrix from a type, a number of rows and a number of
// columns.
auto mat3 = Matrix!float(8, 4); // 8x4 matrix of floats.
---
*/
template Matrix( ElementOrStorage, StorageOrder order_ = StorageOrder.ColumnMajor )
if( isScalar!(BaseElementType!ElementOrStorage) ) {
static if( isScalar!ElementOrStorage )
alias BasicMatrix!( GeneralMatrixStorage!(ElementOrStorage,order_) ) Matrix;
else
alias BasicMatrix!( ElementOrStorage ) Matrix;
}
/**
Convenience function for creating a matrix from an array of arrays.
Examples:
---
double[][] arrayOfArrays = [[1.0, 2.0], [3.0, 4.0]];
// The following are equivalent:
auto mat1 = matrix(arrayOfArrays);
auto mat2 = Matrix!double(arrayOfArrays);
---
*/
Matrix!( T, order )
matrix( T, StorageOrder order = StorageOrder.ColumnMajor )
( T[][] arrayOfArrays ) {
return typeof(return)(arrayOfArrays);
}
unittest {
// Test examples.
// Create a SciD matrix from an array-of-arrays.
double[][] arrayOfArrays = [[1.0, 2.0], [3.0, 4.0]];
auto mat1 = matrix(arrayOfArrays);
mat1[0, 0] = 42;
assert(arrayOfArrays[0][0] == 1); // arrayOfArrays is copied.
auto mat2 = mat1;
mat2[1, 1] = 84;
assert(mat1[1, 1] == 4); // Value semantics.
// Create a SciD matrix from a type, a number of rows and a number of
// columns.
auto mat3 = Matrix!float(8, 4); // 8x4 matrix of floats.
}
template MatrixView( ElementOrStorageType, StorageOrder order_ = StorageOrder.ColumnMajor ) {
alias Matrix!( ElementOrStorageType, order_ ).View MatrixView;
}
template TriangularMatrix( ElementOrArray, MatrixTriangle tri_ = MatrixTriangle.Upper, StorageOrder order_ = StorageOrder.ColumnMajor )
if( isScalar!(BaseElementType!ElementOrArray) ) {
alias BasicMatrix!( TriangularStorage!(ElementOrArray,tri_,order_) ) TriangularMatrix;
}
template SymmetricMatrix( ElementOrArray, MatrixTriangle tri_ = MatrixTriangle.Upper, StorageOrder order_ = StorageOrder.ColumnMajor )
if( isScalar!(BaseElementType!ElementOrArray) ) {
alias BasicMatrix!( SymmetricStorage!(ElementOrArray,tri_,order_) ) SymmetricMatrix;
}
template DiagonalMatrix( ElementOrArray )
if( isScalar!(BaseElementType!ElementOrArray) ) {
alias BasicMatrix!( DiagonalMatrixStorage!(ElementOrArray ) ) DiagonalMatrix;
}
template ExternalMatrixView( ElementOrContainer, StorageOrder order_ = StorageOrder.ColumnMajor )
if( isScalar!( BaseElementType!ElementOrContainer ) ) {
static if( isScalar!ElementOrContainer ) {
alias BasicMatrix!(
BasicGeneralMatrixViewStorage!(
ExternalMatrix!( ElementOrContainer, order_,
CowMatrixRef!( ElementOrContainer, order_ )
)
)
) ExternalMatrixView;
} else {
alias BasicMatrix!(
BasicGeneralMatrixViewStorage!(
ExternalMatrix!(
BaseElementType!ElementOrContainer,
storageOrderOf!ElementOrContainer,
ElementOrContainer
)
)
) ExternalMatrixView;
}
}
struct BasicMatrix( Storage_ ) {
/** The type of the matrix elements. The same as the element type of the storage */
alias BaseElementType!Storage_ ElementType;
/** The wrapped storage type. */
alias Storage_ Storage;
/** The storage order (StorageOrder.RowMajor or StorageOrder.ColumnMajor). */
static if( is( typeof(storageOrderOf!Storage) ) )
alias storageOrderOf!Storage storageOrder;
else
alias StorageOrder.ColumnMajor storageOrder;
/** The type of the vector view of a matrix row (i.e. the return type of row(i)). */
alias typeof(Storage.init.row(0)) RowView;
/** The type of the vector view of a matrix column (i.e. the return type of column(j)). */
alias typeof(Storage.init.column(0)) ColumnView;
/** The type of a view of the storage (i.e. the return type of storage.view). */
alias typeof(Storage.init.view(0,0,0,0)) StorageView;
/** The type of a slice of the storage (i.e. the return type of storage.slice). */
alias typeof(Storage.init.slice(0,0,0,0)) StorageSlice;
/** The type of a matrix view (i.e. the return type of view( rowStart, colStart, rowEnd, colEnd )). */
alias BasicMatrix!( StorageView ) View;
/** The type of a matrix slice (i.e. the return type of slice( rowStart, colStart, rowEnd, colEnd )). */
alias BasicMatrix!( StorageSlice ) Slice;
/** Inherit any special functionality from the storage type. */
alias storage this;
/** Whether the matrix is row major or not. Shorthand for checking the storageOrder member. */
enum isRowMajor = ( storageOrder == StorageOrder.RowMajor );
/** Whether the storage can be resized. */
enum isResizable = is( typeof( Storage.init.resize(0,0) ) );
/** The type obtained by transposing the matrix. If the storage doesn't define one then it's just typeof(this). */
static if( is( Storage.Transposed ) )
alias BasicMatrix!( Storage.Transposed ) Transposed;
else
alias typeof( this ) Transposed;
/** The type of a temporary that can store the result of an expression that evaluates to typeof(this). If the storage doesn't define one then it's just typeof(this). */
static if( is( Storage.Temporary ) )
alias BasicMatrix!( Storage.Temporary ) Temporary;
else
alias typeof( this ) Temporary;
/** The type returned by front() and back(). */
static if( isRowMajor )
alias RowView MajorView;
else
alias ColumnView MajorView;
/** Promotions for matrices:
- Promotes vectors to vectors of the promotion of the storages.
- Promotes matrices to matrices of the promotion of the storages.
- Promotes scalars to matrices of the promotion of the storage and the scalar type.
*/
template Promote( T ) {
static if( isScalar!T ) {
alias BasicMatrix!( Promotion!(Storage,T) ) Promote;
} else static if( isMatrix!T ) {
alias BasicMatrix!( Promotion!(Storage,T.Storage) ) Promote;
}
}
/** Create a new matrix. Forwards the arguments to the storage type. */
this( A... )( A args ) if( A.length > 0 && !is( A[0] : Storage ) && !isMatrix!(A[0]) && !isExpression!(A[0]) ) {
storage = Storage( args );
}
/** Create a new matrix as a copy of a matrix with the same or a different storage type. */
this( A )( BasicMatrix!A other ) {
static if( is( A : Storage ) ) storage = other.storage;
else storage.copy( other.storage );
}
/** Create a new matrix that stores the result of an expression. */
this( Expr )( auto ref Expr expr ) if( isExpression!Expr ) {
this[] = expr;
}
/** Create a new matrix from a given storage. */
this()( Storage stor ) {
storage = stor;
}
/** Element access. Forwarded to the storage.index method. */
ElementType opIndex( size_t i, size_t j ) const {
return storage.index( i, j );
}
/** Element access. Forwarded to the storage.indexAssign method. */
ElementType opIndexAssign( ElementType rhs, size_t i, size_t j ) {
storage.indexAssign( rhs, i, j );
return rhs;
}
/** Element access. Forwarded to the storage.indexAssign!op method. */
ElementType opIndexOpAssign( string op )( ElementType rhs, size_t i, size_t j ) {
storage.indexAssign!op( rhs, i, j );
return storage.index( i, j );
}
/** Get a view of the matrix. Forwarded to the storage.view method. */
View view( size_t rowStart, size_t rowEnd, size_t colStart, size_t colEnd ) {
return typeof( return )( storage.view( rowStart, rowEnd, colStart, colEnd ) );
}
/** Matrix slicing. Forwarded to the storage.slice method. */
Slice slice( size_t rowStart, size_t rowEnd, size_t colStart, size_t colEnd ) {
return typeof( return )( storage.slice( rowStart, rowEnd, colStart, colEnd ) );
}
/** Get a view of the i'th row. Forwarded to the storage.row method. */
RowView row( size_t i ) {
return storage.row( i );
}
/** Get a view of the j'th column. Forwarded to the storage.column method. */
ColumnView column( size_t j ) {
return storage.column( j );
}
/** Get a view of a slice of the i'th row. Forwarded to the storage.rowSlice method if available.
Otherwise forward to storage.row(i)[ start .. end ].
*/
auto rowSlice( size_t i, size_t start, size_t end ) {
static if( is(typeof(storage.rowSlice( i, start, end ))) )
return storage.rowSlice( i, start, end );
else
return storage.row(i)[ start .. end ];
}
/** Get a view of a slice of the j'th column. Forwarded to the storage.columnSlice method if available.
Otherwise forward to storage.column(i)[ start .. end ].
*/
auto columnSlice( size_t i, size_t start, size_t end ) {
static if( is(typeof(storage.columnSlice( i, start, end ))) ) {
return storage.columnSlice( i, start, end );
} else
return storage.column(i)[ start .. end ];
}
/** Same as row(i). This is to allow a consistent slicing syntax. */
RowView opIndex( size_t i ) {
return row( i );
}
/** Start a slice operation. Select all rows. */
SliceProxy_ opSlice() {
return typeof(return)( this, 0, this.rows );
}
/** Start a slice operation. Select rows from rowStart to rowEnd (not included). */
SliceProxy_ opSlice( size_t rowStart, size_t rowEnd ) {
return typeof(return)( this, rowStart, rowEnd );
}
/** Assign the result of a matrix operation to this one. opAssign is not used due to a bug. */
void opSliceAssign(Rhs)( auto ref Rhs rhs ) {
static if( is( Rhs E : E[][] ) && isConvertible!(E, ElementType) )
evalCopy( BasicMatrix( rhs ), this );
else static if( closureOf!Rhs == Closure.Scalar )
evalCopy( relatedConstant( rhs, this ), this );
else
evalCopy( rhs, this );
}
/// ditto
void opSliceOpAssign( string op, Rhs )( auto ref Rhs rhs ) if( op == "+" || op == "-" || op == "*" || op == "/" ) {
enum scalarRhs = closureOf!Rhs == Closure.Scalar;
static if( op == "+" ) {
static if( scalarRhs ) evalScaledAddition( One!ElementType, relatedConstant(rhs, this), this );
else evalScaledAddition( One!ElementType, rhs, this );
} else static if( op == "-" ) {
static if( scalarRhs ) evalScaledAddition( One!ElementType, relatedConstant(-rhs, this), this );
else evalScaledAddition( MinusOne!ElementType, rhs, this );
} else static if( op == "*" ) {
static if( closureOf!Rhs == Closure.Matrix )
this[] = this * rhs;
else {
static assert( scalarRhs, "Matrix multiplication with invalid type " ~ Rhs.stringof );
evalScaling( rhs, this );
}
} else /* static if ( op == "/" ) */ {
static assert( isConvertible!(Rhs, ElementType), "Matrix division with invalid type " ~ Rhs.stringof );
evalScaling( One!ElementType / to!ElementType(rhs), this );
}
}
/** Resize the matrix and leave the memory uninitialized. If not resizeable simply check that the dimensions are
correct.
*/
void resize( size_t newRows, size_t newColumns, void* ) {
static if( isResizable ) {
storage.resize( newRows, newColumns, null );
} else {
checkAssignDims_( newRows, newColumns );
}
}
/** Resize the matrix and set all the elements to zero. If not resizeable, check that the dimensions are correct
and just set the elements to zero.
*/
void resize( size_t newRows, size_t newColumns ) {
static if( isResizable ) {
storage.resize( newRows, newColumns );
} else {
this.resize( newRows, newColumns, null );
evalScaling( Zero!ElementType, this );
}
}
/** If provided, forward popFront() to the storage type. */
static if( is( typeof( Storage.init.popFront() ) ) )
void popFront() { storage.popFront(); }
/** If provided, forward popBack() to the storage type. */
static if( is( typeof( Storage.init.popBack() ) ) )
void popBack() { storage.popBack(); }
@property {
/** Return the first row for row-major matrices or the first column for column-major matrices. */
MajorView front()
in {
checkNotEmpty_!"front"();
} body {
static if( isRowMajor )
return storage.row( 0 );
else
return storage.column( 0 );
}
/** Return the last row for row-major matrices or the last column for column-major matrices. */
MajorView back()
in {
checkNotEmpty_!"back"();
} body {
static if( isRowMajor )
return storage.row( storage.rows - 1 );
else
return storage.column( storage.columns - 1 );
}
/** Return the number of rows of the matrix. */
size_t rows() const {
static if( is(typeof(Storage.init.rows) ) )
return storage.rows;
else static if( is(typeof(Storage.init.size) ) )
return storage.size;
else
static assert( false, "Matrix storage " ~ Storage.stringof ~ " doesn't define define dimensions." );
}
/** Return the number of columns of the matrix. */
size_t columns() const {
static if( is(typeof(Storage.init.columns) ) )
return storage.columns;
else static if( is(typeof(Storage.init.size) ) )
return storage.size;
else
static assert( false, "Matrix storage " ~ Storage.stringof ~ " doesn't define define dimensions." );
}
/** Return the major dimension of the matrix. */
size_t major() const {
static if( isRowMajor )
return storage.rows;
else
return storage.columns;
}
/** Return the minor dimension of the matrix. */
size_t minor() const {
static if( isRowMajor )
return storage.columns;
else
return storage.rows;
}
/** For square matrices return the size of the matrix. */
static if( is(typeof(Storage.init.size)) ) {
size_t size() const {
return storage.size;
}
}
/** Has the matrix zero dimensions. */
bool empty() const {
return major == 0;
}
/** The number of rows or columns of the matrix depending on the storage order. */
size_t length() const {
return this.major;
}
/** (Somewhat) Nicely formatted matrix output. */
string pretty() const {
if( this.rows == 0 || this.columns == 0 )
return "[]";
auto app = appender!string();
app.put("[ ");
void putRow( size_t r ) {
app.put( to!string( this[r, 0] ) );
for( int i = 1; i < this.columns ; ++ i ) {
app.put( '\t' );
app.put( to!string( this[r, i] ) );
}
};
auto last = this.rows - 1;
for( auto i = 0; i < last ; ++ i ) {
putRow( i );
app.put( ";\n " );
}
putRow( last );
app.put(" ]");
return app.data;
}
}
/** In line matrix output. */
string toString() const {
if( this.rows == 0 || this.columns == 0 )
return "[]";
auto app = appender!string();
app.put('[');
void putRow( size_t r ) {
app.put( '[' );
app.put( to!string( this[r, 0] ) );
for( int i = 1; i < this.columns ; ++ i ) {
app.put( ", " );
app.put( to!string( this[r, i] ) );
}
app.put( ']' );
};
auto last = this.rows - 1;
for( auto i = 0; i < last ; ++ i ) {
putRow( i );
app.put( ", " );
}
putRow( last );
app.put("]");
return app.data;
}
/** The wrapped storage object. */
Storage storage;
/** Include operator overloads for matrices. */
mixin Operand!( Closure.Matrix );
/** Proxy type used for slicing operations. Returned after the first slicing is performed. */
static struct SliceProxy_ {
alias BasicMatrix MatrixType;
alias Storage StorageType;
BasicMatrix m_;
size_t start_, end_;
this( ref BasicMatrix mat, size_t start, size_t end ) {
m_.storage.forceRefAssign( mat.storage );
start_ = start; end_ = end;
}
Slice opSlice() { return m_.slice( start_, end_, 0, m_.columns ); }
Slice opSlice( size_t j1, size_t j2 ) { return m_.slice( start_, end_, j1, j2 ); }
ColumnView opIndex( size_t j ) { return m_.columnSlice( j, start_, end_ ); }
void opSliceAssign( Rhs )( auto ref Rhs rhs ) {
m_.view( start_, end_, 0, m_.columns )[] = rhs;
}
void opSliceAssign( Rhs )( auto ref Rhs rhs, size_t j1, size_t j2 ) {
m_.view( start_, end_, j1, j2 )[] = rhs;
}
void opSliceOpAssign( string op, Rhs )( auto ref Rhs rhs ) {
m_.view( start_, end_, 0, m_.columns ).opSliceOpAssign!op( rhs );
}
void opSliceOpAssign( string op, Rhs )( auto ref Rhs rhs, size_t j1, size_t j2 ) {
m_.view( start_, end_, j1, j2 ).opSliceOpAssign!op( rhs );
}
void opIndexAssign( Rhs )( auto ref Rhs rhs, size_t j ) {
this[ j ].opSliceAssign( rhs );
}
void opIndexOpAssign( string op, Rhs )( auto ref Rhs rhs, size_t j ) {
this[ j ].opSliceOpAssign!op( rhs );
}
void popFront()
in {
checkNotEmpty_!"front"();
} body {
++ start_;
}
@property {
bool empty() const { return start_ == m_.major; }
MajorView front() {
static if( isRowMajor ) return m_.row( start_ );
else return m_.column( start_ );
}
}
}
private:
mixin MatrixChecks;
}
/** Matrix inversion. */
Expression!( "inv", M ) inv( M )( auto ref M matrix ) if( closureOf!M == Closure.Matrix ) {
return typeof( return )( matrix );
}
auto inv( ScalarExpr )( auto ref ScalarExpr expr ) if( closureOf!ScalarExpr == Closure.Scalar && !isLeafExpression!ScalarExpr ) {
return One!(BaseElementType!ScalarExpr) / expr;
}
ScalarType inv( ScalarType )( ScalarType expr ) if( isScalar!ScalarType ) {
return One!ScalarType / expr;
}
version( unittest ) {
import std.stdio;
import scid.storage.cowmatrix;
import scid.vector;
}
//------------------------------------- Tests for General Matrices -------------------------------------//
unittest {
alias Matrix!( double, StorageOrder.RowMajor ) RowMat;
alias Matrix!( double, StorageOrder.ColumnMajor ) ColMat;
static assert( is( Matrix!double : ColMat ) );
static assert( !is( Matrix!int ) );
static assert( is( Matrix!( GeneralMatrixStorage!(CowMatrixRef!double) ) : ColMat ) );
// empty matrix;
{
RowMat a;
ColMat b;
// assert( a.rows == 0 && a.columns == 0 );
// assert( b.rows == 0 && b.columns == 0 );
// ops on it are undefined //
}
// matrix ctors
{
auto a = ColMat(3,6);
auto b = RowMat(5,4, null);
auto c = ColMat(3, [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0] );
auto d = RowMat(3, [1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0] );
assert( a.rows == 3 && a.columns == 6 );
assert( b.rows == 5 && b.columns == 4 );
assert( c.rows == 3 && c.columns == 3 );
assert( d.rows == 3 && d.columns == 3 );
foreach( i ; 0 .. 3 )
foreach( j ; 0 .. 6 )
assert( a[ i, j ] == 0.0 );
writeln( c.pretty );
double k = 1.0;
foreach( i ; 0 .. 3 )
foreach( j ; 0 .. 3 ) {
assert( c[ j, i ] == k );
assert( d[ i, j ] == k );
k ++;
}
}
// copy-on-write
void cowTest( Mat )() {
auto a = Mat( 3, 3 );
auto b = a;
Mat c; c = b;
b[ 0, 0 ] = 1.0;
c[ 0, 0 ] += 2.0;
assert( a[ 0, 0 ] == 0.0 && b[ 0, 0 ] == 1.0 && c[ 0, 0 ] == 2.0 );
}
cowTest!RowMat();
cowTest!ColMat();
// row/column indexing
void rowColTest( Mat )() {
auto a = Mat( 3, 5 );
double k = 0.0;
foreach( i ; 0 .. a.rows )
foreach( j ; 0 .. a.columns )
a[ i, j ] = k ++;
foreach( i ; 0 .. a.rows ) {
auto v1 = a.row( i );
auto v2 = a[ i ][];
static assert( v1.vectorType == VectorType.Row );
static assert( v2.vectorType == VectorType.Row );
assert( v1.length == a.columns && v2.length == a.columns );
foreach( j ; 0 .. a.columns )
assert( v1[ j ] == v2[ j ] && v1[ j ] == i * a.columns + j );
}
foreach( j ; 0 .. a.columns ) {
auto v1 = a.column( j );
auto v2 = a[][ j ];
static assert( v1.vectorType == VectorType.Column );
static assert( v2.vectorType == VectorType.Column );
assert( v1.length == a.rows && v2.length == a.rows );
foreach( i ; 0 .. a.rows )
assert( v1[ i ] == v2[ i ] && v1[ i ] == i * a.columns + j );
}
foreach( i ; 0 .. a.rows ) {
auto v = a[ i ][];
v[] *= 2.0;
}
k = 0.0;
foreach( i ; 0 .. a.rows )
foreach( j ; 0 .. a.columns ) {
assert( a[ i, j ] == k );
k += 2.0;
}
}
rowColTest!RowMat();
rowColTest!ColMat();
// slices & views tests
void sliceTest( Mat )() {
auto a = Mat( 3, 5 );
double k = 0.0;
foreach( i ; 0 .. a.rows )
foreach( j ; 0 .. a.columns )
a[ i, j ] = ++ k;
auto p = a[0..2][3..5];
assert( p.rows == 2 && p.columns == 2 );
assert( p[0, 0] == 4.0 && p[0, 1] == 5.0 &&
p[1, 0] == 9.0 && p[1, 1] == 10.0 );
p[ 0, 0 ] = 42.0;
assert( a[ 0, 3 ] == 4.0 && p[ 0, 0 ] == 42.0 );
auto q = a.view( 1, 3, 2, 5 );
auto r = q[ 0 .. 2 ][ 0 .. 3 ];
assert( q.rows == 2 && q.columns == 3 );
foreach( i ; 0 .. q.rows )
foreach( j ; 0 .. q.columns )
assert( q[ i, j ] == r[ i, j ] );
q[ 0, 0 ] = 42.0;
assert( a[ 1, 2 ] == 42.0 && q[ 0, 0 ] == 42.0 && r[ 0, 0 ] == 42.0 );
}
sliceTest!RowMat();
sliceTest!ColMat();
// range of ranges interface
void rangeTest(Mat)() {
auto a = Mat( 3, [1.0, 2.0, 3.0, 4.0, 5.0, 6.0] );
auto m = [ [1.0, 2.0], [3.0, 4.0], [5.0, 6.0] ];
uint k = 0;
foreach( vec ; a ) {
assert( m[ k ][ 0 ] == vec[ 0 ] && m[ k ][ 1 ] == vec[ 1 ] );
++k;
}
k = 0;
foreach( vec ; a[0..2][] ) {
assert( m[ k ][ 0 ] == vec[ 0 ] && m[ k ][ 1 ] == vec[ 1 ] );
++k;
}
}
rangeTest!RowMat();
rangeTest!ColMat();
}
//------------------------------------ Tests for Triangular Matrices -----------------------------------//
unittest {
alias TriangularMatrix!( double, MatrixTriangle.Upper, StorageOrder.RowMajor ) RowUpMat;
alias TriangularMatrix!( double, MatrixTriangle.Upper, StorageOrder.ColumnMajor ) ColUpMat;
alias TriangularMatrix!( double, MatrixTriangle.Lower, StorageOrder.RowMajor ) RowLoMat;
alias TriangularMatrix!( double, MatrixTriangle.Lower, StorageOrder.ColumnMajor ) ColLoMat;
static assert( is( TriangularMatrix!double : ColUpMat ) );
static assert( !is( TriangularMatrix!int ) );
// empty matrix;
{
RowUpMat a;
ColUpMat b;
// assert( a.rows == 0 && a.columns == 0 );
// assert( b.rows == 0 && b.columns == 0 );
// ops on it are undefined //
}
// matrix ctors
{
auto cu = ColUpMat( [1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
auto ru = RowUpMat( [1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
auto cl = ColLoMat( [1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
auto rl = RowLoMat( [1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
assert( cu.size == 3 && ru.size == 3 && cl.size == 3 && rl.size == 3 );
assert( cu[ 0, 0 ] == 1.0 && cu[ 0, 1 ] == 2.0 && cu[ 0, 2 ] == 4.0 &&
cu[ 1, 0 ] == 0.0 && cu[ 1, 1 ] == 3.0 && cu[ 1, 2 ] == 5.0 &&
cu[ 2, 0 ] == 0.0 && cu[ 2, 1 ] == 0.0 && cu[ 2, 2 ] == 6.0 );
assert( ru[ 0, 0 ] == 1.0 && ru[ 0, 1 ] == 2.0 && ru[ 0, 2 ] == 3.0 &&
ru[ 1, 0 ] == 0.0 && ru[ 1, 1 ] == 4.0 && ru[ 1, 2 ] == 5.0 &&
ru[ 2, 0 ] == 0.0 && ru[ 2, 1 ] == 0.0 && ru[ 2, 2 ] == 6.0 );
assert( cl[ 0, 0 ] == 1.0 && cl[ 0, 1 ] == 0.0 && cl[ 0, 2 ] == 0.0 &&
cl[ 1, 0 ] == 2.0 && cl[ 1, 1 ] == 4.0 && cl[ 1, 2 ] == 0.0 &&
cl[ 2, 0 ] == 3.0 && cl[ 2, 1 ] == 5.0 && cl[ 2, 2 ] == 6.0 );
assert( rl[ 0, 0 ] == 1.0 && rl[ 0, 1 ] == 0.0 && rl[ 0, 2 ] == 0.0 &&
rl[ 1, 0 ] == 2.0 && rl[ 1, 1 ] == 3.0 && rl[ 1, 2 ] == 0.0 &&
rl[ 2, 0 ] == 4.0 && rl[ 2, 1 ] == 5.0 && rl[ 2, 2 ] == 6.0 );
}
// copy-on-write
void cowTest( Mat )() {
auto a = Mat( 3 );
auto b = a;
Mat c; c = b;
b[ 0, 0 ] = 1.0;
c[ 0, 0 ] += 2.0;
assert( a[ 0, 0 ] == 0.0 && b[ 0, 0 ] == 1.0 && c[ 0, 0 ] == 2.0 );
}
cowTest!RowUpMat();
cowTest!ColUpMat();
cowTest!RowLoMat();
cowTest!ColLoMat();
// row/column indexing
{
auto cu = ColUpMat( [1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
auto ru = RowUpMat( [1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
auto cl = ColLoMat( [1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
auto rl = RowLoMat( [1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
{
auto r = cu.row( 2 );
r[] *= 2.0;
}
assert( cu[ 0, 0 ] == 1.0 && cu[ 0, 1 ] == 2.0 && cu[ 0, 2 ] == 4.0 &&
cu[ 1, 0 ] == 0.0 && cu[ 1, 1 ] == 3.0 && cu[ 1, 2 ] == 5.0 &&
cu[ 2, 0 ] == 0.0 && cu[ 2, 1 ] == 0.0 && cu[ 2, 2 ] == 12.0 );
{
auto r = ru.column( 1 );
r[] *= 2.0;
}
assert( ru[ 0, 0 ] == 1.0 && ru[ 0, 1 ] == 4.0 && ru[ 0, 2 ] == 3.0 &&
ru[ 1, 0 ] == 0.0 && ru[ 1, 1 ] == 8.0 && ru[ 1, 2 ] == 5.0 &&
ru[ 2, 0 ] == 0.0 && ru[ 2, 1 ] == 0.0 && ru[ 2, 2 ] == 6.0 );
cl[][1] = [9.0,8.0,7.0];
assert( cl[ 0, 0 ] == 1.0 && cl[ 0, 1 ] == 0.0 && cl[ 0, 2 ] == 0.0 &&
cl[ 1, 0 ] == 2.0 && cl[ 1, 1 ] == 8.0 && cl[ 1, 2 ] == 0.0 &&
cl[ 2, 0 ] == 3.0 && cl[ 2, 1 ] == 7.0 && cl[ 2, 2 ] == 6.0 );
rl[1][] = [9.0,8.0,7.0].t;
assert( rl[ 0, 0 ] == 1.0 && rl[ 0, 1 ] == 0.0 && rl[ 0, 2 ] == 0.0 &&
rl[ 1, 0 ] == 9.0 && rl[ 1, 1 ] == 8.0 && rl[ 1, 2 ] == 0.0 &&
rl[ 2, 0 ] == 4.0 && rl[ 2, 1 ] == 5.0 && rl[ 2, 2 ] == 6.0 );
}
// slices & views tests
{
auto a = ColUpMat( [1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
auto p = a[0..2][1..3];
assert( p.rows == 2 && p.columns == 2 );
assert( p[0, 0] == 2.0 && p[0, 1] == 4.0 &&
p[1, 0] == 3.0 && p[1, 1] == 5.0 );
p[ 0, 0 ] = 42.0;
assert( a[ 0, 1 ] == 2.0 && p[ 0, 0 ] == 42.0 );
auto q = a.view( 1, 3, 0, 3 );
auto r = q[ 0 .. 2 ][ 0 .. 3 ];
assert( q.rows == 2 && q.columns == 3 );
foreach( i ; 0 .. q.rows )
foreach( j ; 0 .. q.columns )
assert( q[ i, j ] == r[ i, j ] );
q[ 0, 1 ] = 42.0;
assert( a[ 1, 1 ] == 42.0 && q[ 0, 1 ] == 42.0 && r[ 0, 1 ] == 42.0 );
}
// range of ranges interface
{
auto a = RowLoMat( [1.0, 2.0, 3.0, 4.0, 5.0, 6.0] );
auto m = [ [1.0, 0.0, 0.0], [2.0, 3.0, 0.0], [4.0, 5.0, 6.0] ];
uint k = 0;
foreach( vec ; a ) {
assert( m[ k ][ 0 ] == vec[ 0 ] && m[ k ][ 1 ] == vec[ 1 ] );
++ k;
}
k = 0;
foreach( vec ; a[0..2][] ) {
assert( m[ k ][ 0 ] == vec[ 0 ] && m[ k ][ 1 ] == vec[ 1 ] );
++ k;
}
}
}
//------------------------------------- Tests for Symmetric Matrices -----------------------------------//
unittest {
alias SymmetricMatrix!( double, MatrixTriangle.Upper, StorageOrder.RowMajor ) RowUpMat;
alias SymmetricMatrix!( double, MatrixTriangle.Upper, StorageOrder.ColumnMajor ) ColUpMat;
alias SymmetricMatrix!( double, MatrixTriangle.Lower, StorageOrder.RowMajor ) RowLoMat;
alias SymmetricMatrix!( double, MatrixTriangle.Lower, StorageOrder.ColumnMajor ) ColLoMat;
static assert( is( SymmetricMatrix!double : ColUpMat ) );
static assert( !is( SymmetricMatrix!int ) );
// empty matrix;
{
RowUpMat a;
ColUpMat b;
// assert( a.rows == 0 && a.columns == 0 );
// assert( b.rows == 0 && b.columns == 0 );
// ops on it are undefined //
}
// matrix ctors
{
auto cu = ColUpMat( [1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
auto ru = RowUpMat( [1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
auto cl = ColLoMat( [1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
auto rl = RowLoMat( [1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
assert( cu.size == 3 && ru.size == 3 && cl.size == 3 && rl.size == 3 );
assert( cu[ 0, 0 ] == 1.0 && cu[ 0, 1 ] == 2.0 && cu[ 0, 2 ] == 4.0 &&
cu[ 1, 0 ] == 2.0 && cu[ 1, 1 ] == 3.0 && cu[ 1, 2 ] == 5.0 &&
cu[ 2, 0 ] == 4.0 && cu[ 2, 1 ] == 5.0 && cu[ 2, 2 ] == 6.0 );
assert( ru[ 0, 0 ] == 1.0 && ru[ 0, 1 ] == 2.0 && ru[ 0, 2 ] == 3.0 &&
ru[ 1, 0 ] == 2.0 && ru[ 1, 1 ] == 4.0 && ru[ 1, 2 ] == 5.0 &&
ru[ 2, 0 ] == 3.0 && ru[ 2, 1 ] == 5.0 && ru[ 2, 2 ] == 6.0 );
assert( cl[ 0, 0 ] == 1.0 && cl[ 0, 1 ] == 2.0 && cl[ 0, 2 ] == 3.0 &&
cl[ 1, 0 ] == 2.0 && cl[ 1, 1 ] == 4.0 && cl[ 1, 2 ] == 5.0 &&
cl[ 2, 0 ] == 3.0 && cl[ 2, 1 ] == 5.0 && cl[ 2, 2 ] == 6.0 );
assert( rl[ 0, 0 ] == 1.0 && rl[ 0, 1 ] == 2.0 && rl[ 0, 2 ] == 4.0 &&
rl[ 1, 0 ] == 2.0 && rl[ 1, 1 ] == 3.0 && rl[ 1, 2 ] == 5.0 &&
rl[ 2, 0 ] == 4.0 && rl[ 2, 1 ] == 5.0 && rl[ 2, 2 ] == 6.0 );
}
// copy-on-write
void cowTest( Mat )() {
auto a = Mat( 3 );
auto b = a;
Mat c; c = b;
b[ 0, 0 ] = 1.0;
c[ 0, 0 ] += 2.0;
assert( a[ 0, 0 ] == 0.0 && b[ 0, 0 ] == 1.0 && c[ 0, 0 ] == 2.0 );
}
cowTest!RowUpMat();
cowTest!ColUpMat();
cowTest!RowLoMat();
cowTest!ColLoMat();
// row/column indexing
{
auto cu = ColUpMat( [1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
auto ru = RowUpMat( [1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
auto cl = ColLoMat( [1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
auto rl = RowLoMat( [1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
{
auto r = cu.row( 2 );
r[] *= 2.0;
}
assert( cu[ 0, 0 ] == 1.0 && cu[ 0, 1 ] == 2.0 && cu[ 0, 2 ] == 4.0 &&
cu[ 1, 0 ] == 2.0 && cu[ 1, 1 ] == 3.0 && cu[ 1, 2 ] == 5.0 &&
cu[ 2, 0 ] == 4.0 && cu[ 2, 1 ] == 5.0 && cu[ 2, 2 ] == 12.0 );
{
auto r = ru.column( 1 );
r[] *= 2.0;
}
assert( ru[ 0, 0 ] == 1.0 && ru[ 0, 1 ] == 4.0 && ru[ 0, 2 ] == 3.0 &&
ru[ 1, 0 ] == 4.0 && ru[ 1, 1 ] == 8.0 && ru[ 1, 2 ] == 5.0 &&
ru[ 2, 0 ] == 3.0 && ru[ 2, 1 ] == 5.0 && ru[ 2, 2 ] == 6.0 );
cl[][1] = [9.0,8.0,7.0];
assert( cl[ 0, 0 ] == 1.0 && cl[ 0, 1 ] == 2.0 && cl[ 0, 2 ] == 3.0 &&
cl[ 1, 0 ] == 2.0 && cl[ 1, 1 ] == 8.0 && cl[ 1, 2 ] == 7.0 &&
cl[ 2, 0 ] == 3.0 && cl[ 2, 1 ] == 7.0 && cl[ 2, 2 ] == 6.0 );
rl[1][] = [9.0,8.0,7.0].t;
assert( rl[ 0, 0 ] == 1.0 && rl[ 0, 1 ] == 9.0 && rl[ 0, 2 ] == 4.0 &&
rl[ 1, 0 ] == 9.0 && rl[ 1, 1 ] == 8.0 && rl[ 1, 2 ] == 5.0 &&
rl[ 2, 0 ] == 4.0 && rl[ 2, 1 ] == 5.0 && rl[ 2, 2 ] == 6.0 );
}
// slices & views tests
{
auto a = ColUpMat( [1.0, 2.0, 3.0, 4.0, 5.0, 6.0 ] );
auto p = a[0..2][1..3];
assert( p.rows == 2 && p.columns == 2 );
assert( p[0, 0] == 2.0 && p[0, 1] == 4.0 &&
p[1, 0] == 3.0 && p[1, 1] == 5.0 );
p[ 0, 0 ] = 42.0;
assert( a[ 0, 1 ] == 2.0 && p[ 0, 0 ] == 42.0 );
auto q = a.view( 1, 3, 0, 3 );
auto r = q[ 0 .. 2 ][ 0 .. 3 ];
assert( q.rows == 2 && q.columns == 3 );
foreach( i ; 0 .. q.rows )
foreach( j ; 0 .. q.columns )
assert( q[ i, j ] == r[ i, j ] );
q[ 0, 1 ] = 42.0;
assert( a[ 1, 1 ] == 42.0 && q[ 0, 1 ] == 42.0 && r[ 0, 1 ] == 42.0 );
}
// range of ranges interface
{
auto a = RowLoMat( [1.0, 2.0, 3.0, 4.0, 5.0, 6.0] );
auto m = [ [1.0, 2.0, 4.0], [2.0, 3.0, 5.0], [4.0, 5.0, 6.0] ];
uint k = 0;
foreach( vec ; a ) {
assert( m[ k ][ 0 ] == vec[ 0 ] && m[ k ][ 1 ] == vec[ 1 ] );
++ k;
}
k = 0;
foreach( vec ; a[0..2][] ) {
assert( m[ k ][ 0 ] == vec[ 0 ] && m[ k ][ 1 ] == vec[ 1 ] );
++ k;
}
}
}
|
D
|
/Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Build/Intermediates/Pods.build/Debug-iphonesimulator/Kingfisher.build/Objects-normal/x86_64/ThreadHelper.o : /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/AnimatedImageView.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/Image.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/ImageCache.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/ImageDownloader.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/ImagePrefetcher.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/ImageTransition.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/ImageView+Kingfisher.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/KingfisherManager.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/KingfisherOptionsInfo.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/Resource.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/String+MD5.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/ThreadHelper.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/UIButton+Kingfisher.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/Kingfisher.h /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Target\ Support\ Files/Kingfisher/Kingfisher-umbrella.h /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Build/Intermediates/Pods.build/Debug-iphonesimulator/Kingfisher.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
/Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Build/Intermediates/Pods.build/Debug-iphonesimulator/Kingfisher.build/Objects-normal/x86_64/ThreadHelper~partial.swiftmodule : /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/AnimatedImageView.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/Image.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/ImageCache.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/ImageDownloader.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/ImagePrefetcher.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/ImageTransition.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/ImageView+Kingfisher.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/KingfisherManager.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/KingfisherOptionsInfo.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/Resource.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/String+MD5.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/ThreadHelper.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/UIButton+Kingfisher.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/Kingfisher.h /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Target\ Support\ Files/Kingfisher/Kingfisher-umbrella.h /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Build/Intermediates/Pods.build/Debug-iphonesimulator/Kingfisher.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
/Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Build/Intermediates/Pods.build/Debug-iphonesimulator/Kingfisher.build/Objects-normal/x86_64/ThreadHelper~partial.swiftdoc : /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/AnimatedImageView.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/Image.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/ImageCache.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/ImageDownloader.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/ImagePrefetcher.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/ImageTransition.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/ImageView+Kingfisher.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/KingfisherManager.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/KingfisherOptionsInfo.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/Resource.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/String+MD5.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/ThreadHelper.swift /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/UIButton+Kingfisher.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Kingfisher/Sources/Kingfisher.h /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Pods/Target\ Support\ Files/Kingfisher/Kingfisher-umbrella.h /Users/atyun-monitor/Desktop/Swift/DanTangFromQuanzai/Build/Intermediates/Pods.build/Debug-iphonesimulator/Kingfisher.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
|
D
|
/Users/Munokkim/Developer/GitRepository/MOSheetTransition/.build/x86_64-apple-macosx/debug/MOSheetTransition.build/SheetInteractionCoordinator.swift.o : /Users/Munokkim/Developer/GitRepository/MOSheetTransition/Sources/UIViewPropertyAnimatorExtension.swift /Users/Munokkim/Developer/GitRepository/MOSheetTransition/Sources/SheetTransitionController.swift /Users/Munokkim/Developer/GitRepository/MOSheetTransition/Sources/SheetAnimator.swift /Users/Munokkim/Developer/GitRepository/MOSheetTransition/Sources/SheetInteractionCoordinator.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/Munokkim/Developer/GitRepository/MOSheetTransition/.build/x86_64-apple-macosx/debug/MOSheetTransition.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes
/Users/Munokkim/Developer/GitRepository/MOSheetTransition/.build/x86_64-apple-macosx/debug/MOSheetTransition.build/SheetInteractionCoordinator~partial.swiftmodule : /Users/Munokkim/Developer/GitRepository/MOSheetTransition/Sources/UIViewPropertyAnimatorExtension.swift /Users/Munokkim/Developer/GitRepository/MOSheetTransition/Sources/SheetTransitionController.swift /Users/Munokkim/Developer/GitRepository/MOSheetTransition/Sources/SheetAnimator.swift /Users/Munokkim/Developer/GitRepository/MOSheetTransition/Sources/SheetInteractionCoordinator.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/Munokkim/Developer/GitRepository/MOSheetTransition/.build/x86_64-apple-macosx/debug/MOSheetTransition.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes
/Users/Munokkim/Developer/GitRepository/MOSheetTransition/.build/x86_64-apple-macosx/debug/MOSheetTransition.build/SheetInteractionCoordinator~partial.swiftdoc : /Users/Munokkim/Developer/GitRepository/MOSheetTransition/Sources/UIViewPropertyAnimatorExtension.swift /Users/Munokkim/Developer/GitRepository/MOSheetTransition/Sources/SheetTransitionController.swift /Users/Munokkim/Developer/GitRepository/MOSheetTransition/Sources/SheetAnimator.swift /Users/Munokkim/Developer/GitRepository/MOSheetTransition/Sources/SheetInteractionCoordinator.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/Munokkim/Developer/GitRepository/MOSheetTransition/.build/x86_64-apple-macosx/debug/MOSheetTransition.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes
/Users/Munokkim/Developer/GitRepository/MOSheetTransition/.build/x86_64-apple-macosx/debug/MOSheetTransition.build/SheetInteractionCoordinator~partial.swiftsourceinfo : /Users/Munokkim/Developer/GitRepository/MOSheetTransition/Sources/UIViewPropertyAnimatorExtension.swift /Users/Munokkim/Developer/GitRepository/MOSheetTransition/Sources/SheetTransitionController.swift /Users/Munokkim/Developer/GitRepository/MOSheetTransition/Sources/SheetAnimator.swift /Users/Munokkim/Developer/GitRepository/MOSheetTransition/Sources/SheetInteractionCoordinator.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Combine.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Swift.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Users/Munokkim/Developer/GitRepository/MOSheetTransition/.build/x86_64-apple-macosx/debug/MOSheetTransition.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes
|
D
|
/Users/Natalia/FunChatik/Jenkins/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Socket.IO-Client-Swift.build/Objects-normal/x86_64/SocketIOClientConfiguration.o : /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Engine/SocketEngineSpec.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Manager/SocketManagerSpec.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketIOClientSpec.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Engine/SocketEnginePollable.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Parse/SocketParsable.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Engine/SocketEngine.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Engine/SocketEnginePacketType.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketIOClientConfiguration.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketIOClientOption.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Util/SocketStringReader.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Ack/SocketAckManager.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Manager/SocketManager.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Util/SocketLogger.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketEventHandler.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Ack/SocketAckEmitter.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Util/SocketTypes.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Util/SocketExtensions.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketIOStatus.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Parse/SocketPacket.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Engine/SocketEngineWebsocket.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketIOClient.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Engine/SocketEngineClient.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketAnyEvent.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketRawView.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Util/SSLSecurity.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/Natalia/FunChatik/Jenkins/build/Build/Products/Debug-iphonesimulator/Starscream/Starscream.framework/Modules/Starscream.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Natalia/FunChatik/Pods/Target\ Support\ Files/Starscream/Starscream-umbrella.h /Users/Natalia/FunChatik/Pods/Target\ Support\ Files/Socket.IO-Client-Swift/Socket.IO-Client-Swift-umbrella.h /Users/Natalia/FunChatik/Jenkins/build/Build/Products/Debug-iphonesimulator/Starscream/Starscream.framework/Headers/Starscream-Swift.h /Users/Natalia/FunChatik/Jenkins/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Socket.IO-Client-Swift.build/unextended-module.modulemap /Users/Natalia/FunChatik/Pods/Starscream/zlib/module.modulemap /Users/Natalia/FunChatik/Jenkins/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Starscream.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/Natalia/FunChatik/Jenkins/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Socket.IO-Client-Swift.build/Objects-normal/x86_64/SocketIOClientConfiguration~partial.swiftmodule : /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Engine/SocketEngineSpec.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Manager/SocketManagerSpec.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketIOClientSpec.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Engine/SocketEnginePollable.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Parse/SocketParsable.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Engine/SocketEngine.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Engine/SocketEnginePacketType.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketIOClientConfiguration.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketIOClientOption.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Util/SocketStringReader.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Ack/SocketAckManager.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Manager/SocketManager.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Util/SocketLogger.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketEventHandler.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Ack/SocketAckEmitter.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Util/SocketTypes.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Util/SocketExtensions.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketIOStatus.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Parse/SocketPacket.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Engine/SocketEngineWebsocket.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketIOClient.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Engine/SocketEngineClient.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketAnyEvent.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketRawView.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Util/SSLSecurity.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/Natalia/FunChatik/Jenkins/build/Build/Products/Debug-iphonesimulator/Starscream/Starscream.framework/Modules/Starscream.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Natalia/FunChatik/Pods/Target\ Support\ Files/Starscream/Starscream-umbrella.h /Users/Natalia/FunChatik/Pods/Target\ Support\ Files/Socket.IO-Client-Swift/Socket.IO-Client-Swift-umbrella.h /Users/Natalia/FunChatik/Jenkins/build/Build/Products/Debug-iphonesimulator/Starscream/Starscream.framework/Headers/Starscream-Swift.h /Users/Natalia/FunChatik/Jenkins/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Socket.IO-Client-Swift.build/unextended-module.modulemap /Users/Natalia/FunChatik/Pods/Starscream/zlib/module.modulemap /Users/Natalia/FunChatik/Jenkins/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Starscream.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/Natalia/FunChatik/Jenkins/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Socket.IO-Client-Swift.build/Objects-normal/x86_64/SocketIOClientConfiguration~partial.swiftdoc : /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Engine/SocketEngineSpec.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Manager/SocketManagerSpec.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketIOClientSpec.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Engine/SocketEnginePollable.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Parse/SocketParsable.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Engine/SocketEngine.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Engine/SocketEnginePacketType.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketIOClientConfiguration.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketIOClientOption.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Util/SocketStringReader.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Ack/SocketAckManager.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Manager/SocketManager.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Util/SocketLogger.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketEventHandler.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Ack/SocketAckEmitter.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Util/SocketTypes.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Util/SocketExtensions.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketIOStatus.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Parse/SocketPacket.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Engine/SocketEngineWebsocket.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketIOClient.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Engine/SocketEngineClient.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketAnyEvent.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Client/SocketRawView.swift /Users/Natalia/FunChatik/Pods/Socket.IO-Client-Swift/Source/SocketIO/Util/SSLSecurity.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Users/Natalia/FunChatik/Jenkins/build/Build/Products/Debug-iphonesimulator/Starscream/Starscream.framework/Modules/Starscream.swiftmodule/x86_64.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/Natalia/FunChatik/Pods/Target\ Support\ Files/Starscream/Starscream-umbrella.h /Users/Natalia/FunChatik/Pods/Target\ Support\ Files/Socket.IO-Client-Swift/Socket.IO-Client-Swift-umbrella.h /Users/Natalia/FunChatik/Jenkins/build/Build/Products/Debug-iphonesimulator/Starscream/Starscream.framework/Headers/Starscream-Swift.h /Users/Natalia/FunChatik/Jenkins/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Socket.IO-Client-Swift.build/unextended-module.modulemap /Users/Natalia/FunChatik/Pods/Starscream/zlib/module.modulemap /Users/Natalia/FunChatik/Jenkins/build/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Starscream.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator11.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
|
D
|
module d.ir.symbol;
import d.ir.dscope;
import d.ir.expression;
import d.ir.statement;
import d.ir.type;
import d.context.name;
import d.common.node;
public import d.common.qualifier;
enum Step {
Parsed,
Populated,
Signed,
Processed,
}
enum InTemplate {
No,
Yes,
}
class Symbol : Node {
Name name;
Name mangle;
import std.bitmanip;
mixin(bitfields!(
Step, "step", 2,
Linkage, "linkage", 3,
Visibility, "visibility", 3,
Storage, "storage", 2,
InTemplate, "inTemplate", 1,
bool, "hasThis", 1,
bool, "hasContext", 1,
bool, "isPoisoned", 1,
bool, "isAbstract", 1,
bool, "isProperty", 1,
uint, "__derived", 16,
));
this(Location location, Name name) {
super(location);
this.name = name;
}
string toString(const Context c) const {
return name.toString(c);
}
protected:
@property derived() const {
return __derived;
}
@property derived(uint val) {
return __derived = val;
}
}
/**
* Symbol that introduce a scope.
* NB: Symbols that introduce non standard scope may not extend this.
*/
abstract class ScopeSymbol : Symbol, Scope {
mixin ScopeImpl;
this(Location location, Scope parentScope, Name name) {
super(location, name);
fillParentScope(parentScope);
}
}
/**
* Symbol that represent a value once resolved.
*/
abstract class ValueSymbol : Symbol {
this(Location location, Name name) {
super(location, name);
}
}
/**
* Package
*/
class Package : Symbol, Scope {
mixin ScopeImpl!(ScopeType.Module);
Package parent;
this(Location location, Name name, Package parent) {
super(location, name);
this.parent = parent;
}
}
/**
* Function
*/
class Function : ValueSymbol, Scope {
mixin ScopeImpl;
FunctionType type;
Variable[] params;
uint[Variable] closure;
BlockStatement fbody;
this(
Location location,
Scope parentScope,
FunctionType type,
Name name,
Variable[] params,
BlockStatement fbody,
) {
super(location, name);
fillParentScope(parentScope);
this.type = type;
this.params = params;
this.fbody = fbody;
}
}
/**
* Entry for template parameters
*/
class TemplateParameter : Symbol {
this(Location location, Name name, uint index) {
super(location, name);
this.derived = index;
}
final:
@property index() const {
return derived;
}
}
/**
* Superclass for struct, class and interface.
*/
abstract class Aggregate : ScopeSymbol {
Name[] aliasThis;
Symbol[] members;
this(Location location, Scope parentScope, Name name, Symbol[] members) {
super(location, parentScope, name);
this.members = members;
}
}
final:
/**
* Module
*/
class Module : Package {
Symbol[] members;
this(Location location, Name name, Package parent) {
super(location, name, parent);
dmodule = this;
}
}
/**
* Placeholder in symbol tables for templates and functions.
*/
class OverloadSet : Symbol {
Symbol[] set;
bool isPoisoned;
bool isResolved;
this(Location location, Name name, Symbol[] set) {
super(location, name);
this.mangle = name;
this.set = set;
}
OverloadSet clone() {
auto os = new OverloadSet(location, name, set);
os.mangle = mangle;
return os;
}
}
/**
* Variable
*/
class Variable : ValueSymbol {
Expression value;
ParamType paramType;
this(
Location location,
ParamType paramType,
Name name,
Expression value = null,
) {
super(location, name);
this.paramType = paramType;
this.value = value;
}
this(Location location, Type type, Name name, Expression value = null) {
super(location, name);
this.type = type;
this.value = value;
}
@property
inout(Type) type() inout {
return paramType.getType();
}
@property
Type type(Type t) {
paramType = t.getParamType(false, false);
return t;
}
@property
bool isRef() const {
return paramType.isRef;
}
@property
bool isFinal() const {
return paramType.isFinal;
}
override
string toString(const Context c) const {
return type.toString(c) ~ " " ~ name.toString(c)
~ " = " ~ value.toString(c) ~ ";";
}
}
/**
* Field
* Simply a Variable with a field index.
*/
class Field : ValueSymbol {
CompileTimeExpression value;
Type type;
this(
Location location,
uint index,
Type type,
Name name,
CompileTimeExpression value = null,
) {
super(location, name);
this.value = value;
this.type = type;
this.derived = index;
// Always true for fields.
this.hasThis = true;
}
@property index() const {
return derived;
}
}
/**
* Template
*/
class Template : ScopeSymbol {
TemplateInstance[string] instances;
Type[] ifti;
TemplateParameter[] parameters;
import d.ast.declaration : Declaration;
Declaration[] members;
this(
Location location,
Scope parentScope,
Name name,
TemplateParameter[] parameters,
Declaration[] members,
) {
super(location, parentScope, name);
this.parameters = parameters;
this.members = members;
}
}
/**
* Template type parameter
*/
class TypeTemplateParameter : TemplateParameter {
Type specialization;
Type defaultValue;
this(
Location location,
Name name,
uint index,
Type specialization,
Type defaultValue,
) {
super(location, name, index);
this.specialization = specialization;
this.defaultValue = defaultValue;
}
override string toString(const Context c) const {
return name.toString(c)
~ " : " ~ specialization.toString(c)
~ " = " ~ defaultValue.toString(c);
}
}
/**
* Template value parameter
*/
class ValueTemplateParameter : TemplateParameter {
Type type;
Expression defaultValue;
this(
Location location,
Name name,
uint index,
Type type,
Expression defaultValue,
) {
super(location, name, index);
this.type = type;
this.defaultValue = defaultValue;
}
}
/**
* Template alias parameter
*/
class AliasTemplateParameter : TemplateParameter {
this(Location location, Name name, uint index) {
super(location, name, index);
}
}
/**
* Template typed alias parameter
*/
class TypedAliasTemplateParameter : TemplateParameter {
Type type;
this(Location location, Name name, uint index, Type type) {
super(location, name, index);
this.type = type;
}
}
/**
* Template instance
*/
class TemplateInstance : Symbol, Scope {
mixin ScopeImpl!(ScopeType.WithParent, Template);
Symbol[] members;
this(Location location, Template tpl, Symbol[] members) {
super(location, tpl.name);
fillParentScope(tpl);
this.members = members;
}
}
/**
* Alias of symbols
*/
class SymbolAlias : Symbol {
Symbol symbol;
this(Location location, Name name, Symbol symbol) {
super(location, name);
this.symbol = symbol;
}
/+
invariant() {
if (step >= Step.Signed) {
assert(symbol && hasContext == symbol.hasContext);
}
}
+/
}
/**
* Alias of types
*/
class TypeAlias : Symbol {
Type type;
this(Location location, Name name, Type type) {
super(location, name);
this.type = type;
}
}
/**
* Alias of values
*/
class ValueAlias : ValueSymbol {
CompileTimeExpression value;
this(Location location, Name name, CompileTimeExpression value) {
super(location, name);
this.value = value;
}
}
/**
* Class
*/
class Class : Aggregate {
Class base;
Interface[] interfaces;
this(Location location, Scope parentScope, Name name, Symbol[] members) {
super(location, parentScope, name, members);
this.name = name;
}
}
/**
* Interface
*/
class Interface : Aggregate {
Interface[] bases;
this(
Location location,
Scope parentScope,
Name name,
Interface[] bases,
Symbol[] members,
) {
super(location, parentScope, name, members);
this.bases = bases;
}
}
/**
* Struct
*/
class Struct : Aggregate {
this(Location location, Scope parentScope, Name name, Symbol[] members) {
super(location, parentScope, name, members);
}
@property isPod() const {
return !!derived;
}
@property isPod(bool ispod) {
derived = ispod;
return ispod;
}
}
/**
* Union
*/
class Union : Aggregate {
this(Location location, Scope parentScope, Name name, Symbol[] members) {
super(location, parentScope, name, members);
}
}
/**
* Enum
*/
class Enum : ScopeSymbol {
Type type;
Variable[] entries;
this(
Location location,
Scope parentScope,
Name name,
Type type,
Variable[] entries,
) {
super(location, parentScope, name);
this.type = type;
this.entries = entries;
}
}
/**
* Virtual method
* Simply a function declaration with its index in the vtable.
*/
class Method : Function {
uint index;
this(
Location location,
Scope parentScope,
uint index,
FunctionType type,
Name name,
Variable[] params,
BlockStatement fbody,
) {
super(location, parentScope, type, name, params, fbody);
this.index = index;
}
}
|
D
|
/home/anthony/App/Cistercian-numerals/target/rls/debug/build/libc-3b83b05b0733f41c/build_script_build-3b83b05b0733f41c: /home/anthony/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.97/build.rs
/home/anthony/App/Cistercian-numerals/target/rls/debug/build/libc-3b83b05b0733f41c/build_script_build-3b83b05b0733f41c.d: /home/anthony/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.97/build.rs
/home/anthony/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.97/build.rs:
|
D
|
module amdc;
import std.math;
import std.stdio;
import std.container.array;
import std.container.slist;
import std.typecons;
import std.conv;
import core.stdc.string;
import std.datetime.stopwatch;
import std.parallelism;
import std.range;
import core.stdc.stdlib : malloc, free;
import math;
import matrix;
import util;
import traits;
import bindings;
import render;
import hermite;
import umdc : edgeTable, sampleSurfaceIntersection, calculateNormal;
Array!uint whichEdgesAreSignedAll(uint config){//TODO make special table for this
int* entry = &edgeTable[config][0];
auto edges = Array!uint();
edges.reserve(3);
for(size_t i = 0; i < 16; ++i){
auto k = entry[i];
if(k >= 0){
edges.insertBack(k);
}else if(k == -1){
continue;
}else{
return edges;
}
}
return edges;
}
void constructQEF1(T)(const ref Array!(Plane!T) planes, Vector3!T centroid, out QEF!T qef){
auto n = planes.length;
auto Ab = Array!T();
Ab.reserve(n * 4);
Ab.length = n * 4;
//auto Ab = zero!(float, 12,4);
import lapacke;
for(size_t i = 0; i < n; ++i){
Ab[4*i+0] = planes[i].normal.x;
Ab[4*i+1] = planes[i].normal.y;
Ab[4*i+2] = planes[i].normal.z;
Ab[4*i+3] = planes[i].normal.dot(planes[i].point - centroid);
}
//TODO test ATA * x = ATb
// auto A1 = Array!T();
// A1.reserve(n * 3);
// A1.length = n * 3;
// for(size_t i = 0; i < n; ++i){
// A1[3*i+0] = planes[i].normal.x;
// A1[3*i+1] = planes[i].normal.y;
// A1[3*i+2] = planes[i].normal.z;
// }
// auto AT = Array!T();
// AT.reserve(3 * n);
// AT.length = 3 * n;
// transpose(&A1[0], n, 3, &AT[0]);
// Matrix3!T ATA;
// mult(&AT[0], &A1[0], 3,n,3, &ATA[0,0]);
// auto b1 = Array!T();
// b1.reserve(n);
// b1.length = n;
// foreach(i;0..n){
// b1[i] = planes[i].normal.dot(planes[i].point - centroid);
// }
// Vector3!T ATB;
// mult(&AT[0], &b1[0], 3,3,1, &ATB[0]);
T[4] tau;
static if( is(T == float) )
LAPACKE_sgeqrf(LAPACK_ROW_MAJOR, cast(int)n, 4, &Ab[0], 4, tau.ptr);
else static if( is(T == double) )
LAPACKE_dgeqrf(LAPACK_ROW_MAJOR, cast(int)n, 4, &Ab[0], 4, tau.ptr);
else
panic!void("not implemented");
auto A = zero!(T,3,3)();
for(size_t i = 0; i < 3; ++i){
for(size_t j = i; j < 3; ++j){
A[i,j] = Ab[4*i + j];
}
}
auto b = vec3!T(Ab[3], Ab[7], Ab[11]);
T rs;
if(n >= 4){
rs = Ab[15] * Ab[15];
}else{
rs = 0;
}
qef.a11 = A[0,0];
qef.a12 = A[0,1];
qef.a13 = A[0,2];
qef.a22 = A[1,1];
qef.a23 = A[1,2];
qef.a33 = A[2,2];
qef.b1 = b[0];
qef.b2 = b[1];
qef.b3 = b[2];
qef.r = rs;
qef.massPoint = centroid;
auto U = zero!(T,3,3);
auto VT = U;
auto S = zero!(T,3,1);
T[2] cache;
//TODO use method for sym matrices
static if( is(T == float) )
LAPACKE_sgesvd(LAPACK_ROW_MAJOR, 'A', 'A', 3, 3, A.array.ptr, 3, S.array.ptr, U.array.ptr, 3, VT.array.ptr, 3, cache.ptr);
else static if( is(T == double) )
LAPACKE_dgesvd(LAPACK_ROW_MAJOR, 'A', 'A', 3, 3, A.array.ptr, 3, S.array.ptr, U.array.ptr, 3, VT.array.ptr, 3, cache.ptr);
else
panic!void("not implemented");
size_t dim = 3;
foreach(i;0..3){
if(S[i].abs() < 0.1F){
--dim;
S[i] = 0.0F;
}else{
S[i] = 1.0F / S[i];
}
}
auto Sm = diag3(S[0], S[1], S[2]);
auto pinv = mult(mult(VT.transpose(), Sm), U.transpose());
auto minimizer = mult(pinv, b);
qef.minimizer = minimizer;
//qef.n = cast(ubyte)dim;
}
//this QEF representation uses QR decomposition and primary - floats
void constructQEF(T)(const ref Array!(Plane!T) planes, Vector3!T centroid, out QEF!T qef){
import lapacke;
auto n = planes.length;
auto Ab = Array!T();
Ab.reserve(n * 4);
Ab.length = n * 4;
for(size_t i = 0; i < n; ++i){
Ab[4*i+0] = planes[i].normal.x;
Ab[4*i+1] = planes[i].normal.y;
Ab[4*i+2] = planes[i].normal.z;
Ab[4*i+3] = planes[i].normal.dot(planes[i].point - centroid);
}
T[4] tau;
static if( is(T == float) )
LAPACKE_sgeqrf(LAPACK_ROW_MAJOR, cast(int)n, 4, &Ab[0], 4, tau.ptr);
else static if( is(T == double) )
LAPACKE_dgeqrf(LAPACK_ROW_MAJOR, cast(int)n, 4, &Ab[0], 4, tau.ptr);
else
panic!void("not implemented");
T rs;
if(n >= 4){
rs = Ab[15] * Ab[15];
}else{
rs = 0;
}
qef.a11 = Ab[0];
qef.a12 = Ab[1];
qef.a13 = Ab[2];
qef.a22 = Ab[5];
qef.a23 = Ab[6];
qef.a33 = Ab[10];
qef.b1 = Ab[3];
qef.b2 = Ab[7];
qef.b3 = Ab[11];
qef.r = rs;
qef.massPoint = centroid;
}
void solveQEF(T)(ref QEF!T qef){
Matrix3!T A = zero!(T,3,3);
A[0,0] = qef.a11;
A[0,1] = qef.a12;
A[0,2] = qef.a13;
A[1,1] = qef.a22;
A[1,2] = qef.a23;
A[2,2] = qef.a33;
Vector3!T b;
b[0] = qef.b1;
b[1] = qef.b2;
b[2] = qef.b3;
import lapacke;
auto U = zero!(T,3,3);
auto VT = U;
auto S = zero!(T,3,1);
T[2] cache;
//TODO use method for sym matrices
static if( is(T == float) )
LAPACKE_sgesvd(LAPACK_ROW_MAJOR, 'A', 'A', 3, 3, A.array.ptr, 3, S.array.ptr, U.array.ptr, 3, VT.array.ptr, 3, cache.ptr);
else static if( is(T == double) )
LAPACKE_dgesvd(LAPACK_ROW_MAJOR, 'A', 'A', 3, 3, A.array.ptr, 3, S.array.ptr, U.array.ptr, 3, VT.array.ptr, 3, cache.ptr);
else
panic!void("not implemented");
foreach(i;0..3){
if(S[i].abs() < 0.1F){
S[i] = 0.0F;
}else{
S[i] = 1.0F / S[i];
}
}
auto Sm = diag3(S[0], S[1], S[2]);
auto pinv = mult(mult(VT.transpose(), Sm), U.transpose());
auto minimizer = mult(pinv, b);
qef.minimizer = minimizer;
}
bool mergeQEFs1(T)(QEF!T** qef, size_t count, out QEF!T collapsed, T thres){
auto Ab = Array!T();
Ab.reserve(16 * count);
Ab.length = 16 * count;
import lapacke;
foreach(i;0..count){
Ab[16*i + 0] = qef[i].a11;
Ab[16*i + 1] = qef[i].a12;
Ab[16*i + 2] = qef[i].a13;
Ab[16*i + 3] = qef[i].b1;
Ab[16*i + 4] = 0;
Ab[16*i + 5] = qef[i].a22;
Ab[16*i + 6] = qef[i].a23;
Ab[16*i + 7] = qef[i].b2;
Ab[16*i + 8] = 0;
Ab[16*i + 9] = 0;
Ab[16*i + 10] = qef[i].a33;
Ab[16*i + 11] = qef[i].b3;
Ab[16*i + 12] = 0;
Ab[16*i + 13] = 0;
Ab[16*i + 14] = 0;
Ab[16*i + 15] = qef[i].r;
}
T[4] tau;
static if( is(T == float) )
LAPACKE_sgeqrf(LAPACK_ROW_MAJOR, 4 * cast(int)count, 4, &Ab[0], 4, tau.ptr);
else static if( is(T == double) )
LAPACKE_dgeqrf(LAPACK_ROW_MAJOR, 4 * cast(int)count, 4, &Ab[0], 4, tau.ptr);
else
panic!void("not implemented");
//writeln("after");
//writeln(Ab.array);
collapsed.r = Ab[15] * Ab[15];
if(collapsed.r > thres){
return false;
}
auto A = zero!(T,3,3)();
for(size_t i = 0; i < 3; ++i){
for(size_t j = i; j < 3; ++j){
A[i,j] = Ab[4*i + j];
}
}
auto b = vec3!T(Ab[3], Ab[7], Ab[11]);
collapsed.a11 = Ab[0];
collapsed.a12 = Ab[1];
collapsed.a13 = Ab[2];
collapsed.a22 = Ab[5];
collapsed.a23 = Ab[6];
collapsed.a33 = Ab[10];
collapsed.b1 = Ab[3];
collapsed.b2 = Ab[7];
collapsed.b3 = Ab[11];
size_t dim = qef[0].n;
Vector3!T centroid = qef[0].massPoint;
size_t ccount = 1;
foreach(j;1..count){
if(qef[j].n == dim){
centroid = centroid + qef[j].massPoint;
ccount += 1;
}
else if(qef[j].n > dim){
dim = qef[j].n;
centroid = qef[j].massPoint;
ccount = 1;
}
}
centroid = centroid / ccount;
//writeln(centroid);
collapsed.massPoint = centroid;
collapsed.n = cast(ubyte)dim;
auto U = zero!(T,3,3);
auto VT = U;
auto S = zero!(T,3,1);
T[2] cache;
static if( is(T == float) )
LAPACKE_sgesvd(LAPACK_ROW_MAJOR, 'A', 'A', 3, 3, A.array.ptr, 3, S.array.ptr, U.array.ptr, 3, VT.array.ptr, 3, cache.ptr);
else static if( is(T == double) )
LAPACKE_dgesvd(LAPACK_ROW_MAJOR, 'A', 'A', 3, 3, A.array.ptr, 3, S.array.ptr, U.array.ptr, 3, VT.array.ptr, 3, cache.ptr);
else
panic!void("not implemented");
foreach(i;0..3){
if(S[i].abs() < 0.1F){
S[i] = 0.0F;
}else{
S[i] = 1.0F / S[i];
}
}
auto Sm = diag3(S[0], S[1], S[2]);
auto pinv = mult(mult(VT.transpose(), Sm), U.transpose());
auto minimizer = mult(pinv, b);
collapsed.minimizer = minimizer;
return true;
}
bool mergeQEFs(T)(QEF!T** qef, size_t count, out QEF!T collapsed, T thres){
auto Ab = Array!T();
Ab.reserve(16 * count);
Ab.length = 16 * count;
import lapacke;
foreach(i;0..count){
Ab[16*i + 0] = qef[i].a11;
Ab[16*i + 1] = qef[i].a12;
Ab[16*i + 2] = qef[i].a13;
Ab[16*i + 3] = qef[i].b1;
Ab[16*i + 4] = 0;
Ab[16*i + 5] = qef[i].a22;
Ab[16*i + 6] = qef[i].a23;
Ab[16*i + 7] = qef[i].b2;
Ab[16*i + 8] = 0;
Ab[16*i + 9] = 0;
Ab[16*i + 10] = qef[i].a33;
Ab[16*i + 11] = qef[i].b3;
Ab[16*i + 12] = 0;
Ab[16*i + 13] = 0;
Ab[16*i + 14] = 0;
Ab[16*i + 15] = qef[i].r;
}
T[4] tau;
static if( is(T == float) )
LAPACKE_sgeqrf(LAPACK_ROW_MAJOR, 4 * cast(int)count, 4, &Ab[0], 4, tau.ptr);
else static if( is(T == double) )
LAPACKE_dgeqrf(LAPACK_ROW_MAJOR, 4 * cast(int)count, 4, &Ab[0], 4, tau.ptr);
else
panic!void("not implemented");
collapsed.r = Ab[15] * Ab[15];
if(collapsed.r > thres){
return false;
}
collapsed.a11 = Ab[0];
collapsed.a12 = Ab[1];
collapsed.a13 = Ab[2];
collapsed.a22 = Ab[5];
collapsed.a23 = Ab[6];
collapsed.a33 = Ab[10];
collapsed.b1 = Ab[3];
collapsed.b2 = Ab[7];
collapsed.b3 = Ab[11];
Vector3!T centroid = qef[0].massPoint;
size_t ccount = 1;
foreach(j;1..count){
centroid = centroid + qef[j].massPoint;
ccount += 1;
}
centroid = centroid / ccount;
collapsed.massPoint = centroid;
return true;
}
Node!(T)* sample(T, alias DenFn3, bool SIMPLIFY)(ref DenFn3 f, Vector3!T offset, T a, size_t cellCount, size_t accuracy,
T thres, ref VoxelRenderData!T renderData){
ubyte maxDepth = cast(ubyte) log2(cellCount);
auto size = cellCount;
Array!ubyte signedGrid = Array!(ubyte)(); //TODO bit fields ?
signedGrid.reserve((size + 1) * (size + 1) * (size + 1));
signedGrid.length = (size + 1) * (size + 1) * (size + 1);
Array!(Node!(T)*) grid = Array!(Node!(T)*)();
grid.reserve(size * size * size);
grid.length = size * size * size;
pragma(inline,true)
size_t indexDensity(size_t x, size_t y, size_t z){
return z * (size + 1) * (size + 1) + y * (size + 1) + x;
}
pragma(inline,true)
size_t indexCell(size_t x, size_t y, size_t z, size_t s = size){
return z * s * s + y * s + x;
}
pragma(inline,true)
Cube!T cube(size_t x, size_t y, size_t z){//cube bounds of a cell in the grid
return Cube!T(offset + Vector3!T([(x + 0.5F)*a, (y + 0.5F) * a, (z + 0.5F) * a]), a / 2.0F);
}
pragma(inline, true)
void sampleGridAt(size_t x, size_t y, size_t z){
auto p = offset + vec3!T(x * a, y * a, z * a);
immutable auto s = f(p);
ubyte b;
if(s < 0.0){
b = 1;
}
signedGrid[indexDensity(x,y,z)] = b;
}
pragma(inline,true)
void loadCell(size_t x, size_t y, size_t z){
auto cellMin = offset + Vector3!T([x * a, y * a, z * a]);
//immutable auto bounds = cube(x,y,z);
uint config;
if(signedGrid[indexDensity(x,y,z)]){
config |= 1;
}
if(signedGrid[indexDensity(x+1,y,z)]){
config |= 2;
}
if(signedGrid[indexDensity(x+1,y,z+1)]){
config |= 4;
}
if(signedGrid[indexDensity(x,y,z+1)]){
config |= 8;
}
if(signedGrid[indexDensity(x,y+1,z)]){
config |= 16;
}
if(signedGrid[indexDensity(x+1,y+1,z)]){
config |= 32;
}
if(signedGrid[indexDensity(x+1,y+1,z+1)]){
config |= 64;
}
if(signedGrid[indexDensity(x,y+1,z+1)]){
config |= 128;
}
if(config == 0){ //fully outside
auto n = cast(HomogeneousNode!T*) malloc(HomogeneousNode!(T).sizeof);
(*n).__node_type__ = NODE_TYPE_HOMOGENEOUS;
(*n).isPositive = true;
(*n).depth = maxDepth;
grid[indexCell(x,y,z)] = cast(Node!T*)n;
}else if(config == 255){ //fully inside
auto n = cast(HomogeneousNode!T*) malloc(HomogeneousNode!(T).sizeof);
(*n).__node_type__ = NODE_TYPE_HOMOGENEOUS;
(*n).isPositive = false;
(*n).depth = maxDepth;
grid[indexCell(x,y,z)] = cast(Node!T*)n;
}else{ //heterogeneous
auto edges = whichEdgesAreSignedAll(config);
auto n = cast(HeterogeneousNode!T*) malloc(HeterogeneousNode!(T).sizeof);
(*n).__node_type__ = NODE_TYPE_HETEROGENEOUS;
(*n).depth = maxDepth;
HermiteData!T*[12] zeroedData;
n.hermiteData = zeroedData;
auto planes = Array!(Plane!T)();
Vector3!T centroid = zero3!T();
foreach(curEntry; edges){
import core.stdc.stdlib : malloc;
HermiteData!(T)* data = cast(HermiteData!(T)*)malloc((HermiteData!T).sizeof); //TODO needs to be cleared
auto corners = edgePairs[curEntry];
auto edge = Line!(T,3)(cellMin + cornerPoints[corners.x] * a, cellMin + cornerPoints[corners.y] * a);
auto intersection = sampleSurfaceIntersection!(T, DenFn3)(edge, cast(uint)accuracy.log2() + 1, f);
auto normal = calculateNormal!(T, DenFn3)(intersection, a/1024.0, f); //TODO division by 1024 is improper for very high sizes
*data = HermiteData!T(intersection, normal);
(*n).hermiteData[curEntry] = data;
(*n).cornerSigns = cast(ubyte) config;
centroid = centroid + intersection;
planes.insertBack(Plane!T(intersection, normal));
}
centroid = centroid / planes.length;
QEF!T qef;
constructQEF!T(planes, centroid, qef);
(*n).qef = qef;
grid[indexCell(x,y,z)] = cast(Node!T*)n;
}
}
pragma(inline,true)
void simplify(size_t i, size_t j, size_t k, ref Array!(Node!(T)*) sparseGrid,//TODO this func is used not only for simplificatin, prob rename
ref Array!(Node!(T)*) denseGrid, size_t curSize, size_t curDepth){//depth is inverted
auto n0 = denseGrid[indexCell(2*i, 2*j, 2*k, 2*curSize)];
auto n1 = denseGrid[indexCell(2*i+1, 2*j, 2*k, 2*curSize)];
auto n2 = denseGrid[indexCell(2*i+1, 2*j, 2*k+1, 2*curSize)];
auto n3 = denseGrid[indexCell(2*i, 2*j, 2*k+1, 2*curSize)];
auto n4 = denseGrid[indexCell(2*i, 2*j+1, 2*k, 2*curSize)];
auto n5 = denseGrid[indexCell(2*i+1, 2*j+1, 2*k, 2*curSize)];
auto n6 = denseGrid[indexCell(2*i+1, 2*j+1, 2*k+1, 2*curSize)];
auto n7 = denseGrid[indexCell(2*i, 2*j+1, 2*k+1, 2*curSize)];
Node!(T)*[8] nodes = [n0,n1,n2,n3,n4,n5,n6,n7];
size_t homoCount = 0;
bool isPositive;
QEF!T*[8] qefs;
size_t qefCount = 0;
pragma(inline, true)
void setInterior(){
auto interior = cast(InteriorNode!(T)*) malloc(InteriorNode!(T).sizeof);
(*interior).children = nodes;
(*interior).depth = cast(ubyte) curDepth;
(*interior).__node_type__ = NODE_TYPE_INTERIOR;
foreach(i;0..8){
auto child = nodes[i];
if(nodeType(child) == NODE_TYPE_HETEROGENEOUS){
auto het = asHetero!T(child);
solveQEF(het.qef);
}
}
sparseGrid[indexCell(i,j,k, curSize)] = cast(Node!(T)*)interior;
}
foreach(node; nodes){
auto cur = (*node).__node_type__;
if(cur == NODE_TYPE_INTERIOR){
setInterior();
return;
}else if(cur == NODE_TYPE_HOMOGENEOUS) { //homogeneous
isPositive = (*(cast(HomogeneousNode!(T)*) node)).isPositive;
homoCount += 1;
}else{ //heterogeneous
qefs[qefCount] = &asHetero!T(node).qef;
qefCount += 1;
}
}
//all same homo or homo + hetero
if(homoCount == 8){
//all cells are fully in or out
auto homo = cast(HomogeneousNode!(T)*) malloc(HomogeneousNode!(T).sizeof);
(*homo).isPositive = isPositive;
(*homo).depth = cast(ubyte) curDepth;
(*homo).__node_type__ = NODE_TYPE_HOMOGENEOUS;
sparseGrid[indexCell(i,j,k, curSize)] = cast(Node!(T)*)homo;
foreach(l;0..8){
free(nodes[l]);
}
}else{
static if(SIMPLIFY){
QEF!T mergedQEF;
bool merged = mergeQEFs(qefs.ptr, qefCount, mergedQEF, thres);
if(merged){
auto hetero = cast(HeterogeneousNode!(T)*) malloc(HeterogeneousNode!(T).sizeof);
hetero.depth = cast(ubyte) curDepth;
hetero.__node_type__ = NODE_TYPE_HETEROGENEOUS;
hetero.qef = mergedQEF;
hetero.cornerSigns = 0;
foreach(l;0..8){
if(nodes[l].__node_type__ == NODE_TYPE_HOMOGENEOUS){
hetero.cornerSigns |= !asHomo!T(nodes[l]).isPositive << l;
}else{
hetero.cornerSigns |= ((asHetero!T(nodes[l]).cornerSigns >> l) & 1) << l;
}
}
HermiteData!T*[12] data;
foreach(o;0..12){
foreach(l;0..8){
if(nodes[l].__node_type__ == NODE_TYPE_HETEROGENEOUS){
auto hnode = asHetero!T(nodes[l]);
if(hnode.hermiteData[o]){
if(!data[o]){
data[o] = cast(HermiteData!T*) malloc((HermiteData!T).sizeof);
data[o].normal = zero3!T();
data[o].intersection = zero3!T(); //TODO do we even need this ?
}
data[o].normal = data[o].normal + hnode.hermiteData[o].normal;
}
}
}
if(data[o])
data[o].normal = data[o].normal.normalize();
}
hetero.hermiteData = data;
sparseGrid[indexCell(i,j,k, curSize)] = cast(Node!(T)*)hetero;
foreach(l;0..8){
free(nodes[l]);
}
//setInterior();//TODO
}else{
setInterior();
}
}else{
setInterior();
}
}
}
foreach(i; parallel(iota(0, (size+1) * (size+1) * (size+1) ))){
auto z = i / (size+1) / (size+1);
auto y = i / (size+1) % (size+1);
auto x = i % (size+1);
sampleGridAt(x,y,z);
}
foreach(i; parallel(iota(0, size * size * size ))){
auto z = i / size / size;
auto y = i / size % size;
auto x = i % size;
loadCell(x,y,z);
}
auto curSize = size;
auto curDepth = maxDepth;
while(curSize != 1){
curSize /= 2;
curDepth -= 1;
Array!(Node!(T)*) sparseGrid = Array!(Node!(T)*)();
sparseGrid.reserve(curSize * curSize * curSize);
sparseGrid.length = (curSize * curSize * curSize);
foreach(i; parallel(iota(0, curSize * curSize * curSize ))){
auto z = i / curSize / curSize;
auto y = i / curSize % curSize;
auto x = i % curSize;
simplify(x,y,z, sparseGrid, grid, curSize, curDepth);
}
grid = sparseGrid;
}
Node!(T)* tree = grid[0]; //grid contains only one element here
auto indexNode = delegate(HeterogeneousNode!T* het, Cube!T bounds){
renderData.ptr.insertBack(het);//cannot be run in parallel
//auto ind = Array!uint();
//memcpy(&het.indices, &ind, (Array!uint).sizeof);//this is needed instead of regular `=` because `indices` is not initialized correcty (with malloc)
het.index = cast(uint)renderData.ptr.length - 1;
Vector3!float normal = zero3!float();
size_t normalCount;
foreach(i;0..12){
if(het.hermiteData[i]){
normal = normal + het.hermiteData[i].normal;
normalCount += 1;
}
}
normal = normal / normalCount;
renderData.addFloat3(het.qef.minimizer + het.qef.massPoint);
renderData.addFloat3(vec3!float(1.0F, 1.0F, 1.0F));
renderData.addFloat3(normal);
};
auto ext = vec3!T(a * size / 2,a * size / 2,a * size / 2);
auto bounds = Cube!T(offset + ext, ext.x);
foreachHeterogeneousLeaf!(T, indexNode)(tree, bounds);
return tree;
}
auto faceProcTable2 = [1, 0, 1, 0,
1, 0, 1, 0,
2, 2, 2, 2]; //face dir table
auto faceProcTable3 = [[3,2,6,7, 0,1,5,4], [1,2,6,5, 0,3,7,4], [7,6,5,4, 3,2,1,0]]; //faceProc ->4 faceProc's
auto faceProcTable4 = [[[6,7,4,5, 11,10,9,8], [3,7,4,0, 6,2,0,4], [2,3,0,1, 11,10,9,8], [2,6,5,1, 6,2,0,4]],//
[[5,6,7,4, 10,9,8,11], [6,2,3,7, 1,5,7,3], [1,2,3,0, 10,9,8,11], [5,1,0,4, 1,5,7,3]],
[[4,5,1,0, 5,7,3,1], [7,4,0,3, 4,6,2,0], [7,6,2,3, 5,7,3,1], [6,5,1,2, 4,6,2,0]]]; //faceProc ->4 edgeProc's
auto edgeProcTable = [[0,1,5,4, 5,7,3,1],
[5,6,2,1, 2,0,4,6],
[6,7,3,2, 3,1,5,7],
[3,0,4,7, 4,6,2,0],
[3,2,1,0, 9,8,11,10],
[7,6,5,4, 9,8,11,10]]; //cellProc ->6 edgeProc
auto edgeProcTable2 = [
[0u,1u],
[1u,2u],
[3u,2u],
[0u,3u],
[4u,5u],
[5u,6u],
[7u,6u],
[4u,7u],
[0u,4u],
[1u,5u],
[2u,6u],
[3u,7u],
];
void faceProc(T)(ref VoxelRenderData!T renderer, Node!(T)* a, Node!(T)* b, uint dir){
if(nodeType(a) == NODE_TYPE_HOMOGENEOUS || nodeType(b) == NODE_TYPE_HOMOGENEOUS){
return;
}
auto n = &faceProcTable4[dir];
auto t = &faceProcTable3[dir];
switch(nodeType(a)){
case NODE_TYPE_INTERIOR:
auto aint = cast( InteriorNode!(T)* ) a;
switch(nodeType(b)){
case NODE_TYPE_INTERIOR: //both nodes are internal
auto bint = cast( InteriorNode!(T)* ) b;
foreach(i;0..4){
faceProc(renderer, aint.children[(*t)[i]], bint.children[(*t)[i+4]], dir); //ok
edgeProc(renderer, aint.children[(*n)[i][0]], aint.children[(*n)[i][1]], bint.children[(*n)[i][2]], bint.children[(*n)[i][3]], (*n)[i][4], (*n)[i][5], (*n)[i][6], (*n)[i][7]); //ok
}
break;
default:
foreach(i;0..4){
faceProc(renderer, aint.children[(*t)[i]], b, dir); //ok
edgeProc(renderer, aint.children[(*n)[i][0]], aint.children[(*n)[i][1]], b, b, (*n)[i][4], (*n)[i][5], (*n)[i][6], (*n)[i][7]); //ok
}
break;
}
break;
default:
switch(nodeType(b)){
case NODE_TYPE_INTERIOR:
auto bint = cast( InteriorNode!(T)* ) b;
foreach(i;0..4){
faceProc(renderer, a, bint.children[(*t)[i+4]], dir); //ok
edgeProc(renderer, a, a, bint.children[(*n)[i][2]], bint.children[(*n)[i][3]], (*n)[i][4], (*n)[i][5], (*n)[i][6], (*n)[i][7]); //ok
}
break;
default:
break;
}
break;
}
}
static int CALLS = 0;
void edgeProc(T)(ref VoxelRenderData!T renderer, Node!(T)* a, Node!(T)* b, Node!(T)* c, Node!(T)* d, size_t ai, size_t bi, size_t ci, size_t di){
auto types = [nodeType(a), nodeType(b), nodeType(c), nodeType(d)];
auto nodes = [a,b,c,d];
auto configs = [ai,bi,ci,di];
if(types[0] != NODE_TYPE_INTERIOR && types[1] != NODE_TYPE_INTERIOR && types[2] != NODE_TYPE_INTERIOR && types[3] != NODE_TYPE_INTERIOR){ //none of the nodes are interior
//all nodes are heterogeneous
//TODO make the condition computation faster ^^^ only one check is needed if NODE_TYPE_X are set correctly
if(types[0] == NODE_TYPE_HOMOGENEOUS || types[1] == NODE_TYPE_HOMOGENEOUS || types[2] == NODE_TYPE_HOMOGENEOUS || types[3] == NODE_TYPE_HOMOGENEOUS){
return;
}
CALLS += 1;
Vector3!float[4] pos;
Vector3!float color = vecS!([1.0F,1.0F,1.0F]);
Vector3!float normal;
int index = -1;
int maxDepth = -1;
bool flip2;
int[4] sc;
foreach(i;0..4){
auto node = cast(HeterogeneousNode!T*) nodes[i];
auto p = edgeProcTable2[configs[i]]; //TODO
auto p1 = (node.cornerSigns >> p[0]) & 1;
auto p2 = (node.cornerSigns >> p[1]) & 1;
if(node.depth > maxDepth){
index = i;
maxDepth = node.depth;
if(p1 == 0){
flip2 = true;
}
}
if(p1 != p2){
sc[i] = 1;
}else{
sc[i] = 0;
}
static if( is(T == double) )
pos[i] = (node.qef.minimizer + node.qef.massPoint).mapf(x => cast(float)x);
else static if( is(T == float) ){
pos[i] = (node.qef.minimizer + node.qef.massPoint);
}
else{
panic!void("not implemented");
}
}
if(sc[index] == 0) return;
auto node = (* cast(HeterogeneousNode!T*) nodes[index]);
static if( is(T == double) )
normal = node.hermiteData[configs[index]].normal.mapf(x => cast(float) x);
else static if( is(T == float) ){
normal = node.hermiteData[configs[index]].normal;
}
else{
panic!void("not implemented");
}
auto hnodes = [asHetero!T(nodes[0]),asHetero!T(nodes[1]),asHetero!T(nodes[2]),asHetero!T(nodes[3])];
//TODO fix incorrect (inverted) triangle indexing
if(!flip2){
if(nodes[0] == nodes[1]){//same nodes => triangle
//renderer.addTriangle([hnodes[0], hnodes[2], hnodes[3]], [pos[0], pos[2], pos[3]], color, normal);
renderer.addTriangle([hnodes[0], hnodes[2], hnodes[3]]);
//}else if(nodes[1] == nodes[3]){ //no possible
}else if(nodes[3] == nodes[2]){
//renderer.addTriangle([hnodes[0], hnodes[1], hnodes[3]], [pos[0], pos[1], pos[3]], color, normal);
renderer.addTriangle([hnodes[0], hnodes[1], hnodes[3]]);
//}else if(nodes[2] == nodes[0]){ //not possible
}else{
//renderer.addTriangle([hnodes[0], hnodes[1], hnodes[2]], [pos[0], pos[1], pos[2]], color, normal);
//renderer.addTriangle([hnodes[0], hnodes[2], hnodes[3]], [pos[0], pos[2], pos[3]], color, normal);
renderer.addTriangle([hnodes[0], hnodes[1], hnodes[2]]);
renderer.addTriangle([hnodes[0], hnodes[2], hnodes[3]]);
}
}else{
if(nodes[0] == nodes[1]){//same nodes => triangle
//renderer.addTriangle([hnodes[0], hnodes[3], hnodes[2]], [pos[0], pos[3], pos[2]], color, normal);
renderer.addTriangle([hnodes[0], hnodes[3], hnodes[2]]);
//}else if(nodes[1] == nodes[3]){
}else if(nodes[3] == nodes[2]){
//renderer.addTriangle([hnodes[0], hnodes[3], hnodes[1]], [pos[0], pos[3], pos[1]], color, normal);
renderer.addTriangle([hnodes[0], hnodes[3], hnodes[1]]);
//}else if(nodes[2] == nodes[0]){
}else{
// renderer.addTriangle([hnodes[0], hnodes[2], hnodes[1]], [pos[0], pos[2], pos[1]], color, normal);
// renderer.addTriangle([hnodes[0], hnodes[3], hnodes[2]], [pos[0], pos[3], pos[2]], color, normal);
renderer.addTriangle([hnodes[0], hnodes[2], hnodes[1]]);
renderer.addTriangle([hnodes[0], hnodes[3], hnodes[2]]);
}
}
}else{//subdivide
Node!(T)*[4] sub1;
Node!(T)*[4] sub2;
foreach(i;0..4){
if(types[i] != NODE_TYPE_INTERIOR){
sub1[i] = nodes[i];
sub2[i] = nodes[i];
}else{
auto interior = cast( InteriorNode!(T)* ) nodes[i];
auto p = edgeProcTable2[configs[i]];
sub1[i] = interior.children[p[0]];
sub2[i] = interior.children[p[1]];
}
}
edgeProc(renderer, sub1[0], sub1[1], sub1[2], sub1[3], ai, bi, ci, di);
edgeProc(renderer, sub2[0], sub2[1], sub2[2], sub2[3], ai, bi, ci, di);
}
}
void cellProc(T)(ref VoxelRenderData!T renderer, Node!(T)* node){ //ok
switch(nodeType(node)){
case NODE_TYPE_INTERIOR:
auto interior = cast( InteriorNode!(T)* ) node;
auto ch = (*interior).children;
foreach(i;0..8){
auto c = ch[i];
cellProc(renderer, c); //ok
}
foreach(i;0..12){
auto pair = edgeProcTable2[i];
auto dir = faceProcTable2[i];
faceProc(renderer, ch[pair[0]], ch[pair[1]], dir); //ok
}
foreach(i;0..6){
auto tuple8 = &edgeProcTable[i];
edgeProc(renderer, ch[(*tuple8)[0]], ch[(*tuple8)[1]], ch[(*tuple8)[2]], ch[(*tuple8)[3]],
(*tuple8)[4], (*tuple8)[5], (*tuple8)[6], (*tuple8)[7]);//ok
}
break;
default: break;
}
}
void extract(T)(ref AdaptiveVoxelStorage!T storage, ref VoxelRenderData!T data){
data.preallocateBuffersBasedOnNodeCount();
cellProc!T(data, storage.root);
}
void foreachHeterogeneousLeaf(T, alias f)(Node!(T)* node, Cube!T bounds){
final switch(nodeType(node)){
case NODE_TYPE_INTERIOR:
auto interior = cast( InteriorNode!(T)* ) node;
auto ch = (*interior).children;
foreach(i;0..8){
auto c = ch[i];
auto tr = cornerPointsOrigin[i] * bounds.extent / 2;
auto newBounds = Cube!(T)(bounds.center + tr, bounds.extent/2);
foreachHeterogeneousLeaf!(T, f)(c, newBounds);
}
break;
case NODE_TYPE_HOMOGENEOUS:
break;
case NODE_TYPE_HETEROGENEOUS:
f( cast(HeterogeneousNode!T*) node, bounds);
break;
}
}
void foreachLeaf(T, alias f)(Node!(T)* node, Cube!T bounds){
final switch(nodeType(node)){
case NODE_TYPE_INTERIOR:
auto interior = cast( InteriorNode!(T)* ) node;
auto ch = (*interior).children;
foreach(i;0..8){
auto c = ch[i];
auto tr = cornerPointsOrigin[i] * bounds.extent / 2;
auto newBounds = Cube!(T)(bounds.center + tr, bounds.extent/2);
foreachLeaf!(T, f)(c, newBounds);
}
break;
case NODE_TYPE_HOMOGENEOUS:
f(node, bounds);
break;
case NODE_TYPE_HETEROGENEOUS:
f(node, bounds);
break;
}
}
|
D
|
sexual relations between a man and a boy (usually anal intercourse with the boy as a passive partner)
|
D
|
/**
* CBOR: cbor <-> Json
*/
module veda.core.util.cbor8json;
private import std.outbuffer, std.stdio, std.string, std.conv, std.datetime;
private import vibe.data.json;
private import veda.type, veda.onto.resource, veda.onto.individual;
private import onto.lang;
private import util.cbor;
string dummy;
private static int read_element(Json *individual, ubyte[] src, out string _key, string subject_uri = null,
string predicate_uri = null)
{
int pos;
ElementHeader header;
pos = read_type_value(src[ 0..$ ], &header);
if (pos == 0)
{
writeln("EX! cbor8json.read_element src.length=", src.length);
throw new Exception("no content in pos");
}
if (header.type == MajorType.MAP)
{
//writeln("IS MAP, length=", header.len, ", pos=", pos);
string new_subject_uri;
string key;
int len = read_element(individual, src[ pos..$ ], key);
if (len <= 0)
{
writeln("@^^^1 individual=", *individual);
throw new Exception("no content in pos");
}
pos += len;
string val;
len = read_element(individual, src[ pos..$ ], val);
if (len <= 0)
{
writeln("@^^^2 individual=", *individual);
throw new Exception("no content in pos");
}
pos += len;
if (key == "@")
{
if (subject_uri !is null)
{
Json new_individual = Json.emptyObject;
individual = &new_individual;
}
(*individual)[ "@" ] = val.dup;
new_subject_uri = val;
//writeln ("@ id:", val);
}
foreach (i; 1 .. header.v_long)
{
int len1 = read_element(individual, src[ pos..$ ], key);
if (len1 <= 0)
{
writeln("@^^^3 individual=", *individual);
throw new Exception("no content in pos");
}
pos += len1;
string new_predicate_uri = key;
len1 = read_element(individual, src[ pos..$ ], dummy, new_subject_uri, new_predicate_uri);
if (len1 <= 0)
{
writeln("@^^^4 individual=", *individual);
throw new Exception("no content in pos");
}
pos += len1;
}
}
else if (header.type == MajorType.TEXT_STRING)
{
//writeln ("IS STRING, length=", header.len, ", pos=", pos);
int ep = cast(int)(pos + header.v_long);
string str = cast(string)src[ pos..ep ].dup;
_key = str;
//writeln ("[", str, "]");
if (subject_uri !is null && predicate_uri !is null)
{
//writeln ("*1 |", individual.toString (), "|");
Json resources = individual.get!(Json[ string ]).get(predicate_uri, Json.emptyArray);
//Json resources = kk.get (predicate_uri, Json.emptyArray);
//writeln ("JSON0:", resources);
//Json* resources = individual[predicate_uri];
Json resource_json = Json.emptyObject;
if (header.tag == TAG.TEXT_RU)
{
resource_json[ "type" ] = text(DataType.String);
resource_json[ "data" ] = str;
resource_json[ "lang" ] = text(LANG.RU);
}
else if (header.tag == TAG.TEXT_EN)
{
resource_json[ "type" ] = text(DataType.String);
resource_json[ "data" ] = str;
resource_json[ "lang" ] = text(LANG.EN);
}
else if (header.tag == TAG.URI)
{
resource_json[ "type" ] = text(DataType.Uri);
// if (str.indexOf('/') > 0)
resource_json[ "data" ] = str;
}
else
{
resource_json[ "type" ] = text(DataType.String);
resource_json[ "data" ] = str;
resource_json[ "lang" ] = text(LANG.NONE);
}
//writeln ("JSON1:", resource_json.toString ());
resources ~= resource_json;
//kk[predicate_uri] = resources;
//writeln ("JSON2:", resources.toString ());
(*individual)[ predicate_uri ] = resources;
//writeln ("JSON3:", individual.toString ());
}
pos = ep;
}
else if (header.type == MajorType.NEGATIVE_INTEGER)
{
long value = header.v_long;
Json resources = individual.get!(Json[ string ]).get(predicate_uri, Json.emptyArray);
Json resource_json = Json.emptyObject;
//Resources resources = individual.resources.get(predicate_uri, Resources.init);
if (header.tag == TAG.EPOCH_DATE_TIME)
{
// writeln ("@p #read_element TAG.EPOCH_DATE_TIME value=", value);
resource_json[ "type" ] = text(DataType.Datetime);
SysTime st = SysTime(unixTimeToStdTime(value), UTC());
resource_json[ "data" ] = st.toISOExtString();
}
else
{
resource_json[ "type" ] = text(DataType.Integer);
resource_json[ "data" ] = value;
}
resources ~= resource_json;
(*individual)[ predicate_uri ] = resources;
}
else if (header.type == MajorType.UNSIGNED_INTEGER)
{
//writeln ("@p #read_element MajorType.UNSIGNED_INTEGER #0");
long value = header.v_long;
Json resources = individual.get!(Json[ string ]).get(predicate_uri, Json.emptyArray);
Json resource_json = Json.emptyObject;
//Resources resources = individual.resources.get(predicate_uri, Resources.init);
if (header.tag == TAG.EPOCH_DATE_TIME)
{
// writeln ("@p #read_element TAG.EPOCH_DATE_TIME value=", value);
resource_json[ "type" ] = text(DataType.Datetime);
SysTime st = SysTime(unixTimeToStdTime(value), UTC());
resource_json[ "data" ] = st.toISOExtString();
}
else
{
resource_json[ "type" ] = text(DataType.Integer);
resource_json[ "data" ] = value;
}
resources ~= resource_json;
(*individual)[ predicate_uri ] = resources;
//writeln ("@p #read_element MajorType.UNSIGNED_INTEGER #end");
}
else if (header.type == MajorType.FLOAT_SIMPLE)
{
Json resources = individual.get!(Json[ string ]).get(predicate_uri, Json.emptyArray);
Json resource_json = Json.emptyObject;
//Resources resources = individual.resources.get(predicate_uri, Resources.init);
if (header.v_long == TRUE)
{
resource_json[ "type" ] = text(DataType.Boolean);
resource_json[ "data" ] = true;
resources ~= resource_json;
(*individual)[ predicate_uri ] = resources;
}
else if (header.v_long == FALSE)
{
resource_json[ "type" ] = text(DataType.Boolean);
resource_json[ "data" ] = false;
resources ~= resource_json;
(*individual)[ predicate_uri ] = resources;
}
else
{
}
}
else if (header.type == MajorType.ARRAY)
{
if (header.tag == TAG.DECIMAL_FRACTION)
{
Json resources = individual.get!(Json[ string ]).get(predicate_uri, Json.emptyArray);
Json resource_json = Json.emptyObject;
//Resources resources = individual.resources.get(predicate_uri, Resources.init);
ElementHeader mantissa;
pos += read_type_value(src[ pos..$ ], &mantissa);
ElementHeader exponent;
pos += read_type_value(src[ pos..$ ], &exponent);
resource_json[ "type" ] = text(DataType.Decimal);
resource_json[ "data" ] = decimal(mantissa.v_long, exponent.v_long).toDouble();
resources ~= resource_json;
(*individual)[ predicate_uri ] = resources;
}
else
{
//writeln ("IS ARRAY, length=", header.len, ", pos=", pos);
foreach (i; 0 .. header.v_long)
{
int len = read_element(individual, src[ pos..$ ], dummy, subject_uri, predicate_uri);
if (len <= 0)
{
writeln("@^^^5 individual=", *individual);
throw new Exception("no content in pos");
}
pos += len;
}
}
}
else if (header.type == MajorType.TAG)
{
//writeln ("IS TAG, length=", header.len, ", pos=", pos);
}
return pos;
}
// ///////////////////////////////////////////////////////////////////////////////////
public int cbor2json(Json *individual, string in_str)
{
try
{
int res = read_element(individual, cast(ubyte[])in_str, dummy);
// writeln ("JSON OUT:", individual.toString ());
return res;
}
catch (Exception ex)
{
writeln("@@@ ex=", ex.msg);
return -1;
}
}
|
D
|
instance ItSe_XardasNotfallBeutel_MIS(C_Item)
{
name = "Very Strange Leather Satchel";
mainflag = ITEM_KAT_NONE;
flags = ITEM_MULTI | ITEM_MISSION;
value = 0;
visual = "ItMi_Pocket.3ds";
scemeName = "MAPSEALED";
material = MAT_METAL;
on_state[0] = Use_XardasNotfallBeutel;
description = name;
text[0] = "";
text[1] = "The bag seems to";
text[2] = "contain a hard object";
text[3] = "and a document.";
text[4] = "";
text[5] = NAME_Value;
count[5] = value;
};
func void Use_XardasNotfallBeutel()
{
var string concatText;
CreateInvItems(hero,ItWr_XardasErmahnungFuerIdioten_MIS,1);
CreateInvItems(hero,ItMi_InnosEye_Discharged_Mis,1);
concatText = ConcatStrings("2",PRINT_ItemsErhalten);
Print(concatText);
};
instance ItWr_XardasErmahnungFuerIdioten_MIS(C_Item)
{
name = "Xardas' Warning Letter";
mainflag = ITEM_KAT_DOCS;
flags = ITEM_MISSION;
value = 0;
visual = "ItWr_Scroll_02.3DS";
material = MAT_LEATHER;
on_state[0] = Use_XardasErmahnungFuerIdioten;
scemeName = "MAP";
description = name;
};
func void Use_XardasErmahnungFuerIdioten()
{
var int nDocID;
nDocID = Doc_Create();
Doc_SetPages(nDocID,1);
Doc_SetPage(nDocID,0,"letters.TGA",0);
Doc_SetFont(nDocID,0,FONT_BookHeadline);
Doc_SetMargins(nDocID,-1,50,50,50,50,1);
Doc_SetFont(nDocID,0,FONT_Book);
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLines(nDocID,0,"My young protégé, you disappoint me greatly. How could you leave on the ship and not take the Eye of Innos?");
Doc_PrintLines(nDocID,0,"I can only hope that there are limits to your negligence. Otherwise you will never rid the world of Evil and I will be forced to personally execute you for your stupidity.");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0," Xardas");
Doc_Show(nDocID);
};
instance ItWr_Krypta_Garon(C_Item)
{
name = "Old letter";
mainflag = ITEM_KAT_DOCS;
flags = ITEM_MISSION;
value = 0;
visual = "ItWr_Scroll_02.3DS";
material = MAT_LEATHER;
on_state[0] = Use_Krypta_Garon;
scemeName = "MAP";
description = name;
text[3] = "in shaky handwriting.";
};
func void Use_Krypta_Garon()
{
var int nDocID;
nDocID = Doc_Create();
Doc_SetPages(nDocID,1);
Doc_SetPage(nDocID,0,"letters.TGA",0);
Doc_SetFont(nDocID,-1,FONT_Book);
Doc_SetMargins(nDocID,-1,50,50,50,50,1);
Doc_PrintLine(nDocID,0,"");
Doc_PrintLines(nDocID,0,"I have failed. In vain I have tried to keep Inubis on the path of Good.");
Doc_PrintLines(nDocID,0,"At first I believed I was dead. But there is strength left yet in Ivan's old bones.");
Doc_PrintLines(nDocID,0,"Inubis has arisen from the dead. Banished by the ancient order of the paladins, he now seeks revenge for his curse.");
Doc_PrintLines(nDocID,0,"Many of his followers are with him. I have no idea how a warlord like Inubis could become so evil.");
Doc_PrintLines(nDocID,0,"I found his tomb in this crypt. But I am uncertain whether I will ever be able to report my find. Therefore I write these lines and hope that they may be found.");
Doc_PrintLines(nDocID,0,"Be warned. A mighty enemy is reaching out for the souls of the just. Inubis will not be the last.");
Doc_PrintLine(nDocID,0," ");
Doc_PrintLine(nDocID,0,"May Innos save your souls.");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0," Ivan");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"");
Doc_SetMargins(nDocID,-1,200,50,50,50,1);
Doc_Show(nDocID);
};
instance ItKe_OrkKnastDI_MIS(C_Item)
{
name = "Key of the Orcish Colonel";
mainflag = ITEM_KAT_NONE;
flags = ITEM_MISSION;
value = Value_Key_01;
visual = "ItKe_Key_01.3ds";
material = MAT_METAL;
description = name;
text[5] = NAME_Value;
count[5] = value;
};
instance ItKe_EVT_UNDEAD_01(C_Item)
{
name = "Key of Archol";
mainflag = ITEM_KAT_NONE;
flags = ITEM_MISSION;
value = Value_Key_03;
visual = "ItKe_Key_03.3ds";
material = MAT_METAL;
description = name;
text[2] = name;
};
instance ItKe_EVT_UNDEAD_02(C_Item)
{
name = "Key of the Key Master";
mainflag = ITEM_KAT_NONE;
flags = ITEM_MISSION;
value = Value_Key_03;
visual = "ItKe_Key_02.3ds";
material = MAT_METAL;
description = name;
text[5] = NAME_Value;
count[5] = value;
};
instance ItKe_LastDoorToUndeadDrgDI_MIS(C_Item)
{
name = "Black Magician's Room Key";
mainflag = ITEM_KAT_NONE;
flags = ITEM_MISSION;
value = Value_Key_03;
visual = "ItKe_Key_03.3ds";
material = MAT_METAL;
description = name;
text[5] = NAME_Value;
count[5] = value;
};
instance ItWr_LastDoorToUndeadDrgDI_MIS(C_Item)
{
name = "Black Magician's Scroll";
mainflag = ITEM_KAT_DOCS;
flags = ITEM_MISSION;
value = 0;
visual = "ItWr_Scroll_02.3DS";
material = MAT_LEATHER;
on_state[0] = Use_ItWr_LastDoorToUndeadDrgDI_MIS;
scemeName = "MAP";
description = name;
};
func void Use_ItWr_LastDoorToUndeadDrgDI_MIS()
{
var int nDocID;
nDocID = Doc_Create();
Doc_SetPages(nDocID,1);
Doc_SetPage(nDocID,0,"letters.TGA",0);
Doc_SetFont(nDocID,-1,FONT_Book);
Doc_SetMargins(nDocID,-1,50,50,50,50,1);
Doc_PrintLines(nDocID,0,"");
Doc_PrintLines(nDocID,0,"");
Doc_PrintLines(nDocID,0,"KHADOSH ");
Doc_PrintLines(nDocID,0,"");
Doc_PrintLine(nDocID,0,"EMEM KADAR");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"The Eye of Power illuminate your path.");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"");
Doc_SetMargins(nDocID,-1,200,50,50,50,1);
Doc_Show(nDocID);
B_LogEntry(TOPIC_HallenVonIrdorath,"The black magician's scroll contained the words KHADOSH EMEM KADAR. It sounds like some kind of magic formula, but what is it used for - and what is the Eye of Power?");
};
instance ItKe_ChestMasterDementor_MIS(C_Item)
{
name = "Black Magician's Chest Key";
mainflag = ITEM_KAT_NONE;
flags = ITEM_MISSION;
value = Value_Key_03;
visual = "ItKe_Key_01.3ds";
material = MAT_METAL;
description = name;
text[5] = NAME_Value;
count[5] = value;
};
instance ItWr_Rezept_MegaDrink_MIS(C_Item)
{
name = "Recipe";
mainflag = ITEM_KAT_DOCS;
flags = ITEM_MISSION;
value = 0;
visual = "ItWr_Scroll_01.3DS";
material = MAT_LEATHER;
on_state[0] = Use_RezeptFuerMegaTrank;
scemeName = "MAP";
description = name;
};
func void Use_RezeptFuerMegaTrank()
{
var int nDocID;
nDocID = Doc_Create();
Doc_SetPages(nDocID,1);
Doc_SetPage(nDocID,0,"letters.TGA",0);
Doc_SetFont(nDocID,0,FONT_BookHeadline);
Doc_SetMargins(nDocID,-1,50,50,50,50,1);
Doc_SetFont(nDocID,0,FONT_Book);
Doc_PrintLine(nDocID,0,"");
Doc_PrintLines(nDocID,0,"I have revived an ancient art. I fear Feodaron would not be impressed with my achievement.");
Doc_PrintLines(nDocID,0,"It means, quite simply, that I would have to mix his entire brood in my laboratory into a potion. If only he didn't sit on his eggs like some chicken all the time, I'd have tried it out. But he still inspires me with some respect.");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"Embarla Firgasto:");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLines(nDocID,0,"11 dragon eggs, one powderized black pearl and a pinch of sulfur.");
Doc_PrintLines(nDocID,0,"The emulsion is brought to the boil and must be stirred constantly as it passes through the distiller.");
Doc_PrintLines(nDocID,0,"The elixir must be used with care. It has strong side effects and can upset the entire mana system.");
Doc_Show(nDocID);
PLAYER_TALENT_ALCHEMY[POTION_MegaDrink] = TRUE;
};
instance ItWr_Diary_BlackNovice_MIS(C_Item)
{
name = "Diary";
mainflag = ITEM_KAT_DOCS;
flags = 0;
value = 100;
visual = "ItWr_Book_02_04.3ds";
material = MAT_LEATHER;
scemeName = "MAP";
description = name;
text[5] = NAME_Value;
count[5] = value;
on_state[0] = Use_Diary_BlackNovice;
};
func void Use_Diary_BlackNovice()
{
var int nDocID;
nDocID = Doc_Create();
Doc_SetPages(nDocID,2);
Doc_SetPage(nDocID,0,"BOOK_RED_L.tga",0);
Doc_SetPage(nDocID,1,"BOOK_RED_R.tga",0);
Doc_SetMargins(nDocID,0,275,20,30,20,1);
Doc_SetFont(nDocID,0,FONT_BookHeadline);
Doc_SetFont(nDocID,0,FONT_Book);
Doc_PrintLine(nDocID,0,"");
Doc_PrintLines(nDocID,0,"I've been waiting to be called up for 36 days now. I'm beginning to doubt they'll take me on. But I've done all they asked me to. I've fetched and carried for them like some old housemaid.");
Doc_PrintLines(nDocID,0,"The key master instructed me to seal the bars. I still haven't gotten around to it. If things go on this way, anyone might just stroll in through the gate.");
Doc_PrintLines(nDocID,0,"It's a shame I can't remember the combinations.");
Doc_SetMargins(nDocID,-1,30,20,275,20,1);
Doc_SetFont(nDocID,1,FONT_Book);
Doc_PrintLine(nDocID,1,"");
Doc_PrintLines(nDocID,1,"I'd have sneaked into the great Hall ages ago. I can hardly wait to see the Master. I wonder if they'll let me see him once I'm one of them.");
Doc_PrintLine(nDocID,1,"");
Doc_PrintLines(nDocID,1,"I tried my luck yesterday. But I failed the two lever chambers before I could even press the three switches in the west wing in the right order. That dog locked the chambers! Tomorrow I'm going to try and get the key off him ...");
Doc_Show(nDocID);
B_LogEntry(TOPIC_HallenVonIrdorath,"The diary of the novice black magician talks about lever chambers, key masters, switch combinations and other things. I should keep that in the back of my mind, it could be useful later.");
};
instance ItWr_ZugBruecke_MIS(C_Item)
{
name = "Old letter";
mainflag = ITEM_KAT_DOCS;
flags = ITEM_MISSION;
value = 0;
visual = "ItWr_Scroll_01.3DS";
material = MAT_LEATHER;
on_state[0] = Use_ZugBruecke;
scemeName = "MAP";
description = name;
};
func void Use_ZugBruecke()
{
var int nDocID;
nDocID = Doc_Create();
Doc_SetPages(nDocID,1);
Doc_SetPage(nDocID,0,"letters.TGA",0);
Doc_SetFont(nDocID,0,FONT_BookHeadline);
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0," Last warning!");
Doc_SetMargins(nDocID,-1,50,50,70,50,1);
Doc_SetFont(nDocID,0,FONT_Book);
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLines(nDocID,0,"I don't care if you can cross the bridge from the other side or not. If I had any say, you'd all rot in hell.");
Doc_PrintLines(nDocID,0,"I'm gonna leave the bridge drawn in as long as I'm in my domain. And if I catch one more person trying to hit the switches with a bow and arrow to get over, I will personally hang the idiot from the nearest tree!");
Doc_PrintLines(nDocID,0,"");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0,"");
Doc_PrintLine(nDocID,0," Archol");
Doc_Show(nDocID);
};
instance ItMi_PowerEye(C_Item)
{
name = "Eye of Power";
mainflag = ITEM_KAT_NONE;
flags = ITEM_MULTI | ITEM_MISSION;
visual = "ItMi_DarkPearl.3ds";
material = MAT_METAL;
wear = WEAR_EFFECT;
effect = "SPELLFX_ITEMGLIMMER";
description = name;
text[5] = NAME_Value;
count[5] = value;
inv_zbias = INVCAM_ENTF_MISC_STANDARD;
};
|
D
|
<?xml version="1.0" encoding="ASCII" standalone="no"?>
<di:SashWindowsMngr xmlns:di="http://www.eclipse.org/papyrus/0.7.0/sashdi" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmi:version="2.0">
<pageList>
<availablePage>
<emfPageIdentifier href="VAR_4_BeT-9159314794.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</availablePage>
</pageList>
<sashModel currentSelection="//@sashModel/@windows.0/@children.0">
<windows>
<children xsi:type="di:TabFolder">
<children>
<emfPageIdentifier href="VAR_4_BeT-9159314794.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</children>
</children>
</windows>
</sashModel>
</di:SashWindowsMngr>
|
D
|
/*
* Copyright (C) 2019, HuntLabs
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
module hunt.database.base.Transaction;
import hunt.database.base.AsyncResult;
import hunt.database.base.Common;
import hunt.database.base.PreparedQuery;
import hunt.database.base.RowSet;
import hunt.database.base.SqlClient;
import hunt.collection.List;
alias AsyncTransactionHandler = AsyncResultHandler!Transaction;
alias TransactionAsyncResult = AsyncResult!Transaction;
/**
* A transaction that allows to control the transaction and receive events.
*/
interface Transaction : SqlClient {
/**
* Create a prepared query.
*
* @param sql the sql
* @param handler the handler notified with the prepared query asynchronously
*/
Transaction prepare(string sql, PreparedQueryHandler handler);
/**
* Commit the current transaction.
*/
void commit();
/**
* Like {@link #commit} with an handler to be notified when the transaction commit has completed
*/
void commit(AsyncVoidHandler handler);
/**
* Rollback the current transaction.
*/
void rollback();
/**
* Like {@link #rollback} with an handler to be notified when the transaction rollback has completed
*/
void rollback(AsyncVoidHandler handler);
/**
* Set an handler to be called when the transaction is aborted.
*
* @param handler the handler
*/
Transaction abortHandler(AsyncVoidHandler handler);
Transaction query(string sql, RowSetHandler handler);
// override
// <R> Transaction query(string sql, Collector<Row, ?, R> collector, Handler!(AsyncResult!(SqlResult!(R))) handler);
// override
// Transaction preparedQuery(string sql, RowSetHandler handler);
// override
// <R> Transaction preparedQuery(string sql, Collector<Row, ?, R> collector, Handler!(AsyncResult!(SqlResult!(R))) handler);
// override
// Transaction preparedQuery(string sql, Tuple arguments, RowSetHandler handler);
// override
// <R> Transaction preparedQuery(string sql, Tuple arguments, Collector<Row, ?, R> collector, Handler!(AsyncResult!(SqlResult!(R))) handler);
// override
// Transaction preparedBatch(string sql, List!(Tuple) batch, RowSetHandler handler);
// override
// <R> Transaction preparedBatch(string sql, List!(Tuple) batch, Collector<Row, ?, R> collector, Handler!(AsyncResult!(SqlResult!(R))) handler);
/**
* Rollback the transaction and release the associated resources.
*/
void close();
int status();
}
|
D
|
ln$m (2) --- calculate logarithm to the base e 04/27/83
| _C_a_l_l_i_n_g _I_n_f_o_r_m_a_t_i_o_n
| longreal function ln$m (x)
| real x
| Library: vswtmath (Subsystem mathematical library)
| _F_u_n_c_t_i_o_n
| This function implements the natural logarithm (base eee)
| function. Arguments must be greater than zero. The condi-
| tion SWT_MATH_ERROR$ is signalled if there is an argument
| error. An on-unit can be established to deal with this
| error; the SWT Math Library contains a default handler named
| 'err$m' which the user may utilize. If an error is signal-
| led due to an invalid argument the default return is the log
| of the absolute value of the argument, or zero in the case
| of a zero argument.
| This function is intended to serve as a single precision
| function although it returns a double precision result. The
| function has been coded so that any value returned will not
| overflow or underflow a single precision floating point
| value. The double precision register overlaps the single
| precision register so it is possible to declare and use this
| function as simply a "real" function.
| _I_m_p_l_e_m_e_n_t_a_t_i_o_n
| The algorithm involved uses a minimax rational approximation
| on a reduction of the argument. All positive inputs will
| return a valid result. The algorithm was adapted from the
| algorithm given in the book _S_o_f_t_w_a_r_e _M_a_n_u_a_l _f_o_r _t_h_e
| _E_l_e_m_e_n_t_a_r_y _F_u_n_c_t_i_o_n_s by William Waite and William Cody, Jr.
| (Prentice-Hall, 1980).
| _C_a_l_l_s
| Primos signl$
| _S_e_e _A_l_s_o
| dln$m (2), err$m (2),
| _S_W_T _M_a_t_h _L_i_b_r_a_r_y _U_s_e_r_'_s _G_u_i_d_e
ln$m (2) - 1 - ln$m (2)
|
D
|
// PERMUTE_ARGS: -inline -g -O
extern(C) int printf(const char*, ...);
/*******************************************/
class A
{
int x = 7;
int foo(int i)
in
{
printf("A.foo.in %d\n", i);
assert(i == 2);
assert(x == 7);
printf("A.foo.in pass\n");
}
out (result)
{
assert(result & 1);
assert(x == 7);
}
do
{
return i;
}
}
class B : A
{
override int foo(int i)
in
{
float f;
printf("B.foo.in %d\n", i);
assert(i == 4);
assert(x == 7);
f = f + i;
}
out (result)
{
assert(result < 8);
assert(x == 7);
}
do
{
return i - 1;
}
}
void test1()
{
auto b = new B();
b.foo(2);
b.foo(4);
}
/*******************************************/
class A2
{
int x = 7;
int foo(int i)
in
{
printf("A2.foo.in %d\n", i);
assert(i == 2);
assert(x == 7);
printf("A2.foo.in pass\n");
}
out (result)
{
assert(result & 1);
assert(x == 7);
}
do
{
return i;
}
}
class B2 : A2
{
override int foo(int i)
in
{
float f;
printf("B2.foo.in %d\n", i);
assert(i == 4);
assert(x == 7);
f = f + i;
}
out (result)
{
assert(result < 8);
assert(x == 7);
}
do
{
return i - 1;
}
}
class C : B2
{
override int foo(int i)
in
{
float f;
printf("C.foo.in %d\n", i);
assert(i == 6);
assert(x == 7);
f = f + i;
}
out (result)
{
assert(result == 1 || result == 3 || result == 5);
assert(x == 7);
}
do
{
return i - 1;
}
}
void test2()
{
auto c = new C();
c.foo(2);
c.foo(4);
c.foo(6);
}
/*******************************************/
void fun(int x)
in {
if (x < 0) throw new Exception("a");
}
do {
}
void test3()
{
fun(1);
}
/*******************************************/
interface Stack {
int pop()
// in { printf("pop.in\n"); }
out(result) {
printf("pop.out\n");
assert(result == 3);
}
}
class CC : Stack
{
int pop()
//out (result) { printf("CC.pop.out\n"); } do
{
printf("CC.pop.in\n");
return 3;
}
}
void test4()
{
auto cc = new CC();
cc.pop();
}
/*******************************************/
int mul100(int n)
out(result)
{
assert(result == 500);
}
do
{
return n * 100;
}
void test5()
{
mul100(5);
}
/*******************************************/
// https://issues.dlang.org/show_bug.cgi?id=3273
// original case
struct Bug3273
{
~this() {}
invariant() {}
}
// simplest case
ref int func3273()
out(r)
{
// Regression check of https://issues.dlang.org/show_bug.cgi?id=3390
static assert(!__traits(compiles, r = 1));
}
do
{
static int dummy;
return dummy;
}
void test6()
{
func3273() = 1;
assert(func3273() == 1);
}
/*******************************************/
/+
// http://d.puremagic.com/issues/show_bug.cgi?id=3722
class Bug3722A
{
void fun() {}
}
class Bug3722B : Bug3722A
{
override void fun() in { assert(false); } do {}
}
void test6()
{
auto x = new Bug3722B();
x.fun();
}
+/
/*******************************************/
auto test7foo()
in{
++cnt;
}do{
++cnt;
return "str";
}
void test7()
{
cnt = 0;
assert(test7foo() == "str");
assert(cnt == 2);
}
/*******************************************/
auto foo8()
out(r){
++cnt;
assert(r == 10);
}do{
++cnt;
return 10;
}
auto bar8()
out{
++cnt;
}do{
++cnt;
}
void test8()
{
cnt = 0;
assert(foo8() == 10);
assert(cnt == 2);
cnt = 0;
bar8();
assert(cnt == 2);
}
/*******************************************/
// from fail317
void test9()
{
{
auto f1 = function() do { }; // fine
auto f2 = function() in { } do { }; // fine
auto f3 = function() out { } do { }; // error
auto f4 = function() in { } out { } do { }; // error
auto d1 = delegate() do { }; // fine
auto d2 = delegate() in { } do { }; // fine
auto d3 = delegate() out { } do { }; // error
auto d4 = delegate() in { } out { } do { }; // error
}
{
auto f1 = function() body { }; // fine
auto f2 = function() in { } body { }; // fine
auto f3 = function() out { } body { }; // error
auto f4 = function() in { } out { } body { }; // error
auto d1 = delegate() body { }; // fine
auto d2 = delegate() in { } body { }; // fine
auto d3 = delegate() out { } body { }; // error
auto d4 = delegate() in { } out { } body { }; // error
}
}
/*******************************************/
auto test10() body { return 3; }
auto test11()() body { return 3; }
auto test12()
{
auto test10() body { return 3; }
auto test11()() body { return 3; }
return 3;
}
void test13()
{
int function() fp13;
}
/*******************************************/
// https://issues.dlang.org/show_bug.cgi?id=4785
int cnt;
auto foo4785()
in{
int r;
++cnt;
}
out(r){
assert(r == 10);
++cnt;
}do{
++cnt;
int r = 10;
return r;
}
void test4785()
{
cnt = 0;
assert(foo4785() == 10);
assert(cnt == 3);
}
/*******************************************/
// https://issues.dlang.org/show_bug.cgi?id=5039
class C5039 {
int x;
invariant() {
assert( x < int.max );
}
auto foo() {
return x;
}
}
/*******************************************/
// https://issues.dlang.org/show_bug.cgi?id=5204
interface IFoo5204
{
IFoo5204 bar()
out {}
}
class Foo5204 : IFoo5204
{
Foo5204 bar() { return null; }
}
/*******************************************/
// https://issues.dlang.org/show_bug.cgi?id=6417
class Bug6417
{
void bar()
in
{
int i = 14;
assert(i == 14);
auto dg = (){
//printf("in: i = %d\n", i);
assert(i == 14, "in contract failure");
};
dg();
}
out
{
int j = 10;
assert(j == 10);
auto dg = (){
//printf("out: j = %d\n", j);
assert(j == 10, "out contract failure");
};
dg();
}
do {}
}
void test6417()
{
(new Bug6417).bar();
}
/*******************************************/
// https://issues.dlang.org/show_bug.cgi?id=6549
class C6549
{
static int ocount = 0;
static int icount = 0;
abstract int foo(int)
in { ++icount; }
out { ++ocount; }
}
class CD6549 : C6549
{
override int foo(int)
in { assert(false); }
do { return 10; }
}
abstract class D6549
{
static int icount = 0;
static int ocount = 0;
int foo(int)
in { ++icount; }
out { ++ocount; }
}
class DD6549 : D6549
{
override int foo(int)
in { assert(false); }
do { return 10; }
}
void test6549()
{
auto c = new CD6549;
c.foo(10);
assert(C6549.icount == 1);
assert(C6549.ocount == 1);
auto d = new DD6549;
d.foo(10);
assert(D6549.icount == 1);
assert(D6549.ocount == 1);
}
/*******************************************/
// https://issues.dlang.org/show_bug.cgi?id=7218
void test7218()
{
{
size_t foo() in{} out{} do{ return 0; } // OK
size_t bar() in{}/*out{}*/do{ return 0; } // OK
size_t hoo()/*in{}*/out{} do{ return 0; } // NG1
size_t baz()/*in{} out{}*/do{ return 0; } // NG2
}
{
size_t goo() in{} out{} body{ return 0; } // OK
size_t gar() in{}/*out{}*/body{ return 0; } // OK
size_t gob()/*in{}*/out{} body{ return 0; } // NG1
size_t gaz()/*in{} out{}*/body{ return 0; } // NG2
}
}
/*******************************************/
// https://issues.dlang.org/show_bug.cgi?id=7517
void test7517()
{
static string result;
interface I
{
static I self;
void setEnable()
in
{
assert(self is this);
result ~= "I.setEnable.in/";
assert(!enabled);
}
out
{
assert(self is this);
result ~= "I.setEnable.out/";
assert( enabled);
}
void setDisable()
in
{
assert(self is this);
result ~= "I.setDisable.in/";
assert( enabled);
}
out
{
assert(self is this);
result ~= "I.setDisable.out/";
assert(!enabled);
}
@property bool enabled() const;
}
class C : I
{
static C self;
void setEnable()
in {} // supply in-contract to invoke I.setEnable.in
do
{
assert(self is this);
result ~= "C.setEnable/";
_enabled = true;
}
void setDisable()
{
assert(self is this);
result ~= "C.setDisable/";
_enabled = false;
}
@property bool enabled() const
{
assert(self is this);
result ~= "C.enabled/";
return _enabled;
}
bool _enabled;
}
C c = C.self = new C;
I i = I.self = c;
result = null;
i.setEnable();
assert(result == "I.setEnable.in/C.enabled/C.setEnable/I.setEnable.out/C.enabled/");
result = null;
i.setDisable();
assert(result == "C.setDisable/I.setDisable.out/C.enabled/");
}
/*******************************************/
// https://issues.dlang.org/show_bug.cgi?id=7699
class P7699
{
void f(int n) in {
assert (n);
} do { }
}
class D7699 : P7699
{
override void f(int n) in { } do { }
}
/*******************************************/
// https://issues.dlang.org/show_bug.cgi?id=7883
// Segmentation fault
class AA7883
{
int foo()
out (r1) { }
do { return 1; }
}
class BA7883 : AA7883
{
override int foo()
out (r2) { }
do { return 1; }
}
class CA7883 : BA7883
{
override int foo()
do { return 1; }
}
// Error: undefined identifier r2, did you mean variable r3?
class AB7883
{
int foo()
out (r1) { }
do { return 1; }
}
class BB7883 : AB7883
{
override int foo()
out (r2) { }
do { return 1; }
}
class CB7883 : BB7883
{
override int foo()
out (r3) { }
do { return 1; }
}
// Error: undefined identifier r3, did you mean variable r4?
class AC7883
{
int foo()
out (r1) { }
do { return 1; }
}
class BC7883 : AC7883
{
override int foo()
out (r2) { }
do { return 1; }
}
class CC7883 : BC7883
{
override int foo()
out (r3) { }
do { return 1; }
}
class DC7883 : CC7883
{
override int foo()
out (r4) { }
do { return 1; }
}
/*******************************************/
// https://issues.dlang.org/show_bug.cgi?id=7892
struct S7892
{
@disable this();
this(int x) {}
}
S7892 f7892()
out (result) {} // case 1
do
{
return S7892(1);
}
interface I7892
{
S7892 f();
}
class C7892
{
invariant() {} // case 2
S7892 f()
{
return S7892(1);
}
}
/*******************************************/
// https://issues.dlang.org/show_bug.cgi?id=8066
struct CLCommandQueue
{
invariant() {}
//private:
int enqueueNativeKernel()
{
assert(0, "implement me");
}
}
/*******************************************/
// https://issues.dlang.org/show_bug.cgi?id=8073
struct Container8073
{
int opApply (int delegate(ref int) dg) { return 0; }
}
class Bug8073
{
static int test;
int foo()
out(r) { test = 7; } do
{
Container8073 ww;
foreach( xxx ; ww ) { }
return 7;
}
ref int bar()
out { } do
{
Container8073 ww;
foreach( xxx ; ww ) { }
test = 7;
return test;
}
}
void test8073()
{
auto c = new Bug8073();
assert(c.foo() == 7);
assert(c.test == 7);
auto p = &c.bar();
assert(p == &c.test);
assert(*p == 7);
}
/*******************************************/
// https://issues.dlang.org/show_bug.cgi?id=8093
void test8093()
{
static int g = 10;
static int* p;
enum fdo = q{
static struct S {
int opApply(scope int delegate(ref int) dg) { return dg(g); }
}
S s;
foreach (ref e; s)
return g;
assert(0);
};
ref int foo_ref1() out(r) { assert(&r is &g && r == 10); }
do { mixin(fdo); }
ref int foo_ref2()
do { mixin(fdo); }
{ auto q = &foo_ref1(); assert(q is &g && *q == 10); }
{ auto q = &foo_ref2(); assert(q is &g && *q == 10); }
int foo_val1() out(r) { assert(&r !is &g && r == 10); }
do { mixin(fdo); }
int foo_val2()
do { mixin(fdo); }
{ auto n = foo_val1(); assert(&n !is &g && n == 10); }
{ auto n = foo_val2(); assert(&n !is &g && n == 10); }
}
/*******************************************/
// https://issues.dlang.org/show_bug.cgi?id=9383
class A9383
{
static void delegate() dg;
static int val;
void failInBase() { assert(typeid(this) is typeid(A9383)); }
// in-contract tests
void foo1(int i) in { A9383.val = i; failInBase; } do { } // no closure
void foo2(int i) in { A9383.val = i; failInBase; } do { int x; dg = { ++x; }; } // closure [local]
void foo3(int i) in { A9383.val = i; failInBase; } do { dg = { ++i; }; } // closure [parameter]
void foo4(int i) in { A9383.val = i; failInBase; } do { } // no closure
void foo5(int i) in { A9383.val = i; failInBase; } do { } // no closure
void foo6(int i) in { A9383.val = i; failInBase; } do { int x; dg = { ++x; }; } // closure [local]
void foo7(int i) in { A9383.val = i; failInBase; } do { dg = { ++i; }; } // closure [parameter]
// out-contract tests
void bar1(int i) out { A9383.val = i; } do { } // no closure
void bar2(int i) out { A9383.val = i; } do { int x; dg = { ++x; }; } // closure [local]
void bar3(int i) out { A9383.val = i; } do { dg = { ++i; }; } // closure [parameter]
void bar4(int i) out { A9383.val = i; } do { } // no closure
void bar5(int i) out { A9383.val = i; } do { } // no closure
void bar6(int i) out { A9383.val = i; } do { int x; dg = { ++x; }; } // closure [local]
void bar7(int i) out { A9383.val = i; } do { dg = { ++i; }; } // closure [parameter]
}
class B9383 : A9383
{
static int val;
// in-contract tests
override void foo1(int i) in { B9383.val = i; } do { } // -> no closure
override void foo2(int i) in { B9383.val = i; } do { int x; dg = { ++x; }; } // -> closure [local] appears
override void foo3(int i) in { B9383.val = i; } do { dg = { ++i; }; } // -> closure [parameter]
override void foo4(int i) in { B9383.val = i; } do { int x; dg = { ++x; }; } // -> closure [local] appears
override void foo5(int i) in { B9383.val = i; } do { dg = { ++i; }; } // -> closure [parameter] appears
override void foo6(int i) in { B9383.val = i; } do { } // -> closure [local] disappears
override void foo7(int i) in { B9383.val = i; } do { } // -> closure [parameter] disappears
// out-contract tests
override void bar1(int i) out { B9383.val = i; } do { } // -> no closure
override void bar2(int i) out { B9383.val = i; } do { int x; dg = { ++x; }; } // -> closure [local] appears
override void bar3(int i) out { B9383.val = i; } do { dg = { ++i; }; } // -> closure [parameter]
override void bar4(int i) out { B9383.val = i; } do { int x; dg = { ++x; }; } // -> closure [local] appears
override void bar5(int i) out { B9383.val = i; } do { dg = { ++i; }; } // -> closure [parameter] appears
override void bar6(int i) out { B9383.val = i; } do { } // -> closure [local] disappears
override void bar7(int i) out { B9383.val = i; } do { } // -> closure [parameter] disappears
}
void test9383()
{
auto a = new A9383();
auto b = new B9383();
// base class in-contract is used from derived class. // base derived
b.foo1(101); assert(A9383.val == 101 && B9383.val == 101); // no closure -> no closure
b.foo2(102); assert(A9383.val == 102 && B9383.val == 102); // closure [local] -> closure [local] appears
b.foo3(103); assert(A9383.val == 103 && B9383.val == 103); // closure [parameter] -> closure [parameter]
b.foo4(104); assert(A9383.val == 104 && B9383.val == 104); // no closure -> closure [local] appears
b.foo5(105); assert(A9383.val == 105 && B9383.val == 105); // no closure -> closure [parameter] appears
b.foo6(106); assert(A9383.val == 106 && B9383.val == 106); // closure [local] -> closure [local] disappears
b.foo7(107); assert(A9383.val == 107 && B9383.val == 107); // closure [parameter] -> closure [parameter] disappears
// base class out-contract is used from derived class. // base derived
b.bar1(101); assert(A9383.val == 101 && B9383.val == 101); // no closure -> no closure
b.bar2(102); assert(A9383.val == 102 && B9383.val == 102); // closure [local] -> closure [local] appears
b.bar3(103); assert(A9383.val == 103 && B9383.val == 103); // closure [parameter] -> closure [parameter]
b.bar4(104); assert(A9383.val == 104 && B9383.val == 104); // no closure -> closure [local] appears
b.bar5(105); assert(A9383.val == 105 && B9383.val == 105); // no closure -> closure [parameter] appears
b.bar6(106); assert(A9383.val == 106 && B9383.val == 106); // closure [local] -> closure [local] disappears
b.bar7(107); assert(A9383.val == 107 && B9383.val == 107); // closure [parameter] -> closure [parameter] disappears
// in-contract in base class.
a.foo1(101); assert(A9383.val == 101); // no closure
a.foo2(102); assert(A9383.val == 102); // closure [local]
a.foo3(103); assert(A9383.val == 103); // closure [parameter]
// out-contract in base class.
a.bar1(101); assert(A9383.val == 101); // no closure
a.bar2(102); assert(A9383.val == 102); // closure [local]
a.bar3(103); assert(A9383.val == 103); // closure [parameter]
}
/*******************************************/
// https://issues.dlang.org/show_bug.cgi?id=15524
// Different from issue 9383 cases, closed variable size is bigger than REGSIZE.
class A15524
{
static void delegate() dg;
static string val;
void failInBase() { assert(typeid(this) is typeid(A15524)); }
// in-contract tests
void foo1(string s) in { A15524.val = s; failInBase; } do { } // no closure
void foo2(string s) in { A15524.val = s; failInBase; } do { string x; dg = { x = null; }; } // closure [local]
void foo3(string s) in { A15524.val = s; failInBase; } do { dg = { s = null; }; } // closure [parameter]
void foo4(string s) in { A15524.val = s; failInBase; } do { } // no closure
void foo5(string s) in { A15524.val = s; failInBase; } do { } // no closure
void foo6(string s) in { A15524.val = s; failInBase; } do { string x; dg = { x = null; }; } // closure [local]
void foo7(string s) in { A15524.val = s; failInBase; } do { dg = { s = null; }; } // closure [parameter]
// out-contract tests
void bar1(string s) out { A15524.val = s; } do { } // no closure
void bar2(string s) out { A15524.val = s; } do { string x; dg = { x = null; }; } // closure [local]
void bar3(string s) out { A15524.val = s; } do { dg = { s = null; }; } // closure [parameter]
void bar4(string s) out { A15524.val = s; } do { } // no closure
void bar5(string s) out { A15524.val = s; } do { } // no closure
void bar6(string s) out { A15524.val = s; } do { string x; dg = { x = null; }; } // closure [local]
void bar7(string s) out { A15524.val = s; } do { dg = { s = null; }; } // closure [parameter]
}
class B15524 : A15524
{
static string val;
// in-contract tests
override void foo1(string s) in { B15524.val = s; } do { } // -> no closure
override void foo2(string s) in { B15524.val = s; } do { string x; dg = { x = null; }; } // -> closure [local] appears
override void foo3(string s) in { B15524.val = s; } do { dg = { s = null; }; } // -> closure [parameter]
override void foo4(string s) in { B15524.val = s; } do { string x; dg = { x = null; }; } // -> closure [local] appears
override void foo5(string s) in { B15524.val = s; } do { dg = { s = null; }; } // -> closure [parameter] appears
override void foo6(string s) in { B15524.val = s; } do { } // -> closure [local] disappears
override void foo7(string s) in { B15524.val = s; } do { } // -> closure [parameter] disappears
// out-contract tests
override void bar1(string s) out { B15524.val = s; } do { } // -> no closure
override void bar2(string s) out { B15524.val = s; } do { string x; dg = { x = null; }; } // -> closure [local] appears
override void bar3(string s) out { B15524.val = s; } do { dg = { s = null; }; } // -> closure [parameter]
override void bar4(string s) out { B15524.val = s; } do { string x; dg = { x = null; }; } // -> closure [local] appears
override void bar5(string s) out { B15524.val = s; } do { dg = { s = null; }; } // -> closure [parameter] appears
override void bar6(string s) out { B15524.val = s; } do { } // -> closure [local] disappears
override void bar7(string s) out { B15524.val = s; } do { } // -> closure [parameter] disappears
}
void test15524()
{
auto a = new A15524();
auto b = new B15524();
// base class in-contract is used from derived class. // base derived
b.foo1("1"); assert(A15524.val == "1" && B15524.val == "1"); // no closure -> no closure
b.foo2("2"); assert(A15524.val == "2" && B15524.val == "2"); // closure [local] -> closure [local] appears
b.foo3("3"); assert(A15524.val == "3" && B15524.val == "3"); // closure [parameter] -> closure [parameter]
b.foo4("4"); assert(A15524.val == "4" && B15524.val == "4"); // no closure -> closure [local] appears
b.foo5("5"); assert(A15524.val == "5" && B15524.val == "5"); // no closure -> closure [parameter] appears
b.foo6("6"); assert(A15524.val == "6" && B15524.val == "6"); // closure [local] -> closure [local] disappears
b.foo7("7"); assert(A15524.val == "7" && B15524.val == "7"); // closure [parameter] -> closure [parameter] disappears
// base class out-contract is used from derived class. // base derived
b.bar1("1"); assert(A15524.val == "1" && B15524.val == "1"); // no closure -> no closure
b.bar2("2"); assert(A15524.val == "2" && B15524.val == "2"); // closure [local] -> closure [local] appears
b.bar3("3"); assert(A15524.val == "3" && B15524.val == "3"); // closure [parameter] -> closure [parameter]
b.bar4("4"); assert(A15524.val == "4" && B15524.val == "4"); // no closure -> closure [local] appears
b.bar5("5"); assert(A15524.val == "5" && B15524.val == "5"); // no closure -> closure [parameter] appears
b.bar6("6"); assert(A15524.val == "6" && B15524.val == "6"); // closure [local] -> closure [local] disappears
b.bar7("7"); assert(A15524.val == "7" && B15524.val == "7"); // closure [parameter] -> closure [parameter] disappears
// in-contract in base class.
a.foo1("1"); assert(A15524.val == "1"); // no closure
a.foo2("2"); assert(A15524.val == "2"); // closure [local]
a.foo3("3"); assert(A15524.val == "3"); // closure [parameter]
// out-contract in base class.
a.bar1("1"); assert(A15524.val == "1"); // no closure
a.bar2("2"); assert(A15524.val == "2"); // closure [local]
a.bar3("3"); assert(A15524.val == "3"); // closure [parameter]
}
void test15524a()
{
auto t1 = new Test15524a();
t1.infos["first"] = 0; //t1.add("first");
t1.add("second");
auto t2 = new Test15524b();
t2.add("second");
}
class Test15524a
{
int[string] infos;
void add(string key)
in
{
assert(key !in infos); // @@@ crash here at second
}
do
{
auto item = new class
{
void notCalled()
{
infos[key] = 0;
// affects, key parameter is made a closure variable.
}
};
}
}
class Test15524b
{
void add(string key)
in
{
assert(key == "second"); // @@@ fails
}
do
{
static void delegate() dg;
dg = { auto x = key; };
// affects, key parameter is made a closure variable.
}
}
/*******************************************/
// https://issues.dlang.org/show_bug.cgi?id=10479
class B10479
{
B10479 foo()
out { } do { return null; }
}
class D10479 : B10479
{
override D10479 foo() { return null; }
}
/*******************************************/
// https://issues.dlang.org/show_bug.cgi?id=10596
class Foo10596
{
auto bar()
out (result) { }
do { return 0; }
}
/*******************************************/
// https://issues.dlang.org/show_bug.cgi?id=10721
class Foo10721
{
this()
out { }
do { }
~this()
out { }
do { }
}
struct Bar10721
{
this(this)
out { }
do { }
}
/*******************************************/
// https://issues.dlang.org/show_bug.cgi?id=10981
class C10981
{
void foo(int i) pure
in { assert(i); }
out { assert(i); }
do {}
}
/*******************************************/
// https://issues.dlang.org/show_bug.cgi?id=14779
class C14779
{
final void foo(int v)
in { assert(v == 0); }
out { assert(v == 0); }
do
{
}
}
void test14779()
{
auto c = new C14779();
c.foo(0);
}
/*******************************************/
// https://issues.dlang.org/show_bug.cgi?id=15984
I15984 i15984;
C15984 c15984;
void check15984(T)(const char* s, T this_, int i)
{
printf("%s this = %p, i = %d\n", s, this_, i);
static if (is(T == I15984)) assert(this_ is i15984);
else static if (is(T == C15984)) assert(this_ is c15984);
else static assert(0);
assert(i == 5);
}
interface I15984
{
void f1(int i)
in { check15984("I.f1.i", this, i); assert(0); }
out { check15984("I.f1.o", this, i); }
int[3] f2(int i)
in { check15984("I.f2.i", this, i); assert(0); }
out { check15984("I.f2.o", this, i); }
void f3(int i)
in { void nested() { check15984("I.f3.i", this, i); } nested(); assert(0); }
out { void nested() { check15984("I.f3.o", this, i); } nested(); }
void f4(out int i, lazy int j)
in { }
out { }
}
class C15984 : I15984
{
void f1(int i)
in { check15984("C.f1.i", this, i); }
out { check15984("C.f1.o", this, i); }
do { check15984("C.f1 ", this, i); }
int[3] f2(int i)
in { check15984("C.f2.i", this, i); }
out { check15984("C.f2.o", this, i); }
do { check15984("C.f2 ", this, i); return [0,0,0]; }
void f3(int i)
in { void nested() { check15984("C.f3.i", this, i); } nested(); }
out { void nested() { check15984("C.f3.o", this, i); } nested(); }
do { check15984("C.f3 ", this, i); }
void f4(out int i, lazy int j)
in { assert(0); }
do { i = 10; }
}
void test15984()
{
c15984 = new C15984;
i15984 = c15984;
printf("i = %p\n", i15984);
printf("c = %p\n", c15984);
printf("====\n");
i15984.f1(5);
printf("====\n");
i15984.f2(5);
printf("====\n");
i15984.f3(5);
int i;
i15984.f4(i, 1);
assert(i == 10);
}
/*******************************************/
//******************************************/
// DIP 1009
int dip1009_1(int x)
in (x > 0, "x must be positive!")
out (r; r < 0, "r must be negative!")
in (true, "cover trailing comma case",)
out (; true, "cover trailing comma case",)
{
return -x;
}
int dip1009_2(int x)
in (x > 0)
out (r; r < 0)
{
return -x;
}
int dip1009_3(int x)
in (x > 0,)
out (r; r < 0,)
do
{
return -x;
}
void dip1009_4(int x)
in (x > 0)
out (; x > 1)
{
x += 1;
}
interface DIP1009_5
{
void dip1009_5(int x)
in (x > 0)
out (; x > 1);
}
int dip1009_6(int x, int y)
in (x > 0)
out (r; r > 1)
out (; x > 0)
in (y > 0)
in (x + y > 1)
out (r; r > 1)
{
return x+y;
}
int dip1009_7(int x)
in (x > 0)
in { assert(x > 1); }
out { assert(x > 2); }
out (; x > 3)
out (r; r > 3)
{
x += 2;
return x;
}
class DIP1009_8
{
private int x = 4;
invariant (x > 0, "x must stay positive");
invariant (x > 1, "x must be greater than one",);
invariant (x > 2);
invariant (x > 3,);
void foo(){ x = 5; }
}
/*******************************************/
int main()
{
test1();
test2();
test3();
test4();
test5();
// test6();
test7();
test8();
test9();
test4785();
test6417();
test6549();
test7218();
test7517();
test8073();
test8093();
test9383();
test15524();
test15524a();
test14779();
test15984();
dip1009_1(1);
dip1009_2(1);
dip1009_3(1);
dip1009_4(1);
dip1009_6(1, 1);
dip1009_7(3);
new DIP1009_8().foo();
printf("Success\n");
return 0;
}
|
D
|
; Copyright (C) 2008 The Android Open Source Project
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
; http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
.source T_invoke_direct_18.java
.class public dot.junit.opcodes.invoke_direct.d.T_invoke_direct_18
.super dot/junit/opcodes/invoke_direct/TSuper
.method public <init>()V
.limit regs 2
const v0, 0
iput v0, v1, dot.junit.opcodes.invoke_direct.d.T_invoke_direct_18.val I
invoke-direct {v1}, dot/junit/opcodes/invoke_direct/TSuper/<init>()V
return-void
.end method
.method public run()I
.limit regs 3
const v1, 0
return v1
.end method
|
D
|
/Users/raka/go/src/github.com/rakateja/rust-playground/user-api/target/debug/deps/fake_simd-9782b88b6c3ea5fd.rmeta: /Users/raka/.cargo/registry/src/github.com-1ecc6299db9ec823/fake-simd-0.1.2/src/lib.rs
/Users/raka/go/src/github.com/rakateja/rust-playground/user-api/target/debug/deps/libfake_simd-9782b88b6c3ea5fd.rlib: /Users/raka/.cargo/registry/src/github.com-1ecc6299db9ec823/fake-simd-0.1.2/src/lib.rs
/Users/raka/go/src/github.com/rakateja/rust-playground/user-api/target/debug/deps/fake_simd-9782b88b6c3ea5fd.d: /Users/raka/.cargo/registry/src/github.com-1ecc6299db9ec823/fake-simd-0.1.2/src/lib.rs
/Users/raka/.cargo/registry/src/github.com-1ecc6299db9ec823/fake-simd-0.1.2/src/lib.rs:
|
D
|
PLONG PLAT ED95 KD LOMAGAGE HIMAGAGE SLAT SLONG RESULTNO DP DM ROCKTYPE
248.699997 72.0999985 17.2999992 51.7000008 11 18 32.7999992 73 2853 10.3000002 19 sediments, red shales
|
D
|
// Written in the D programming language
/**
* Conversion of floating-point decimals to/from strings.
*
* An implementation of the
* General Decimal Arithmetic Specification.
*
* Authors: Paul D. Anderson
*
* Copyright: Copyright 2009-2016 by Paul D. Anderson.
*
* License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>
*
* Standards: Conforms to the
* General Decimal Arithmetic Specification,
* Version 1.70, (25 March 2009).
*/
module eris.decimal.conv;
import std.array: insertInPlace, replicate;
import std.ascii: isDigit;
import std.bitmanip : bitfields;
import std.string;
import std.format;
import std.stdio;
import std.traits;
static import std.uni;
static import std.conv;
static import std.math;
import eris.decimal;
unittest {
writeln(" conversion tests ");
writeln("==========================");
}
version(unittest) {
import std.stdio;
import eris.decimal.test;
import eris.decimal.math : M_PI;
}
public enum DEFAULT_PRECISION = 6;
//--------------------------------
// to!string conversions
//--------------------------------
/// to!string(BigInt).
public T to(T:string)(in BigInt x) {
string outbuff = "";
void sink(const(char)[] s) {
outbuff ~= s;
}
x.toString(&sink, "%d");
return outbuff;
}
/// to!string(long).
private T to(T:string)(in long n) {
return format("%d", n);
}
/**
* Returns a string representing the value of the number, formatted as
* specified by the format string.
*/
public string toString(D)(in D num, string fmStr = "%s") if (isDecimal!D)
{
auto fm = singleSpec!char(fmStr.dup);
string str = "";
if (num.isNegative) str = "-";
else if (fm.flPlus) str = "+";
else if (fm.flSpace) str = " ";
bool noPrecision = (fm.precision == fm.UNSPECIFIED);
// if precision is unspecified it defaults to 6
int precision = noPrecision ? DEFAULT_PRECISION : fm.precision;
// FIXTHIS: if num is special this may give error. see formatDecimal
str ~= formatDecimal(num, fm.spec, precision);
// add trailing zeros
if (fm.flHash && str.indexOf('.' < 0)) {
str ~= ".0";
}
// if precision is unspecified the zero flag is ignored
bool zero = noPrecision ? fm.flZero : false;
// adjust width
str = setWidth(str, fm.width, fm.flDash, zero);
return str;
}
unittest
{ // toString
static struct S { TD num; string fmt; string str; }
S[] s =
[
// default format is scientific form
{ "123", "%s", "123" },
{ "-123", "%S", "-123" },
{ "12.3E1", "%S", "123" },
{ "123E1", "%S", "1.23E+3" },
{ "123E3", "%S", "1.23E+5" },
{ "123E-1", "%S", "12.3" },
{ "50E-7", "%S", "0.0000050" },
{ "5E-7", "%S", "5E-7" },
{ "12.3456789", "%S", "12.3456789" },
{ "12.34567", "%s", "12.34567" },
{ "12.345", "%S", "12.345" },
// exponential form
{ "12.3456789", "%E", "1.234568E+01" },
{ "12.34567", "%e", "1.234567e+01" },
{ "12.345", "%E", "1.2345E+01" },
// decimal form
{ "12.3456789", "%F", "12.345679" },
{ "12.34567", "%F", "12.345670" },
{ "12.345", "%F", "12.345000" },
// decimal or exponential. note change in meaning of precision
{ "12.3456789", "%G", "1.234568E+01" },
{ "12.34567", "%G", "1.234567E+01" },
{ "12.345", "%G", "12.345000" },
// width
{ "12.34567", "%12.4G", " 1.2346E+01" },
{ "12.345", "%12G", " 12.345000" },
// flags
{ "12.34567", "%G", "1.234567E+01"},
{ "12.345", "%+G", "+12.345000" },
{ "12.345", "%-12G", "12.345000 " },
{ "12.34567", "%-12.4G", "1.2346E+01 " },
{ "12.345", "%012G", "00012.345000" },
// zero flag ignored if precision is specified
{ "12.345", "%012.4G", " 12.3450" },
// zero flag, upper/lower case ignored if infinity or nan
{ "Inf", "%012.4G", " Infinity" },
{ "NaN", "%012.4g", " NaN" },
// if hash, print trailing zeros.
{ "1234567.89", "%.0G", "1234568" },
{ "1234567.89", "%.0F", "1234568" },
{ "1234567", "%.0F", "1234567" },
{ "123", "%#.0F", "123.0" },
];
auto f = FunctionTest!(S,string)("toString");
foreach (t; s) f.test(t, toString(t.num, t.fmt));
writefln(f.report);
}
/* void toString(D)(
scope void delegate(const(char)[]) sink,
ref FormatSpec!char f) if (isDecimal!D) const
{
}*/
//--------------------------------
// formatting
//--------------------------------
/**
* Converts a decimal number to a string
* using "scientific" notation, per the spec.
*/
public string sciForm(D)(in D num) if (isDecimal!D)
{
if (num.isSpecial)
{
return specialForm(num);
}
char[] str = to!string(num.coff).dup;
int expo = num.expo;
bool signed = num.isNegative;
int adjx = expo + cast(int)str.length - 1;
// if the exponent is small use decimal notation
if (expo <= 0 && adjx >= -6)
{
// if the exponent is not zero, insert a decimal point
if (expo != 0) {
int point = std.math.abs(expo);
// if the coefficient is too small, pad with zeroes
if (point > str.length) {
str = rightJustify(str, point, '0');
}
// if no chars precede the decimal point, prefix a zero
if (point == str.length) {
str = "0." ~ str;
}
// otherwise insert the decimal point into the string
else {
insertInPlace(str, str.length - point, ".");
}
}
return signed ? ("-" ~ str).dup : str.dup;
}
// if the exponent is large enough use exponential notation
if (str.length > 1) {
insertInPlace(str, 1, ".");
}
string expStr = to!string(adjx);
if (adjx >= 0) {
expStr = "+" ~ expStr;
}
string s = (str ~ "E" ~ expStr).dup;
return signed ? "-" ~ s : s;
}; // end sciForm
unittest
{ // sciForm
static struct S { TD num; string str; }
S[] s =
[
{ "123", "123" },
{ "-123", "-123" },
{ "12.3E1", "123" },
{ "123E1", "1.23E+3" },
{ "123E3", "1.23E+5" },
{ "123E-1", "12.3" },
{ "inf", "Infinity" },
];
auto f = FunctionTest!(S,string)("sciForm");
foreach (t; s) f.test(t, sciForm(t.num));
writefln(f.report);
}
/**
* Converts a decimal number to a string
* using "engineering" notation, per the spec.
*/
public string engForm(D)(in D num) if (isDecimal!D)
{
if (num.isSpecial) {
return specialForm(num);
}
char[] cof = to!string(num.coff).dup;
int expo = num.expo;
bool signed = num.isNegative;
int adjx = expo + cast(int)cof.length - 1;
// if exponent is small, don't use exponential notation
if (expo <= 0 && adjx >= -6) {
// if exponent is not zero, insert a decimal point
if (expo != 0) {
int point = std.math.abs(expo);
// if coefficient is too small, pad with zeroes
if (point > cof.length) {
cof = rightJustify(cof, point, '0');
}
// if no chars precede the decimal point, prefix a zero
if (point == cof.length) {
cof = "0." ~ cof;
}
// otherwise insert a decimal point
else {
insertInPlace(cof, cof.length - point, ".");
}
}
return signed ? ("-" ~ cof).idup : cof.idup;
}
// use exponential notation
if (num.isZero) {
adjx += 2;
}
int mod = adjx % 3;
// the % operator rounds down; we need it to round to floor.
if (mod < 0) {
mod = -(mod + 3);
}
int dot = std.math.abs(mod) + 1;
adjx = adjx - dot + 1;
if (num.isZero) {
dot = 1;
int count = 3 - std.math.abs(mod);
cof.length = 0;
for (size_t i = 0; i < count; i++) {
cof ~= '0';
}
}
while (dot > cof.length) {
cof ~= '0';
}
if (cof.length > dot) {
insertInPlace(cof, dot, ".");
}
string str = cof.idup;
if (adjx != 0) {
string expStr = to!string(adjx);
if (adjx > 0) {
expStr = '+' ~ expStr;
}
str = str ~ "E" ~ expStr;
}
return signed ? "-" ~ str : str;
} // end engForm()
unittest
{ // engForm
static struct S { TD num; string str; }
S[] s =
[
{ "123", "123" },
{ "-123", "-123" },
{ "12.3E1", "123" },
{ "123E1", "1.23E+3" },
{ "123E3", "123E+3" },
{ "123E-1", "12.3" },
{ "1.23E+3", "1.23E+3" },
{ "1.23E-9", "1.23E-9" },
{ "-1.23E-12", "-1.23E-12" },
{ "9.999999E+96","9.999999E+96" },
{ "1.000", "1.000" },
{ "NaN", "NaN" },
{ "-NaN102", "-NaN102" },
{ "-Infinity", "-Infinity" },
{ "inf", "Infinity" },
{ "-0", "-0" },
];
auto f = FunctionTest!(S,string)("engForm");
foreach (t; s) f.test(t, engForm(t.num));
writefln(f.report);
}
/**
* Returns a string representing the number, formatted as specified.
*/
// TODO: why have a short form
// Should there be an upper/lower case flag?
private string specialForm(D)(in D num, bool shortForm = false) if (isDecimal!D)
{
string str = num.sign ? "-" : "";
if (num.isInfinite)
{
str ~= shortForm ? "Inf" : "Infinity";
}
else if (num.isNaN)
{
str ~= num.isSignal ? "sNaN" : "NaN";
if (num.coff)
{
str ~= to!string(num.coff);
}
}
return str;
}
unittest
{ // specialForm
static struct S { TD num; string str; }
S[] s =
[
{ "NaN", "NaN" },
{ "-sNaN102", "-sNaN102" },
{ "-Infinity", "-Infinity" },
];
auto f = FunctionTest!(S,string)("specForm");
foreach (t; s) f.test(t, specialForm(t.num));
S[] r =
[
{ "Infinity", "Inf" },
{ "-Infinity", "-Inf" },
];
foreach (t; r) f.test(t, specialForm(TD(t.num),true));
writefln(f.report);
}
/**
* Converts a decimal number to a string in decimal format.
*
* Returns e.g. "125E-5" as "0.001250" with no exponent.
* Numbers with large or small exponents will return long strings.
* Numbers with very large or very small exponents will return very long strings.
*/
private string decimalForm(D)(in D num, int precision = DEFAULT_PRECISION)
if (isDecimal!D)
{
// handle special numbers
if (num.isSpecial)
{
return specialForm(num);
}
// create a mutable copy
D copy = num.copy;
// check if rounding is needed:
if (copy.expo + precision < 0)
{
int numPrecision = copy.digits + copy.expo + precision;
copy = round(copy, numPrecision);
}
// convert the coefficient to a string
char[] str = to!string(copy.coff).dup;
int exp = copy.expo;
bool sign = copy.isNegative;
if (exp >= 0) {
if (exp > 0) {
// add zeros up to the decimal point
str ~= replicate("0", exp);
}
if (precision) {
// add zeros trailing the decimal point
str ~= "." ~ replicate("0", precision);
}
}
else { // (exp < 0)
int point = -exp;
// if coefficient is too small, pad with zeros on the left
if (point > str.length) {
str = rightJustify(str, point, '0');
}
// if no chars precede the decimal point, prefix a zero
if (point == str.length) {
str = "0." ~ str;
}
// otherwise insert a decimal point
else {
insertInPlace(str, str.length - point, ".");
}
// if result is less than precision, add zeros
if (point < precision) {
str ~= replicate("0", precision - point);
}
}
return sign ? ("-" ~ str).idup : str.idup;
}
unittest
{ // decimalForm
static struct S { TD num; int precision; string str; }
S[] s =
[
{ "12.345", 6, "12.345000" },
{ "125", 3, "125.000" },
{ "-125", 3, "-125.000" },
{ "125E5", 0, "12500000" },
{ "1.25", 2, "1.25" },
{ "125E-5", 6, "0.001250" },
{ "-0", 6, "-0.000000" },
{ "Inf", 0, "Infinity" },
{ "-NaN", 4, "-NaN" },
{ "123.4567890123", 6, "123.456789" },
{ "123.4567895123", 6, "123.456790" },
];
auto f = FunctionTest!(S,string)("decForm");
foreach (t; s) f.test(t, decimalForm(t.num, t.precision));
writefln(f.report);
}
/**
* Converts a decimal number to a string using exponential notation.
*/
private string exponentForm(D)(in D number, int precision = DEFAULT_PRECISION,
const bool lowerCase = false, const bool padExpo = true) if (isDecimal!D)
{
if (number.isSpecial) {
return specialForm(number);
}
D num = number.dup;
num = round(num, precision + 1);
char[] cof = to!string(num.coff).dup;
int exp = num.expo;
bool sign = num.isNegative;
int adjx = exp + cast(int)cof.length - 1;
if (cof.length > 1) {
insertInPlace(cof, 1, ".");
}
string expStr = to!string(std.math.abs(adjx));
if (padExpo && expStr.length < 2) {
expStr = "0" ~ expStr;
}
expStr = adjx < 0 ? "-" ~ expStr : "+" ~ expStr;
string expoChar = lowerCase ? "e" : "E";
string str = (cof ~ expoChar ~ expStr).idup;
return sign ? "-" ~ str : str;
} // end exponentForm
unittest
{ // exponentForm
static struct S { TD num; int precision; string str; }
S[] s =
[
{ "125", 3, "1.25E+02" },
{ "-125", 3, "-1.25E+02" },
{ "125E5", 4, "1.25E+07" },
{ "125E-5", 6, "1.25E-03" },
{ "Inf", 0, "Infinity" },
{ "-NaN", 4, "-NaN" },
{ "1.25", 1, "1.2E+00" },
{ "1.35", 1, "1.4E+00" },
{ "123.4567890123", 6, "1.234568E+02" },
{ "123.456789500", 6, "1.234568E+02" },
{ "123.4567895123", 8, "1.23456790E+02" },
];
auto f = FunctionTest!(S,string)("expForm");
foreach (t; s) f.test(t, exponentForm(t.num, t.precision));
writefln(f.report);
}
/**
* Returns a string representing the number, formatted as specified.
*/
private string formatDecimal(D)(in D num,
char formatChar, int precision) if (isDecimal!D)
{
bool lowerCase = std.uni.isLower(formatChar);
bool upperCase = std.uni.isUpper(formatChar);
// special values
if (num.isSpecial)
{
// FIXTHIS: this return hoses the toString process
return specialForm(num.copyAbs, false);
}
switch (std.uni.toUpper(formatChar))
{
case 'F':
return decimalForm(num, precision);
// return exponentForm(num, precision, lowerCase, true);
case 'G':
int exp = num.expo;
if (exp > -5 && exp < precision) {
return decimalForm(num, precision);
}
break;
case 'E':
break;
case 'S':
return sciForm(num.copyAbs);
default:
break;
}
return exponentForm(num, precision, lowerCase, true);
}
/**
* Returns a string that is at least as long as the specified width. If the
* string is already greater than or equal to the specified width the original
* string is returned. If the specified width is negative or if the
* flag is set the widened string is left justified.
*/
private string setWidth(string str, int width,
bool justifyLeft = false, bool padZero = false) {
if (str.length >= std.math.abs(width)) return str;
char fillChar = padZero ? '0' : ' ';
if (width < 0) {
justifyLeft = true;
width = -width;
}
if (justifyLeft) {
fillChar = ' ';
return leftJustify!string(str, width, fillChar);
}
return rightJustify!string(str, width, fillChar);
}
unittest
{ // setWidth
static struct S { string num; int width; bool left; bool zeros; string str; }
S[] s =
[
{ "10+E5", 8, false, false, " 10+E5" },
{ "10E+05", -8, false, false, "10E+05 " },
{ "10E+05", 8, true, false, "10E+05 " },
{ "10E+05", 8, true, true, "10E+05 " },
{ "10E+05", 8, false, true, "0010E+05" },
];
auto f = FunctionTest!(S,string)("setWidth");
foreach (t; s) f.test(t, setWidth(t.num, t.width, t.left, t.zeros));
writefln(f.report);
}
/**
* Returns an abstract string representation of a number.
* The abstract representation is described in the specification. (p. 9-12)
*/
public string abstractForm(D)(in D num) if (isDecimal!D)
{
if (num.isFinite) {
return format("[%d,%s,%d]", num.sign ? 1 : 0,
to!string(num.coff), num.expo);
}
if (num.isInfinite) {
return format("[%d,%s]", num.sign ? 1 : 0, "inf");
}
if (num.isQuiet) {
if (num.coff) {
return format("[%d,%s%d]", num.sign ? 1 : 0, "qNaN", num.coff);
}
return format("[%d,%s]", num.sign ? 1 : 0, "qNaN");
}
if (num.isSignal) {
if (num.coff) {
return format("[%d,%s%d]", num.sign ? 1 : 0, "sNaN", num.coff);
}
return format("[%d,%s]", num.sign ? 1 : 0, "sNaN");
}
return "[0,qNAN]";
}
unittest
{ // abstractForm
static struct S { TD num; string str; }
S[] s =
[
{ "-inf", "[1,inf]" },
{ "nan", "[0,qNaN]" },
{ "snan1234", "[0,sNaN1234]" },
];
auto f = FunctionTest!(S,string)("absForm");
foreach (t; s) f.test(t, abstractForm(t.num));
writefln(f.report);
}
/**
* Returns a full, exact representation of a number. Similar to abstractForm,
* but it provides a valid string that can be converted back into a number.
*/
public string fullForm(D)(in D num) if (isDecimal!D)
{
if (num.isFinite) {
return format("%s%sE%s%02d", num.sign ? "-" : "+",
to!string(num.coff),
num.expo < 0 ? "-" : "+", std.math.abs(num.expo));
}
if (num.isInfinite)
{
return format("%s%s", num.sign ? "-" : "+", "Infinity");
}
if (num.isQuiet)
{
if (num.coff) {
return format("%s%s%d", num.sign ? "-" : "+", "NaN", num.coff);
}
return format("%s%s", num.sign ? "-" : "+", "NaN");
}
if (num.isSignal) {
if (num.coff) {
return format("%s%s%d", num.sign ? "-" : "+", "sNaN", num.coff);
}
return format("%s%s", num.sign ? "-" : "+", "sNaN");
}
return "+NaN";
}
unittest
{ // fullForm
static struct S { TD num; string str; }
S[] s =
[
{ "-inf", "-Infinity" },
{ "nan", "+NaN" },
{ "+NaN", "+NaN" },
{ "text", "+NaN" },
{ "1E+00", "+1E+00" },
{ "1000E-03", "+1000E-03" },
{ "-NaN102", "-NaN102" },
{ "-0E+00", "-0E+00" },
{ "9999999E+90", "+9999999E+90" },
];
auto f = FunctionTest!(S,string)("fullForm");
foreach (t; s) f.test(t, fullForm(t.num));
writefln(f.report);
}
/**
* Converts a string into a decimal number. This departs from the
* specification in that the coefficient string may contain underscores.
* A leading or trailing "." is allowed by the specification even though
* not valid as a D language real.
*/
public D fromString(D)(string inStr, bool round = true) if (isDecimal!D)
{
D num;
// copy, strip, tolower
char[] str = inStr.dup;
str = strip(str);
toLowerInPlace(str);
// check for minus sign or plus sign
bool sign = false;
if (startsWith(str, "-"))
{
sign = true;
str = str[1..$];
}
else if (startsWith(str, "+"))
{
str = str[1..$];
}
// check for NaN
if (startsWith(str, "nan"))
{
num = D.nan(0, sign);
// check for payload
if (str.length > 3) {
return setPayload(num, str, 3);
}
return num;
}
// check for sNaN
if (startsWith(str, "snan"))
{
num = D.snan(0, sign);
// check for payload
if (str.length > 4) {
return setPayload(num, str, 4);
}
return num;
}
// check for infinity
if (str == "inf" || str == "infinity")
{
num = D.infinity(sign);
return num;
}
// at this point, num must be finite
num = D.zero(sign);
// check for exponent
ptrdiff_t pos = indexOf(str, 'e');
if (pos > 0) // if exponent string found...
{
// exponent string must be at least two chars
if (pos == str.length - 1)
{
return D.nan;
}
// split str into coefficient and exponent strings
char[] expStr = str[pos + 1..$];
str = str[0..pos];
// check exponent for minus sign or plus sign
bool expSign = false;
if (startsWith(expStr, "-"))
{
expSign = true;
expStr = expStr[1..$];
}
else if (startsWith(expStr, "+"))
{
expStr = expStr[1..$];
}
// ensure it's not now empty
if (expStr.length < 1)
{
return D.nan;
}
// ensure exponent is all digits
foreach (char c; expStr)
{
if (!isDigit(c)) {
return D.nan;
}
}
// trim leading zeros
while (expStr[0] == '0' && expStr.length > 1) {
expStr = expStr[1..$];
}
// make sure it will fit into an int
if (expStr.length > 10) {
// writefln("expStr = %s", expStr);
return D.nan;
}
if (expStr.length == 10) {
// try to convert it to a long (should work) and
// then see if the long value is too big (or small)
long lex = std.conv.to!long(expStr);
if ((expSign && (-lex < int.min)) || lex > int.max) {
return D.nan;
}
num.expo = cast(int) lex;
} else {
// everything should be copacetic at this point
num.expo = std.conv.to!int(expStr);
}
if (expSign)
{
num.expo = -num.expo;
}
}
else // no exponent
{
num.expo = 0;
}
// remove trailing decimal point
if (endsWith(str, "."))
{
str = str[0..$ -1];
// check for empty string (input was ".")
if (str.length == 0) {
return D.nan;
}
}
// TODO: better done with a range?
// strip leading zeros
while (str[0] == '0' && str.length > 1)
{
str = str[1..$];
}
// make sure first char is a digit
// (or a decimal point, in which case check the second char)
if (!isDigit(str[0]))
{
// check for single non-digit char
if (str.length == 1)
{
return D.nan;
}
// ensure first char is a decimal point and second char is a digit
if (str[0] == '.' && !isDigit(str[1]))
{
return D.nan;
}
}
// strip out any underscores
str = str.replace("_", "");
// remove internal decimal point
int point = indexOf(str, '.');
if (point >= 0)
{
// excise the point and adjust the exponent
str = str[0..point] ~ str[point + 1..$];
int diff = cast(int)str.length - point;
num.expo = num.expo - diff;
}
// TODO: how can this happen? is it possible? assert?
// ensure string is not empty
if (str.length < 1) {
return D.nan;
}
// strip leading zeros again
while (str[0] == '0' && str.length > 1)
{
str = str[1..$];
}
// ensure chars are all digits
foreach (char c; str) {
if (!isDigit(c)) {
return D.nan;
}
}
// convert coefficient string to BigInt
num.coff = BigInt(str.idup);
// by convention, a zero coefficient has zero digits
num.digits = (num.coff) ? str.length : 0;
return num;
}
unittest
{ // fromString
static struct S { string num; TD str; }
S[] s =
[
{ "2.50", "2.50" },
{ "1.0", "1.0" },
{ "-123", "-123" },
{ "1.23E3", "1.23E+3" },
{ "1.23E-3", "0.00123" },
{ "1.2_3E3", "1.23E+3" },
{ ".1", "0.1" },
{ ".", "NaN" },
{ ".E3", "NaN" },
{ "+.", "NaN" },
{ "1.7976931348623157079E+308", "1.7976931348623157079E+308" },
];
auto f = FunctionTest!(S,TD)("fromString");
foreach (t; s) f.test(t, fromString!TD(t.num));
writefln(f.report);
}
private D setPayload(D)(in D num, char[] str, int len) if (isDecimal!D)
{
//if (!__ctfe) writefln("str = %s", str);
D copy = num.copy;
// if finite number or infinity, return
if (!num.isNaN) return copy;
// if no payload, return
if (str.length == len) return copy;
// otherwise, get payload string
str = str[len..$];
// trim leading zeros
//if (!__ctfe) writefln("str = %s", str);
// BigInt payload = BigInt(str);
while (str[0] == '0' && str.length > 1) {
str = str[1..$];
}
// payload has a max length of 6 digits
if (str.length > 6) return copy;
// ensure string is all digits
foreach (char c; str) {
if (!isDigit(c)) {
return copy;
}
}
// convert string to number
// uint payload = std.conv.to!uint(str);
BigInt payload = std.conv.to!uint(str);
//if (!__ctfe) writefln("payload = %d", payload);
// BigInt payload2 = BigInt(payload);
//if (!__ctfe) writefln("payload2 = %s", payload2);
// check for overflow
if (payload > ushort.max) {
return copy;
}
//if (!__ctfe) writefln("copy.coff = %s", copy.coff);
copy.coff = payload;
//if (!__ctfe) writefln("copy.coff = %s", copy.coff);
return copy;
}
unittest
{ // setPayload
static struct S { string num; string str; }
S[] s =
[
{ "NaN167", "NaN167" },
// invalid payload is ignored
{ "SNAN135ee", "sNaN" },
// leading zeros in payload are excised
{ "-snan0170", "-sNaN170" },
];
auto f = FunctionTest!(S,string)("setPayload");
foreach (t; s) f.test(t, TD(t.num).toString);
writefln(f.report);
}
// Binary Integer Decimal (BID) representation
struct Bid32Rep
{
union
{
uint bid;
// NaN
mixin(bitfields!(
uint, "padNan", 25,
ubyte, "testNan", 6,
bool, "signNan", 1));
// infinity
mixin(bitfields!(
uint, "padInf", 26,
ubyte, "testInf", 5,
bool, "signInf", 1));
// explicit representation
mixin(bitfields!(
uint, "coffEx", 23,
ushort,"expoEx", 8,
bool, "signEx", 1));
// implicit representation
mixin(bitfields!(
uint, "coffIm", 21,
ushort,"expoIm", 8,
ubyte, "testIm", 2,
bool, "signIm", 1));
}
enum uint bias = 101, fractionBits = 23, exponentBits = 8, signBits = 1;
}
struct BiD16Rep
{
union
{
ulong bid;
// NaN
mixin(bitfields!(
ulong, "padNan", 57,
ubyte, "testNan", 6,
bool, "signNan", 1));
// infinity
mixin(bitfields!(
ulong, "padInf", 58,
ubyte, "testInf", 5,
bool, "signInf", 1));
// explicit representation
mixin(bitfields!(
ulong, "coffEx", 53,
ushort,"expoEx", 10,
bool, "signEx", 1));
// implicit representation
mixin(bitfields!(
ulong, "coffIm", 51,
ushort,"expoIm", 10,
ubyte, "testIm", 2,
bool, "signIm", 1));
}
enum uint bias = 398, fractionBits = 53, exponentBits = 10, signBits = 1;
}
/// binary integer decimal form
public U toBid(D, U = ulong)(const D num)
if (isDecimal!D && (is(U == ulong) || is(U == uint)))
{
U sig; // value of a signaling NaN
U nan; // value of a quiet NaN
U inf; // value of infinity
U maxExpl; // maximum explicit coefficient
U maxImpl; // maximum implicit coefficient
U impBits; // set if implicit
U impMask; // implicit coefficient mask
U signBit; // set if signed
uint bits; // number of bits in the coefficient
uint bias; // the exponent bias
D rnum; // a rounded copy of the argument
static if (is(U == ulong))
{
sig = 0x7E00000000000000;
nan = 0x7C00000000000000;
inf = 0x7800000000000000;
maxExpl = 0x1FFFFFFFFFFFFF; // = 9007199254740991
maxImpl = 9999999999999999; // = 0x2386F26FC0FFFF
impBits = 0x6000000000000000;
impMask = 0x7FFFFFFFFFFFFF;
signBit = 0x8000000000000000;
bits = 53;
bias = 398;
}
else if (is(U == uint))
{
sig = 0x7E000000;
nan = 0x7C000000;
inf = 0x78000000;
maxExpl = 0x7FFFFF; // = 8388607
maxImpl = 9999999; // = 0x98967F
impBits = 0x60000000;
impMask = 0x7FFFFF;
signBit = 0x80000000;
bits = 23;
bias = 101;
}
// NaNs : sign bit is ignored
if (num.isNaN)
{
return num.isQuiet ? nan : sig;
}
// infinities
if (num.isInfinite)
{
return num.sign ? inf | signBit : inf;
}
static if (is(U == ulong))
{
rnum = round(num, Bid64);
}
else if (is(U == uint))
{
rnum = round(num, Bid32);
}
// check for overflow
if (rnum.isInfinite)
{
return rnum.sign ? inf | signBit : inf;
}
U bid = 0;
U coff = cast(U)rnum.coff.toLong;
U expo = rnum.expo + bias;
// explicit representation
if (coff <= maxExpl)
{
bid |= coff;
bid |= expo << bits;
}
// implicit representation
else
{
bid = impBits; // set the implicit bits
coff &= impMask; // remove the three leading bits
bid |= coff; // coefficient is always < long.max
bid |= expo << (bits - 2);
}
if (num.isNegative)
{
bid |= signBit; // set sign bit
}
return bid;
}
unittest
{ // toBid
static struct S { TD num; ulong bid; }
S[] s =
[
{ "NaN", 0x7C00000000000000 },
{ "-NaN", 0x7C00000000000000 },
{ "0.0", 0x31A0000000000000 },
{ "0.0E1", 0x31C0000000000000 },
{ "0.0E2", 0x31E0000000000000 },
{ "0.0E3", 0x3200000000000000 },
{ "sNaN", 0x7E00000000000000 },
{ "-sNaN", 0x7E00000000000000 },
{ "Inf", 0x7800000000000000 },
{ "-Inf", 0xF800000000000000 },
{ "0", 0x31C0000000000000 },
{ "1", 0x31C0000000000001 },
{ "2", 0x31C0000000000002 },
{ ".1", 0x31A0000000000001 },
{ "-1", 0xB1C0000000000001 },
{ "2.0E3", 0x3200000000000014 },
{ "2E3", 0x3220000000000002 },
{ "20E2", 0x3200000000000014 },
{ M_PI!TD, 0x2FEB29430A256D21 },
{ 9007199254740991, 0x31DFFFFFFFFFFFFF },
{ 9007199254740992, 0x6C70000000000000 },
];
auto f = FunctionTest!(S, ulong, "%016X")("toBid");
foreach (t; s) f.test(t, toBid!(TD,ulong)(t.num));
writefln(f.report);
}
unittest
{ // toBid
static struct S { TD num; uint bid; }
S[] s =
[
{ "NaN", 0x7C000000 },
{ "-NaN", 0x7C000000 },
{ "0", 0x32800000 },
{ "0.0", 0x32000000 },
{ "0E1", 0x33000000 },
{ "0E2", 0x33800000 },
{ "0.0E3", 0x33800000 },
{ "sNaN", 0x7E000000 },
{ "-sNaN", 0x7E000000 },
{ "Inf", 0x78000000 },
{ "-Inf", 0xF8000000 },
{ "0", 0x32800000 },
{ "1", 0x32800001 },
{ "2", 0x32800002 },
{ ".1", 0x32000001 },
{ "-1", 0xB2800001 },
{ "2.0E3", 0x33800014 },
{ "2E3", 0x34000002 },
{ "20E2", 0x33800014 },
{ "3.14159265", 0x2FAFEFD9 },
{ "3.141593", 0x2FAFEFD9 },
{ 8388607, 0x32FFFFFF },
{ 8388608, 0x6CA00000 },
];
auto f = FunctionTest!(S, uint, "%08X")("toBid");
foreach (t; s) f.test(t, toBid!(TD,uint)(t.num));
writefln(f.report);
}
public D fromBid(D, U = ulong)(U bid)
if (isDecimal!D && (is(U == ulong) || is(U == uint)))
{
int bits;
bool sign;
static if (is(U == ulong))
{
BiD16Rep rep;
rep.bid = bid;
bits = rep.fractionBits;
}
else
{
Bid32Rep rep;
rep.bid = bid;
bits = rep.fractionBits;
}
// NaN
if (rep.testNan == 0x3E) return D.nan;
if (rep.testNan == 0x3F) return D.snan;
// infinity
sign = rep.signInf;
if (rep.testInf == 0x1E)
{
return sign ? -D.infinity : D.infinity;
}
D num = 0; // initialize to zero -- not NaN
// explicit coefficient
if (rep.testIm < 3)
{
num.coff = rep.coffEx;
num.expo = cast(int)rep.expoEx - rep.bias;
num.sign = sign;
}
else
{
// implicit coefficient
immutable one = cast(U)4 << (bits - 2);
num.coff = one | rep.coffIm;
num.expo = rep.expoIm - rep.bias;
num.sign = sign;
}
return sign ? -num : num;
}
unittest
{ // fromBid
static struct S {ulong bid; TD expect; }
S[] s =
[
{ 0x7C00000000000000, TD.nan },
{ 0xFE00000000000000, TD.snan }, // sign is ignored
{ 0x7800000000000000, TD.infinity },
{ 0xF800000000000000, -TD.infinity },
{ 0x31C0000000000000, 0 },
{ 0x3220000000000002, "2E3" },
{ 0x31DFFFFFFFFFFFFF, 9007199254740991 }, // largest explicit
{ 0x6C70000000000000, 9007199254740992 }, // smallest implicit
{ 0x2FEB29430A256D21, M_PI!TD },
];
auto f = FunctionTest!(S, TD, "%s")("fromBid(UL)");
foreach (t; s) f.test(t, fromBid!(TD,ulong)(t.bid));
writefln(f.report);
}
unittest
{ // fromBid
static struct S {uint bid; TD expect; }
S[] s =
[
{ 0x7C000000, TD.nan },
{ 0xFE000000, TD.snan }, // sign is ignored
{ 0x78000000, TD.infinity },
{ 0xF8000000, -TD.infinity },
{ 0x32800000, 0 },
{ 0x34000002, "2E3" },
// { 0x34000002, 2000 },
{ 0x32FFFFFF, 8388607 }, // largest explicit
{ 0x6CA00000, 8388608 }, // smallest implicit
];
auto f = FunctionTest!(S, TD, "%s")("fromBid(U)");
foreach (t; s) f.test(t, fromBid!(TD,uint)(t.bid));
writefln(f.report);
}
unittest
{
real r = 123.456E2;
TD num;
num = TD(2.0L);
num = TD(r);
num = TD(231.89E+112);
}
struct RealRep
{
union
{
real value;
ulong[2] word;
}
ulong fraction;
ushort exponent;
enum uint bias = 16383, signBits = 1, fractionBits = 64, exponentBits = 15;
this(real bin) {
value = bin;
fraction = word[0];
exponent = cast(ushort)word[1]; // TODO: remove sign bit?
}
}
public D fromBinary(D,U)(in U bin)
if (isDecimal!D && isFloatingPoint!U)
{
if (std.math.isNaN(bin)) return D.nan;
bool sign = bin < 0;
if (!std.math.isFinite(bin))
{
if (sign)
{
return -D.infinity;
}
else
{
return D.infinity;
}
}
if (bin == 0.0) return D(0,0,sign);
D num;
int expo;
BigInt one;
U bing = sign ? -bin : bin;
static if (is(U == real))
{
RealRep rep = RealRep(bing);
num = BigInt(rep.fraction);
expo = rep.exponent - rep.bias - rep.fractionBits + 1;
}
else if (is(U == float))
{
std.bitmanip.FloatRep rep;
rep.value = bing;
one = BigInt(1) << rep.fractionBits;
num = one | rep.fraction;
expo = rep.exponent - rep.bias - rep.fractionBits;
}
else // double
{
std.bitmanip.DoubleRep rep;
rep.value = bing;
one = BigInt(1) << rep.fractionBits;
num = one | rep.fraction;
expo = rep.exponent - rep.bias - rep.fractionBits;
}
bool divide = expo < 0;
if (divide) {
expo = -expo;
}
// NOTE: at some point the toString/fromString method must be more
// efficient than an enormous shifted BigInt. 1 << 16384 ??
// say expo > 255?
if (expo > 127)
{
string str = std.format.format!"%.18G"(bin);
return fromString!D(str);
}
auto mult = BigInt(1) << expo;
num = divide ? num/mult : num*mult;
static if (is(U == real))
{
num = reduce(num, RealContext);
}
else if (is(U == double))
{
num = reduce(num, DoubleContext);
}
else
{
num = reduce(num, FloatContext);
}
return sign ? -num : num;
}
unittest {
writeln("==========================");
}
|
D
|
module std.crc32;
public import stdrus: иницЦПИ32, обновиЦПИ32б, обновиЦПИ32с, ткстЦПИ32 ;
alias ЦПИ32.иниц init_crc32;
alias ЦПИ32.обнови update_crc32;
alias ЦПИ32.текст crc32;
struct ЦПИ32
{
alias иниц opCall;
private бкрат значение;
бкрат иниц(){return значение = иницЦПИ32();}
бкрат обнови(ббайт зн, бцел црц){return значение = обновиЦПИ32б(зн, црц);}
бкрат обнови(сим зн, бцел црц){return значение = обновиЦПИ32с(зн, црц);}
бкрат текст(ткст т){return значение = ткстЦПИ32(т);}
бкрат знач(){return значение;}
}
unittest
{
// import win, stdrus;
ЦПИ32 а;
а.иниц();
скажинс(вТкст(а.знач()));
}
|
D
|
/Users/yuga/Documents/ios20161219/cafeDaiay-b1b70009d201388525eea8414f389516ed31bc4a/FoodTracker/Build/Intermediates/IBDesignables/Intermediates/Pods.build/Debug-iphonesimulator/FontAwesome.swift.build/Objects-normal/x86_64/FontAwesomeView.o : /Users/yuga/Documents/ios20161219/cafeDaiay-b1b70009d201388525eea8414f389516ed31bc4a/FoodTracker/Pods/FontAwesome.swift/FontAwesome/Enum.swift /Users/yuga/Documents/ios20161219/cafeDaiay-b1b70009d201388525eea8414f389516ed31bc4a/FoodTracker/Pods/FontAwesome.swift/FontAwesome/FontAwesome.swift /Users/yuga/Documents/ios20161219/cafeDaiay-b1b70009d201388525eea8414f389516ed31bc4a/FoodTracker/Pods/FontAwesome.swift/FontAwesome/FontAwesomeView.swift /Users/yuga/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/yuga/Documents/ios20161219/cafeDaiay-b1b70009d201388525eea8414f389516ed31bc4a/FoodTracker/Pods/Target\ Support\ Files/FontAwesome.swift/FontAwesome.swift-umbrella.h /Users/yuga/Documents/ios20161219/cafeDaiay-b1b70009d201388525eea8414f389516ed31bc4a/FoodTracker/Build/Intermediates/IBDesignables/Intermediates/Pods.build/Debug-iphonesimulator/FontAwesome.swift.build/unextended-module.modulemap /Users/yuga/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Users/yuga/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Users/yuga/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Users/yuga/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Users/yuga/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Users/yuga/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Users/yuga/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Users/yuga/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/yuga/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule
/Users/yuga/Documents/ios20161219/cafeDaiay-b1b70009d201388525eea8414f389516ed31bc4a/FoodTracker/Build/Intermediates/IBDesignables/Intermediates/Pods.build/Debug-iphonesimulator/FontAwesome.swift.build/Objects-normal/x86_64/FontAwesomeView~partial.swiftmodule : /Users/yuga/Documents/ios20161219/cafeDaiay-b1b70009d201388525eea8414f389516ed31bc4a/FoodTracker/Pods/FontAwesome.swift/FontAwesome/Enum.swift /Users/yuga/Documents/ios20161219/cafeDaiay-b1b70009d201388525eea8414f389516ed31bc4a/FoodTracker/Pods/FontAwesome.swift/FontAwesome/FontAwesome.swift /Users/yuga/Documents/ios20161219/cafeDaiay-b1b70009d201388525eea8414f389516ed31bc4a/FoodTracker/Pods/FontAwesome.swift/FontAwesome/FontAwesomeView.swift /Users/yuga/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/yuga/Documents/ios20161219/cafeDaiay-b1b70009d201388525eea8414f389516ed31bc4a/FoodTracker/Pods/Target\ Support\ Files/FontAwesome.swift/FontAwesome.swift-umbrella.h /Users/yuga/Documents/ios20161219/cafeDaiay-b1b70009d201388525eea8414f389516ed31bc4a/FoodTracker/Build/Intermediates/IBDesignables/Intermediates/Pods.build/Debug-iphonesimulator/FontAwesome.swift.build/unextended-module.modulemap /Users/yuga/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Users/yuga/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Users/yuga/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Users/yuga/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Users/yuga/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Users/yuga/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Users/yuga/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Users/yuga/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/yuga/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule
/Users/yuga/Documents/ios20161219/cafeDaiay-b1b70009d201388525eea8414f389516ed31bc4a/FoodTracker/Build/Intermediates/IBDesignables/Intermediates/Pods.build/Debug-iphonesimulator/FontAwesome.swift.build/Objects-normal/x86_64/FontAwesomeView~partial.swiftdoc : /Users/yuga/Documents/ios20161219/cafeDaiay-b1b70009d201388525eea8414f389516ed31bc4a/FoodTracker/Pods/FontAwesome.swift/FontAwesome/Enum.swift /Users/yuga/Documents/ios20161219/cafeDaiay-b1b70009d201388525eea8414f389516ed31bc4a/FoodTracker/Pods/FontAwesome.swift/FontAwesome/FontAwesome.swift /Users/yuga/Documents/ios20161219/cafeDaiay-b1b70009d201388525eea8414f389516ed31bc4a/FoodTracker/Pods/FontAwesome.swift/FontAwesome/FontAwesomeView.swift /Users/yuga/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/yuga/Documents/ios20161219/cafeDaiay-b1b70009d201388525eea8414f389516ed31bc4a/FoodTracker/Pods/Target\ Support\ Files/FontAwesome.swift/FontAwesome.swift-umbrella.h /Users/yuga/Documents/ios20161219/cafeDaiay-b1b70009d201388525eea8414f389516ed31bc4a/FoodTracker/Build/Intermediates/IBDesignables/Intermediates/Pods.build/Debug-iphonesimulator/FontAwesome.swift.build/unextended-module.modulemap /Users/yuga/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Users/yuga/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Users/yuga/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Users/yuga/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Users/yuga/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Users/yuga/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Users/yuga/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Users/yuga/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/yuga/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule
|
D
|
/**
Contains several attributes used in SQL databases.
*/
module ezdb.entity;
import std.traits;
import std.typecons;
/**
Defines the primary key of an entity.
*/
enum primaryKey; // @suppress(dscanner.style.phobos_naming_convention)
/**
Aliases to the type of the primary key of an entity.
*/
template PrimaryKeyType(Type)
{
alias PrimaryKeyType = typeof(PrimaryKeySymbol!Type);
}
/**
The `PrimaryKeyType` template returns the type of the primary key.
*/
@("PrimaryKeyType returns correct primary key type")
@safe @nogc pure unittest
{
static struct MyEntity
{
@primaryKey
int a;
int b;
}
assert(is(PrimaryKeyType!MyEntity == int));
}
/**
Aliases to the symbol that is the primary key of an entity.
*/
template PrimaryKeySymbol(Type)
{
static if (getSymbolsByUDA!(Type, primaryKey).length == 1)
{
alias PrimaryKeySymbol = getSymbolsByUDA!(Type, primaryKey)[0];
}
else
{
static assert(false, "An entity should have exactly one @primaryKey");
}
}
@("Cannot compile PrimaryKey with two primary keys")
@safe @nogc pure unittest
{
static struct MyEntity
{
@primaryKey
int id;
@primaryKey
int secondId;
}
assert(!__traits(compiles, PrimaryKeySymbol!MyEntity));
}
@("Cannot compile PrimaryKey with no primary keys")
@safe @nogc pure unittest
{
static struct MyEntity
{
}
assert(!__traits(compiles, PrimaryKeySymbol!MyEntity));
}
/**
Gets a reference to the primary key of an entity.
*/
ref auto getPrimaryKey(Entity)(Entity entity) // @suppress(dscanner.suspicious.unused_parameter)
{
return __traits(getMember, entity, getSymbolsByUDA!(typeof(entity), primaryKey)[0].stringof);
}
/**
Sets the primary key of an entity.
*/
void setPrimaryKey(Entity, Id = PrimaryKeyType!Entity)(ref Entity entity, Id key) // @suppress(dscanner.suspicious.unused_parameter)
{
__traits(getMember, entity, getSymbolsByUDA!(typeof(entity), primaryKey)[0].stringof) = key;
}
|
D
|
module nes.ppu;
import std.algorithm;
import std.conv;
import std.stdio;
import nes.console;
import nes.image;
import nes.memory;
import nes.palette;
struct SpritePixel {
ubyte index;
ubyte color;
}
class PPU : PPUMemory {
this(Console console) {
super(console);
this.console = console;
this.front = new ImageRGBA(Rect(0, 0, 256, 240));
this.back = new ImageRGBA(Rect(0, 0, 256, 240));
this.reset();
}
void reset() {
this.cycle = 340;
this.scanLine = 240;
this.frame = 0;
this.writeControl(0);
this.writeMask(0);
this.writeOAMAddress(0);
}
// Step executes a single PPU cycle
void step() {
this.tick();
auto renderingEnabled = this.flagShowBackground != 0 || this.flagShowSprites != 0;
auto preLine = this.scanLine == 261;
auto visibleLine = this.scanLine < 240;
// auto postLine = this.scanLine == 240;
auto renderLine = preLine || visibleLine;
auto preFetchCycle = this.cycle >= 321 && this.cycle <= 336;
auto visibleCycle = this.cycle >= 1 && this.cycle <= 256;
auto fetchCycle = preFetchCycle || visibleCycle;
// background logic
if (renderingEnabled) {
if (visibleLine && visibleCycle) {
this.renderPixel();
}
if (renderLine && fetchCycle) {
this.tileData <<= 4;
switch (this.cycle % 8) {
case 1:
this.fetchNameTableByte();
break;
case 3:
this.fetchAttributeTableByte();
break;
case 5:
this.fetchLowTileByte();
break;
case 7:
this.fetchHighTileByte();
break;
case 0:
this.storeTileData();
break;
default:
break;
}
}
if (preLine && this.cycle >= 280 && this.cycle <= 304) {
this.copyY();
}
if (renderLine) {
if (fetchCycle && this.cycle % 8 == 0) {
this.incrementX();
}
if (this.cycle == 256) {
this.incrementY();
}
if (this.cycle == 257) {
this.copyX();
}
}
}
// sprite logic
if (renderingEnabled) {
if (this.cycle == 257) {
if (visibleLine) {
this.evaluateSprites();
} else {
this.spriteCount = 0;
}
}
}
// vblank logic
if (this.scanLine == 241 && this.cycle == 1) {
this.setVerticalBlank();
}
if (preLine && this.cycle == 1) {
this.clearVerticalBlank();
this.flagSpriteZeroHit = 0;
this.flagSpriteOverflow = 0;
}
}
ubyte readRegister(ushort address) {
switch (address) {
case 0x2002:
return this.readStatus();
case 0x2004:
return this.readOAMData();
case 0x2007:
return this.readData();
default:
break;
}
return 0;
}
void writeRegister(ushort address, ubyte value) {
this.register = value;
switch (address) {
case 0x2000:
this.writeControl(value);
break;
case 0x2001:
this.writeMask(value);
break;
case 0x2003:
this.writeOAMAddress(value);
break;
case 0x2004:
this.writeOAMData(value);
break;
case 0x2005:
this.writeScroll(value);
break;
case 0x2006:
this.writeAddress(value);
break;
case 0x2007:
this.writeData(value);
break;
case 0x4014:
this.writeDMA(value);
break;
default:
break;
}
}
ubyte readPalette(ushort address) {
if (address >= 16 && address % 4 == 0) {
address -= 16;
}
return this.paletteData[address];
}
void writePalette(ushort address, ubyte value) {
if (address >= 16 && address % 4 == 0) {
address -= 16;
}
this.paletteData[address] = value;
}
void save(string[string] state) {
state["ppu.cycle"] = to!string(this.cycle);
state["ppu.scanLine"] = to!string(this.scanLine);
state["ppu.frame"] = to!string(this.frame);
state["ppu.paletteData"] = to!string(this.paletteData);
state["ppu.nameTableData"] = to!string(this.nameTableData);
state["ppu.oamData"] = to!string(this.oamData);
state["ppu.v"] = to!string(this.v);
state["ppu.t"] = to!string(this.t);
state["ppu.x"] = to!string(this.x);
state["ppu.w"] = to!string(this.w);
state["ppu.f"] = to!string(this.f);
state["ppu.register"] = to!string(this.register);
state["ppu.nmiOccurred"] = to!string(this.nmiOccurred);
state["ppu.nmiOutput"] = to!string(this.nmiOutput);
state["ppu.nmiPrevious"] = to!string(this.nmiPrevious);
state["ppu.nmiDelay"] = to!string(this.nmiDelay);
state["ppu.nameTableByte"] = to!string(this.nameTableByte);
state["ppu.attributeTableByte"] = to!string(this.attributeTableByte);
state["ppu.lowTileByte"] = to!string(this.lowTileByte);
state["ppu.highTileByte"] = to!string(this.highTileByte);
state["ppu.tileData"] = to!string(this.tileData);
state["ppu.spriteCount"] = to!string(this.spriteCount);
state["ppu.spritePatterns"] = to!string(this.spritePatterns);
state["ppu.spritePositions"] = to!string(this.spritePositions);
state["ppu.spritePriorities"] = to!string(this.spritePriorities);
state["ppu.spriteIndexes"] = to!string(this.spriteIndexes);
state["ppu.flagNameTable"] = to!string(this.flagNameTable);
state["ppu.flagIncrement"] = to!string(this.flagIncrement);
state["ppu.flagSpriteTable"] = to!string(this.flagSpriteTable);
state["ppu.flagBackgroundTable"] = to!string(this.flagBackgroundTable);
state["ppu.flagSpriteSize"] = to!string(this.flagSpriteSize);
state["ppu.flagMasterSlave"] = to!string(this.flagMasterSlave);
state["ppu.flagGrayscale"] = to!string(this.flagGrayscale);
state["ppu.flagShowLeftBackground"] = to!string(this.flagShowLeftBackground);
state["ppu.flagShowLeftSprites"] = to!string(this.flagShowLeftSprites);
state["ppu.flagShowBackground"] = to!string(this.flagShowBackground);
state["ppu.flagShowSprites"] = to!string(this.flagShowSprites);
state["ppu.flagRedTint"] = to!string(this.flagRedTint);
state["ppu.flagGreenTint"] = to!string(this.flagGreenTint);
state["ppu.flagBlueTint"] = to!string(this.flagBlueTint);
state["ppu.flagSpriteZeroHit"] = to!string(this.flagSpriteZeroHit);
state["ppu.flagSpriteOverflow"] = to!string(this.flagSpriteOverflow);
state["ppu.oamAddress"] = to!string(this.oamAddress);
state["ppu.bufferedData"] = to!string(this.bufferedData);
}
void load(string[string] state) {
this.cycle = to!int(state["ppu.cycle"]);
this.scanLine = to!int(state["ppu.scanLine"]);
this.frame = to!ulong(state["ppu.frame"]);
this.paletteData = to!(ubyte[32])(state["ppu.paletteData"]);
this.nameTableData = to!(ubyte[2048])(state["ppu.nameTableData"]);
this.oamData = to!(ubyte[256])(state["ppu.oamData"]);
this.v = to!ushort(state["ppu.v"]);
this.t = to!ushort(state["ppu.t"]);
this.x = to!ubyte(state["ppu.x"]);
this.w = to!ubyte(state["ppu.w"]);
this.f = to!ubyte(state["ppu.f"]);
this.register = to!ubyte(state["ppu.register"]);
this.nmiOccurred = to!bool(state["ppu.nmiOccurred"]);
this.nmiOutput = to!bool(state["ppu.nmiOutput"]);
this.nmiPrevious = to!bool(state["ppu.nmiPrevious"]);
this.nmiDelay = to!ubyte(state["ppu.nmiDelay"]);
this.nameTableByte = to!ubyte(state["ppu.nameTableByte"]);
this.attributeTableByte = to!ubyte(state["ppu.attributeTableByte"]);
this.lowTileByte = to!ubyte(state["ppu.lowTileByte"]);
this.highTileByte = to!ubyte(state["ppu.highTileByte"]);
this.tileData = to!ulong(state["ppu.tileData"]);
this.spriteCount = to!int(state["ppu.spriteCount"]);
this.spritePatterns = to!(uint[8])(state["ppu.spritePatterns"]);
this.spritePositions = to!(ubyte[8])(state["ppu.spritePositions"]);
this.spritePriorities = to!(ubyte[8])(state["ppu.spritePriorities"]);
this.spriteIndexes = to!(ubyte[8])(state["ppu.spriteIndexes"]);
this.flagNameTable = to!ubyte(state["ppu.flagNameTable"]);
this.flagIncrement = to!ubyte(state["ppu.flagIncrement"]);
this.flagSpriteTable = to!ubyte(state["ppu.flagSpriteTable"]);
this.flagBackgroundTable = to!ubyte(state["ppu.flagBackgroundTable"]);
this.flagSpriteSize = to!ubyte(state["ppu.flagSpriteSize"]);
this.flagMasterSlave = to!ubyte(state["ppu.flagMasterSlave"]);
this.flagGrayscale = to!ubyte(state["ppu.flagGrayscale"]);
this.flagShowLeftBackground = to!ubyte(state["ppu.flagShowLeftBackground"]);
this.flagShowLeftSprites = to!ubyte(state["ppu.flagShowLeftSprites"]);
this.flagShowBackground = to!ubyte(state["ppu.flagShowBackground"]);
this.flagShowSprites = to!ubyte(state["ppu.flagShowSprites"]);
this.flagRedTint = to!ubyte(state["ppu.flagRedTint"]);
this.flagGreenTint = to!ubyte(state["ppu.flagGreenTint"]);
this.flagBlueTint = to!ubyte(state["ppu.flagBlueTint"]);
this.flagSpriteZeroHit = to!ubyte(state["ppu.flagSpriteZeroHit"]);
this.flagSpriteOverflow = to!ubyte(state["ppu.flagSpriteOverflow"]);
this.oamAddress = to!ubyte(state["ppu.oamAddress"]);
this.bufferedData = to!ubyte(state["ppu.bufferedData"]);
}
package:
Console console;
ubyte[2048] nameTableData;
ImageRGBA front;
ImageRGBA back;
int cycle; // 0-340
int scanLine; // 0-261, 0-239=visible, 240=post, 241-260=vblank, 261=pre
ulong frame; // frame counter
// storage variables
ubyte[32] paletteData;
ubyte[256] oamData;
// PPU registers
ushort v; // current vram address (15 bit)
ushort t; // temporary vram address (15 bit)
ubyte x; // fine x scroll (3 bit)
ubyte w; // write toggle (1 bit)
ubyte f; // even/odd frame flag (1 bit)
ubyte register;
// NMI flags
bool nmiOccurred;
bool nmiOutput;
bool nmiPrevious;
ubyte nmiDelay;
// background temporary variables
ubyte nameTableByte;
ubyte attributeTableByte;
ubyte lowTileByte;
ubyte highTileByte;
ulong tileData;
// sprite temporary variables
int spriteCount;
uint[8] spritePatterns;
ubyte[8] spritePositions;
ubyte[8] spritePriorities;
ubyte[8] spriteIndexes;
// $2000 PPUCTRL
ubyte flagNameTable; // 0: $2000; 1: $2400; 2: $2800; 3: $2C00
ubyte flagIncrement; // 0: add 1; 1: add 32
ubyte flagSpriteTable; // 0: $0000; 1: $1000; ignored in 8x16 mode
ubyte flagBackgroundTable; // 0: $0000; 1: $1000
ubyte flagSpriteSize; // 0: 8x8; 1: 8x16
ubyte flagMasterSlave; // 0: read EXT; 1: write EXT
// $2001 PPUMASK
ubyte flagShowBackground; // 0: hide; 1: show
ubyte flagShowSprites; // 0: hide; 1: show
ubyte flagGrayscale; // 0: color; 1: grayscale
ubyte flagShowLeftBackground; // 0: hide; 1: show
ubyte flagShowLeftSprites; // 0: hide; 1: show
ubyte flagRedTint; // 0: normal; 1: emphasized
ubyte flagGreenTint; // 0: normal; 1: emphasized
ubyte flagBlueTint; // 0: normal; 1: emphasized
// $2002 PPUSTATUS
ubyte flagSpriteZeroHit;
ubyte flagSpriteOverflow;
// $2003 OAMADDR
ubyte oamAddress;
// $2007 PPUDATA
ubyte bufferedData; // for buffered reads
private:
// $2000: PPUCTRL
void writeControl(ubyte value) {
this.flagNameTable = (value >> 0) & 3;
this.flagIncrement = (value >> 2) & 1;
this.flagSpriteTable = (value >> 3) & 1;
this.flagBackgroundTable = (value >> 4) & 1;
this.flagSpriteSize = (value >> 5) & 1;
this.flagMasterSlave = (value >> 6) & 1;
this.nmiOutput = ((value >> 7) & 1) == 1;
this.nmiChange();
// t: ....BA.. ........ = d: ......BA
this.t = (this.t & 0xF3FF) | ((cast(ushort)(value) & 0x03) << 10);
}
// $2001: PPUMASK
void writeMask(ubyte value) {
this.flagGrayscale = (value >> 0) & 1;
this.flagShowLeftBackground = (value >> 1) & 1;
this.flagShowLeftSprites = (value >> 2) & 1;
this.flagShowBackground = (value >> 3) & 1;
this.flagShowSprites = (value >> 4) & 1;
this.flagRedTint = (value >> 5) & 1;
this.flagGreenTint = (value >> 6) & 1;
this.flagBlueTint = (value >> 7) & 1;
}
// $2002: PPUSTATUS
ubyte readStatus() {
ubyte result = this.register & 0x1F;
result |= this.flagSpriteOverflow << 5;
result |= this.flagSpriteZeroHit << 6;
if (this.nmiOccurred) {
result |= 1 << 7;
}
this.nmiOccurred = false;
this.nmiChange();
// w: = 0
this.w = 0;
return result;
}
// $2003: OAMADDR
void writeOAMAddress(ubyte value) {
this.oamAddress = value;
}
// $2004: OAMDATA (read)
ubyte readOAMData() {
return this.oamData[this.oamAddress];
}
// $2004: OAMDATA (write)
void writeOAMData(ubyte value) {
this.oamData[this.oamAddress] = value;
this.oamAddress++;
}
// $2005: PPUSCROLL
void writeScroll(ubyte value) {
if (this.w == 0) {
// t: ........ ...HGFED = d: HGFED...
// x: CBA = d: .....CBA
// w: = 1
this.t = (this.t & 0xFFE0) | (cast(ushort)value >> 3);
this.x = value & 0x07;
this.w = 1;
} else {
// t: .CBA..HG FED..... = d: HGFEDCBA
// w: = 0
this.t = (this.t & 0x8FFF) | ((cast(ushort)value & 0x07) << 12);
this.t = (this.t & 0xFC1F) | ((cast(ushort)value & 0xF8) << 2);
this.w = 0;
}
}
// $2006: PPUADDR
void writeAddress(ubyte value) {
if (this.w == 0) {
// t: ..FEDCBA ........ = d: ..FEDCBA
// t: .X...... ........ = 0
// w: = 1
this.t = (this.t & 0x80FF) | ((cast(ushort)value & 0x3F) << 8);
this.w = 1;
} else {
// t: ........ HGFEDCBA = d: HGFEDCBA
// v = t
// w: = 0
this.t = (this.t & 0xFF00) | cast(ushort)value;
this.v = this.t;
this.w = 0;
}
}
// $2007: PPUDATA (read)
ubyte readData() {
auto value = this.read(this.v);
// emulate buffered reads
if (this.v % 0x4000 < 0x3F00) {
auto buffered = this.bufferedData;
this.bufferedData = value;
value = buffered;
} else {
this.bufferedData = this.read(cast(ushort)(this.v - 0x1000));
}
// increment address
if (this.flagIncrement == 0) {
this.v += 1;
} else {
this.v += 32;
}
return value;
}
// $2007: PPUDATA (write)
void writeData(ubyte value) {
this.write(this.v, value);
if (this.flagIncrement == 0) {
this.v += 1;
} else {
this.v += 32;
}
}
// $4014: OAMDMA
void writeDMA(ubyte value) {
auto cpu = this.console.cpu;
ushort address = cast(ushort)value << 8;
for (auto i = 0; i < 256; i++) {
this.oamData[this.oamAddress] = cpu.read(address);
this.oamAddress++;
address++;
}
cpu.stall += 513;
if (cpu.cycles % 2 == 1) {
cpu.stall++;
}
}
// NTSC Timing Helper Functions
void incrementX() {
// increment hori(v)
// if coarse X == 31
if ((this.v & 0x001F) == 31) {
// coarse X = 0
this.v &= 0xFFE0;
// switch horizontal nametable
this.v ^= 0x0400;
} else {
// increment coarse X
this.v++;
}
}
void incrementY() {
// increment vert(v)
// if fine Y < 7
if ((this.v & 0x7000) != 0x7000) {
// increment fine Y
this.v += 0x1000;
} else {
// fine Y = 0
this.v &= 0x8FFF;
// let y = coarse Y
ushort y = (this.v & 0x03E0) >> 5;
if (y == 29) {
// coarse Y = 0
y = 0;
// switch vertical nametable
this.v ^= 0x0800;
} else if (y == 31) {
// coarse Y = 0, nametable not switched
y = 0;
} else {
// increment coarse Y
y++;
}
// put coarse Y back into v
this.v = cast(ushort)((this.v & 0xFC1F) | (y << 5));
}
}
void copyX() {
// hori(v) = hori(t)
// v: .....F.. ...EDCBA = t: .....F.. ...EDCBA
this.v = (this.v & 0xFBE0) | (this.t & 0x041F);
}
void copyY() {
// vert(v) = vert(t)
// v: .IHGF.ED CBA..... = t: .IHGF.ED CBA.....
this.v = (this.v & 0x841F) | (this.t & 0x7BE0);
}
void nmiChange() {
auto nmi = this.nmiOutput && this.nmiOccurred;
if (nmi && !this.nmiPrevious) {
// TODO: this fixes some games but the delay shouldn't have to be so
// long, so the timings are off somewhere
this.nmiDelay = 15;
}
this.nmiPrevious = nmi;
}
void setVerticalBlank() {
swap(this.front, this.back);
this.nmiOccurred = true;
this.nmiChange();
}
void clearVerticalBlank() {
this.nmiOccurred = false;
this.nmiChange();
}
void fetchNameTableByte() {
auto v = this.v;
ushort address = 0x2000 | (v & 0x0FFF);
this.nameTableByte = this.read(address);
}
void fetchAttributeTableByte() {
auto v = this.v;
ushort address = 0x23C0 | (v & 0x0C00) | ((v >> 4) & 0x38) | ((v >> 2) & 0x07);
ubyte shift = ((v >> 4) & 4) | (v & 2);
this.attributeTableByte = ((this.read(address) >> shift) & 3) << 2;
}
void fetchLowTileByte() {
ushort fineY = (this.v >> 12) & 7; // Port: Maybe should be ubyte
auto table = this.flagBackgroundTable;
auto tile = this.nameTableByte;
ushort address = cast(ushort)(0x1000 * cast(ushort)table + cast(ushort)tile * 16 + fineY);
this.lowTileByte = this.read(address);
}
void fetchHighTileByte() {
ushort fineY = (this.v >> 12) & 7; // Port: Maybe should be ubyte
auto table = this.flagBackgroundTable;
auto tile = this.nameTableByte;
ushort address = cast(ushort)(0x1000 * cast(ushort)table + cast(ushort)tile * 16 + fineY);
this.highTileByte = this.read(cast(ushort)(address + 8));
}
void storeTileData() {
uint data;
for (auto i = 0; i < 8; i++) {
auto a = this.attributeTableByte;
ubyte p1 = (this.lowTileByte & 0x80) >> 7;
ubyte p2 = (this.highTileByte & 0x80) >> 6;
this.lowTileByte <<= 1;
this.highTileByte <<= 1;
data <<= 4;
data |= cast(uint)(a | p1 | p2);
}
this.tileData |= cast(ulong)data;
}
uint fetchTileData() {
return cast(uint)(this.tileData >> 32);
}
ubyte backgroundPixel() {
if (this.flagShowBackground == 0) {
return 0;
}
uint data = this.fetchTileData() >> ((7 - this.x) * 4);
return cast(ubyte)(data & 0x0F);
}
SpritePixel spritePixel() {
if (this.flagShowSprites == 0) {
return SpritePixel(0, 0);
}
for (auto i = 0; i < this.spriteCount; i++) {
int offset = (this.cycle - 1) - cast(int)this.spritePositions[i];
if (offset < 0 || offset > 7) {
continue;
}
offset = 7 - offset;
ubyte color = cast(ubyte)((this.spritePatterns[i] >> cast(ubyte)(offset * 4)) & 0x0F);
if (color % 4 == 0) {
continue;
}
return SpritePixel(cast(ubyte)i, color);
}
return SpritePixel(0, 0);
}
void renderPixel() {
auto x = this.cycle - 1;
auto y = this.scanLine;
auto background = this.backgroundPixel();
auto sp = this.spritePixel();
auto i = sp.index;
auto sprite = sp.color;
if (x < 8 && this.flagShowLeftBackground == 0) {
background = 0;
}
if (x < 8 && this.flagShowLeftSprites == 0) {
sprite = 0;
}
auto b = background % 4 != 0;
auto s = sprite % 4 != 0;
ubyte color;
if (!b && !s) {
color = 0;
} else if (!b && s) {
color = sprite | 0x10;
} else if (b && !s) {
color = background;
} else {
if (this.spriteIndexes[i] == 0 && x < 255) {
this.flagSpriteZeroHit = 1;
}
if (this.spritePriorities[i] == 0) {
color = sprite | 0x10;
} else {
color = background;
}
}
auto c = Palette[this.readPalette(cast(ushort)color) % 64];
this.back.setRGBA(x, y, c);
}
uint fetchSpritePattern(int i, int row) {
auto tile = this.oamData[i * 4 + 1];
auto attributes = this.oamData[i * 4 + 2];
ushort address;
if (this.flagSpriteSize == 0) {
if ((attributes & 0x80) == 0x80) {
row = 7 - row;
}
auto table = this.flagSpriteTable;
address = cast(ushort)(0x1000 * cast(ushort)table + cast(ushort)tile * 16 + cast(ushort)row);
} else {
if ((attributes & 0x80) == 0x80) {
row = 15 - row;
}
auto table = tile & 1;
tile &= 0xFE;
if (row > 7) {
tile++;
row -= 8;
}
address = cast(ushort)(0x1000 * cast(ushort)table + cast(ushort)tile * 16 + cast(ushort)row);
}
auto a = (attributes & 3) << 2;
auto lowTileByte = this.read(address);
auto highTileByte = this.read(cast(ushort)(address + 8));
uint data;
for (auto c = 0; c < 8; c++) {
ubyte p1, p2;
if ((attributes & 0x40) == 0x40) {
p1 = (lowTileByte & 1) << 0;
p2 = (highTileByte & 1) << 1;
lowTileByte >>= 1;
highTileByte >>= 1;
} else {
p1 = (lowTileByte & 0x80) >> 7;
p2 = (highTileByte & 0x80) >> 6;
lowTileByte <<= 1;
highTileByte <<= 1;
}
data <<= 4;
data |= cast(uint)(a | p1 | p2);
}
return data;
}
void evaluateSprites() {
int h;
if (this.flagSpriteSize == 0) {
h = 8;
} else {
h = 16;
}
auto count = 0;
for (auto i = 0; i < 64; i++) {
auto y = this.oamData[i*4+0];
auto a = this.oamData[i*4+2];
auto x = this.oamData[i*4+3];
auto row = this.scanLine - cast(int)y;
if (row < 0 || row >= h) {
continue;
}
if (count < 8) {
this.spritePatterns[count] = this.fetchSpritePattern(i, row);
this.spritePositions[count] = x;
this.spritePriorities[count] = (a >> 5) & 1;
this.spriteIndexes[count] = cast(ubyte)i;
}
count++;
}
if (count > 8) {
count = 8;
this.flagSpriteOverflow = 1;
}
this.spriteCount = count;
}
// tick updates Cycle, ScanLine and Frame counters
void tick() {
if (this.nmiDelay > 0) {
this.nmiDelay--;
if (this.nmiDelay == 0 && this.nmiOutput && this.nmiOccurred) {
this.console.cpu.triggerNMI();
}
}
if (this.flagShowBackground != 0 || this.flagShowSprites != 0) {
if (this.f == 1 && this.scanLine == 261 && this.cycle == 339) {
this.cycle = 0;
this.scanLine = 0;
this.frame++;
this.f ^= 1;
return;
}
}
this.cycle++;
if (this.cycle > 340) {
this.cycle = 0;
this.scanLine++;
if (this.scanLine > 261) {
this.scanLine = 0;
this.frame++;
this.f ^= 1;
}
}
}
}
|
D
|
/**
* Copyright © DiamondMVC 2019
* License: MIT (https://github.com/DiamondMVC/Diamond/blob/master/LICENSE)
* Author: Jacob Jensen (bausshf)
*/
module diamond.controllers.rest;
public
{
import diamond.controllers.rest.parser;
import diamond.controllers.rest.routedatatype;
import diamond.controllers.rest.routepart;
import diamond.controllers.rest.routetype;
}
|
D
|
/**
A simple HTTP/1.1 client implementation.
Copyright: © 2012 RejectedSoftware e.K.
License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
Authors: Sönke Ludwig, Jan Krüger
*/
module vibe.http.client;
public import vibe.core.net;
public import vibe.http.common;
import vibe.core.connectionpool;
import vibe.core.core;
import vibe.core.log;
import vibe.data.json;
import vibe.inet.message;
import vibe.inet.url;
import vibe.stream.counting;
import vibe.stream.ssl;
import vibe.stream.operations;
import vibe.stream.zlib;
import vibe.utils.array;
import vibe.utils.memory;
import std.array;
import std.conv;
import std.exception;
import std.format;
import std.string;
import std.typecons;
import std.datetime;
/**************************************************************************************************/
/* Public functions */
/**************************************************************************************************/
/**
Performs a HTTP request on the specified URL.
The 'requester' parameter allows to customize the request and to specify the request body for
non-GET requests.
*/
HTTPClientResponse requestHTTP(string url, scope void delegate(scope HTTPClientRequest req) requester = null)
{
return requestHTTP(URL.parse(url), requester);
}
/// ditto
HTTPClientResponse requestHTTP(URL url, scope void delegate(scope HTTPClientRequest req) requester = null)
{
enforce(url.schema == "http" || url.schema == "https", "URL schema must be http(s).");
enforce(url.host.length > 0, "URL must contain a host name.");
bool ssl = url.schema == "https";
auto cli = connectHTTP(url.host, url.port, ssl);
auto res = cli.request((req){
req.requestURL = url.localURI;
req.headers["Host"] = url.host;
if( requester ) requester(req);
});
// make sure the connection stays locked if the body still needs to be read
if( res.m_client ) res.lockedConnection = cli;
logTrace("Returning HTTPClientResponse for conn %s", cast(void*)res.lockedConnection.__conn);
return res;
}
/// ditto
void requestHTTP(string url, scope void delegate(scope HTTPClientRequest req) requester, scope void delegate(scope HTTPClientResponse req) responder)
{
requestHTTP(URL(url), requester, responder);
}
/// ditto
void requestHTTP(URL url, scope void delegate(scope HTTPClientRequest req) requester, scope void delegate(scope HTTPClientResponse req) responder)
{
enforce(url.schema == "http" || url.schema == "https", "URL schema must be http(s).");
enforce(url.host.length > 0, "URL must contain a host name.");
bool ssl = url.schema == "https";
auto cli = connectHTTP(url.host, url.port, ssl);
cli.request((scope req){
req.requestURL = url.localURI;
req.headers["Host"] = url.host;
if( requester ) requester(req);
}, responder);
}
/// Compatibility alias, will be deprecated soon.
alias requestHttp = requestHTTP;
/**
Returns a HttpClient proxy that is connected to the specified host.
Internally, a connection pool is used to reuse already existing connections.
*/
auto connectHTTP(string host, ushort port = 0, bool ssl = false)
{
static struct ConnInfo { string host; ushort port; bool ssl; }
static ConnectionPool!HTTPClient[ConnInfo] s_connections;
if( port == 0 ) port = ssl ? 443 : 80;
auto ckey = ConnInfo(host, port, ssl);
ConnectionPool!HTTPClient pool;
if( auto pcp = ckey in s_connections )
pool = *pcp;
else {
pool = new ConnectionPool!HTTPClient({
auto ret = new HTTPClient;
ret.connect(host, port, ssl);
return ret;
});
s_connections[ckey] = pool;
}
return pool.lockConnection();
}
/// Compatibility alias, will be deprecated soon.
alias connectHttp = connectHTTP;
/**************************************************************************************************/
/* Public types */
/**************************************************************************************************/
class HTTPClient : EventedObject {
enum maxHeaderLineLength = 4096;
deprecated enum MaxHttpHeaderLineLength = maxHeaderLineLength;
/// Compatibility alias, will be deprecated soon.
enum maxHttpHeaderLineLength = maxHeaderLineLength;
private {
string m_server;
ushort m_port;
TCPConnection m_conn;
Stream m_stream;
SSLContext m_ssl;
static __gshared m_userAgent = "vibe.d/"~VibeVersionString~" (HTTPClient, +http://vibed.org/)";
bool m_requesting = false, m_responding = false;
SysTime m_keepAliveLimit;
int m_timeout;
}
static void setUserAgentString(string str) { m_userAgent = str; }
void acquire() { if( m_conn && m_conn.connected) m_conn.acquire(); }
void release() { if( m_conn && m_conn.connected ) m_conn.release(); }
bool isOwner() { return m_conn ? m_conn.isOwner() : true; }
void connect(string server, ushort port = 80, bool ssl = false)
{
assert(port != 0);
m_conn = null;
m_server = server;
m_port = port;
m_ssl = ssl ? new SSLContext() : null;
}
void disconnect()
{
if( m_conn){
if (m_conn.connected){
m_stream.finalize();
m_conn.close();
}
if (m_stream !is m_conn){
destroy(m_stream);
m_stream = null;
}
destroy(m_conn);
m_conn = null;
}
}
void request(scope void delegate(scope HTTPClientRequest req) requester, scope void delegate(scope HTTPClientResponse) responder)
{
//auto request_allocator = scoped!PoolAllocator(1024, defaultAllocator());
//scope(exit) request_allocator.reset();
auto request_allocator = defaultAllocator();
bool has_body = doRequest(requester);
m_responding = true;
auto res = scoped!HTTPClientResponse(this, has_body, request_allocator);
scope(exit){
res.dropBody();
assert(!m_responding, "Still in responding state after dropping the response body!?");
if (res.headers.get("Connection") == "close")
disconnect();
}
responder(res);
}
HTTPClientResponse request(scope void delegate(HTTPClientRequest) requester)
{
bool has_body = doRequest(requester);
m_responding = true;
return new HTTPClientResponse(this, has_body);
}
private bool doRequest(scope void delegate(HTTPClientRequest req) requester)
{
assert(!m_requesting && !m_responding, "Interleaved request detected!");
m_requesting = true;
scope(exit) m_requesting = false;
auto now = Clock.currTime(UTC());
if (now > m_keepAliveLimit){
logDebug("Disconnected to avoid timeout");
disconnect();
}
if( !m_conn || !m_conn.connected ){
m_conn = connectTCP(m_server, m_port);
m_stream = m_conn;
if( m_ssl ) m_stream = new SSLStream(m_conn, m_ssl, SSLStreamState.connecting);
now = Clock.currTime(UTC());
}
m_keepAliveLimit = now;
auto req = scoped!HTTPClientRequest(m_stream);
req.headers["User-Agent"] = m_userAgent;
req.headers["Connection"] = "keep-alive";
req.headers["Accept-Encoding"] = "gzip, deflate";
req.headers["Host"] = m_server;
requester(req);
req.finalize();
return req.method != HTTPMethod.HEAD;
}
}
/// Compatibility alias, will be deprecated soon.
alias HttpClient = HTTPClient;
final class HTTPClientRequest : HTTPRequest {
private {
OutputStream m_bodyWriter;
bool m_headerWritten = false;
FixedAppender!(string, 22) m_contentLengthBuffer;
}
/// private
this(Stream conn)
{
super(conn);
}
/**
Writes the whole response body at once using raw bytes.
*/
void writeBody(RandomAccessStream data)
{
writeBody(data, data.size - data.tell());
}
/// ditto
void writeBody(InputStream data)
{
headers["Transfer-Encoding"] = "chunked";
bodyWriter.write(data);
finalize();
}
/// ditto
void writeBody(InputStream data, ulong length)
{
headers["Content-Length"] = clengthString(length);
bodyWriter.write(data, length);
finalize();
}
/// ditto
void writeBody(ubyte[] data, string content_type = null)
{
if( content_type ) headers["Content-Type"] = content_type;
headers["Content-Length"] = clengthString(data.length);
bodyWriter.write(data);
finalize();
}
/**
Writes the response body as form data.
*/
void writeFormBody(in string[string] form)
{
assert(false, "TODO");
}
/**
Writes the response body as JSON data.
*/
void writeJsonBody(T)(T data)
{
// TODO: avoid building up a string!
writeBody(cast(ubyte[])serializeToJson(data).toString(), "application/json");
}
void writePart(MultiPart part)
{
assert(false, "TODO");
}
/**
An output stream suitable for writing the request body.
The first retrieval will cause the request header to be written, make sure
that all headers are set up in advance.s
*/
@property OutputStream bodyWriter()
{
if( m_bodyWriter ) return m_bodyWriter;
assert(!m_headerWritten, "Trying to write request body after body was already written.");
writeHeader();
m_bodyWriter = m_conn;
if( headers.get("Transfer-Encoding", null) == "chunked" )
m_bodyWriter = new ChunkedOutputStream(m_bodyWriter);
return m_bodyWriter;
}
private void writeHeader()
{
assert(!m_headerWritten, "HTTPClient tried to write headers twice.");
m_headerWritten = true;
auto app = appender!string();
app.reserve(512);
formattedWrite(app, "%s %s %s\r\n", httpMethodString(method), requestURL, getHTTPVersionString(httpVersion));
logTrace("--------------------");
logTrace("HTTP client request:");
logTrace("--------------------");
logTrace("%s %s %s", httpMethodString(method), requestURL, getHTTPVersionString(httpVersion));
foreach( k, v; headers ){
formattedWrite(app, "%s: %s\r\n", k, v);
logTrace("%s: %s", k, v);
}
app.put("\r\n");
m_conn.write(app.data, false);
logTrace("--------------------");
}
private void finalize()
{
// test if already finalized
if( m_headerWritten && !m_bodyWriter )
return;
// force the request to be sent
if( !m_headerWritten ) bodyWriter();
if( m_bodyWriter !is m_conn ) m_bodyWriter.finalize();
else m_bodyWriter.flush();
m_conn.flush();
m_bodyWriter = null;
}
private string clengthString(ulong len)
{
m_contentLengthBuffer.clear();
formattedWrite(&m_contentLengthBuffer, "%s", len);
return m_contentLengthBuffer.data;
}
}
/// Compatibility alias, will be deprecated soon.
alias HttpClientRequest = HTTPClientRequest;
final class HTTPClientResponse : HTTPResponse {
private {
HTTPClient m_client;
LockedConnection!HTTPClient lockedConnection;
FreeListRef!LimitedInputStream m_limitedInputStream;
FreeListRef!ChunkedInputStream m_chunkedInputStream;
FreeListRef!GzipInputStream m_gzipInputStream;
FreeListRef!DeflateInputStream m_deflateInputStream;
FreeListRef!EndCallbackInputStream m_endCallback;
InputStream m_bodyReader;
}
/// private
this(HTTPClient client, bool has_body, Allocator alloc = defaultAllocator())
{
m_client = client;
scope(failure) finalize();
// read and parse status line ("HTTP/#.# #[ $]\r\n")
logTrace("HTTP client reading status line");
string stln = cast(string)client.m_stream.readLine(HTTPClient.maxHeaderLineLength, "\r\n", alloc);
logTrace("stln: %s", stln);
this.httpVersion = parseHttpVersion(stln);
enforce(stln.startsWith(" "));
stln = stln[1 .. $];
this.statusCode = parse!int(stln);
if( stln.length > 0 ){
enforce(stln.startsWith(" "));
stln = stln[1 .. $];
this.statusPhrase = stln;
}
// read headers until an empty line is hit
parseRfc5322Header(client.m_stream, this.headers, HTTPClient.maxHeaderLineLength, alloc);
logTrace("---------------------");
logTrace("HTTP client response:");
logTrace("---------------------");
logTrace("%s %s", getHttpVersionString(this.httpVersion), this.statusCode);
foreach (k, v; this.headers)
logTrace("%s: %s", k, v);
logTrace("---------------------");
if (auto pka = "Keep-Alive" in headers) {
foreach(s; split(*pka, ",")){
auto pair = s.split("=");
if (icmp(pair[0].strip(), "timeout")) {
m_client.m_timeout = pair[1].to!int();
break;
}
}
}
m_client.m_keepAliveLimit += dur!"seconds"(m_client.m_timeout - 2);
if (!has_body) finalize();
}
~this()
{
assert (!m_client, "Stale HTTP response is finalized!");
if( m_client ){
logDebug("Warning: dropping unread body.");
dropBody();
}
}
/**
An input stream suitable for reading the response body.
*/
@property InputStream bodyReader()
{
if( m_bodyReader ) return m_bodyReader;
assert (m_client, "Response was already read or no response body, may not use bodyReader.");
// prepare body the reader
if( auto pte = "Transfer-Encoding" in this.headers ){
enforce(*pte == "chunked");
m_chunkedInputStream = FreeListRef!ChunkedInputStream(m_client.m_stream);
m_bodyReader = this.m_chunkedInputStream;
} else if( auto pcl = "Content-Length" in this.headers ){
m_limitedInputStream = FreeListRef!LimitedInputStream(m_client.m_stream, to!ulong(*pcl));
m_bodyReader = m_limitedInputStream;
} else {
m_limitedInputStream = FreeListRef!LimitedInputStream(m_client.m_stream, 0);
m_bodyReader = m_limitedInputStream;
}
if( auto pce = "Content-Encoding" in this.headers ){
if( *pce == "deflate" ){
m_deflateInputStream = FreeListRef!DeflateInputStream(m_bodyReader);
m_bodyReader = m_deflateInputStream;
} else if( *pce == "gzip" ){
m_gzipInputStream = FreeListRef!GzipInputStream(m_bodyReader);
m_bodyReader = m_gzipInputStream;
}
else enforce(false, "Unsuported content encoding: "~*pce);
}
// be sure to free resouces as soon as the response has been read
m_endCallback = FreeListRef!EndCallbackInputStream(m_bodyReader, &this.finalize);
m_bodyReader = m_endCallback;
return m_bodyReader;
}
/**
Provides an unsafe maeans to read raw data from the connection.
No transfer decoding and no content decoding is done on the data.
Not that the provided delegate is required to consume the whole stream,
as the state of the response is unknown after raw bytes have been
taken.
*/
void readRawBody(scope void delegate(scope InputStream stream) del)
{
assert(!m_bodyReader, "May not mix use of readRawBody and bodyReader.");
del(m_client.m_stream);
finalize();
}
/**
Reads the whole response body and tries to parse it as JSON.
*/
Json readJson(){
auto bdy = bodyReader.readAll();
auto str = cast(string)bdy;
return parseJson(str);
}
/**
Reads and discards the response body.
*/
void dropBody()
{
if( m_client ){
if( bodyReader.empty ){
finalize();
} else {
s_sink.write(bodyReader);
assert(!lockedConnection.__conn);
}
}
}
private void finalize()
{
// ignore duplicate and too early calls to finalize
// (too early happesn for empty response bodies)
if( !m_client ) return;
m_client.m_responding = false;
m_client = null;
destroy(m_deflateInputStream);
destroy(m_gzipInputStream);
destroy(m_chunkedInputStream);
destroy(m_limitedInputStream);
destroy(lockedConnection);
}
}
/// Compatibility alias, will be deprecated soon.
alias HttpClientResponse = HTTPClientResponse;
private NullOutputStream s_sink;
static this() { s_sink = new NullOutputStream; }
|
D
|
/*
PERMUTE_ARGS:
*/
version (with_phobos) import std.conv : text;
struct Tuple(T...)
{
T expand;
alias expand this;
}
auto tuple(T...)(T t)
{
return Tuple!T(t);
}
void fun0(U, T...)(U gold, int b_gold, T a, int b)
{
assert(tuple(a) == gold);
assert(b == b_gold);
}
void fun(U, T...)(U gold, T a, int b = 1)
{
assert(tuple(a) == gold);
assert(b == 1);
}
void fun2(U, V, T...)(U gold, V gold2, T a, string file = __FILE__, int line = __LINE__)
{
assert(tuple(a) == gold);
assert(tuple(file, line) == gold2);
}
void fun3(int[] gold, int[] a...)
{
assert(gold == a);
}
void fun4(T...)(size_t length_gold, int b_gold, T a, int b = 1)
{
assert(T.length == length_gold);
assert(b == b_gold);
}
// Example in changelog
string log(T...)(T a, string file = __FILE__, int line = __LINE__)
{
return text(file, ":", line, " ", a);
}
void fun_constraint(T...)(T a, string b = "bar") if (T.length == 1)
{
}
/+
NOTE: this is disallowed by the parser:
void fun5(int[] gold, int[] a ..., int b = 1)
{
assert(gold==a);
assert(b==1);
}
+/
void main()
{
fun0(tuple(10), 7, 10, 7);
fun(tuple());
fun(tuple(10), 10);
fun(tuple(10, 11), 10, 11);
fun2(tuple(10), tuple(__FILE__, __LINE__), 10);
fun3([1, 2, 3], 1, 2, 3);
fun_constraint(1);
assert(!__traits(compiles, fun_constraint(1, "baz")));
version (with_phobos)
assert(log(10, "abc") == text(__FILE__, ":", __LINE__, " 10abc"));
// IFTI: `b` is always default-set
fun4(0, 1);
fun4(1, 1, 10);
fun4(2, 1, 10, 11);
// with explicit instantiation, and default-set `b`
fun4!int(1, 1, 10);
fun4!(int, int)(2, 1, 10, 11);
// with explicit instantiation, and over-ridden `b`
fun4!int(1, 100, 10, 100);
fun4!(int, int)(2, 100, 10, 11, 100);
// fun5([1,2,3], 1,2,3);
}
|
D
|
module android.java.java.lang.ExceptionInInitializerError_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import1 = android.java.java.io.PrintStream_d_interface;
import import4 = android.java.java.lang.Class_d_interface;
import import3 = android.java.java.lang.StackTraceElement_d_interface;
import import2 = android.java.java.io.PrintWriter_d_interface;
import import0 = android.java.java.lang.JavaThrowable_d_interface;
final class ExceptionInInitializerError : IJavaObject {
static immutable string[] _d_canCastTo = [
];
@Import this(arsd.jni.Default);
@Import this(import0.JavaThrowable);
@Import this(string);
@Import import0.JavaThrowable getException();
@Import import0.JavaThrowable getCause();
@Import string getMessage();
@Import string getLocalizedMessage();
@Import import0.JavaThrowable initCause(import0.JavaThrowable);
@Import @JavaName("toString") string toString_();
override string toString() { return arsd.jni.javaObjectToString(this); }
@Import void printStackTrace();
@Import void printStackTrace(import1.PrintStream);
@Import void printStackTrace(import2.PrintWriter);
@Import import0.JavaThrowable fillInStackTrace();
@Import import3.StackTraceElement[] getStackTrace();
@Import void setStackTrace(import3.StackTraceElement[]);
@Import void addSuppressed(import0.JavaThrowable);
@Import import0.JavaThrowable[] getSuppressed();
@Import import4.Class getClass();
@Import int hashCode();
@Import bool equals(IJavaObject);
@Import void notify();
@Import void notifyAll();
@Import void wait(long);
@Import void wait(long, int);
@Import void wait();
mixin IJavaObjectImplementation!(false);
public static immutable string _javaParameterString = "Ljava/lang/ExceptionInInitializerError;";
}
|
D
|
import vibe.d;
import std.format;
import std.system;
import std.stdio;
import std.functional;
import payloads;
import client;
import types;
class Shard
{
private uint seq;
private string sessionId;
private WebSocket ws;
private Timer heartbeater;
private Client client;
this(Client client)
{
this.client = client;
}
void connect(string url, string token)
{
return this.connect(URL(url), token);
}
void connect(URL url, string token)
{
this.ws = connectWebSocket(url);
while (ws.waitForData()) {
// TODO zlib
Json payload = parseJsonString(ws.receiveText());
OPCode op = payload["op"].get!OPCode;
switch (op) with (OPCode)
{
case HELLO:
logInfo("Received HELLO %s", payload["d"]["_trace"]);
this.startHeartbeat(payload["d"]["heartbeat_interval"].get!uint);
if (this.sessionId) {
this.send(RESUME, ResumePayload(token, this.sessionId, this.seq));
} else {
this.send(IDENTIFY, IdentifyPayload(token, identifyProperties));
}
break;
case INVALID_SESSION:
if (this.sessionId && payload["d"].get!bool) {
logInfo("Session invalidated, attemping to resume...");
this.send(RESUME, ResumePayload(token, this.sessionId, this.seq));
} else {
logInfo("Session invalidated, attemping to re-identify...");
this.send(IDENTIFY, IdentifyPayload(token, identifyProperties));
}
break;
case DISPATCH:
this.seq = payload["s"].get!uint;
this.handleDispatch(payload["t"].get!string, payload["d"]);
break;
case HEARTBEAT:
this.heartbeat();
break;
case HEARTBEAT_ACK:
break;
case RECONNECT:
logInfo("Discord has requested a reconnection");
this.ws.close();
break;
default:
logInfo("Unhandled WebSocket payload: %s", op);
break;
}
}
logInfo("Gateway disconnected: %d %s", ws.closeCode, ws.closeReason);
return this.connect(url, token); // TODO - fancy reconnecting
}
private void send(T) (OPCode op, T d)
{
string payload = serializeToJsonString(GatewayPayload!T(op, d));
this.ws.send(payload);
}
private void startHeartbeat(uint interval)
{
if (this.heartbeater) {
this.heartbeater.rearm(interval.msecs, true);
} else {
this.heartbeater = setTimer(interval.msecs, toDelegate(&this.heartbeat), true);
}
}
private void stopHeartbeat()
{
this.heartbeater.stop();
}
private void heartbeat()
{
this.send(OPCode.HEARTBEAT, this.seq);
}
private void handleDispatch(string t, Json d)
{
switch (t)
{
case "READY":
import std.stdio;
logInfo("Received READY %s", d["_trace"]);
this.sessionId = d["session_id"].get!string;
this.client.user = this.client.users.load(d["user"]);
break;
case "GUILD_CREATE":
this.client.guilds.load(d);
break;
case "RESUMED":
logInfo("Received RESUMED %s", d["_trace"]);
break;
default:
logInfo("Unhandled gateway event: %s", t);
break;
}
}
}
|
D
|
module unecht.core.defaultInspector;
version(UEIncludeEditor)
{
import unecht.core.componentManager;
import unecht.meta.uda;
alias aliasHelper(alias T) = T;
alias aliasHelper(T) = T;
///
struct UEInspectorTooltip
{
string txt;
}
///
struct UEDefaultInspector(T)
{
@EditorInspector(T.stringof)
static class UEDefaultInspector(T) : IComponentEditor
{
override void render(UEComponent _component)
{
auto thisT = cast(T)_component;
import derelict.imgui.imgui;
import unecht.core.components.internal.gui;
import std.string:format;
//pragma(msg, T.stringof);
foreach(memberName; __traits(allMembers, T))
{
//pragma(msg, ">"~memberName);
static if(__traits(compiles, mixin("T."~memberName)))
{
enum isMemberVariable = is(typeof(() {
__traits(getMember, thisT, memberName) = __traits(getMember, thisT, memberName).init;
}));
enum isMethod = is(typeof(() {
__traits(getMember, thisT, memberName)();
}));
enum isNonStatic = !is(typeof(mixin("&T."~memberName)));
static if(isNonStatic && !isMethod && isMemberVariable)
{
alias member = aliasHelper!(__traits(getMember, T, memberName));
static if(is(typeof(member) : bool))
{
//pragma(msg, " -->bool");
UEGui.checkbox(member.stringof, mixin("thisT."~memberName));
static if(hasUDA!(mixin("T."~memberName),UEInspectorTooltip))
{
enum txt = getUDA!(member,UEInspectorTooltip).txt;
if (ig_IsItemHovered())
ig_SetTooltip(txt);
}
}
else static if(is(typeof(member) : int))
{
//pragma(msg, " -->int");
UEGui.DragInt(member.stringof, mixin("thisT."~memberName));
static if(hasUDA!(mixin("T."~memberName),UEInspectorTooltip))
{
enum txt = getUDA!(member,UEInspectorTooltip).txt;
if (ig_IsItemHovered())
ig_SetTooltip(txt);
}
}
else static if(is(typeof(member) : float))
{
//pragma(msg, " -->float");
UEGui.DragFloat(member.stringof, mixin("thisT."~memberName));
static if(hasUDA!(mixin("T."~memberName),UEInspectorTooltip))
{
enum txt = getUDA!(member,UEInspectorTooltip).txt;
if (ig_IsItemHovered())
ig_SetTooltip(txt);
}
}
}
}
}
}
}
mixin UERegisterInspector!(UEDefaultInspector!T);
}
}
else
{
struct UEDefaultInspector(T){}
}
|
D
|
import imports.ice15200b;
auto f() // not void
{
sub([0], false);
}
void sub(R)(R list, bool b)
{
foreach (i; list.filter!(delegate(e) => b))
{
}
}
|
D
|
/Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIO.build/SocketOptionProvider.swift.o : /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/IO.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/NonBlockingFileIO.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/IOData.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Codec.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Thread.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Embedded.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Selectable.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/FileHandle.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ChannelPipeline.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/AddressedEnvelope.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-core.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/EventLoopFuture.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/PriorityQueue.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Channel.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/DeadChannel.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/SocketChannel.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/BaseSocketChannel.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/MulticastChannel.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/BlockingIOThreadPool.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/System.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/FileRegion.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ContiguousCollection.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ChannelOption.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Heap.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Bootstrap.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/EventLoop.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/SocketOptionProvider.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/CircularBuffer.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/MarkedCircularBuffer.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/PendingWritesManager.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/PendingDatagramWritesManager.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ChannelInvoker.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ChannelHandler.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/TypeAssistedChannelHandler.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Resolver.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/GetaddrinfoResolver.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/CompositeError.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/RecvByteBufferAllocator.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Selector.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/FileDescriptor.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Interfaces.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Utilities.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/IntegerTypes.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/SocketAddresses.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/HappyEyeballs.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ChannelHandlers.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-views.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/LinuxCPUSet.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Socket.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/BaseSocket.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ServerSocket.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-int.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-aux.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Linux.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/NIOAny.swift /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 /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/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
/Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIO.build/SocketOptionProvider~partial.swiftmodule : /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/IO.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/NonBlockingFileIO.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/IOData.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Codec.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Thread.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Embedded.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Selectable.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/FileHandle.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ChannelPipeline.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/AddressedEnvelope.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-core.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/EventLoopFuture.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/PriorityQueue.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Channel.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/DeadChannel.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/SocketChannel.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/BaseSocketChannel.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/MulticastChannel.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/BlockingIOThreadPool.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/System.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/FileRegion.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ContiguousCollection.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ChannelOption.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Heap.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Bootstrap.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/EventLoop.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/SocketOptionProvider.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/CircularBuffer.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/MarkedCircularBuffer.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/PendingWritesManager.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/PendingDatagramWritesManager.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ChannelInvoker.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ChannelHandler.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/TypeAssistedChannelHandler.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Resolver.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/GetaddrinfoResolver.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/CompositeError.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/RecvByteBufferAllocator.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Selector.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/FileDescriptor.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Interfaces.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Utilities.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/IntegerTypes.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/SocketAddresses.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/HappyEyeballs.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ChannelHandlers.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-views.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/LinuxCPUSet.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Socket.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/BaseSocket.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ServerSocket.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-int.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-aux.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Linux.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/NIOAny.swift /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 /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/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
/Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIO.build/SocketOptionProvider~partial.swiftdoc : /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/IO.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/NonBlockingFileIO.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/IOData.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Codec.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Thread.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Embedded.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Selectable.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/FileHandle.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ChannelPipeline.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/AddressedEnvelope.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-core.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/EventLoopFuture.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/PriorityQueue.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Channel.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/DeadChannel.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/SocketChannel.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/BaseSocketChannel.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/MulticastChannel.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/BlockingIOThreadPool.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/System.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/FileRegion.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ContiguousCollection.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ChannelOption.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Heap.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Bootstrap.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/EventLoop.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/SocketOptionProvider.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/CircularBuffer.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/MarkedCircularBuffer.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/PendingWritesManager.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/PendingDatagramWritesManager.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ChannelInvoker.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ChannelHandler.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/TypeAssistedChannelHandler.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Resolver.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/GetaddrinfoResolver.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/CompositeError.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/RecvByteBufferAllocator.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Selector.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/FileDescriptor.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Interfaces.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Utilities.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/IntegerTypes.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/SocketAddresses.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/HappyEyeballs.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ChannelHandlers.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-views.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/LinuxCPUSet.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Socket.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/BaseSocket.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ServerSocket.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-int.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/ByteBuffer-aux.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/Linux.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/NIO/NIOAny.swift /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 /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/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
|
D
|
/+
+ Copyright (c) Charles Petzold, 1998.
+ Ported to the D Programming Language by Andrej Mitrovic, 2011.
+/
module name;
import core.runtime;
import core.thread;
import std.conv;
import std.math;
import std.range;
import std.string;
import std.utf;
auto toUTF16z(S)(S s)
{
return toUTFz!(const(wchar)*)(s);
}
pragma(lib, "gdi32.lib");
import win32.windef;
import win32.winuser;
import win32.wingdi;
import win32.winbase;
enum ID_TIMER = 1;
enum TWOPI =(2 * 3.14159);
enum ID_SMALLER = 1; // button window unique id
enum ID_LARGER = 2; // same
enum BTN_WIDTH = "(8 * cxChar)";
enum BTN_HEIGHT = "(4 * cyChar)";
int idFocus;
WNDPROC[3] OldScroll;
HINSTANCE hInst;
enum ID_EDIT = 1;
string appName = "PopPad1";
extern (Windows)
int WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow)
{
int result;
void exceptionHandler(Throwable e) { throw e; }
try
{
Runtime.initialize(&exceptionHandler);
result = myWinMain(hInstance, hPrevInstance, lpCmdLine, iCmdShow);
Runtime.terminate(&exceptionHandler);
}
catch (Throwable o)
{
MessageBox(null, o.toString().toUTF16z, "Error", MB_OK | MB_ICONEXCLAMATION);
result = 0;
}
return result;
}
int myWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int iCmdShow)
{
HWND hwnd;
MSG msg;
WNDCLASS wndclass;
wndclass.style = CS_HREDRAW | CS_VREDRAW;
wndclass.lpfnWndProc = &WndProc;
wndclass.cbClsExtra = 0;
wndclass.cbWndExtra = 0;
wndclass.hInstance = hInstance;
wndclass.hIcon = LoadIcon(NULL, IDI_APPLICATION);
wndclass.hCursor = LoadCursor(NULL, IDC_ARROW);
wndclass.hbrBackground = cast(HBRUSH) GetStockObject(WHITE_BRUSH);
wndclass.lpszMenuName = NULL;
wndclass.lpszClassName = appName.toUTF16z;
if (!RegisterClass(&wndclass))
{
MessageBox(NULL, "This program requires Windows NT!", appName.toUTF16z, MB_ICONERROR);
return 0;
}
hwnd = CreateWindow(appName.toUTF16z, // window class name
"edit", // window caption
WS_OVERLAPPEDWINDOW, // window style
CW_USEDEFAULT, // initial x position
CW_USEDEFAULT, // initial y position
CW_USEDEFAULT, // initial x size
CW_USEDEFAULT, // initial y size
NULL, // parent window handle
NULL, // window menu handle
hInstance, // program instance handle
NULL); // creation parameters
ShowWindow(hwnd, iCmdShow);
UpdateWindow(hwnd);
while (GetMessage(&msg, NULL, 0, 0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return msg.wParam;
}
extern (Windows)
LRESULT WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
static HWND hwndEdit;
switch (message)
{
case WM_CREATE:
hwndEdit = CreateWindow("edit", NULL,
WS_CHILD | WS_VISIBLE | WS_HSCROLL | WS_VSCROLL |
WS_BORDER | ES_LEFT | ES_MULTILINE | ES_NOHIDESEL |
ES_AUTOHSCROLL | ES_AUTOVSCROLL,
0, 0, 0, 0, hwnd, cast(HMENU)ID_EDIT,
(cast(LPCREATESTRUCT)lParam).hInstance, NULL);
return 0;
case WM_SETFOCUS:
SetFocus(hwndEdit);
return 0;
case WM_SIZE:
MoveWindow(hwndEdit, 0, 0, LOWORD(lParam), HIWORD(lParam), TRUE);
return 0;
case WM_COMMAND:
if (LOWORD(wParam) == ID_EDIT)
if (HIWORD(wParam) == EN_ERRSPACE ||
HIWORD(wParam) == EN_MAXTEXT)
MessageBox(hwnd, "Edit control out of space.",
appName.toUTF16z, MB_OK | MB_ICONSTOP);
return 0;
case WM_DESTROY:
PostQuitMessage(0);
return 0;
default:
}
return DefWindowProc(hwnd, message, wParam, lParam);
}
|
D
|
module driver;
import drivers.i825xx;
import pci.pci;
import console;
import user.syscall;
import user.environment;
import user.ipc;
class NetworkDriver {
public:
this() {
PciAccess* pacc;
PciDevice* dev;
uint c;
char[1024] namebuf;
char* name;
pacc = pci_alloc();
// Initialize the PCI library
pci_init(pacc);
// We want to get the list of devices */
pci_scan_bus(pacc);
// Iterate over all devices
for (dev = pacc.devices; dev; dev = dev.next) {
// Fill in header info we need
pci_fill_info(dev, PCI_FILL_IDENT | PCI_FILL_BASES | PCI_FILL_CLASS);
// Read config register directly
c = pci_read_byte(dev, PCI_INTERRUPT_PIN);
/* printf("%04x:%02x:%02x.%d vendor=%04x device=%04x class=%04x irq=%d (pin %d) base0=%lx\n",
dev->domain, dev->bus, dev->dev, dev->func, dev->vendor_id, dev->device_id,
dev->device_class, dev->irq, c, (long) dev->base_addr[0]);*/
// Look up and print the full name of the device
if(dev.device_class == 0x0200){
name = pci_lookup_name(pacc, namebuf.ptr, namebuf.length-1, PciLookup.DEVICE, dev.vendor_id, dev.device_id);
ulong physaddr = dev.base_addr[0] & ~0xf;
auto driver = new I825xx(cast(PhysicalAddress)physaddr);
_name = "i825xx";
_initialize = &driver.initialize;
_macAddress = &driver.macAddress;
}
}
}
void initialize() {
_initialize();
}
void macAddress(ubyte[6] mac) {
_macAddress(mac);
}
char[] name() {
return _name;
}
private:
void delegate() _initialize;
void delegate(ubyte[6]) _macAddress;
char[] _name;
}
|
D
|
/**
* define
*/
module veda.core.common.define;
import std.concurrency, std.file, std.stdio, core.atomic;
import veda.core.common.know_predicates, veda.common.type;
// variable process_name static mirror of g_process_name
string process_name;
static this()
{
get_g_process_name();
}
/////////////////////////////// g_process_name //////////////////////////
private shared string g_process_name;
public string get_g_process_name()
{
process_name = atomicLoad(g_process_name);
return process_name;
}
public void set_g_process_name(string new_data)
{
atomicStore(g_process_name, new_data);
process_name = new_data;
}
long max_size_of_individual = 1024 * 512;
string[] access_list_predicates = [ "v-s:canCreate", "v-s:canRead", "v-s:canUpdate", "v-s:canDelete" ];
enum CNAME : byte
{
COUNT_PUT = 0,
COUNT_GET = 1,
WORKED_TIME = 2,
LAST_UPDATE_TIME = 3
}
alias immutable(long)[] const_long_array;
const byte asObject = 0;
const byte asArray = 1;
const byte asString = 2;
interface Outer
{
void put(string data);
}
enum EVENT : byte
{
CREATE = 1,
UPDATE = 2,
REMOVE = 3,
NONE = 4,
ERROR = 5,
NOT_READY = 6
}
const string acl_indexes_db_path = "./data/acl-indexes";
const string attachments_db_path = "./data/files";
const string docs_onto_path = "./public/docs/onto";
const string dbs_backup = "./backup";
const string dbs_data = "./data";
const string uris_db_path = "./data/uris";
const string tmp_path = "./data/tmp";
const string queue_db_path = "./data/queue";
const string onto_path = "./ontology";
const string xapian_info_path = "./data/xapian-info";
const string module_info_path = "./data/module-info";
const string trails_path = "./data/trails";
const string logs_path = "./logs";
const string individuals_db_path0 = "./data/lmdb-individuals";
const string tickets_db_path0 = "./data/lmdb-tickets";
const string main_queue_name = "individuals-flow";
const string ft_indexer_queue_name = "fulltext_indexer0";
string[] paths_list =
[
tmp_path, logs_path, attachments_db_path, docs_onto_path, dbs_backup, dbs_data, uris_db_path, queue_db_path,
xapian_info_path, module_info_path, trails_path, acl_indexes_db_path, individuals_db_path0, tickets_db_path0
];
private string[ string ] _xapian_search_db_path;
public string get_xapiab_db_path(string db_name)
{
if (_xapian_search_db_path.length == 0)
_xapian_search_db_path =
[ "base":"data/xapian-search-base", "system":"data/xapian-search-system", "deleted":"data/xapian-search-deleted" ];
return _xapian_search_db_path.get(db_name, null);
}
public const string xapian_metadata_doc_id = "ItIsADocumentContainingTheNameOfTheFieldTtheNumberOfSlots";
public const int xapian_db_type = 1;
void create_folder_struct()
{
foreach (path; paths_list)
{
try
{
mkdir(path);
writeln("create folder: ", path);
}
catch (Exception ex)
{
}
}
}
/// id подсистем
public enum SUBSYSTEM : ubyte
{
NONE = 0,
STORAGE = 1,
ACL = 2,
FULL_TEXT_INDEXER = 4,
FANOUT_EMAIL = 8,
SCRIPTS = 16,
FANOUT_SQL = 32,
USER_MODULES_TOOL = 64
}
private string[ SUBSYSTEM ] sn;
private SUBSYSTEM[ string ] ns;
public SUBSYSTEM get_subsystem_id_of_name(string name)
{
if (ns.length == 0)
{
ns[ "ACL" ] = SUBSYSTEM.ACL;
ns[ "FANOUT_EMAIL" ] = SUBSYSTEM.FANOUT_EMAIL;
ns[ "FANOUT_SQL" ] = SUBSYSTEM.FANOUT_SQL;
ns[ "FULL_TEXT_INDEXER" ] = SUBSYSTEM.FULL_TEXT_INDEXER;
ns[ "SCRIPTS" ] = SUBSYSTEM.SCRIPTS;
ns[ "STORAGE" ] = SUBSYSTEM.STORAGE;
ns[ "USER_MODULES_TOOL" ] = SUBSYSTEM.USER_MODULES_TOOL;
}
return ns.get(name, SUBSYSTEM.NONE);
}
public string get_name_of_subsystem_id(SUBSYSTEM id)
{
if (sn.length == 0)
{
sn[ SUBSYSTEM.ACL ] = "ACL";
sn[ SUBSYSTEM.FANOUT_EMAIL ] = "FANOUT_EMAIL";
sn[ SUBSYSTEM.FANOUT_SQL ] = "FANOUT_SQL";
sn[ SUBSYSTEM.FULL_TEXT_INDEXER ] = "FULL_TEXT_INDEXER";
sn[ SUBSYSTEM.SCRIPTS ] = "SCRIPTS";
sn[ SUBSYSTEM.STORAGE ] = "STORAGE";
sn[ SUBSYSTEM.USER_MODULES_TOOL ] = "USER_MODULES_TOOL";
}
return sn.get(id, "");
}
/// id компонентов
public enum COMPONENT : ubyte
{
/// сохранение индивидуалов
subject_manager = 1,
/// Индексирование прав
acl_preparer = 2,
/// Полнотекстовое индексирование
fulltext_indexer = 4,
/// Отправка email
fanout_email = 8,
/// исполнение скриптов, normal priority
scripts_main = 16,
/// Выдача и проверка тикетов
ticket_manager = 29,
/// Выгрузка в sql, низкоприоритетное исполнение
fanout_sql_lp = 30,
/// Выгрузка в sql, высокоприоритетное исполнение
fanout_sql_np = 32,
/// исполнение скриптов, low priority
scripts_lp = 33,
/// исполнение скриптов, low priority1
scripts_lp1 = 50,
//// long time run scripts
ltr_scripts = 34,
///////////////////////////////////////
/// Сбор статистики
statistic_data_accumulator = 35,
/// Сохранение накопленных в памяти данных
commiter = 36,
/// Вывод статистики
print_statistic = 37,
n_channel = 38,
/// Загрузка из файлов
file_reader = 40,
input_queue = 41,
user_modules_tool = 64
}
/// id процессов
public enum P_MODULE : ubyte
{
ticket_manager = COMPONENT.ticket_manager,
subject_manager = COMPONENT.subject_manager,
acl_preparer = COMPONENT.acl_preparer,
statistic_data_accumulator = COMPONENT.statistic_data_accumulator,
commiter = COMPONENT.commiter,
print_statistic = COMPONENT.print_statistic,
file_reader = COMPONENT.file_reader,
n_channel = COMPONENT.n_channel,
}
/// id модулей обрабатывающих очередь
public enum MODULE : ubyte
{
ticket_manager = COMPONENT.ticket_manager,
subject_manager = COMPONENT.subject_manager,
acl_preparer = COMPONENT.acl_preparer,
fulltext_indexer = COMPONENT.fulltext_indexer,
scripts_main = COMPONENT.scripts_main,
scripts_lp = COMPONENT.scripts_lp,
scripts_lp1 = COMPONENT.scripts_lp1,
fanout_email = COMPONENT.fanout_email,
user_modules_tool = COMPONENT.user_modules_tool,
ltr_scripts = COMPONENT.ltr_scripts,
fanout_sql_np = COMPONENT.fanout_sql_np,
fanout_sql_lp = COMPONENT.fanout_sql_lp,
input_queue = COMPONENT.input_queue
}
/// Команды используемые процессами
/// Сохранить
byte CMD_PUT = 1;
/// Найти
byte CMD_FIND = 2;
/// Коммит
byte CMD_COMMIT = 16;
byte CMD_MSG = 17;
/// Включить/выключить отладочные сообщения
byte CMD_SET_TRACE = 33;
/// Остановить прием команд на изменение
byte CMD_FREEZE = 42;
/// Возобновить прием команд на изменение
byte CMD_UNFREEZE = 43;
byte CMD_EXIT = 49;
/// Установить
byte CMD_SET = 50;
/// Убрать
byte CMD_START = 52;
|
D
|
module uhd.mock.usrp;
import uhd.usrp;
import std.range;
import std.complex;
struct USRPMock
{
this(string args) {}
this(MultiDeviceAddress addr) {}
@disable this(this);
double txRate;
double rxRate;
double txGain;
double rxGain;
double txFreq;
double rxFreq;
string clockSource;
string timeSource;
RxStreamerMock makeRxStreamer(StreamArgs args)
{
return RxStreamerMock.init;
}
TxStreamerMock makeTxStreamer(StreamArgs args)
{
return TxStreamerMock.init;
}
static
InputRange!(Complex!float) receivedSignal;
}
struct RxStreamerMock
{
@disable this(this);
size_t maxNumSamps() @property
{
return 312;
}
size_t recv(T)(T[] buffer, ref RxMetaData md, double timeout)
{
auto buf = buffer[0 .. this.maxNumSamps];
foreach(ref e; buf){
if(USRPMock.receivedSignal is null || USRPMock.receivedSignal.empty){
e = Complex!float(uniform01() * 0.001, uniform01() * 0.001);
}else{
e = USRPMock.receivedSignal.front;
USRPMock.receivedSignal.popFront();
}
}
return this.maxNumSamps;
}
void issue(StreamCommand cmd)
{
//uhd_rx_streamer_issue_stream_cmd(_handle, &(cmd._value)).checkUHDError();
}
}
struct TxStreamerMock
{
@disable this(this);
size_t maxNumSamps() @property
{
return 1024;
}
size_t send(T)(in T[] buffer, ref TxMetaData metadata, double timeout)
{
return 1024;
}
}
unittest
{
}
|
D
|
module vulkan.renderers.Text;
import vulkan.all;
import std.utf : toUTF32;
final class Text {
private:
static struct UBO { static assert(UBO.sizeof == 96);
mat4 viewProj;
float4 dsColour;
float2 dsOffset;
byte[8] _pad;
}
static struct Vertex { static assert(Vertex.sizeof==13*float.sizeof);
float4 pos;
float4 uvs;
float4 colour;
float size;
}
static struct PushConstants { static assert(PushConstants.sizeof==4);
bool doShadow;
byte[3] _pad;
}
static struct TextChunk {
uint group;
string text;
dstring dtext;
Text.Formatter fmt;
RGBA colour;
float size;
int x, y;
}
VulkanContext context;
GraphicsPipeline pipeline;
Descriptors descriptors;
SubBuffer vertexBuffer, stagingBuffer;
VkSampler sampler;
Font font;
const bool dropShadow;
const uint maxCharacters;
TextChunk[] textChunks;
RGBA colour = WHITE;
float size;
uint group;
bool dataChanged;
uint[uint] renderId2Index;
GPUData!UBO ubo;
GPUData!Vertex vertices;
PushConstants pushConstants;
uint numCharacters;
Formatter stdFormatter;
Sequence!uint ids;
Sequence!uint groupIds;
Set!uint enabledGroups;
uint maxCreatedGroup;
public:
static struct CharFormat {
RGBA colour;
float size;
}
alias Formatter = CharFormat delegate(ref TextChunk chunk, uint index);
this(VulkanContext context, Font font, bool dropShadow, uint maxCharacters) {
this.context = context;
this.font = font;
this.size = font.sdf.size;
this.dropShadow = dropShadow;
this.maxCharacters = maxCharacters;
this.dataChanged = true;
this.enabledGroups = new Set!uint;
// Default group 0 is enabled
enabledGroups.add(0);
// Movge the group ids sequence to 1
this.groupIds.next();
pushConstants.doShadow = dropShadow;
this.stdFormatter = (ref chunk, index) {
return CharFormat(chunk.colour, chunk.size);
};
initialise();
}
void destroy() {
if(ubo) ubo.destroy();
if(vertices) vertices.destroy();
if(descriptors) descriptors.destroy();
if(sampler) context.device.destroySampler(sampler);
if(pipeline) pipeline.destroy();
}
/// Assume this is set at the start and never changed
Text camera(Camera2D camera) {
ubo.write((u) {
u.viewProj = camera.VP();
});
return this;
}
/// Assume this is set at the start and never changed
Text setDropShadowColour(RGBA c) {
ubo.write((u) {
u.dsColour = c;
});
return this;
}
/// Assume this is set at the start and never changed
Text setDropShadowOffset(float2 o) {
ubo.write((u) {
u.dsOffset = o;
});
return this;
}
Text setColour(RGBA colour) {
this.colour = colour;
return this;
}
Text setSize(float size) {
this.size = size;
return this;
}
// ╔─────────────────────────────────╗
// │ Creation functions │
// ╚─────────────────────────────────╝
uint add(string text, uint x, uint y) {
return add(text, stdFormatter, x, y);
}
uint add(string text, Formatter fmt, uint x, uint y) {
TextChunk chunk;
chunk.group = group;
chunk.text = text;
chunk.dtext = chunk.text.toUTF32();
chunk.fmt = fmt.orElse(stdFormatter);
chunk.colour = colour;
chunk.size = size;
chunk.x = x;
chunk.y = y;
auto index = textChunks.length.as!uint;
auto uuid = ids.next();
renderId2Index[uuid] = index;
textChunks ~= chunk;
dataChanged = true;
return uuid;
}
// ╔───────────────────────────────────────╗
// │ Modification functions (single item) │
// ╚───────────────────────────────────────╝
Text replace(uint uuid, string text) {
// check to see if the text has actually changed.
// if not then we can ignore this change
uint index = renderId2Index[uuid];
TextChunk* c = &textChunks[index];
if(c.text == text) {
return this;
}
c.text = text;
c.dtext = c.text.toUTF32();
dataChanged = true;
return this;
}
Text reformat(uint uuid, Formatter fmt) {
uint index = renderId2Index[uuid];
TextChunk* c = &textChunks[index];
c.fmt = fmt;
dataChanged = true;
return this;
}
Text moveTo(uint uuid, int x, int y) {
uint index = renderId2Index[uuid];
TextChunk* c = &textChunks[index];
c.x = x;
c.y = y;
dataChanged = true;
return this;
}
Text remove(uint uuid) {
uint index = renderId2Index[uuid];
renderId2Index.remove(uuid);
textChunks.removeAt(index);
dataChanged = true;
return this;
}
Text clear() {
textChunks.length = 0;
dataChanged = true;
return this;
}
// ╔─────────────────────────────────╗
// │ Group functions │
// ╚─────────────────────────────────╝
uint createGroup() {
this.maxCreatedGroup = groupIds.next();
return maxCreatedGroup;
}
Text setGroup(uint groupId) {
throwIf(groupId > maxCreatedGroup);
this.group = groupId;
return this;
}
Text unsetGroup() {
// 0 is the default group
this.group = 0;
return this;
}
Text enableGroup(uint groupId, bool enable) {
throwIf(groupId > maxCreatedGroup);
auto isCurrentlyEnabled = enabledGroups.contains(groupId);
if(enable) {
if(isCurrentlyEnabled) return this;
enabledGroups.add(groupId);
} else {
if(!isCurrentlyEnabled) return this;
enabledGroups.remove(groupId);
}
dataChanged = true;
return this;
}
void beforeRenderPass(Frame frame) {
auto res = frame.resource;
ubo.upload(res.adhocCB);
if(dataChanged) {
dataChanged = false;
numCharacters = countCharacters();
generateVertices();
vertices.upload(res.adhocCB);
}
}
void insideRenderPass(Frame frame) {
if(numCharacters==0) return;
auto res = frame.resource;
auto b = res.adhocCB;
b.bindPipeline(pipeline);
b.bindDescriptorSets(
VK_PIPELINE_BIND_POINT_GRAPHICS,
pipeline.layout,
0, // first set
[descriptors.getSet(0,0)], // descriptor sets
null // dynamicOffsets
);
b.bindVertexBuffers(
0, // first binding
[vertices.getDeviceBuffer().handle], // buffers
[vertices.getDeviceBuffer().offset]); // offsets
if(dropShadow) {
pushConstants.doShadow = true;
b.pushConstants(
pipeline.layout,
VK_SHADER_STAGE_FRAGMENT_BIT,
0,
PushConstants.sizeof,
&pushConstants
);
b.draw(numCharacters, 1, 0, 0); // numCharacters points
}
pushConstants.doShadow = false;
b.pushConstants(
pipeline.layout,
VK_SHADER_STAGE_FRAGMENT_BIT,
0,
PushConstants.sizeof,
&pushConstants
);
b.draw(numCharacters, 1, 0, 0); // numCharacters points
}
private:
void initialise() {
this.ubo = new GPUData!UBO(context, BufID.UNIFORM, true).initialise();
this.vertices = new GPUData!Vertex(context, BufID.VERTEX, true, maxCharacters)
.withUploadStrategy(GPUDataUploadStrategy.RANGE)
.initialise();
ubo.write((u) {
u.dsColour = RGBA(0,0,0, 0.75);
u.dsOffset = vec2(-0.0025, 0.0025);
});
createSampler();
createDescriptorSets();
createPipeline();
}
void generateVertices() {
auto v = 0;
foreach(ref c; textChunks) {
if(!enabledGroups.contains(c.group)) continue;
float X = c.x;
float Y = c.y;
void _generateVertex(uint i, uint ch) {
auto g = font.sdf.getChar(ch);
float ratio = (c.size/cast(float)font.sdf.size);
float x = X + g.xoffset * ratio;
float y = Y + g.yoffset * ratio;
float w = g.width * ratio;
float h = g.height * ratio;
auto f = c.fmt(c, i);
vertices.write((vert) {
vert.pos = vec4(x, y, w, h);
vert.uvs = vec4(g.u, g.v, g.u2, g.v2);
vert.colour = f.colour;
vert.size = f.size;
}, v);
int kerning = 0;
if(i<c.text.length-1) {
kerning = font.sdf.getKerning(ch, c.text[i+1]);
}
X += (g.xadvance + kerning) * ratio;
v++;
}
foreach(i, ch; c.dtext) {
_generateVertex(i.as!uint, ch);
}
}
}
int countCharacters() {
long total = 0;
foreach(ref c; textChunks) {
total += c.dtext.length;
}
throwIf(total > maxCharacters, "%s > %s".format(total, maxCharacters));
return cast(int)total;
}
void createSampler() {
sampler = context.device.createSampler(samplerCreateInfo());
}
void createDescriptorSets() {
descriptors = new Descriptors(context)
.createLayout()
.uniformBuffer(VK_SHADER_STAGE_GEOMETRY_BIT | VK_SHADER_STAGE_FRAGMENT_BIT)
.combinedImageSampler(VK_SHADER_STAGE_FRAGMENT_BIT)
.sets(1)
.build();
descriptors.createSetFromLayout(0)
.add(ubo)
.add(sampler,
font.image.view,
VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL)
.write();
}
void createPipeline() {
pipeline = new GraphicsPipeline(context)
.withVertexInputState!Vertex(VK_PRIMITIVE_TOPOLOGY_POINT_LIST)
.withDSLayouts(descriptors.getAllLayouts())
.withColorBlendState([
colorBlendAttachment((info) {
info.blendEnable = VK_TRUE;
info.srcColorBlendFactor = VK_BLEND_FACTOR_SRC_ALPHA;
info.dstColorBlendFactor = VK_BLEND_FACTOR_ONE_MINUS_SRC_ALPHA;
info.srcAlphaBlendFactor = VK_BLEND_FACTOR_ONE;
info.dstAlphaBlendFactor = VK_BLEND_FACTOR_ZERO;
info.colorBlendOp = VK_BLEND_OP_ADD;
info.alphaBlendOp = VK_BLEND_OP_ADD;
})
])
.withVertexShader(context.vk.shaderCompiler.getModule("font/font1_vert.spv"))
.withGeometryShader(context.vk.shaderCompiler.getModule("font/font2_geom.spv"))
.withFragmentShader(context.vk.shaderCompiler.getModule("font/font3_frag.spv"))
.withPushConstantRange!PushConstants(VK_SHADER_STAGE_FRAGMENT_BIT)
.build();
}
}
|
D
|
instance Info_BaalLukor_EXIT(C_Info)
{
npc = GUR_1211_BaalLukor;
nr = 999;
condition = Info_BaalLukor_EXIT_Condition;
information = Info_BaalLukor_EXIT_Info;
permanent = 1;
description = DIALOG_ENDE;
};
func int Info_BaalLukor_EXIT_Condition()
{
return 1;
};
func void Info_BaalLukor_EXIT_Info()
{
AI_StopProcessInfos(self);
Npc_ExchangeRoutine(self,"Follow");
};
instance Info_BaalLukor_MEET(C_Info)
{
npc = GUR_1211_BaalLukor;
condition = Info_BaalLukor_MEET_Condition;
information = Info_BaalLukor_MEET_Info;
permanent = 0;
important = 1;
};
func int Info_BaalLukor_MEET_Condition()
{
if(Kapitel <= 3)
{
return TRUE;
};
};
func void Info_BaalLukor_MEET_Info()
{
AI_Output(self,other,"Info_BaalLukor_MEET_13_01"); //Díky za tvojí pomoc. Přišel jsi opravdu v poslední chvíli.
B_GiveXP(XP_SaveBaalLukor);
};
instance Info_BaalLukor_DEAD(C_Info)
{
npc = GUR_1211_BaalLukor;
condition = Info_BaalLukor_DEAD_Condition;
information = Info_BaalLukor_DEAD_Info;
nr = 20;
permanent = 0;
important = 0;
description = "Na cestě sem jsem viděl několik mrtvých templářů. Co se přihodilo?";
};
func int Info_BaalLukor_DEAD_Condition()
{
if(Kapitel <= 3)
{
return TRUE;
};
};
func void Info_BaalLukor_DEAD_Info()
{
AI_Output(other,self,"Info_BaalLukor_DEAD_15_01"); //Na cestě sem jsem viděl několik mrtvých templářů. Co se přihodilo?
AI_Output(self,other,"Info_BaalLukor_DEAD_13_02"); //Mistr Cor Angar nás sem vyslal na prohlídku jeskyní.
AI_Output(self,other,"Info_BaalLukor_DEAD_13_03"); //Očekávali jsme, že najdeme pár zatuchlých hrobů a polorozpadlé mumie.
AI_Output(self,other,"Info_BaalLukor_DEAD_13_04"); //Najednou se setmělo a všude byli skřeti. Nevím co tady hledali, ale jejich přítomnost v těchto místech je víc než neobvyklá!
AI_Output(other,self,"Info_BaalLukor_DEAD_15_05"); //Kde jsou ostatní templáři?
AI_Output(self,other,"Info_BaalLukor_DEAD_13_06"); //Mrtví! Nevědomky jsem je přivedl do záhuby. Snad mi to Spáč promine.
B_LogEntry(CH3_OrcGraveyard,"Při útoku skřetů na skřetím hřbitově jsem zachránil guru Baalu Lukorovi život. Všichni templáři v boji s hroznými netvory zahynuli.");
};
instance Info_BaalLukor_SUMMONING(C_Info)
{
npc = GUR_1211_BaalLukor;
condition = Info_BaalLukor_SUMMONING_Condition;
information = Info_BaalLukor_SUMMONING_Info;
nr = 10;
permanent = 0;
important = 0;
description = "Cor Angar mě vyslal!";
};
func int Info_BaalLukor_SUMMONING_Condition()
{
if(Kapitel <= 3)
{
return TRUE;
};
};
func void Info_BaalLukor_SUMMONING_Info()
{
AI_Output(other,self,"Info_BaalLukor_SUMMONING_15_01"); //Cor Angar mě vyslal! Našli jste nějaké Spáčovo znamení?
AI_Output(self,other,"Info_BaalLukor_SUMMONING_13_02"); //Zatím ne. Ale co Y´Berion? Už procitnul?
AI_Output(other,self,"Info_BaalLukor_SUMMONING_15_03"); //Ne, je pořád v bezvědomí.
AI_Output(self,other,"Info_BaalLukor_SUMMONING_13_04"); //Potřebujeme vyřešit hádanku těch jeskyní. Po všech těch hrozných ztrátách se nemůžu do komunity vrátit s prázdnýma rukama.
AI_Output(self,other,"Info_BaalLukor_SUMMONING_13_05"); //Moje bojové umění je omezené a skřeti nejsou vnímaví na moje magická zaříkávadla jako ti lehkověrní lidé ze Starého tábora.
AI_Output(self,other,"Info_BaalLukor_SUMMONING_13_06"); //Jestliže tě vyslalo naše Bratrstvo, snad bys mi mohl pomoci s dalším pátráním v téhle hrobce.
};
instance Info_BaalLukor_HELP(C_Info)
{
npc = GUR_1211_BaalLukor;
condition = Info_BaalLukor_HELP_Condition;
information = Info_BaalLukor_HELP_Info;
permanent = 0;
important = 0;
description = "Pomůžu ti.";
};
func int Info_BaalLukor_HELP_Condition()
{
return Npc_KnowsInfo(hero,Info_BaalLukor_SUMMONING);
};
func void Info_BaalLukor_HELP_Info()
{
AI_Output(other,self,"Info_BaalLukor_HELP_15_01"); //Pomůžu ti.
AI_Output(self,other,"Info_BaalLukor_HELP_13_02"); //Dobře. Skvěle. Z tohoto sálu vedou tři tunely. Měli bysme je všechny prozkoumat.
AI_Output(self,other,"Info_BaalLukor_HELP_13_03"); //Jdi napřed. Půjdu za tebou!
B_LogEntry(CH3_OrcGraveyard,"Baal Lukor mě vzal s sebou, abychom společně vyřešili tajemství tohoto starého místa!");
AI_StopProcessInfos(self);
Npc_ExchangeRoutine(self,"Follow");
};
instance Info_BaalLukor_FOUNDNONE(C_Info)
{
npc = GUR_1211_BaalLukor;
condition = Info_BaalLukor_FOUNDNONE_Condition;
information = Info_BaalLukor_FOUNDNONE_Info;
permanent = 1;
important = 0;
description = "Nedokážu se tu orientovat!";
};
func int Info_BaalLukor_FOUNDNONE_Condition()
{
if(Npc_KnowsInfo(hero,Info_BaalLukor_HELP) && (BaalLukor_BringParchment == 0) && !Npc_HasItems(hero,OrkParchmentOne) && !Npc_HasItems(hero,OrkParchmentTwo))
{
return TRUE;
};
};
func void Info_BaalLukor_FOUNDNONE_Info()
{
AI_Output(other,self,"Info_BaalLukor_FOUNDNONE_15_01"); //Nedokážu se tu orientovat!
AI_Output(self,other,"Info_BaalLukor_FOUNDNONE_13_02"); //Musíme prozkoumat ty tři tunely.
Npc_ExchangeRoutine(self,"Follow");
};
instance Info_BaalLukor_FOUNDONE(C_Info)
{
npc = GUR_1211_BaalLukor;
condition = Info_BaalLukor_FOUNDONE_Condition;
information = Info_BaalLukor_FOUNDONE_Info;
permanent = 1;
important = 0;
description = "Zřejmě už neexistuje druhá polovina pergamenu!";
};
func int Info_BaalLukor_FOUNDONE_Condition()
{
if(Npc_KnowsInfo(hero,Info_BaalLukor_HELP) && (((BaalLukor_BringParchment == 1) && !Npc_HasItems(hero,OrkParchmentTwo)) || ((BaalLukor_BringParchment == 2) && !Npc_HasItems(hero,OrkParchmentOne))))
{
return TRUE;
};
};
func void Info_BaalLukor_FOUNDONE_Info()
{
AI_Output(other,self,"Info_BaalLukor_FOUNDONE_15_01"); //Zřejmě už neexistuje druhá polovina pergamenu!
AI_Output(self,other,"Info_BaalLukor_FOUNDONE_13_02"); //Musí být druhá polovina. Měli bysme prohledat všechny tři tunely!
Npc_ExchangeRoutine(self,"Follow");
};
instance Info_BaalLukor_FIRSTWAIT(C_Info)
{
npc = GUR_1211_BaalLukor;
condition = Info_BaalLukor_FIRSTWAIT_Condition;
information = Info_BaalLukor_FIRSTWAIT_Info;
permanent = 0;
important = 1;
};
func int Info_BaalLukor_FIRSTWAIT_Condition()
{
if(Npc_KnowsInfo(hero,Info_BaalLukor_HELP) && (Npc_GetDistToWP(self,"GRYD_040") < 500))
{
return TRUE;
};
};
func void Info_BaalLukor_FIRSTWAIT_Info()
{
B_FullStop(hero);
AI_GotoNpc(self,hero);
AI_Output(self,other,"Info_BaalLukor_FIRSTWAIT_13_01"); //Tudy nemůžeme pokračovat! Možná tyhle výklenky značí cestu.
AI_StopProcessInfos(self);
Npc_ExchangeRoutine(self,"WaitInSideTunnelOne");
};
instance Info_BaalLukor_FIRSTSCROLL(C_Info)
{
npc = GUR_1211_BaalLukor;
condition = Info_BaalLukor_FIRSTSCROLL_Condition;
information = Info_BaalLukor_FIRSTSCROLL_Info;
permanent = 0;
important = 0;
description = "Našel jsem kus pergamenu!";
};
func int Info_BaalLukor_FIRSTSCROLL_Condition()
{
if(Npc_KnowsInfo(hero,Info_BaalLukor_HELP) && Npc_HasItems(hero,OrkParchmentOne))
{
return TRUE;
};
};
func void Info_BaalLukor_FIRSTSCROLL_Info()
{
AI_Output(other,self,"Info_BaalLukor_FIRSTSCROLL_15_01"); //Našel jsem kus pergamenu!
B_GiveInvItems(hero,self,OrkParchmentOne,1);
if(BaalLukor_BringParchment == 2)
{
AI_Output(self,other,"Info_BaalLukor_FIRSTSCROLL_13_02"); //Výborně! To je druhá polovina Skřetího kouzelného zaříkávadla.
BaalLukor_BringParchment = 3;
}
else
{
AI_Output(self,other,"Info_BaalLukor_FIRSTSCROLL_13_03"); //Vypadá to jako Skřetí kouzelné zaříkávadlo, ale je to roztržené vejpůl.
AI_Output(self,other,"Info_BaalLukor_FIRSTSCROLL_13_04"); //Někde tu musí být druhá polovina.
AI_StopProcessInfos(self);
BaalLukor_BringParchment = 1;
};
Npc_ExchangeRoutine(self,"Follow");
};
instance Info_BaalLukor_SECONDWAIT(C_Info)
{
npc = GUR_1211_BaalLukor;
condition = Info_BaalLukor_SECONDWAIT_Condition;
information = Info_BaalLukor_SECONDWAIT_Info;
permanent = 0;
important = 1;
};
func int Info_BaalLukor_SECONDWAIT_Condition()
{
if(Npc_KnowsInfo(hero,Info_BaalLukor_HELP) && (Npc_GetDistToWP(self,"GRYD_047") < 500))
{
return TRUE;
};
};
func void Info_BaalLukor_SECONDWAIT_Info()
{
B_FullStop(hero);
AI_GotoNpc(self,hero);
AI_Output(self,other,"Info_BaalLukor_SECONDWAIT_13_01"); //Hmmm... tenhle tunel je slepý! Ale možná tu najdeme nějaké znamení, které nám pomůže dál.
AI_StopProcessInfos(self);
Npc_ExchangeRoutine(self,"WaitInSideTunnelTwo");
};
instance Info_BaalLukor_SECONDSCROLL(C_Info)
{
npc = GUR_1211_BaalLukor;
condition = Info_BaalLukor_SECONDSCROLL_Condition;
information = Info_BaalLukor_SECONDSCROLL_Info;
permanent = 0;
important = 1;
};
func int Info_BaalLukor_SECONDSCROLL_Condition()
{
if(Npc_KnowsInfo(hero,Info_BaalLukor_HELP) && Npc_HasItems(hero,OrkParchmentTwo))
{
return TRUE;
};
};
func void Info_BaalLukor_SECONDSCROLL_Info()
{
B_FullStop(hero);
AI_GotoNpc(self,hero);
AI_Output(other,self,"Info_BaalLukor_SECONDSCROLL_15_01"); //Tady je roztržený kus pergamenu!
B_GiveInvItems(hero,self,OrkParchmentTwo,1);
if(BaalLukor_BringParchment == 1)
{
AI_Output(self,other,"Info_BaalLukor_SECONDSCROLL_13_02"); //Výborně! To je druhá polovina Skřetího kouzelného zaříkávadla.
BaalLukor_BringParchment = 3;
}
else
{
AI_Output(self,other,"Info_BaalLukor_SECONDSCROLL_13_03"); //Vypadá to jako Skřetí kouzelné zaříkávadlo, ale je to roztržené vejpůl.
AI_Output(self,other,"Info_BaalLukor_SECONDSCROLL_13_04"); //Někde tu musí být druhá polovina.
AI_StopProcessInfos(self);
BaalLukor_BringParchment = 2;
};
Npc_ExchangeRoutine(self,"Follow");
};
instance Info_BaalLukor_BOTHSCROLLS(C_Info)
{
npc = GUR_1211_BaalLukor;
condition = Info_BaalLukor_BOTHSCROLLS_Condition;
information = Info_BaalLukor_BOTHSCROLLS_Info;
permanent = 0;
important = 0;
description = "Co teď s těma dvěma kusy uděláme?";
};
func int Info_BaalLukor_BOTHSCROLLS_Condition()
{
if(Npc_KnowsInfo(hero,Info_BaalLukor_HELP) && (BaalLukor_BringParchment == 3))
{
return TRUE;
};
};
func void Info_BaalLukor_BOTHSCROLLS_Info()
{
AI_Output(other,self,"Info_BaalLukor_BOTHSCROLLS_15_01"); //Co teď s těmi dvěma kusy uděláme?
AI_Output(self,other,"Info_BaalLukor_BOTHSCROLLS_13_02"); //Obě půlky k sobě sedí. Neumím ale přeložit ty skřetí znaky.
B_LogEntry(CH3_OrcGraveyard,"Našli jsme dvě poloviny skřetího svitku, ale Baal Lukor je nedokázal rozluštit. Budeme pokračovat v pátrání.");
Npc_ExchangeRoutine(self,"Follow");
};
instance Info_BaalLukor_RUNES(C_Info)
{
npc = GUR_1211_BaalLukor;
condition = Info_BaalLukor_RUNES_Condition;
information = Info_BaalLukor_RUNES_Info;
permanent = 0;
important = 1;
};
func int Info_BaalLukor_RUNES_Condition()
{
if(Npc_KnowsInfo(hero,Info_BaalLukor_BOTHSCROLLS) && ((Npc_GetDistToWP(hero,"GRYD_025") < 600) || (Npc_GetDistToWP(hero,"GRYD_048") < 600)))
{
return TRUE;
};
};
func void Info_BaalLukor_RUNES_Info()
{
B_FullStop(hero);
AI_GotoNpc(self,hero);
AI_Output(self,other,"Info_BaalLukor_RUNES_13_01"); //Počkej! To je zajímavé...
AI_Output(other,self,"Info_BaalLukor_RUNES_15_02"); //Dobrá, nic zajímavého tady nevidím.
AI_Output(self,other,"Info_BaalLukor_RUNES_13_03"); //Buď ticho a dívej se na ty ozdobné runy v jeskyni.
AI_Output(self,other,"Info_BaalLukor_RUNES_13_04"); //To by mělo postačit k překladu těch dvou půlek pergamenu.
B_UseFakeScroll();
AI_Output(self,other,"Info_BaalLukor_RUNES_13_05"); //... (mumlání) ... (mumlání) ... (mumlání) ...
AI_Output(self,other,"Info_BaalLukor_RUNES_13_06"); //Mám to! Je to zaříkávadlo pro přenos. Zdá se, že jeho sílu jde využít pouze na určitém místě!
AI_Output(self,other,"Info_BaalLukor_RUNES_13_07"); //Divné!
Npc_RemoveInvItems(self,OrkParchmentOne,1);
Npc_RemoveInvItems(self,OrkParchmentTwo,1);
CreateInvItem(self,ItArScrollTeleport4);
B_GiveInvItems(self,hero,ItArScrollTeleport4,1);
B_LogEntry(CH3_OrcGraveyard,"S pomocí nástěnných nápisů v jednom ze sálů se Baalovi Lukorovi podařilo rozluštit ten svitek. Vypadá jako teleportační kouzlo pro malé vzdálenosti.");
Npc_ExchangeRoutine(self,"Follow");
};
instance Info_BaalLukor_WHATNOW(C_Info)
{
npc = GUR_1211_BaalLukor;
condition = Info_BaalLukor_WHATNOW_Condition;
information = Info_BaalLukor_WHATNOW_Info;
permanent = 1;
important = 0;
description = "Na jakém 'určitém' místě?";
};
func int Info_BaalLukor_WHATNOW_Condition()
{
if(Npc_KnowsInfo(hero,Info_BaalLukor_RUNES) && Npc_KnowsInfo(hero,Info_BaalLukor_HALLWITHOUT) && !Npc_KnowsInfo(hero,Info_BaalLukor_HALLWITH))
{
return TRUE;
};
};
func void Info_BaalLukor_WHATNOW_Info()
{
AI_Output(other,self,"Info_BaalLukor_WHATNOW_15_01"); //Na jakém 'určitém' místě?
AI_Output(self,other,"Info_BaalLukor_WHATNOW_13_02"); //Velký sál, kterým jsme před chvíli prošli, se zdál jako velmi... zvláštní... místo. Pojďme se tam vrátit!
Npc_ExchangeRoutine(self,"Follow");
};
instance Info_BaalLukor_HALLWITHOUT(C_Info)
{
npc = GUR_1211_BaalLukor;
condition = Info_BaalLukor_HALLWITHOUT_Condition;
information = Info_BaalLukor_HALLWITHOUT_Info;
permanent = 0;
important = 1;
};
func int Info_BaalLukor_HALLWITHOUT_Condition()
{
if(!Npc_KnowsInfo(hero,Info_BaalLukor_RUNES) && (Npc_GetDistToWP(hero,"GRYD_055") < 500))
{
return TRUE;
};
};
func void Info_BaalLukor_HALLWITHOUT_Info()
{
B_FullStop(hero);
AI_SetWalkMode(self,NPC_WALK);
AI_GotoNpc(self,hero);
AI_Output(self,other,"Info_BaalLukor_HALLWITHOUT_13_01"); //Tohle místo... Nedokážu to vysvětlit, ale tohle místo...
AI_Output(self,other,"Info_BaalLukor_HALLWITHOUT_13_02"); //Och, zapomeň na to. To jen ta moje představivost.
B_LogEntry(CH3_OrcGraveyard,"Když jsme vstoupili do velkého obdélníkového sálu se sloupovím, guru cosi pocítil. Nebyl si však jistý, co to bylo.");
Npc_ExchangeRoutine(self,"Follow");
};
instance Info_BaalLukor_HALLWITH(C_Info)
{
npc = GUR_1211_BaalLukor;
condition = Info_BaalLukor_HALLWITH_Condition;
information = Info_BaalLukor_HALLWITH_Info;
permanent = 0;
important = 1;
};
func int Info_BaalLukor_HALLWITH_Condition()
{
if(Npc_KnowsInfo(hero,Info_BaalLukor_RUNES) && (Npc_GetDistToWP(hero,"GRYD_055") < 500))
{
return TRUE;
};
};
func void Info_BaalLukor_HALLWITH_Info()
{
B_FullStop(hero);
AI_SetWalkMode(self,NPC_WALK);
AI_GotoNpc(self,hero);
AI_Output(self,other,"Info_BaalLukor_HALLWITH_13_01"); //Tohle místo má zvláštní auru... auru zmizení.
AI_Output(other,self,"Info_BaalLukor_HALLWITH_15_02"); //Tenhle sál mi připomíná obraz z té vidiny.
AI_Output(self,other,"Info_BaalLukor_HALLWITH_13_03"); //Ta vidina... Jsme velmi blízko u cíle...
B_LogEntry(CH3_OrcGraveyard,"Baal Lukor byl veden neviditelnou silou, která mířila přímo k jedné ze stěn velkého sloupového sálu.");
AI_StopProcessInfos(self);
Npc_ExchangeRoutine(self,"DOOR");
};
instance Info_BaalLukor_DOOR(C_Info)
{
npc = GUR_1211_BaalLukor;
condition = Info_BaalLukor_DOOR_Condition;
information = Info_BaalLukor_DOOR_Info;
permanent = 0;
important = 1;
};
func int Info_BaalLukor_DOOR_Condition()
{
if(Npc_KnowsInfo(hero,Info_BaalLukor_HALLWITH) && (Npc_GetDistToWP(hero,"GRYD_060") < 500))
{
return TRUE;
};
};
func void Info_BaalLukor_DOOR_Info()
{
B_FullStop(hero);
AI_SetWalkMode(self,NPC_WALK);
AI_GotoNpc(self,hero);
AI_Output(self,other,"Info_BaalLukor_DOOR_13_01"); //Za tou stěnou... to musí být!
AI_Output(self,other,"Info_BaalLukor_DOOR_13_02"); //Má kouzelná síla je pořád velmi slabá.
AI_Output(self,other,"Info_BaalLukor_DOOR_13_03"); //Použij to skřetí zaříkávadlo pro přenos tady, naproti té stěně.
AI_StopProcessInfos(self);
};
instance Info_BaalLukor_TELEPORT(C_Info)
{
npc = GUR_1211_BaalLukor;
condition = Info_BaalLukor_TELEPORT_Condition;
information = Info_BaalLukor_TELEPORT_Info;
permanent = 0;
important = 1;
};
func int Info_BaalLukor_TELEPORT_Condition()
{
if(Npc_KnowsInfo(hero,Info_BaalLukor_DOOR) && Npc_CanSeeNpcFreeLOS(self,hero) && (Npc_GetDistToWP(hero,"GRYD_072") < 550))
{
return TRUE;
};
};
func void Info_BaalLukor_TELEPORT_Info()
{
B_FullStop(hero);
AI_SetWalkMode(self,NPC_WALK);
AI_GotoNpc(self,hero);
AI_Output(self,other,"Info_BaalLukor_TELEPORT_13_01"); //Našli jsme skryté místo. Mé instinkty mě nezradily.
AI_Output(other,self,"Info_BaalLukor_TELEPORT_15_02"); //A ta odpověď na to záhadné vzývání Spáče leží skutečně tady???
AI_Output(other,self,"Info_BaalLukor_TELEPORT_15_03"); //Připadá mi to spíše jako zakopaná komora.
AI_Output(self,other,"Info_BaalLukor_TELEPORT_13_04"); //Musíme pokračovat.
AI_Output(self,other,"Info_BaalLukor_HELP_13_03"); //Jdi napřed. Půjdu za tebou!
B_LogEntry(CH3_OrcGraveyard,"S pomocí skřetího teleportačního kouzla jsem objevil tajnou chodbu vedoucí ven ze sloupového sálu.");
AI_StopProcessInfos(self);
Npc_ExchangeRoutine(self,"TELEPORT");
};
instance Info_BaalLukor_ALTAR(C_Info)
{
npc = GUR_1211_BaalLukor;
condition = Info_BaalLukor_ALTAR_Condition;
information = Info_BaalLukor_ALTAR_Info;
permanent = 0;
important = 1;
};
func int Info_BaalLukor_ALTAR_Condition()
{
if(Npc_KnowsInfo(hero,Info_BaalLukor_TELEPORT) && (Npc_GetDistToWP(hero,"GRYD_082") < 400) && Npc_CanSeeNpcFreeLOS(self,hero))
{
return TRUE;
};
};
func void Info_BaalLukor_ALTAR_Info()
{
B_FullStop(hero);
AI_GotoWP(hero,"GRYD_081");
AI_AlignToWP(hero);
AI_GotoNpc(self,hero);
AI_Output(self,hero,"Info_BaalLukor_ALTAR_13_01"); //NE! To není možné! Není tu nic než... než prach a... kosti.
AI_SetWalkMode(self,NPC_RUN);
AI_GotoWP(self,"GRYD_082");
AI_PlayAniBS(self,"T_STAND_2_PRAY",BS_SIT);
AI_Output(self,hero,"Info_BaalLukor_ALTAR_13_02"); //NE!
AI_Output(self,hero,"Info_BaalLukor_ALTAR_13_03"); //PANE, PROMLUV KE MNĚ!!!
AI_Output(self,hero,"Info_BaalLukor_ALTAR_13_04"); //SPÁČI, ZJEV SE!!!
AI_Output(self,hero,"Info_BaalLukor_ALTAR_13_05"); //NEEEEE!!!
AI_Output(hero,self,"Info_BaalLukor_ALTAR_15_06"); //A je to. Musel se úplně pominout!
AI_Standup(self);
B_WhirlAround(self,hero);
AI_Output(self,hero,"Info_BaalLukor_ALTAR_13_07"); //To všechno je tvoje chyba. Tvoje bezbožná přítomnost rozrušila všemocného Spáče!
AI_Output(self,hero,"Info_BaalLukor_ALTAR_13_08"); //Teď budu muset trpět za tvoje svatokrádežné chování!
AI_Output(self,hero,"Info_BaalLukor_ALTAR_13_09"); //Musím velkému pánovi vzdát oběť. LIDSKOU OBĚŤ!!!
AI_Output(self,hero,"Info_BaalLukor_ALTAR_13_10"); //Pak budu určitě osvícen a stanu se jeho služebníkem.
AI_Output(self,hero,"Info_BaalLukor_ALTAR_13_11"); //ZEMŘI, NEVĚRČE!!!
AI_Output(self,hero,"Info_BaalLukor_ALTAR_13_12"); //AAJEEEEÉÉÉHHH!!!!!
self.flags = 0;
self.npcType = npctype_main;
BaalLukor_BringParchment = 4;
Npc_SetTempAttitude(self,ATT_HOSTILE);
Npc_SetPermAttitude(self,ATT_HOSTILE);
CreateInvItems(self,ItArScrollPyrokinesis,3);
B_LogEntry(CH3_OrcGraveyard,"Baala Lukora mohla trefit mrtvice, když pochopil, že tady dole není ABSOLUTNĚ NIC. Nakonec si na mně dokonce vylil zlost. Když Cor Angar uslyšel tento příběh, pojal obavy.");
AI_StopProcessInfos(self);
AI_StartState(self,ZS_Attack,1,"");
};
|
D
|
instance GRD_2514_Guard (Npc_Default)
{
//-------- primary data --------
name = NAME_Gardist;
npctype = npctype_guard;
guild = GIL_NONE;
level = 15;
voice = 13;
id = 2514;
flags = NPC_FLAG_BRAVE|NPC_FLAG_INSTANTDEATH|NPC_FLAG_KILLER;
//-------- abilities --------
attribute[ATR_STRENGTH] = 50;
attribute[ATR_DEXTERITY] = 60;
attribute[ATR_MANA_MAX] = 0;
attribute[ATR_MANA] = 0;
attribute[ATR_HITPOINTS_MAX]= 220;
attribute[ATR_HITPOINTS] = 220;
//-------- visuals --------
// animations
Mdl_SetVisual (self,"HUMANS.MDS");
Mdl_ApplyOverlayMds (self,"Humans_Militia.mds");
// body mesh ,bdytex,skin,head mesh ,headtex,teethtex,ruestung
Mdl_SetVisualBody (self,"hum_body_Naked0",0,1,"Hum_Head_Pony",13,1,GRD_ARMOR_L);
B_Scale (self);
Mdl_SetModelFatness(self,0);
fight_tactic = FAI_HUMAN_STRONG;
//-------- Talente --------
Npc_SetTalentSkill (self,NPC_TALENT_1H,1);
Npc_SetTalentSkill (self,NPC_TALENT_2H,1);
Npc_SetTalentSkill (self,NPC_TALENT_CROSSBOW,1);
//-------- inventory --------
EquipItem (self,GRD_MW_02);
CreateInvItem (self,ItFoCheese);
CreateInvItem (self,ItFoApple);
CreateInvItems (self,ItMiNugget,10);
CreateInvItem (self,ItLsTorch);
//-------------Daily Routine-------------
/*B_InitNPCAddins(self);*/ daily_routine = Rtn_start_2514;
};
FUNC VOID Rtn_start_2514 ()
{
TA_Guard (00,00,06,00,"OW_PATH_223");
TA_Guard (06,00,24,00,"OW_PATH_223");
};
FUNC VOID Rtn_HIDE_2514 ()
{
TA_Guard (00,00,06,00,"WP_INTRO_WI05");
TA_Guard (06,00,24,00,"WP_INTRO_WI05");
};
FUNC VOID Rtn_OR3_2514 ()
{
TA_Guard (00,00,06,00,"PATH_CASTLE_TO_WATERFALL");
TA_Guard (06,00,24,00,"PATH_CASTLE_TO_WATERFALL");
};
FUNC VOID Rtn_OR4_2514 ()
{
TA_Guard (00,00,06,00,"OW_PATH_175_GATE1");
TA_Guard (06,00,24,00,"OW_PATH_175_GATE1");
};
FUNC VOID Rtn_RIT_2514 ()
{
TA_HostileGuard (07,00,20,00,"RIT2");
TA_HostileGuard (20,00,07,00,"RIT2");
};
instance GRD_2515_Guard (Npc_Default)
{
//-------- primary data --------
name = NAME_Gardist;
npctype = NpcType_Guard;
guild = GIL_NONE;
level = 18;
voice = 7;
id = 2515;
flags = NPC_FLAG_BRAVE|NPC_FLAG_INSTANTDEATH|NPC_FLAG_KILLER;
//-------- abilities --------
attribute[ATR_STRENGTH] = 50;
attribute[ATR_DEXTERITY] = 80;
attribute[ATR_MANA_MAX] = 0;
attribute[ATR_MANA] = 0;
attribute[ATR_HITPOINTS_MAX]= 280;
attribute[ATR_HITPOINTS] = 280;
//-------- visuals --------
// animations
Mdl_SetVisual (self,"HUMANS.MDS");
Mdl_ApplyOverlayMds (self,"Humans_Militia.mds");
// body mesh ,bdytex,skin,head mesh ,headtex,teethtex,ruestung
Mdl_SetVisualBody (self,"hum_body_Naked0",0 ,0,"Hum_Head_Bald",3,1,GRD_ARMOR_L);
B_Scale (self);
Mdl_SetModelFatness(self,1);
fight_tactic = FAI_HUMAN_STRONG;
//-------- Talente --------
Npc_SetTalentSkill (self,NPC_TALENT_1H,2);
Npc_SetTalentSkill (self,NPC_TALENT_2H,1);
//-------- inventory --------
EquipItem (self,GRD_MW_02);
CreateInvItem (self,ItFoMutton);
CreateInvItems (self,ItMiNugget,20);
CreateInvItem (self,ItFo_Potion_Health_01);
CreateInvItem (self,ItLsTorch);
//-------------Daily Routine-------------
/*B_InitNPCAddins(self);*/ daily_routine = Rtn_start_2515;
};
FUNC VOID Rtn_start_2515 ()
{
TA_Guard (00,00,06,00,"OW_PATH_222");
TA_Guard (06,00,24,00,"OW_PATH_222");
};
FUNC VOID Rtn_HIDE_2515 ()
{
TA_Guard (00,00,06,00,"WP_INTRO_WI05");
TA_Guard (06,00,24,00,"WP_INTRO_WI05");
};
FUNC VOID Rtn_OR3_2515 ()
{
TA_Guard (00,00,06,00,"OW_PATH_108");
TA_Guard (06,00,24,00,"OW_PATH_108");
};
FUNC VOID Rtn_OR4_2515 ()
{
TA_Guard (00,00,06,00,"OW_PATH_175_GATE2");
TA_Guard (06,00,24,00,"OW_PATH_175_GATE2");
};
FUNC VOID Rtn_RIT_2515 ()
{
TA_HostileGuard (07,00,20,00,"RIT3");
TA_HostileGuard (20,00,07,00,"RIT3");
};
instance GRD_2516_Guard (Npc_Default)
{
//-------- primary data --------
name = NAME_Gardist;
npctype = NpcType_Guard;
guild = GIL_NONE;
level = 18;
voice = 7;
id = 2516;
flags = NPC_FLAG_BRAVE|NPC_FLAG_INSTANTDEATH|NPC_FLAG_KILLER;
//-------- abilities --------
attribute[ATR_STRENGTH] = 50;
attribute[ATR_DEXTERITY] = 80;
attribute[ATR_MANA_MAX] = 0;
attribute[ATR_MANA] = 0;
attribute[ATR_HITPOINTS_MAX]= 280;
attribute[ATR_HITPOINTS] = 280;
//-------- visuals --------
// animations
Mdl_SetVisual (self,"HUMANS.MDS");
Mdl_ApplyOverlayMds (self,"Humans_Militia.mds");
// body mesh ,bdytex,skin,head mesh ,headtex,teethtex,ruestung
Mdl_SetVisualBody (self,"hum_body_Naked0",0 ,0,"Hum_Head_Bald",12,1,GRD_ARMOR_L);
B_Scale (self);
Mdl_SetModelFatness(self,1);
fight_tactic = FAI_HUMAN_STRONG;
//-------- Talente --------
Npc_SetTalentSkill (self,NPC_TALENT_1H,2);
Npc_SetTalentSkill (self,NPC_TALENT_2H,1);
//-------- inventory --------
EquipItem (self,GRD_MW_02);
CreateInvItem (self,ItFoMutton);
CreateInvItems (self,ItMiNugget,20);
CreateInvItem (self,ItFo_Potion_Health_01);
CreateInvItem (self,ItLsTorch);
//-------------Daily Routine-------------
/*B_InitNPCAddins(self);*/ daily_routine = Rtn_start_2516;
};
FUNC VOID Rtn_start_2516 ()
{
TA_Guard (00,00,06,00,"OW_PSIWOOD_MOVEMENT8");
TA_Guard (06,00,24,00,"OW_PSIWOOD_MOVEMENT8");
};
FUNC VOID Rtn_HIDE_2516 ()
{
TA_Guard (00,00,06,00,"WP_INTRO_WI05");
TA_Guard (06,00,24,00,"WP_INTRO_WI05");
};
FUNC VOID Rtn_OR3_2516 ()
{
TA_Guard (00,00,06,00,"CASTLE_7");
TA_Guard (06,00,24,00,"CASTLE_7");
};
FUNC VOID Rtn_OR4_2516 ()
{
TA_Guard (00,00,06,00,"OW_PATH_175_MEATBUG_GATE2");
TA_Guard (06,00,24,00,"OW_PATH_175_MEATBUG_GATE2");
};
FUNC VOID Rtn_RIT_2516 ()
{
TA_HostileGuard (07,00,20,00,"RIT4");
TA_HostileGuard (20,00,07,00,"RIT4");
};
instance GRD_2517_Guard (Npc_Default)
{
//-------- primary data --------
name = NAME_Gardist;
npctype = npctype_guard;
guild = GIL_NONE;
level = 15;
voice = 13;
id = 2517;
flags = NPC_FLAG_BRAVE|NPC_FLAG_INSTANTDEATH|NPC_FLAG_KILLER;
//-------- abilities --------
attribute[ATR_STRENGTH] = 50;
attribute[ATR_DEXTERITY] = 60;
attribute[ATR_MANA_MAX] = 0;
attribute[ATR_MANA] = 0;
attribute[ATR_HITPOINTS_MAX]= 220;
attribute[ATR_HITPOINTS] = 220;
//-------- visuals --------
// animations
Mdl_SetVisual (self,"HUMANS.MDS");
Mdl_ApplyOverlayMds (self,"Humans_Militia.mds");
// body mesh ,bdytex,skin,head mesh ,headtex,teethtex,ruestung
Mdl_SetVisualBody (self,"hum_body_Naked0",0,1,"Hum_Head_Pony",15,1,GRD_ARMOR_L);
B_Scale (self);
Mdl_SetModelFatness(self,0);
fight_tactic = FAI_HUMAN_RANGED;
//-------- Talente --------
Npc_SetTalentSkill (self,NPC_TALENT_1H,1);
Npc_SetTalentSkill (self,NPC_TALENT_2H,1);
Npc_SetTalentSkill (self,NPC_TALENT_CROSSBOW,1);
//-------- inventory --------
EquipItem (self,GRD_MW_01_short);
EquipItem (self,GRD_MW_02);
CreateInvItems (self,ItAmBolt,70);
CreateInvItem (self,ItFoApple);
CreateInvItems (self,ItMiNugget,10);
CreateInvItem (self,ItLsTorch);
//-------------Daily Routine-------------
/*B_InitNPCAddins(self);*/ daily_routine = Rtn_start_2517;
};
FUNC VOID Rtn_start_2517 ()
{
TA_Guard (00,00,06,00,"OW_PSIWOOD_MOVEMENT7");
TA_Guard (06,00,24,00,"OW_PSIWOOD_MOVEMENT7");
};
FUNC VOID Rtn_HIDE_2517 ()
{
TA_Guard (00,00,06,00,"WP_INTRO_WI05");
TA_Guard (06,00,24,00,"WP_INTRO_WI05");
};
FUNC VOID Rtn_OR3_2517 ()
{
TA_Guard (00,00,06,00,"CASTLE_8");
TA_Guard (06,00,24,00,"CASTLE_8");
};
FUNC VOID Rtn_OR4_2517 ()
{
TA_Guard (00,00,06,00,"OW_PATH_176");
TA_Guard (06,00,24,00,"OW_PATH_176");
};
FUNC VOID Rtn_RIT_2517 ()
{
TA_HostileGuard (07,00,20,00,"RIT5");
TA_HostileGuard (20,00,07,00,"RIT5");
};
instance GRD_2518_Guard (Npc_Default)
{
//-------- primary data --------
name = NAME_Gardist;
npctype = NpcType_Guard;
guild = GIL_NONE;
level = 15;
voice = 7;
id = 2518;
flags = NPC_FLAG_BRAVE|NPC_FLAG_INSTANTDEATH|NPC_FLAG_KILLER;
//-------- abilities --------
attribute[ATR_STRENGTH] = 50;
attribute[ATR_DEXTERITY] = 50;
attribute[ATR_MANA_MAX] = 0;
attribute[ATR_MANA] = 0;
attribute[ATR_HITPOINTS_MAX]= 220;
attribute[ATR_HITPOINTS] = 220;
//-------- visuals --------
// animations
Mdl_SetVisual (self,"HUMANS.MDS");
Mdl_ApplyOverlayMds (self,"Humans_Militia.mds");
// body mesh ,bdytex,skin,head mesh ,headtex,teethtex,ruestung
Mdl_SetVisualBody (self,"hum_body_Naked0",0 ,0,"Hum_Head_Bald",3,1,GRD_ARMOR_L);
B_Scale (self);
Mdl_SetModelFatness(self,1);
fight_tactic = FAI_HUMAN_STRONG;
//-------- Talente --------
Npc_SetTalentSkill (self,NPC_TALENT_1H,2);
Npc_SetTalentSkill (self,NPC_TALENT_2H,1);
//-------- inventory --------
EquipItem (self,GRD_MW_01_short);
CreateInvItem (self,ItFoMutton);
CreateInvItems (self,ItMiNugget,20);
CreateInvItem (self,ItFo_Potion_Health_01);
CreateInvItem (self,ItLsTorch);
//-------------Daily Routine-------------
/*B_InitNPCAddins(self);*/ daily_routine = Rtn_start_2518;
};
FUNC VOID Rtn_start_2518 ()
{
TA_Guard (00,00,06,00,"OW_PATH_222");
TA_Guard (06,00,24,00,"OW_PATH_222");
};
FUNC VOID Rtn_HIDE_2518 ()
{
TA_Guard (00,00,06,00,"WP_INTRO_WI05");
TA_Guard (06,00,24,00,"WP_INTRO_WI05");
};
FUNC VOID Rtn_OR3_2518 ()
{
TA_Guard (00,00,06,00,"CASTLE_9");
TA_Guard (06,00,24,00,"CASTLE_9");
};
FUNC VOID Rtn_OR4_2518 ()
{
TA_Guard (00,00,06,00,"LOCATION_28_01");
TA_Guard (06,00,24,00,"LOCATION_28_01");
};
FUNC VOID Rtn_RIT_2518 ()
{
TA_HostileGuard (07,00,20,00,"RIT6");
TA_HostileGuard (20,00,07,00,"RIT6");
};
|
D
|
/**
* D header file for C99.
*
* $(C_HEADER_DESCRIPTION pubs.opengroup.org/onlinepubs/009695399/basedefs/_locale.h.html, _locale.h)
*
* Copyright: Copyright Sean Kelly 2005 - 2009.
* License: Distributed under the
* $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0).
* (See accompanying file LICENSE)
* Authors: Sean Kelly
* Source: $(DRUNTIMESRC core/stdc/_locale.d)
* Standards: ISO/IEC 9899:1999 (E)
*/
module core.stdc.locale;
version (OSX)
version = Darwin;
else version (iOS)
version = Darwin;
else version (TVOS)
version = Darwin;
else version (WatchOS)
version = Darwin;
extern (C):
@trusted: // Only setlocale operates on C strings.
nothrow:
@nogc:
///
struct lconv
{
char* decimal_point;
char* thousands_sep;
char* grouping;
char* int_curr_symbol;
char* currency_symbol;
char* mon_decimal_point;
char* mon_thousands_sep;
char* mon_grouping;
char* positive_sign;
char* negative_sign;
byte int_frac_digits;
byte frac_digits;
byte p_cs_precedes;
byte p_sep_by_space;
byte n_cs_precedes;
byte n_sep_by_space;
byte p_sign_posn;
byte n_sign_posn;
byte int_p_cs_precedes;
byte int_p_sep_by_space;
byte int_n_cs_precedes;
byte int_n_sep_by_space;
byte int_p_sign_posn;
byte int_n_sign_posn;
}
version (CRuntime_Glibc)
{
///
enum LC_CTYPE = 0;
///
enum LC_NUMERIC = 1;
///
enum LC_TIME = 2;
///
enum LC_COLLATE = 3;
///
enum LC_MONETARY = 4;
///
enum LC_MESSAGES = 5;
///
enum LC_ALL = 6;
///
enum LC_PAPER = 7; // non-standard
///
enum LC_NAME = 8; // non-standard
///
enum LC_ADDRESS = 9; // non-standard
///
enum LC_TELEPHONE = 10; // non-standard
///
enum LC_MEASUREMENT = 11; // non-standard
///
enum LC_IDENTIFICATION = 12; // non-standard
}
else version (Windows)
{
///
enum LC_ALL = 0;
///
enum LC_COLLATE = 1;
///
enum LC_CTYPE = 2;
///
enum LC_MONETARY = 3;
///
enum LC_NUMERIC = 4;
///
enum LC_TIME = 5;
}
else version (Darwin)
{
///
enum LC_ALL = 0;
///
enum LC_COLLATE = 1;
///
enum LC_CTYPE = 2;
///
enum LC_MONETARY = 3;
///
enum LC_NUMERIC = 4;
///
enum LC_TIME = 5;
///
enum LC_MESSAGES = 6;
}
else version (FreeBSD)
{
///
enum LC_ALL = 0;
///
enum LC_COLLATE = 1;
///
enum LC_CTYPE = 2;
///
enum LC_MONETARY = 3;
///
enum LC_NUMERIC = 4;
///
enum LC_TIME = 5;
///
enum LC_MESSAGES = 6;
}
else version (NetBSD)
{
///
enum LC_ALL = 0;
///
enum LC_COLLATE = 1;
///
enum LC_CTYPE = 2;
///
enum LC_MONETARY = 3;
///
enum LC_NUMERIC = 4;
///
enum LC_TIME = 5;
///
enum LC_MESSAGES = 6;
}
else version (OpenBSD)
{
///
enum LC_ALL = 0;
///
enum LC_COLLATE = 1;
///
enum LC_CTYPE = 2;
///
enum LC_MONETARY = 3;
///
enum LC_NUMERIC = 4;
///
enum LC_TIME = 5;
///
enum LC_MESSAGES = 6;
}
else version (DragonFlyBSD)
{
///
enum LC_ALL = 0;
///
enum LC_COLLATE = 1;
///
enum LC_CTYPE = 2;
///
enum LC_MONETARY = 3;
///
enum LC_NUMERIC = 4;
///
enum LC_TIME = 5;
///
enum LC_MESSAGES = 6;
}
else version (CRuntime_Bionic)
{
enum
{
///
LC_CTYPE = 0,
///
LC_NUMERIC = 1,
///
LC_TIME = 2,
///
LC_COLLATE = 3,
///
LC_MONETARY = 4,
///
LC_MESSAGES = 5,
///
LC_ALL = 6,
///
LC_PAPER = 7,
///
LC_NAME = 8,
///
LC_ADDRESS = 9,
///
LC_TELEPHONE = 10,
///
LC_MEASUREMENT = 11,
///
LC_IDENTIFICATION = 12,
}
}
else version (Solaris)
{
///
enum LC_CTYPE = 0;
///
enum LC_NUMERIC = 1;
///
enum LC_TIME = 2;
///
enum LC_COLLATE = 3;
///
enum LC_MONETARY = 4;
///
enum LC_MESSAGES = 5;
///
enum LC_ALL = 6;
}
else version (CRuntime_Musl)
{
///
enum LC_CTYPE = 0;
///
enum LC_NUMERIC = 1;
///
enum LC_TIME = 2;
///
enum LC_COLLATE = 3;
///
enum LC_MONETARY = 4;
///
enum LC_MESSAGES = 5;
///
enum LC_ALL = 6;
}
else version (CRuntime_UClibc)
{
///
enum LC_CTYPE = 0;
///
enum LC_NUMERIC = 1;
///
enum LC_TIME = 2;
///
enum LC_COLLATE = 3;
///
enum LC_MONETARY = 4;
///
enum LC_MESSAGES = 5;
///
enum LC_ALL = 6;
///
enum LC_PAPER = 7;
///
enum LC_NAME = 8;
///
enum LC_ADDRESS = 9;
///
enum LC_TELEPHONE = 10;
///
enum LC_MEASUREMENT = 11;
///
enum LC_IDENTIFICATION = 12;
}
else
{
static assert(false, "Unsupported platform");
}
///
@system char* setlocale(int category, const scope char* locale);
///
lconv* localeconv();
|
D
|
/Users/Vidyadhar/Desktop/Github/HTC-ios-app/build/HackTheCity.build/Debug-iphonesimulator/HackTheCity.build/Objects-normal/x86_64/ViewController.o : /Users/Vidyadhar/Desktop/Github/HTC-ios-app/HackTheCity/ViewController.swift /Users/Vidyadhar/Desktop/Github/HTC-ios-app/HackTheCity/AppDelegate.swift /Users/Vidyadhar/Desktop/Github/HTC-ios-app/HackTheCity/Objects.swift /Users/Vidyadhar/Desktop/Github/HTC-ios-app/HackTheCity/CustomNav.swift /Users/Vidyadhar/Desktop/Github/HTC-ios-app/HackTheCity/EventsViewController.swift /Users/Vidyadhar/Desktop/Github/HTC-ios-app/HackTheCity/MentorsViewController.swift /Users/Vidyadhar/Desktop/Github/HTC-ios-app/HackTheCity/MapViewController.swift /Users/Vidyadhar/Desktop/Github/HTC-ios-app/HackTheCity/EventCell.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
/Users/Vidyadhar/Desktop/Github/HTC-ios-app/build/HackTheCity.build/Debug-iphonesimulator/HackTheCity.build/Objects-normal/x86_64/ViewController~partial.swiftmodule : /Users/Vidyadhar/Desktop/Github/HTC-ios-app/HackTheCity/ViewController.swift /Users/Vidyadhar/Desktop/Github/HTC-ios-app/HackTheCity/AppDelegate.swift /Users/Vidyadhar/Desktop/Github/HTC-ios-app/HackTheCity/Objects.swift /Users/Vidyadhar/Desktop/Github/HTC-ios-app/HackTheCity/CustomNav.swift /Users/Vidyadhar/Desktop/Github/HTC-ios-app/HackTheCity/EventsViewController.swift /Users/Vidyadhar/Desktop/Github/HTC-ios-app/HackTheCity/MentorsViewController.swift /Users/Vidyadhar/Desktop/Github/HTC-ios-app/HackTheCity/MapViewController.swift /Users/Vidyadhar/Desktop/Github/HTC-ios-app/HackTheCity/EventCell.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
/Users/Vidyadhar/Desktop/Github/HTC-ios-app/build/HackTheCity.build/Debug-iphonesimulator/HackTheCity.build/Objects-normal/x86_64/ViewController~partial.swiftdoc : /Users/Vidyadhar/Desktop/Github/HTC-ios-app/HackTheCity/ViewController.swift /Users/Vidyadhar/Desktop/Github/HTC-ios-app/HackTheCity/AppDelegate.swift /Users/Vidyadhar/Desktop/Github/HTC-ios-app/HackTheCity/Objects.swift /Users/Vidyadhar/Desktop/Github/HTC-ios-app/HackTheCity/CustomNav.swift /Users/Vidyadhar/Desktop/Github/HTC-ios-app/HackTheCity/EventsViewController.swift /Users/Vidyadhar/Desktop/Github/HTC-ios-app/HackTheCity/MentorsViewController.swift /Users/Vidyadhar/Desktop/Github/HTC-ios-app/HackTheCity/MapViewController.swift /Users/Vidyadhar/Desktop/Github/HTC-ios-app/HackTheCity/EventCell.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
|
D
|
/**
mirror datetime.h
*/
module deimos.python.datetime;
version(Python_3_1_Or_Later) {
version = PyCapsule;
}else version(Python_3_0_Or_Later) {
version = PyCObject;
}else version(Python_2_7_Or_Later) {
version = PyCapsule;
}else {
version = PyCObject;
}
import deimos.python.object;
import deimos.python.pyport;
version(PyCapsule) {
import deimos.python.pycapsule;
}else version(PyCObject) {
import deimos.python.cobject;
}else static assert(0);
extern(C):
// Python-header-file: Include/datetime.h:
/** # of bytes for year, month, and day. */
enum _PyDateTime_DATE_DATASIZE = 4;
/** # of bytes for hour, minute, second, and usecond. */
enum _PyDateTime_TIME_DATASIZE = 6;
/** # of bytes for year, month, day, hour, minute, second, and usecond. */
enum _PyDateTime_DATETIME_DATASIZE = 10;
/// subclass of PyObject.
struct PyDateTime_Delta {
mixin PyObject_HEAD;
/** -1 when unknown */
Py_hash_t hashcode;
/** -MAX_DELTA_DAYS <= days <= MAX_DELTA_DAYS */
int days;
/** 0 <= seconds < 24*3600 is invariant */
int seconds;
/** 0 <= microseconds < 1000000 is invariant */
int microseconds;
}
/** a pure abstract base clase */
struct PyDateTime_TZInfo {
mixin PyObject_HEAD;
}
/** The datetime and time types have hashcodes, and an optional tzinfo member,
* present if and only if hastzinfo is true.
*/
template _PyTZINFO_HEAD() {
mixin PyObject_HEAD;
/// _
Py_hash_t hashcode;
/// _
ubyte hastzinfo;
}
/** No _PyDateTime_BaseTZInfo is allocated; it's just to have something
* convenient to cast to, when getting at the hastzinfo member of objects
* starting with _PyTZINFO_HEAD.
*/
struct _PyDateTime_BaseTZInfo {
mixin _PyTZINFO_HEAD;
}
/** All time objects are of PyDateTime_TimeType, but that can be allocated
* in two ways, with or without a tzinfo member. Without is the same as
* tzinfo == None, but consumes less memory. _PyDateTime_BaseTime is an
* internal struct used to allocate the right amount of space for the
* "without" case.
*/
template _PyDateTime_TIMEHEAD() {
mixin _PyTZINFO_HEAD;
/// _
ubyte[_PyDateTime_TIME_DATASIZE] data;
}
/// _
struct _PyDateTime_BaseTime {
mixin _PyDateTime_TIMEHEAD;
}
/// _
struct PyDateTime_Time {
mixin _PyDateTime_TIMEHEAD;
version(Python_3_6_Or_Later) {
ubyte fold;
}
PyObject* tzinfo;
}
/** All datetime objects are of PyDateTime_DateTimeType, but that can be
* allocated in two ways too, just like for time objects above. In addition,
* the plain date type is a base class for datetime, so it must also have
* a hastzinfo member (although it's unused there).
*/
struct PyDateTime_Date {
mixin _PyTZINFO_HEAD;
/// _
ubyte[_PyDateTime_DATE_DATASIZE] data;
}
/// _
template _PyDateTime_DATETIMEHEAD() {
mixin _PyTZINFO_HEAD;
ubyte[_PyDateTime_DATETIME_DATASIZE] data;
}
/// _
struct _PyDateTime_BaseDateTime {
mixin _PyDateTime_DATETIMEHEAD;
}
/// _
struct PyDateTime_DateTime {
mixin _PyDateTime_DATETIMEHEAD;
version(Python_3_6_Or_Later) {
ubyte fold;
}
PyObject* tzinfo;
}
// D translations of C macros:
/** Applies for date and datetime instances. */
int PyDateTime_GET_YEAR()(PyObject* o) {
PyDateTime_Date* ot = cast(PyDateTime_Date*) o;
return (ot.data[0] << 8) | ot.data[1];
}
/** Applies for date and datetime instances. */
int PyDateTime_GET_MONTH()(PyObject* o) {
PyDateTime_Date* ot = cast(PyDateTime_Date*) o;
return ot.data[2];
}
/** Applies for date and datetime instances. */
int PyDateTime_GET_DAY()(PyObject* o) {
PyDateTime_Date* ot = cast(PyDateTime_Date*) o;
return ot.data[3];
}
/** Applies for date and datetime instances. */
int PyDateTime_DATE_GET_HOUR()(PyObject* o) {
PyDateTime_DateTime* ot = cast(PyDateTime_DateTime*) o;
return ot.data[4];
}
/** Applies for date and datetime instances. */
int PyDateTime_DATE_GET_MINUTE()(PyObject* o) {
PyDateTime_DateTime* ot = cast(PyDateTime_DateTime*) o;
return ot.data[5];
}
/** Applies for date and datetime instances. */
int PyDateTime_DATE_GET_SECOND()(PyObject* o) {
PyDateTime_DateTime* ot = cast(PyDateTime_DateTime*) o;
return ot.data[6];
}
/** Applies for date and datetime instances. */
int PyDateTime_DATE_GET_MICROSECOND()(PyObject* o) {
PyDateTime_DateTime* ot = cast(PyDateTime_DateTime*) o;
return (ot.data[7] << 16) | (ot.data[8] << 8) | ot.data[9];
}
version(Python_3_6_Or_Later) {
/// _
int PyDateTime_DATE_GET_FOLD()(PyObject* o) {
auto ot = cast(PyDateTime_DateTime*)o;
return ot.fold;
}
}
/** Applies for time instances. */
int PyDateTime_TIME_GET_HOUR()(PyObject* o) {
PyDateTime_Time* ot = cast(PyDateTime_Time*) o;
return ot.data[0];
}
/** Applies for time instances. */
int PyDateTime_TIME_GET_MINUTE()(PyObject* o) {
PyDateTime_Time* ot = cast(PyDateTime_Time*) o;
return ot.data[1];
}
/** Applies for time instances. */
int PyDateTime_TIME_GET_SECOND()(PyObject* o) {
PyDateTime_Time* ot = cast(PyDateTime_Time*) o;
return ot.data[2];
}
/** Applies for time instances. */
int PyDateTime_TIME_GET_MICROSECOND()(PyObject* o) {
PyDateTime_Time* ot = cast(PyDateTime_Time*) o;
return (ot.data[3] << 16) | (ot.data[4] << 8) | ot.data[5];
}
version(Python_3_6_Or_Later) {
/// _
int PyDateTime_TIME_GET_FOLD()(PyObject* o) {
auto ot = cast(PyDateTime_Time*) o;
return ot.fold;
}
}
/** Structure for C API. */
struct PyDateTime_CAPI {
/** type objects */
PyTypeObject* DateType;
/// ditto
PyTypeObject* DateTimeType;
/// ditto
PyTypeObject* TimeType;
/// ditto
PyTypeObject* DeltaType;
/// ditto
PyTypeObject* TZInfoType;
version(Python_3_7_Or_Later) {
PyObject* TimeZone_UTC;
}
/** constructors */
PyObject* function(int, int, int, PyTypeObject*) Date_FromDate;
/// ditto
PyObject* function(int, int, int, int, int, int, int,
PyObject*, PyTypeObject*)
DateTime_FromDateAndTime;
/// ditto
PyObject* function(int, int, int, int, PyObject*, PyTypeObject*)
Time_FromTime;
/// ditto
PyObject* function(int, int, int, int, PyTypeObject*) Delta_FromDelta;
/// ditto
version(Python_3_7_Or_Later) {
PyObject* function(PyObject *offset, PyObject *name) TimeZone_FromTimeZone;
}
/** constructors for the DB API */
PyObject* function(PyObject*, PyObject*, PyObject*) DateTime_FromTimestamp;
/// ditto
PyObject* function(PyObject*, PyObject*) Date_FromTimestamp;
version(Python_3_6_Or_Later) {
PyObject* function(int, int, int, int, int, int, int, PyObject*, int, PyTypeObject*)
DateTime_FromDateAndTimeAndFold;
PyObject* function(int, int, int, int, PyObject*, int, PyTypeObject*)
Time_FromTimeAndFold;
}
}
// went away in python 3. who cares?
enum DATETIME_API_MAGIC = 0x414548d5;
version(PyCapsule) {
enum PyDateTime_CAPSULE_NAME = "datetime.datetime_CAPI";
}
/// _
static PyDateTime_CAPI* PyDateTimeAPI;
PyDateTime_CAPI* PyDateTime_IMPORT()() {
if (PyDateTimeAPI == null) {
version(PyCapsule) {
PyDateTimeAPI = cast(PyDateTime_CAPI*)
PyCapsule_Import(PyDateTime_CAPSULE_NAME, 0);
}else {
PyDateTimeAPI = cast(PyDateTime_CAPI*)
PyCObject_Import("datetime", "datetime_CAPI");
}
}
return PyDateTimeAPI;
}
// D translations of C macros:
version(Python_3_7_Or_Later) {
/// _
PyObject* PyDateTime_TimeZone_UTC()() {
return PyDateTimeAPI.TimeZone_UTC;
}
}
/// _
int PyDate_Check()(PyObject* op) {
return PyObject_TypeCheck(op, PyDateTimeAPI.DateType);
}
/// _
int PyDate_CheckExact()(PyObject* op) {
return Py_TYPE(op) == PyDateTimeAPI.DateType;
}
/// _
int PyDateTime_Check()(PyObject* op) {
return PyObject_TypeCheck(op, PyDateTimeAPI.DateTimeType);
}
/// _
int PyDateTime_CheckExact()(PyObject* op) {
return Py_TYPE(op) == PyDateTimeAPI.DateTimeType;
}
/// _
int PyTime_Check()(PyObject* op) {
return PyObject_TypeCheck(op, PyDateTimeAPI.TimeType);
}
/// _
int PyTime_CheckExact()(PyObject* op) {
return Py_TYPE(op) == PyDateTimeAPI.TimeType;
}
/// _
int PyDelta_Check()(PyObject* op) {
return PyObject_TypeCheck(op, PyDateTimeAPI.DeltaType);
}
/// _
int PyDelta_CheckExact()(PyObject* op) {
return Py_TYPE(op) == PyDateTimeAPI.DeltaType;
}
/// _
int PyTZInfo_Check()(PyObject* op) {
return PyObject_TypeCheck(op, PyDateTimeAPI.TZInfoType);
}
/// _
int PyTZInfo_CheckExact()(PyObject* op) {
return Py_TYPE(op) == PyDateTimeAPI.TZInfoType;
}
/// _
PyObject* PyDate_FromDate()(int year, int month, int day) {
return PyDateTimeAPI.Date_FromDate(year, month, day, PyDateTimeAPI.DateType);
}
/// _
PyObject* PyDateTime_FromDateAndTime()(
int year, int month, int day, int hour, int min, int sec, int usec) {
return PyDateTimeAPI.DateTime_FromDateAndTime(
year, month, day, hour, min, sec, usec,
cast(PyObject*) Py_None(), PyDateTimeAPI.DateTimeType);
}
version(Python_3_6_Or_Later) {
/// _
PyObject* PyDateTime_FromDateAndTimeAndFold()(
int year, int month, int day, int hour, int min, int sec,
int usec, int fold) {
return PyDateTimeAPI.DateTime_FromDateAndTimeAndFold(
year, month, day, hour,
min, sec, usec, cast(PyObject*) Py_None(), fold,
PyDateTimeAPI.DateTimeType);
}
}
/// _
PyObject* PyTime_FromTime()(int hour, int minute, int second, int usecond) {
return PyDateTimeAPI.Time_FromTime(hour, minute, second, usecond,
cast(PyObject*) Py_None(), PyDateTimeAPI.TimeType);
}
version(Python_3_6_Or_Later) {
/// _
PyObject* PyTime_FromTimeAndFold()(
int hour, int minute, int second, int usecond, int fold) {
return PyDateTimeAPI.Time_FromTimeAndFold(hour, minute, second, usecond,
cast(PyObject*) Py_None(), fold, PyDateTimeAPI.TimeType);
}
}
/// _
PyObject* PyDelta_FromDSU()(int days, int seconds, int useconds) {
return PyDateTimeAPI.Delta_FromDelta(days, seconds, useconds, 1,
PyDateTimeAPI.DeltaType);
}
version(Python_3_7_Or_Later) {
/// _
PyObject* PyTimeZone_FromOffset()(PyObject* offset) {
return PyDateTimeAPI.TimeZone_FromTimeZone(offset, null);
}
/// _
PyObject* PyTimeZone_FromOffsetAndName()(PyObject* offset, PyObject* name) {
return PyDateTimeAPI.TimeZone_FromTimeZone(offset, name);
}
}
/// _
PyObject* PyDateTime_FromTimestamp()(PyObject* args) {
return PyDateTimeAPI.DateTime_FromTimestamp(
cast(PyObject*) (PyDateTimeAPI.DateTimeType), args, null);
}
/// _
PyObject* PyDate_FromTimestamp()(PyObject* args) {
return PyDateTimeAPI.Date_FromTimestamp(
cast(PyObject*) (PyDateTimeAPI.DateType), args);
}
|
D
|
module ui.event;
version( GLFW )
public import ui.event.glfw;
public import ui.event.eventtypes;
public import ui.event.keycodes;
|
D
|
/Users/anton/Desktop/WeatherApp/DerivedData/WeatherApp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/SessionDelegate.o : /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/MultipartFormData.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/Timeline.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/Alamofire.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/Response.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/TaskDelegate.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/SessionDelegate.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/ParameterEncoding.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/Validation.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/ResponseSerialization.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/SessionManager.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/AFError.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/Notifications.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/Result.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/Request.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/ServerTrustPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/anton/Desktop/WeatherApp/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/mach-o/dyld.modulemap /Users/anton/Desktop/WeatherApp/DerivedData/WeatherApp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/anton/Desktop/WeatherApp/DerivedData/WeatherApp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/SessionDelegate~partial.swiftmodule : /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/MultipartFormData.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/Timeline.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/Alamofire.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/Response.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/TaskDelegate.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/SessionDelegate.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/ParameterEncoding.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/Validation.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/ResponseSerialization.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/SessionManager.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/AFError.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/Notifications.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/Result.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/Request.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/ServerTrustPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/anton/Desktop/WeatherApp/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/mach-o/dyld.modulemap /Users/anton/Desktop/WeatherApp/DerivedData/WeatherApp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/anton/Desktop/WeatherApp/DerivedData/WeatherApp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/SessionDelegate~partial.swiftdoc : /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/MultipartFormData.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/Timeline.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/Alamofire.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/Response.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/TaskDelegate.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/SessionDelegate.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/ParameterEncoding.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/Validation.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/ResponseSerialization.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/SessionManager.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/AFError.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/Notifications.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/Result.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/Request.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/ServerTrustPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/anton/Desktop/WeatherApp/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/mach-o/dyld.modulemap /Users/anton/Desktop/WeatherApp/DerivedData/WeatherApp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/anton/Desktop/WeatherApp/DerivedData/WeatherApp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/SessionDelegate~partial.swiftsourceinfo : /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/MultipartFormData.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/Timeline.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/DispatchQueue+Alamofire.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/Alamofire.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/Response.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/TaskDelegate.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/SessionDelegate.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/ParameterEncoding.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/Validation.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/ResponseSerialization.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/SessionManager.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/AFError.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/Notifications.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/Result.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/Request.swift /Users/anton/Desktop/WeatherApp/Pods/Alamofire/Source/ServerTrustPolicy.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/anton/Desktop/WeatherApp/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/mach-o/dyld.modulemap /Users/anton/Desktop/WeatherApp/DerivedData/WeatherApp/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/Alamofire.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.3.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
D
|
/Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/CandleStickChartView.o : /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Animation/Animator.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/AxisBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/BarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/ChartUtils.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/ComponentBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Filters/DataApproximator.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/Description.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/Fill.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/Highlight.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/IMarker.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/Legend.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/LegendEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/LineChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/MarkerImage.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/MarkerView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/PieChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/Platform.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/RadarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/Range.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBarLineScatterCandleBubbleDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBaseDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBubbleDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmCandleDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmLineDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmLineRadarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmLineScatterCandleRadarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmPieDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmRadarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmScatterDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Renderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/Transformer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/XAxis.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/YAxis.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Target\ Support\ Files/Charts/Charts-umbrella.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Pods.build/Debug-iphonesimulator/Charts.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealm_Dynamic.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMSchema_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMResults_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMRealm_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMRealmConfiguration_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMProperty_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMOptionalBase.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObject_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObjectStore.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObjectSchema_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectBase_Dynamic.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMListBase.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMArray_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMAccessor.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSchema.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMResults.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealmConfiguration.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealm.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMConstants.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMProperty.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMPlatform.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectSchema.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectBase.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObject.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMMigration.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMCollection.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMArray.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/Realm.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Pods.build/Debug-iphonesimulator/Realm.build/module.modulemap
/Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/CandleStickChartView~partial.swiftmodule : /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Animation/Animator.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/AxisBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/BarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/ChartUtils.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/ComponentBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Filters/DataApproximator.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/Description.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/Fill.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/Highlight.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/IMarker.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/Legend.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/LegendEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/LineChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/MarkerImage.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/MarkerView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/PieChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/Platform.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/RadarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/Range.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBarLineScatterCandleBubbleDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBaseDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBubbleDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmCandleDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmLineDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmLineRadarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmLineScatterCandleRadarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmPieDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmRadarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmScatterDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Renderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/Transformer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/XAxis.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/YAxis.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Target\ Support\ Files/Charts/Charts-umbrella.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Pods.build/Debug-iphonesimulator/Charts.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealm_Dynamic.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMSchema_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMResults_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMRealm_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMRealmConfiguration_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMProperty_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMOptionalBase.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObject_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObjectStore.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObjectSchema_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectBase_Dynamic.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMListBase.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMArray_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMAccessor.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSchema.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMResults.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealmConfiguration.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealm.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMConstants.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMProperty.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMPlatform.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectSchema.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectBase.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObject.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMMigration.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMCollection.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMArray.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/Realm.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Pods.build/Debug-iphonesimulator/Realm.build/module.modulemap
/Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Pods.build/Debug-iphonesimulator/Charts.build/Objects-normal/x86_64/CandleStickChartView~partial.swiftdoc : /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/AnimatedMoveViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/AnimatedViewPortJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/AnimatedZoomViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Animation/Animator.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/AxisBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/AxisRendererBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/BarChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/BarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/BarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/BarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/BarLineChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/BarLineScatterCandleBubbleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BarLineScatterCandleBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/BarLineScatterCandleBubbleRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/BubbleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/BubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/BubbleChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/BubbleChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/CandleChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CandleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/CandleStickChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Animation/ChartAnimationEasing.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/ChartBaseDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/ChartColorTemplates.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataEntryBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/ChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/ChartDataRendererBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/ChartHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/ChartLimitLine.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/ChartUtils.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/ChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronDownShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/ChevronUpShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/CircleShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/CombinedChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/CombinedChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/CombinedChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/CombinedChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/CombinedHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/ComponentBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/CrossShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Filters/DataApproximator.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/DefaultAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/DefaultFillFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/DefaultValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/Description.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/Fill.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/Highlight.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/HorizontalBarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/HorizontalBarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/HorizontalBarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IBarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IBarLineScatterCandleBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IBubbleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ICandleChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IFillFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/IHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ILineChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ILineRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/ILineScatterCandleRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/IMarker.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IndexAxisValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IPieChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Interfaces/IScatterChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/IShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Formatters/IValueFormatter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/Legend.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/LegendEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LegendRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/LineChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LineChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/LineChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LineRadarRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/LineScatterCandleRadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/LineScatterCandleRadarRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/MarkerImage.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/MarkerView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/MoveViewJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/PieChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/PieChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/PieChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/PieHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/PieRadarChartViewBase.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/PieRadarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/Platform.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataEntry.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/RadarChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/RadarChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/RadarChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/RadarHighlighter.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Highlight/Range.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBarLineScatterCandleBubbleDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBaseDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmBubbleDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmCandleDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmLineDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmLineRadarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmLineScatterCandleRadarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmPieDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmRadarDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/ChartsRealm/Data/RealmScatterDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Renderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartData.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Interfaces/ScatterChartDataProvider.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Data/Implementations/Standard/ScatterChartDataSet.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/ScatterChartRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Charts/ScatterChartView.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/SquareShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/Transformer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/TransformerHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/TriangleShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Utils/ViewPortHandler.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/ViewPortJob.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/XAxis.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/XAxisRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/XAxisRendererHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/XAxisRendererRadarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/Scatter/XShapeRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Components/YAxis.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/YAxisRenderer.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/YAxisRendererHorizontalBarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Renderers/YAxisRendererRadarChart.swift /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Charts/Source/Charts/Jobs/ZoomViewJob.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreText.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.apinotesc /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Pods/Target\ Support\ Files/Charts/Charts-umbrella.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Pods.build/Debug-iphonesimulator/Charts.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealm_Dynamic.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMSchema_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMResults_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMRealm_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMRealmConfiguration_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMProperty_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMOptionalBase.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObject_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObjectStore.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMObjectSchema_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectBase_Dynamic.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMListBase.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMArray_Private.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/PrivateHeaders/RLMAccessor.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMSchema.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMResults.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealmConfiguration.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMRealm.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMConstants.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMProperty.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMPlatform.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectSchema.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObjectBase.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMObject.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMMigration.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMCollection.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/RLMArray.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Products/Debug-iphonesimulator/Realm/Realm.framework/Headers/Realm.h /Users/endotsuyoshi/Documents/ios/shoanaorigin2/shoana/Build/Intermediates/Pods.build/Debug-iphonesimulator/Realm.build/module.modulemap
|
D
|
module arrayfire.cuda;
import arrayfire.defines;
extern ( C ) {
//FIXME :: Check CudaStream_t
alias int cudaStream_t;
//#if AF_API_VERSION >= 31
/+
Get the stream for the CUDA device with \p id in ArrayFire context
\param[out] stream CUDA Stream of device with \p id in ArrayFire context
\param[in] id ArrayFire device id
\returns \ref af_err error code
\ingroup cuda_mat
+/
af_err afcu_get_stream(cudaStream_t* stream, int id);
//#endif
//#if AF_API_VERSION >= 31
/+
Get the native device id of the CUDA device with \p id in ArrayFire context
\param[out] nativeid native device id of the CUDA device with \p id in ArrayFire context
\param[in] id ArrayFire device id
\returns \ref af_err error code
\ingroup cuda_mat
+/
af_err afcu_get_native_id(int* nativeid, int id);
//#endif
//#if AF_API_VERSION >= 32
/+
Set the CUDA device with given native id as the active device for ArrayFire
\param[in] nativeid native device id of the CUDA device
\returns \ref af_err error code
\ingroup cuda_mat
+/
af_err afcu_set_native_id(int nativeid);
//#endif
}
|
D
|
/**
* This is a low-level messaging API upon which more structured or restrictive
* APIs may be built. The general idea is that every messageable entity is
* represented by a common handle type (called a Cid in this implementation),
* which allows messages to be sent to in-process threads, on-host processes,
* and foreign-host processes using the same interface. This is an important
* aspect of scalability because it allows the components of a program to be
* spread across available resources with few to no changes to the actual
* implementation.
*
* Right now, only in-process threads are supported and referenced by a more
* specialized handle called a Tid. It is effectively a subclass of Cid, with
* additional features specific to in-process messaging.
*
* Synposis:
* ---
* import std.stdio;
* import std.concurrency;
*
* void spawnedFunc(Tid tid)
* {
* // Receive a message from the owner thread.
* receive(
* (int i) { writeln("Received the number ", i);}
* );
*
* // Send a message back to the owner thread
* // indicating success.
* send(tid, true);
* }
*
* void main()
* {
* // Start spawnedFunc in a new thread.
* auto tid = spawn(&spawnedFunc, thisTid);
*
* // Send the number 42 to this new thread.
* send(tid, 42);
*
* // Receive the result code.
* auto wasSuccessful = receiveOnly!(bool);
* assert(wasSuccessful);
* writeln("Successfully printed number.");
* }
* ---
*
* Copyright: Copyright Sean Kelly 2009 - 2010.
* License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
* Authors: Sean Kelly, Alex Rønne Petersen
* Source: $(PHOBOSSRC std/_concurrency.d)
*/
/* Copyright Sean Kelly 2009 - 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)
*/
module std.concurrency;
public
{
import std.variant;
}
private
{
import core.thread;
import core.sync.mutex;
import core.sync.condition;
import std.algorithm;
import std.datetime;
import std.exception;
import std.range;
import std.string;
import std.traits;
import std.typecons;
import std.typetuple;
template hasLocalAliasing(T...)
{
static if( !T.length )
enum hasLocalAliasing = false;
else
enum hasLocalAliasing = (std.traits.hasLocalAliasing!(T[0]) && !is(T[0] == Tid)) ||
std.concurrency.hasLocalAliasing!(T[1 .. $]);
}
enum MsgType
{
standard,
priority,
linkDead,
}
struct Message
{
MsgType type;
Variant data;
this(T...)( MsgType t, T vals )
if( T.length < 1 )
{
static assert( false, "messages must contain at least one item" );
}
this(T...)( MsgType t, T vals )
if( T.length == 1 )
{
type = t;
data = vals[0];
}
this(T...)( MsgType t, T vals )
if( T.length > 1 )
{
type = t;
data = Tuple!(T)( vals );
}
@property auto convertsTo(T...)()
{
static if( T.length == 1 )
return is( T[0] == Variant ) ||
data.convertsTo!(T);
else
return data.convertsTo!(Tuple!(T));
}
@property auto get(T...)()
{
static if( T.length == 1 )
{
static if( is( T[0] == Variant ) )
return data;
else
return data.get!(T);
}
else
{
return data.get!(Tuple!(T));
}
}
auto map(Op)( Op op )
{
alias Args = ParameterTypeTuple!(Op);
static if( Args.length == 1 )
{
static if( is( Args[0] == Variant ) )
return op( data );
else
return op( data.get!(Args) );
}
else
{
return op( data.get!(Tuple!(Args)).expand );
}
}
}
void checkops(T...)( T ops )
{
foreach( i, t1; T )
{
static assert( isFunctionPointer!t1 || isDelegate!t1 );
alias a1 = ParameterTypeTuple!(t1);
alias r1 = ReturnType!(t1);
static if( i < T.length - 1 && is( r1 == void ) )
{
static assert( a1.length != 1 || !is( a1[0] == Variant ),
"function with arguments " ~ a1.stringof ~
" occludes successive function" );
foreach( t2; T[i+1 .. $] )
{
static assert( isFunctionPointer!t2 || isDelegate!t2 );
alias a2 = ParameterTypeTuple!(t2);
static assert( !is( a1 == a2 ),
"function with arguments " ~ a1.stringof ~
" occludes successive function" );
}
}
}
}
MessageBox mbox;
bool[Tid] links;
Tid owner;
}
static ~this()
{
if( mbox !is null )
{
mbox.close();
auto me = thisTid;
foreach( tid; links.keys )
_send( MsgType.linkDead, tid, me );
if( owner != Tid.init )
_send( MsgType.linkDead, owner, me );
}
}
//////////////////////////////////////////////////////////////////////////////
// Exceptions
//////////////////////////////////////////////////////////////////////////////
/**
* Thrown on calls to $(D receiveOnly) if a message other than the type
* the receiving thread expected is sent.
*/
class MessageMismatch : Exception
{
this( string msg = "Unexpected message type" )
{
super( msg );
}
}
/**
* Thrown on calls to $(D receive) if the thread that spawned the receiving
* thread has terminated and no more messages exist.
*/
class OwnerTerminated : Exception
{
this( Tid t, string msg = "Owner terminated" )
{
super( msg );
tid = t;
}
Tid tid;
}
/**
* Thrown if a linked thread has terminated.
*/
class LinkTerminated : Exception
{
this( Tid t, string msg = "Link terminated" )
{
super( msg );
tid = t;
}
Tid tid;
}
/**
* Thrown if a message was sent to a thread via
* $(XREF concurrency, prioritySend) and the receiver does not have a handler
* for a message of this type.
*/
class PriorityMessageException : Exception
{
this( Variant vals )
{
super( "Priority message" );
message = vals;
}
/**
* The message that was sent.
*/
Variant message;
}
/**
* Thrown on mailbox crowding if the mailbox is configured with
* $(D OnCrowding.throwException).
*/
class MailboxFull : Exception
{
this( Tid t, string msg = "Mailbox full" )
{
super( msg );
tid = t;
}
Tid tid;
}
/**
* Thrown when a Tid is missing, e.g. when $(D ownerTid) doesn't
* find an owner thread.
*/
class TidMissingException : Exception
{
this(string msg, string file = __FILE__, size_t line = __LINE__)
{
super(msg, file, line);
}
}
//////////////////////////////////////////////////////////////////////////////
// Thread ID
//////////////////////////////////////////////////////////////////////////////
/**
* An opaque type used to represent a logical local process.
*/
struct Tid
{
private:
this( MessageBox m )
{
mbox = m;
}
MessageBox mbox;
}
/**
* Returns the caller's Tid.
*/
@property Tid thisTid()
{
if( mbox )
return Tid( mbox );
mbox = new MessageBox;
return Tid( mbox );
}
/**
* Return the Tid of the thread which
* spawned the caller's thread.
*
* Throws: A $(D TidMissingException) exception if
* there is no owner thread.
*/
@property Tid ownerTid()
{
enforceEx!TidMissingException(owner.mbox !is null, "Error: Thread has no owner thread.");
return owner;
}
unittest
{
static void fun()
{
string res = receiveOnly!string();
assert(res == "Main calling");
ownerTid.send("Child responding");
}
assertThrown!TidMissingException(ownerTid);
auto child = spawn(&fun);
child.send("Main calling");
string res = receiveOnly!string();
assert(res == "Child responding");
}
//////////////////////////////////////////////////////////////////////////////
// Thread Creation
//////////////////////////////////////////////////////////////////////////////
private template isSpawnable(F, T...)
{
template isParamsImplicitlyConvertible(F1, F2, int i=0)
{
alias param1 = ParameterTypeTuple!F1;
alias param2 = ParameterTypeTuple!F2;
static if (param1.length != param2.length)
enum isParamsImplicitlyConvertible = false;
else static if (param1.length == i)
enum isParamsImplicitlyConvertible = true;
else static if (isImplicitlyConvertible!(param2[i], param1[i]))
enum isParamsImplicitlyConvertible = isParamsImplicitlyConvertible!(F1, F2, i+1);
else
enum isParamsImplicitlyConvertible = false;
}
enum isSpawnable = isCallable!F
&& is(ReturnType!F == void)
&& isParamsImplicitlyConvertible!(F, void function(T))
&& ( isFunctionPointer!F
|| !hasUnsharedAliasing!F);
}
/**
* Executes the supplied function in a new context represented by $(D Tid). The
* calling context is designated as the owner of the new context. When the
* owner context terminated an $(D OwnerTerminated) message will be sent to the
* new context, causing an $(D OwnerTerminated) exception to be thrown on
* $(D receive()).
*
* Params:
* fn = The function to execute.
* args = Arguments to the function.
*
* Returns:
* A Tid representing the new context.
*
* Notes:
* $(D args) must not have unshared aliasing. In other words, all arguments
* to $(D fn) must either be $(D shared) or $(D immutable) or have no
* pointer indirection. This is necessary for enforcing isolation among
* threads.
*
* Example:
* ---
* import std.stdio, std.concurrency;
*
* void f1(string str)
* {
* writeln(str);
* }
*
* void f2(char[] str)
* {
* writeln(str);
* }
*
* void main()
* {
* auto str = "Hello, world";
*
* // Works: string is immutable.
* auto tid1 = spawn(&f1, str);
*
* // Fails: char[] has mutable aliasing.
* auto tid2 = spawn(&f2, str.dup);
* }
* ---
*/
Tid spawn(F, T...)( F fn, T args )
if ( isSpawnable!(F, T) )
{
static assert( !hasLocalAliasing!(T),
"Aliases to mutable thread-local data not allowed." );
return _spawn( false, fn, args );
}
/**
* Executes the supplied function in a new context represented by Tid. This
* new context is linked to the calling context so that if either it or the
* calling context terminates a LinkTerminated message will be sent to the
* other, causing a LinkTerminated exception to be thrown on receive(). The
* owner relationship from spawn() is preserved as well, so if the link
* between threads is broken, owner termination will still result in an
* OwnerTerminated exception to be thrown on receive().
*
* Params:
* fn = The function to execute.
* args = Arguments to the function.
*
* Returns:
* A Tid representing the new context.
*/
Tid spawnLinked(F, T...)( F fn, T args )
if ( isSpawnable!(F, T) )
{
static assert( !hasLocalAliasing!(T),
"Aliases to mutable thread-local data not allowed." );
return _spawn( true, fn, args );
}
/*
*
*/
private Tid _spawn(F, T...)( bool linked, F fn, T args )
if ( isSpawnable!(F, T) )
{
// TODO: MessageList and &exec should be shared.
auto spawnTid = Tid( new MessageBox );
auto ownerTid = thisTid;
void exec()
{
mbox = spawnTid.mbox;
owner = ownerTid;
fn( args );
}
// TODO: MessageList and &exec should be shared.
auto t = new Thread( &exec ); t.start();
links[spawnTid] = linked;
return spawnTid;
}
unittest
{
void function() fn1;
void function(int) fn2;
static assert( __traits(compiles, spawn(fn1)));
static assert( __traits(compiles, spawn(fn2, 2)));
static assert(!__traits(compiles, spawn(fn1, 1)));
static assert(!__traits(compiles, spawn(fn2)));
void delegate(int) shared dg1;
shared(void delegate(int)) dg2;
shared(void delegate(long) shared) dg3;
shared(void delegate(real, int , long) shared) dg4;
void delegate(int) immutable dg5;
void delegate(int) dg6;
static assert( __traits(compiles, spawn(dg1, 1)));
static assert( __traits(compiles, spawn(dg2, 2)));
static assert( __traits(compiles, spawn(dg3, 3)));
static assert( __traits(compiles, spawn(dg4, 4, 4, 4)));
static assert( __traits(compiles, spawn(dg5, 5)));
static assert(!__traits(compiles, spawn(dg6, 6)));
auto callable1 = new class{ void opCall(int) shared {} };
auto callable2 = cast(shared)new class{ void opCall(int) shared {} };
auto callable3 = new class{ void opCall(int) immutable {} };
auto callable4 = cast(immutable)new class{ void opCall(int) immutable {} };
auto callable5 = new class{ void opCall(int) {} };
auto callable6 = cast(shared)new class{ void opCall(int) immutable {} };
auto callable7 = cast(immutable)new class{ void opCall(int) shared {} };
auto callable8 = cast(shared)new class{ void opCall(int) const shared {} };
auto callable9 = cast(const shared)new class{ void opCall(int) shared {} };
auto callable10 = cast(const shared)new class{ void opCall(int) const shared {} };
auto callable11 = cast(immutable)new class{ void opCall(int) const shared {} };
static assert(!__traits(compiles, spawn(callable1, 1)));
static assert( __traits(compiles, spawn(callable2, 2)));
static assert(!__traits(compiles, spawn(callable3, 3)));
static assert( __traits(compiles, spawn(callable4, 4)));
static assert(!__traits(compiles, spawn(callable5, 5)));
static assert(!__traits(compiles, spawn(callable6, 6)));
static assert(!__traits(compiles, spawn(callable7, 7)));
static assert( __traits(compiles, spawn(callable8, 8)));
static assert(!__traits(compiles, spawn(callable9, 9)));
static assert( __traits(compiles, spawn(callable10, 10)));
static assert( __traits(compiles, spawn(callable11, 11)));
}
//////////////////////////////////////////////////////////////////////////////
// Sending and Receiving Messages
//////////////////////////////////////////////////////////////////////////////
/**
* Sends the supplied value to the context represented by tid. As with
* $(XREF concurrency, spawn), $(D T) must not have unshared aliasing.
*/
void send(T...)( Tid tid, T vals )
{
static assert( !hasLocalAliasing!(T),
"Aliases to mutable thread-local data not allowed." );
_send( tid, vals );
}
/**
* Send a message to $(D tid) but place it at the front of $(D tid)'s message
* queue instead of at the back. This function is typically used for
* out-of-band communication, to signal exceptional conditions, etc.
*/
void prioritySend(T...)( Tid tid, T vals )
{
static assert( !hasLocalAliasing!(T),
"Aliases to mutable thread-local data not allowed." );
_send( MsgType.priority, tid, vals );
}
/*
* ditto
*/
private void _send(T...)( Tid tid, T vals )
{
_send( MsgType.standard, tid, vals );
}
/*
* Implementation of send. This allows parameter checking to be different for
* both Tid.send() and .send().
*/
private void _send(T...)( MsgType type, Tid tid, T vals )
{
auto msg = Message( type, vals );
tid.mbox.put( msg );
}
/**
* Receive a message from another thread, or block if no messages of the
* specified types are available. This function works by pattern matching
* a message against a set of delegates and executing the first match found.
*
* If a delegate that accepts a $(XREF variant, Variant) is included as
* the last argument to $(D receive), it will match any message that was not
* matched by an earlier delegate. If more than one argument is sent,
* the $(D Variant) will contain a $(XREF typecons, Tuple) of all values
* sent.
*
* Example:
* ---
* import std.stdio;
* import std.variant;
* import std.concurrency;
*
* void spawnedFunction()
* {
* receive(
* (int i) { writeln("Received an int."); },
* (float f) { writeln("Received a float."); },
* (Variant v) { writeln("Received some other type."); }
* );
* }
*
* void main()
* {
* auto tid = spawn(&spawnedFunction);
* send(tid, 42);
* }
* ---
*/
void receive(T...)( T ops )
in
{
assert(mbox !is null, "Cannot receive a message until a thread was spawned "~
"or thisTid was passed to a running thread.");
}
body
{
checkops( ops );
mbox.get( ops );
}
unittest
{
assert( __traits( compiles,
{
receive( (Variant x) {} );
receive( (int x) {}, (Variant x) {} );
} ) );
assert( !__traits( compiles,
{
receive( (Variant x) {}, (int x) {} );
} ) );
assert( !__traits( compiles,
{
receive( (int x) {}, (int x) {} );
} ) );
}
// Make sure receive() works with free functions as well.
version (unittest)
{
private void receiveFunction(int x) {}
}
unittest
{
assert( __traits( compiles,
{
receive( &receiveFunction );
receive( &receiveFunction, (Variant x) {} );
} ) );
}
private template receiveOnlyRet(T...)
{
static if( T.length == 1 )
alias receiveOnlyRet = T[0];
else
alias receiveOnlyRet = Tuple!(T);
}
/**
* Receives only messages with arguments of types $(D T).
*
* Throws: $(D MessageMismatch) if a message of types other than $(D T)
* is received.
*
* Returns: The received message. If $(D T.length) is greater than one,
* the message will be packed into a $(XREF typecons, Tuple).
*
* Example:
* ---
* import std.concurrency;
*
* void spawnedFunc()
* {
* auto msg = receiveOnly!(int, string)();
* assert(msg[0] == 42);
* assert(msg[1] == "42");
* }
*
* void main()
* {
* auto tid = spawn(&spawnedFunc);
* send(tid, 42, "42");
* }
* ---
*/
receiveOnlyRet!(T) receiveOnly(T...)()
in
{
assert(mbox !is null, "Cannot receive a message until a thread was spawned "~
"or thisTid was passed to a running thread.");
}
body
{
Tuple!(T) ret;
mbox.get( ( T val )
{
static if( T.length )
ret.field = val;
},
( LinkTerminated e )
{
throw e;
},
( OwnerTerminated e )
{
throw e;
},
( Variant val )
{
static if (T.length > 1)
string exp = T.stringof;
else
string exp = T[0].stringof;
throw new MessageMismatch(
format("Unexpected message type: expected '%s', got '%s'",
exp, val.type.toString()));
} );
static if( T.length == 1 )
return ret[0];
else
return ret;
}
unittest
{
static void t1(Tid mainTid)
{
try
{
receiveOnly!string();
mainTid.send("");
}
catch (Throwable th)
{
mainTid.send(th.msg);
}
}
auto tid = spawn(&t1, thisTid);
tid.send(1);
string result = receiveOnly!string();
assert(result == "Unexpected message type: expected 'string', got 'int'");
}
/++
Same as $(D receive) except that rather than wait forever for a message,
it waits until either it receives a message or the given
$(CXREF time, Duration) has passed. It returns $(D true) if it received a
message and $(D false) if it timed out waiting for one.
+/
bool receiveTimeout(T...)( Duration duration, T ops )
in
{
assert(mbox !is null, "Cannot receive a message until a thread was spawned "~
"or thisTid was passed to a running thread.");
}
body
{
checkops( ops );
return mbox.get( duration, ops );
}
unittest
{
assert( __traits( compiles,
{
receiveTimeout( dur!"msecs"(0), (Variant x) {} );
receiveTimeout( dur!"msecs"(0), (int x) {}, (Variant x) {} );
} ) );
assert( !__traits( compiles,
{
receiveTimeout( dur!"msecs"(0), (Variant x) {}, (int x) {} );
} ) );
assert( !__traits( compiles,
{
receiveTimeout( dur!"msecs"(0), (int x) {}, (int x) {} );
} ) );
assert( __traits( compiles,
{
receiveTimeout( dur!"msecs"(10), (int x) {}, (Variant x) {} );
} ) );
}
//////////////////////////////////////////////////////////////////////////////
// MessageBox Limits
//////////////////////////////////////////////////////////////////////////////
/**
* These behaviors may be specified when a mailbox is full.
*/
enum OnCrowding
{
block, /// Wait until room is available.
throwException, /// Throw a MailboxFull exception.
ignore /// Abort the send and return.
}
private
{
bool onCrowdingBlock( Tid tid )
{
return true;
}
bool onCrowdingThrow( Tid tid )
{
throw new MailboxFull( tid );
}
bool onCrowdingIgnore( Tid tid )
{
return false;
}
}
/**
* Sets a limit on the maximum number of user messages allowed in the mailbox.
* If this limit is reached, the caller attempting to add a new message will
* execute the behavior specified by doThis. If messages is zero, the mailbox
* is unbounded.
*
* Params:
* tid = The Tid of the thread for which this limit should be set.
* messages = The maximum number of messages or zero if no limit.
* doThis = The behavior executed when a message is sent to a full
* mailbox.
*/
void setMaxMailboxSize( Tid tid, size_t messages, OnCrowding doThis )
{
final switch( doThis )
{
case OnCrowding.block:
return tid.mbox.setMaxMsgs( messages, &onCrowdingBlock );
case OnCrowding.throwException:
return tid.mbox.setMaxMsgs( messages, &onCrowdingThrow );
case OnCrowding.ignore:
return tid.mbox.setMaxMsgs( messages, &onCrowdingIgnore );
}
}
/**
* Sets a limit on the maximum number of user messages allowed in the mailbox.
* If this limit is reached, the caller attempting to add a new message will
* execute onCrowdingDoThis. If messages is zero, the mailbox is unbounded.
*
* Params:
* tid = The Tid of the thread for which this limit should be set.
* messages = The maximum number of messages or zero if no limit.
* onCrowdingDoThis = The routine called when a message is sent to a full
* mailbox.
*/
void setMaxMailboxSize( Tid tid, size_t messages, bool function(Tid) onCrowdingDoThis )
{
tid.mbox.setMaxMsgs( messages, onCrowdingDoThis );
}
//////////////////////////////////////////////////////////////////////////////
// Name Registration
//////////////////////////////////////////////////////////////////////////////
private
{
__gshared Tid[string] tidByName;
__gshared string[][Tid] namesByTid;
__gshared Mutex registryLock;
}
shared static this()
{
registryLock = new Mutex;
}
static ~this()
{
auto me = thisTid;
synchronized( registryLock )
{
if( auto allNames = me in namesByTid )
{
foreach( name; *allNames )
tidByName.remove( name );
namesByTid.remove( me );
}
}
}
/**
* Associates name with tid in a process-local map. When the thread
* represented by tid terminates, any names associated with it will be
* automatically unregistered.
*
* Params:
* name = The name to associate with tid.
* tid = The tid register by name.
*
* Returns:
* true if the name is available and tid is not known to represent a
* defunct thread.
*/
bool register( string name, Tid tid )
{
synchronized( registryLock )
{
if( name in tidByName )
return false;
if( tid.mbox.isClosed )
return false;
namesByTid[tid] ~= name;
tidByName[name] = tid;
return true;
}
}
/**
* Removes the registered name associated with a tid.
*
* Params:
* name = The name to unregister.
*
* Returns:
* true if the name is registered, false if not.
*/
bool unregister( string name )
{
synchronized( registryLock )
{
if( auto tid = name in tidByName )
{
auto allNames = *tid in namesByTid;
auto pos = countUntil( *allNames, name );
remove!(SwapStrategy.unstable)( *allNames, pos );
tidByName.remove( name );
return true;
}
return false;
}
}
/**
* Gets the Tid associated with name.
*
* Params:
* name = The name to locate within the registry.
*
* Returns:
* The associated Tid or Tid.init if name is not registered.
*/
Tid locate( string name )
{
synchronized( registryLock )
{
if( auto tid = name in tidByName )
return *tid;
return Tid.init;
}
}
//////////////////////////////////////////////////////////////////////////////
// MessageBox Implementation
//////////////////////////////////////////////////////////////////////////////
private
{
/*
* A MessageBox is a message queue for one thread. Other threads may send
* messages to this owner by calling put(), and the owner receives them by
* calling get(). The put() call is therefore effectively shared and the
* get() call is effectively local. setMaxMsgs may be used by any thread
* to limit the size of the message queue.
*/
class MessageBox
{
this()
{
m_lock = new Mutex;
m_putMsg = new Condition( m_lock );
m_notFull = new Condition( m_lock );
m_closed = false;
}
/*
*
*/
final @property bool isClosed() const
{
synchronized( m_lock )
{
return m_closed;
}
}
/*
* Sets a limit on the maximum number of user messages allowed in the
* mailbox. If this limit is reached, the caller attempting to add
* a new message will execute call. If num is zero, there is no limit
* on the message queue.
*
* Params:
* num = The maximum size of the queue or zero if the queue is
* unbounded.
* call = The routine to call when the queue is full.
*/
final void setMaxMsgs( size_t num, bool function(Tid) call )
{
synchronized( m_lock )
{
m_maxMsgs = num;
m_onMaxMsgs = call;
}
}
/*
* If maxMsgs is not set, the message is added to the queue and the
* owner is notified. If the queue is full, the message will still be
* accepted if it is a control message, otherwise onCrowdingDoThis is
* called. If the routine returns true, this call will block until
* the owner has made space available in the queue. If it returns
* false, this call will abort.
*
* Params:
* msg = The message to put in the queue.
*
* Throws:
* An exception if the queue is full and onCrowdingDoThis throws.
*/
final void put( ref Message msg )
{
synchronized( m_lock )
{
// TODO: Generate an error here if m_closed is true, or maybe
// put a message in the caller's queue?
if( !m_closed )
{
while( true )
{
if( isPriorityMsg( msg ) )
{
m_sharedPty.put( msg );
m_putMsg.notify();
return;
}
if( !mboxFull() || isControlMsg( msg ) )
{
m_sharedBox.put( msg );
m_putMsg.notify();
return;
}
if( m_onMaxMsgs !is null && !m_onMaxMsgs( thisTid ) )
{
return;
}
m_putQueue++;
m_notFull.wait();
m_putQueue--;
}
}
}
}
/*
* Matches ops against each message in turn until a match is found.
*
* Params:
* ops = The operations to match. Each may return a bool to indicate
* whether a message with a matching type is truly a match.
*
* Returns:
* true if a message was retrieved and false if not (such as if a
* timeout occurred).
*
* Throws:
* LinkTerminated if a linked thread terminated, or OwnerTerminated
* if the owner thread terminates and no existing messages match the
* supplied ops.
*/
final bool get(T...)( scope T vals )
{
static assert( T.length );
static if( isImplicitlyConvertible!(T[0], Duration) )
{
alias Ops = TypeTuple!(T[1 .. $]);
alias ops = vals[1 .. $];
assert( vals[0] >= dur!"msecs"(0) );
enum timedWait = true;
Duration period = vals[0];
}
else
{
alias Ops = TypeTuple!(T);
alias ops = vals[0 .. $];
enum timedWait = false;
}
bool onStandardMsg( ref Message msg )
{
foreach( i, t; Ops )
{
alias Args = ParameterTypeTuple!(t);
auto op = ops[i];
if( msg.convertsTo!(Args) )
{
static if( is( ReturnType!(t) == bool ) )
{
return msg.map( op );
}
else
{
msg.map( op );
return true;
}
}
}
return false;
}
bool onLinkDeadMsg( ref Message msg )
{
assert( msg.convertsTo!(Tid) );
auto tid = msg.get!(Tid);
if( bool* depends = (tid in links) )
{
links.remove( tid );
// Give the owner relationship precedence.
if( *depends && tid != owner )
{
auto e = new LinkTerminated( tid );
auto m = Message( MsgType.standard, e );
if( onStandardMsg( m ) )
return true;
throw e;
}
}
if( tid == owner )
{
owner = Tid.init;
auto e = new OwnerTerminated( tid );
auto m = Message( MsgType.standard, e );
if( onStandardMsg( m ) )
return true;
throw e;
}
return false;
}
bool onControlMsg( ref Message msg )
{
switch( msg.type )
{
case MsgType.linkDead:
return onLinkDeadMsg( msg );
default:
return false;
}
}
bool scan( ref ListT list )
{
for( auto range = list[]; !range.empty; )
{
// Only the message handler will throw, so if this occurs
// we can be certain that the message was handled.
scope(failure) list.removeAt( range );
if( isControlMsg( range.front ) )
{
if( onControlMsg( range.front ) )
{
// Although the linkDead message is a control message,
// it can be handled by the user. Since the linkDead
// message throws if not handled, if we get here then
// it has been handled and we can return from receive.
// This is a weird special case that will have to be
// handled in a more general way if more are added.
if( !isLinkDeadMsg( range.front ) )
{
list.removeAt( range );
continue;
}
list.removeAt( range );
return true;
}
range.popFront();
continue;
}
else
{
if( onStandardMsg( range.front ) )
{
list.removeAt( range );
return true;
}
range.popFront();
continue;
}
}
return false;
}
bool pty( ref ListT list )
{
if( !list.empty )
{
auto range = list[];
if( onStandardMsg( range.front ) )
{
list.removeAt( range );
return true;
}
if( range.front.convertsTo!(Throwable) )
throw range.front.get!(Throwable);
else if( range.front.convertsTo!(shared(Throwable)) )
throw range.front.get!(shared(Throwable));
else throw new PriorityMessageException( range.front.data );
}
return false;
}
static if( timedWait )
{
auto limit = Clock.currTime( UTC() ) + period;
}
while( true )
{
ListT arrived;
if( pty( m_localPty ) ||
scan( m_localBox ) )
{
return true;
}
synchronized( m_lock )
{
updateMsgCount();
while( m_sharedPty.empty && m_sharedBox.empty )
{
// NOTE: We're notifying all waiters here instead of just
// a few because the onCrowding behavior may have
// changed and we don't want to block sender threads
// unnecessarily if the new behavior is not to block.
// This will admittedly result in spurious wakeups
// in other situations, but what can you do?
if( m_putQueue && !mboxFull() )
m_notFull.notifyAll();
static if( timedWait )
{
if( period.isNegative || !m_putMsg.wait( period ) )
return false;
}
else
{
m_putMsg.wait();
}
}
m_localPty.put( m_sharedPty );
arrived.put( m_sharedBox );
}
if( m_localPty.empty )
{
scope(exit) m_localBox.put( arrived );
if( scan( arrived ) )
return true;
else
{
static if( timedWait )
{
period = limit - Clock.currTime( UTC() );
}
continue;
}
}
m_localBox.put( arrived );
pty( m_localPty );
return true;
}
}
/*
* Called on thread termination. This routine processes any remaining
* control messages, clears out message queues, and sets a flag to
* reject any future messages.
*/
final void close()
{
void onLinkDeadMsg( ref Message msg )
{
assert( msg.convertsTo!(Tid) );
auto tid = msg.get!(Tid);
links.remove( tid );
if( tid == owner )
owner = Tid.init;
}
void sweep( ref ListT list )
{
for( auto range = list[]; !range.empty; range.popFront() )
{
if( range.front.type == MsgType.linkDead )
onLinkDeadMsg( range.front );
}
}
ListT arrived;
sweep( m_localBox );
synchronized( m_lock )
{
arrived.put( m_sharedBox );
m_closed = true;
}
m_localBox.clear();
sweep( arrived );
}
private:
//////////////////////////////////////////////////////////////////////
// Routines involving shared data, m_lock must be held.
//////////////////////////////////////////////////////////////////////
bool mboxFull()
{
return m_maxMsgs &&
m_maxMsgs <= m_localMsgs + m_sharedBox.length;
}
void updateMsgCount()
{
m_localMsgs = m_localBox.length;
}
private:
//////////////////////////////////////////////////////////////////////
// Routines involving local data only, no lock needed.
//////////////////////////////////////////////////////////////////////
pure final bool isControlMsg( ref Message msg )
{
return msg.type != MsgType.standard &&
msg.type != MsgType.priority;
}
pure final bool isPriorityMsg( ref Message msg )
{
return msg.type == MsgType.priority;
}
pure final bool isLinkDeadMsg( ref Message msg )
{
return msg.type == MsgType.linkDead;
}
private:
//////////////////////////////////////////////////////////////////////
// Type declarations.
//////////////////////////////////////////////////////////////////////
alias OnMaxFn = bool function(Tid);
alias ListT = List!(Message);
private:
//////////////////////////////////////////////////////////////////////
// Local data, no lock needed.
//////////////////////////////////////////////////////////////////////
ListT m_localBox;
ListT m_localPty;
private:
//////////////////////////////////////////////////////////////////////
// Shared data, m_lock must be held on access.
//////////////////////////////////////////////////////////////////////
Mutex m_lock;
Condition m_putMsg;
Condition m_notFull;
size_t m_putQueue;
ListT m_sharedBox;
ListT m_sharedPty;
OnMaxFn m_onMaxMsgs;
size_t m_localMsgs;
size_t m_maxMsgs;
bool m_closed;
}
/*
*
*/
struct List(T)
{
struct Range
{
@property bool empty() const
{
return !m_prev.next;
}
@property ref T front()
{
enforce( m_prev.next );
return m_prev.next.val;
}
@property void front( T val )
{
enforce( m_prev.next );
m_prev.next.val = val;
}
void popFront()
{
enforce( m_prev.next );
m_prev = m_prev.next;
}
//T moveFront()
//{
// enforce( m_prev.next );
// return move( m_prev.next.val );
//}
private this( Node* p )
{
m_prev = p;
}
private Node* m_prev;
}
/*
*
*/
void put( T val )
{
put( new Node( val ) );
}
/*
*
*/
void put( ref List!(T) rhs )
{
if( !rhs.empty )
{
put( rhs.m_first );
while( m_last.next !is null )
{
m_last = m_last.next;
m_count++;
}
rhs.m_first = null;
rhs.m_last = null;
rhs.m_count = 0;
}
}
/*
*
*/
Range opSlice()
{
return Range( cast(Node*) &m_first );
}
/*
*
*/
void removeAt( Range r )
{
assert( m_count );
Node* n = r.m_prev;
enforce( n && n.next );
if( m_last is m_first )
m_last = null;
else if( m_last is n.next )
m_last = n;
Node* todelete = n.next;
n.next = n.next.next;
//delete todelete;
m_count--;
}
/*
*
*/
@property size_t length()
{
return m_count;
}
/*
*
*/
void clear()
{
m_first = m_last = null;
m_count = 0;
}
/*
*
*/
@property bool empty()
{
return m_first is null;
}
private:
struct Node
{
Node* next;
T val;
this( T v )
{
val = v;
}
}
/*
*
*/
void put( Node* n )
{
m_count++;
if( !empty )
{
m_last.next = n;
m_last = n;
return;
}
m_first = n;
m_last = n;
}
Node* m_first;
Node* m_last;
size_t m_count;
}
}
version( unittest )
{
import std.stdio;
void testfn( Tid tid )
{
receive( (float val) { assert(0); },
(int val, int val2)
{
assert( val == 42 && val2 == 86 );
} );
receive( (Tuple!(int, int) val)
{
assert( val[0] == 42 &&
val[1] == 86 );
} );
receive( (Variant val) {} );
receive( (string val)
{
if( "the quick brown fox" != val )
return false;
return true;
},
(string val)
{
assert( false );
} );
prioritySend( tid, "done" );
}
void runTest( Tid tid )
{
send( tid, 42, 86 );
send( tid, tuple(42, 86) );
send( tid, "hello", "there" );
send( tid, "the quick brown fox" );
receive( (string val) { assert(val == "done"); } );
}
unittest
{
auto tid = spawn( &testfn, thisTid );
runTest( tid );
// Run the test again with a limited mailbox size.
tid = spawn( &testfn, thisTid );
setMaxMailboxSize( tid, 2, OnCrowding.block );
runTest( tid );
}
}
|
D
|
instance SEK_8041_NOVIZE(Npc_Default)
{
name[0] = NAME_SEK;
guild = GIL_SEK;
id = 8041;
voice = 6;
flags = 0;
npcType = npctype_main;
B_SetAttributesToChapter(self,2);
level = 1;
fight_tactic = FAI_HUMAN_COWARD;
EquipItem(self,ItMw_1h_Vlk_Axe);
B_CreateAmbientInv(self);
B_SetNpcVisual(self,MALE,"Hum_Head_Bald",FACE_N_SEKTANT_4,BodyTex_N,itar_sekbed);
Mdl_ApplyOverlayMds(self,"Humans_Relaxed.mds");
B_GiveNpcTalents(self);
B_SetFightSkills(self,30);
daily_routine = rtn_start_8041;
};
func void rtn_start_8041()
{
TA_Rake_FP(8,0,21,0,"NW_FOREST_PATH_PSIGROUP2_02");
TA_Sleep(21,0,8,0,"NW_FOREST_PATH_PSIGROUP2_02_N");
};
func void rtn_tot_8041()
{
TA_Stand_WP(8,0,20,0,"TOT");
TA_Stand_WP(20,0,8,0,"TOT");
};
|
D
|
module geom.Plane3d;
import linalg.Vector;
//== CLASS DEFINITION =========================================================
/** \class Plane3d Plane3d.hh <OpenMesh/Tools/VDPM/Plane3d.hh>
ax + by + cz + d = 0
*/
struct Плоскость3м
{
public:
alias Век3п т_вектор;
alias т_вектор.тип_значения т_знач;
public:
static Плоскость3м opCall()
{
Плоскость3м M; with(M) {
d_ = 0;
} return M;
}
static Плоскость3м opCall(ref т_вектор _dir, ref т_вектор _pnt)
{
Плоскость3м M; with (M) {
n_ = _dir;
n_.нормализуй();
d_ = -точка(n_,_pnt);
} return M;
}
т_знач дистанцияСоЗнаком( ref Век3п _p)
{
return точка(n_ , _p) + d_;
}
public:
т_вектор n_;
т_знач d_;
}
unittest {
Плоскость3м p;
auto q = Плоскость3м( Век3п(0,1,0), Век3п(1,0,1) );
p.дистанцияСоЗнаком( Век3п(1,1,1) );
}
|
D
|
/**
* X9.42 PRF
*
* Copyright:
* (C) 1999-2007 Jack Lloyd
* (C) 2014-2015 Etienne Cimon
*
* License:
* Botan is released under the Simplified BSD License (see LICENSE.md)
*/
module botan.kdf.prf_x942;
import botan.constants;
static if (BOTAN_HAS_TLS || BOTAN_HAS_PUBLIC_KEY_CRYPTO):
import botan.kdf.kdf;
import botan.asn1.der_enc;
import botan.asn1.oids;
import botan.hash.sha160;
import botan.utils.loadstor;
import std.algorithm;
import botan.utils.types;
/**
* PRF from ANSI X9.42
*/
class X942PRF : KDF
{
public:
/*
* X9.42 PRF
*/
override SecureVector!ubyte derive(size_t key_len,
const(ubyte)* secret, size_t secret_len,
const(ubyte)* salt, size_t salt_len) const
{
auto hash = scoped!SHA160();
const OID kek_algo = OID(m_key_wrap_oid);
SecureVector!ubyte key;
uint counter = 1;
while (key.length != key_len && counter)
{
hash.update(secret, secret_len);
hash.update(
DEREncoder().startCons(ASN1Tag.SEQUENCE)
.startCons(ASN1Tag.SEQUENCE)
.encode(kek_algo)
.rawBytes(encodeX942Int(counter))
.endCons()
.encodeIf (salt_len != 0,
DEREncoder()
.startExplicit(0)
.encode(salt, salt_len, ASN1Tag.OCTET_STRING)
.endExplicit()
)
.startExplicit(2)
.rawBytes(encodeX942Int(cast(uint)(8 * key_len)))
.endExplicit()
.endCons().getContents()
);
SecureVector!ubyte digest = hash.finished();
const size_t needed = std.algorithm.min(digest.length, key_len - key.length);
key ~= digest.ptr[0 .. needed];
++counter;
}
return key;
}
override @property string name() const { return "X942_PRF(" ~ m_key_wrap_oid ~ ")"; }
override KDF clone() const { return new X942PRF(m_key_wrap_oid); }
/*
* X9.42 Constructor
*/
this(in string oid)
{
if (OIDS.haveOid(oid))
m_key_wrap_oid = OIDS.lookup(oid).toString();
else
m_key_wrap_oid = oid;
}
private:
string m_key_wrap_oid;
}
private:
/*
* Encode an integer as an OCTET STRING
*/
Vector!ubyte encodeX942Int(uint n)
{
ubyte[4] n_buf;
storeBigEndian(n, &n_buf);
return DEREncoder().encode(n_buf.ptr, 4, ASN1Tag.OCTET_STRING).getContentsUnlocked();
}
|
D
|
var int diego_coming;
instance DIA_Gerbrandt_EXIT(C_Info)
{
npc = VLK_403_Gerbrandt;
nr = 999;
condition = DIA_Gerbrandt_EXIT_Condition;
information = DIA_Gerbrandt_EXIT_Info;
permanent = TRUE;
description = Dialog_Ende;
};
func int DIA_Gerbrandt_EXIT_Condition()
{
return TRUE;
};
func void DIA_Gerbrandt_EXIT_Info()
{
if(DIEGO_COMING == TRUE)
{
DiegoNW = Hlp_GetNpc(PC_Thief_NW);
if(Diego_IsOnBoard == FALSE)
{
B_StartOtherRoutine(DiegoNW,"GERBRANDT");
};
Npc_ExchangeRoutine(self,"NEWLIFE");
B_StartOtherRoutine(GerbrandtsFrau,"NEWLIFE");
DIEGO_COMING = 2;
};
AI_StopProcessInfos(self);
};
instance DIA_Gerbrandt_PICKPOCKET(C_Info)
{
npc = VLK_403_Gerbrandt;
nr = 900;
condition = DIA_Gerbrandt_PICKPOCKET_Condition;
information = DIA_Gerbrandt_PICKPOCKET_Info;
permanent = TRUE;
description = "(It would be simple to steal his purse.)";
};
func int DIA_Gerbrandt_PICKPOCKET_Condition()
{
if((Npc_GetTalentSkill(other,NPC_TALENT_PICKPOCKET) == 1) && (self.aivar[AIV_PlayerHasPickedMyPocket] == FALSE) && (Npc_HasItems(self,ItSe_GoldPocket100) >= 1) && (other.attribute[ATR_DEXTERITY] >= (40 - Theftdiff)) && (DIEGO_COMING != TRUE))
{
return TRUE;
};
};
func void DIA_Gerbrandt_PICKPOCKET_Info()
{
Info_ClearChoices(DIA_Gerbrandt_PICKPOCKET);
Info_AddChoice(DIA_Gerbrandt_PICKPOCKET,Dialog_Back,DIA_Gerbrandt_PICKPOCKET_BACK);
Info_AddChoice(DIA_Gerbrandt_PICKPOCKET,DIALOG_PICKPOCKET,DIA_Gerbrandt_PICKPOCKET_DoIt);
};
func void DIA_Gerbrandt_PICKPOCKET_DoIt()
{
if(other.attribute[ATR_DEXTERITY] >= 44)
{
B_GiveInvItems(self,other,ItSe_GoldPocket100,1);
self.aivar[AIV_PlayerHasPickedMyPocket] = TRUE;
B_GiveThiefXP();
Info_ClearChoices(DIA_Gerbrandt_PICKPOCKET);
}
else
{
B_ResetThiefLevel();
AI_StopProcessInfos(self);
B_Attack(self,other,AR_Theft,1);
};
};
func void DIA_Gerbrandt_PICKPOCKET_BACK()
{
Info_ClearChoices(DIA_Gerbrandt_PICKPOCKET);
};
instance DIA_Gerbrandt_Hello(C_Info)
{
npc = VLK_403_Gerbrandt;
nr = 5;
condition = DIA_Gerbrandt_Hello_Condition;
information = DIA_Gerbrandt_Hello_Info;
permanent = FALSE;
description = "What are you doing here?";
};
func int DIA_Gerbrandt_Hello_Condition()
{
if((hero.guild != GIL_KDF) && (hero.guild != GIL_PAL) && (DIEGO_COMING == FALSE))
{
return TRUE;
};
};
func void DIA_Gerbrandt_Hello_Info()
{
AI_Output(other,self,"DIA_Gerbrandt_Hello_15_00"); //What are you doing here?
AI_Output(self,other,"DIA_Gerbrandt_Hello_10_01"); //Who are you, then? Looks like you're new and have no idea what goes on around here.
AI_Output(self,other,"DIA_Gerbrandt_Hello_10_02"); //They call me Gerbrandt. To you, that's: Mr. Gerbrandt, sir. Got it?
Info_ClearChoices(DIA_Gerbrandt_Hello);
Info_AddChoice(DIA_Gerbrandt_Hello,"I got it, Gerbrandt.",DIA_Gerbrandt_Hello_No);
Info_AddChoice(DIA_Gerbrandt_Hello,"I get the point, Mr. Gerbrandt, sir.",DIA_Gerbrandt_Hello_Yes);
};
func void DIA_Gerbrandt_Hello_No()
{
AI_Output(other,self,"DIA_Gerbrandt_Hello_No_15_00"); //I got it, Gerbrandt.
AI_Output(self,other,"DIA_Gerbrandt_Hello_No_10_01"); //Careful with that big mouth of yours. You had better show me a little more respect, or you're headed for all kinds of trouble here.
AI_Output(self,other,"DIA_Gerbrandt_Hello_No_10_02"); //I call the shots here. Whoever causes trouble has to answer to me and had better skip town in a hurry, because once I'm done with him, he'll wish he'd never laid eyes on me.
AI_Output(self,other,"DIA_Gerbrandt_Hello_No_10_03"); //Most people around the harbor work for me. If you're ever looking for work, you had better see to it that my memories of you are pleasant ones.
Info_ClearChoices(DIA_Gerbrandt_Hello);
};
func void DIA_Gerbrandt_Hello_Yes()
{
AI_Output(other,self,"DIA_Gerbrandt_Hello_Yes_15_00"); //I get the point, Mr. Gerbrandt, sir.
AI_Output(self,other,"DIA_Gerbrandt_Hello_Yes_10_01"); //At least it didn't take you long to grasp how the wind blows around here.
AI_Output(self,other,"DIA_Gerbrandt_Hello_Yes_10_02"); //As soon as business starts picking up again, I can surely find a use for a strapping lad like you.
AI_Output(self,other,"DIA_Gerbrandt_Hello_Yes_10_03"); //You would make an excellent depot master.
AI_Output(self,other,"DIA_Gerbrandt_Hello_Yes_10_04"); //Can you read?
Info_ClearChoices(DIA_Gerbrandt_Hello);
Info_AddChoice(DIA_Gerbrandt_Hello,"No.",DIA_Gerbrandt_Hello_Yes_No);
Info_AddChoice(DIA_Gerbrandt_Hello,"I don't want a job.",DIA_Gerbrandt_Hello_NoJob);
Info_AddChoice(DIA_Gerbrandt_Hello,"Of course.",DIA_Gerbrandt_Hello_Yes_Yes);
};
func void DIA_Gerbrandt_Hello_Yes_No()
{
AI_Output(other,self,"DIA_Gerbrandt_Hello_Yes_No_15_00"); //No.
AI_Output(self,other,"DIA_Gerbrandt_Hello_Yes_No_10_01"); //Never mind, at least you'll be able to lug a few sacks about.
AI_Output(self,other,"DIA_Gerbrandt_Hello_Yes_No_10_02"); //If I am satisfied with you, I might even offer you a permanent position. There is enough to do around here.
AI_Output(self,other,"DIA_Gerbrandt_Hello_Yes_No_10_03"); //Well, then, I'll expect you when the first ships come back here to dock.
Info_ClearChoices(DIA_Gerbrandt_Hello);
};
func void DIA_Gerbrandt_Hello_NoJob()
{
AI_Output(other,self,"DIA_Gerbrandt_Hello_NoJob_15_00"); //I don't want a job.
AI_Output(self,other,"DIA_Gerbrandt_Hello_NoJob_10_01"); //You think you're awfully clever. Watch it, no one can get a job here as long as I don't approve.
AI_Output(self,other,"DIA_Gerbrandt_Hello_NoJob_10_02"); //So if you keep giving me the lip like that, you can find yourself a bug-infested straw tick to sleep on, because that will be all you can afford.
AI_Output(self,other,"DIA_Gerbrandt_Hello_NoJob_10_03"); //The time will come when you'll beg me to give you a job.
Info_ClearChoices(DIA_Gerbrandt_Hello);
};
func void DIA_Gerbrandt_Hello_Yes_Yes()
{
AI_Output(other,self,"DIA_Gerbrandt_Hello_Yes_Yes_15_00"); //Of course.
AI_Output(self,other,"DIA_Gerbrandt_Hello_Yes_Yes_10_01"); //Fine, fine. Trained staff is hard to come by.
AI_Output(self,other,"DIA_Gerbrandt_Hello_Yes_Yes_10_02"); //How about your references?
AI_Output(other,self,"DIA_Gerbrandt_Hello_Yes_Yes_15_03"); //References?
AI_Output(self,other,"DIA_Gerbrandt_Hello_Yes_Yes_10_04"); //All right, I shall remember your face. Once trade picks up again, come and see me. I just might have a job for you then.
Info_ClearChoices(DIA_Gerbrandt_Hello);
};
func void B_GErbrandt_PissOff()
{
AI_Output(self,other,"B_Gerbrandt_PissOff_10_00"); //What is that about - are you trying to mock me?
AI_Output(self,other,"B_Gerbrandt_PissOff_10_01"); //You and your buddy Diego have wreaked enough havoc already.
AI_Output(self,other,"B_Gerbrandt_PissOff_10_02"); //Leave me alone!
if(DIEGO_COMING != TRUE)
{
AI_StopProcessInfos(self);
};
};
instance DIA_Gerbrandt_Perm(C_Info)
{
npc = VLK_403_Gerbrandt;
nr = 800;
condition = DIA_Gerbrandt_Perm_Condition;
information = DIA_Gerbrandt_Perm_Info;
permanent = TRUE;
description = "Any news?";
};
func int DIA_Gerbrandt_Perm_Condition()
{
if(Npc_KnowsInfo(other,DIA_Gerbrandt_Hello))
{
return TRUE;
};
};
func void DIA_Gerbrandt_Perm_Info()
{
AI_Output(other,self,"DIA_Gerbrandt_Perm_15_00"); //Anything new?
if(Kapitel <= 2)
{
if((hero.guild != GIL_KDF) && (hero.guild != GIL_PAL))
{
AI_Output(self,other,"DIA_Gerbrandt_Perm_10_01"); //People like you have no business up here. This is where the respectable society resides, and not tramps or crooks.
AI_Output(self,other,"DIA_Gerbrandt_Perm_10_02"); //If you should ever succeed in becoming wealthy and respectable, you might find yourself more welcome here.
}
else
{
AI_Output(self,other,"DIA_Gerbrandt_Perm_10_03"); //I cannot complain, honorable Sir.
};
}
else if(Kapitel >= 3)
{
if(MIS_DiegosResidence != LOG_SUCCESS)
{
if((hero.guild != GIL_KDF) && (hero.guild != GIL_PAL))
{
AI_Output(self,other,"DIA_Gerbrandt_Perm_10_04"); //I have seen the likes of you - you simply don't know your place.
AI_Output(self,other,"DIA_Gerbrandt_Perm_10_05"); //I shall have a talk with the governor concerning appropriate safety measures for the upper end of town.
}
else
{
AI_Output(self,other,"DIA_Gerbrandt_Perm_10_06"); //That's nobody's business but mine. I'm busy!
};
}
else
{
B_GErbrandt_PissOff();
};
};
};
instance DIA_Gerbrandt_GreetingsFromDiego(C_Info)
{
npc = VLK_403_Gerbrandt;
nr = 10;
condition = DIA_Gerbrandt_GreetingsFromDiego_Condition;
information = DIA_Gerbrandt_GreetingsFromDiego_Info;
permanent = FALSE;
description = "Diego says hello.";
};
func int DIA_Gerbrandt_GreetingsFromDiego_Condition()
{
if((MIS_DiegosResidence == LOG_Running) && (Npc_HasItems(other,ItWr_DiegosLetter_MIS) >= 1))
{
return TRUE;
};
};
func void DIA_Gerbrandt_GreetingsFromDiego_Info()
{
AI_Output(other,self,"DIA_Gerbrandt_GreetingsFromDiego_15_00"); //Diego says hello.
AI_Output(self,other,"DIA_Gerbrandt_GreetingsFromDiego_10_01"); //(scared) What? Who? What Diego?
AI_Output(other,self,"DIA_Gerbrandt_GreetingsFromDiego_15_02"); //And he wants me to give you this letter.
B_GiveInvItems(other,self,ItWr_DiegosLetter_MIS,1);
B_UseFakeScroll();
AI_Output(self,other,"DIA_Gerbrandt_GreetingsFromDiego_10_03"); //(agitated) That can't be. No. I'm a goner!
AI_Output(self,other,"DIA_Gerbrandt_GreetingsFromDiego_10_04"); //(fearfully) Is he in town, then?
AI_Output(other,self,"DIA_Gerbrandt_GreetingsFromDiego_15_05"); //Who?
AI_Output(self,other,"DIA_Gerbrandt_GreetingsFromDiego_10_06"); //Diego, of course!
AI_Output(other,self,"DIA_Gerbrandt_GreetingsFromDiego_15_07"); //Yes, I am going to meet him here shortly.
AI_Output(self,other,"DIA_Gerbrandt_GreetingsFromDiego_10_08"); //(desperately, to himself) This is the end, then. All is lost.
AI_Output(self,other,"DIA_Gerbrandt_GreetingsFromDiego_10_09"); //I've got no time, I need to get out of here. Quick. If he finds me here, I'm done for.
MIS_DiegosResidence = LOG_SUCCESS;
B_GivePlayerXP(XP_DiegosResidence);
DIEGO_COMING = TRUE;
};
|
D
|
///
module std.experimental.allocator.building_blocks.free_list;
import std.experimental.allocator.common;
import std.typecons : Flag, Yes, No;
/**
$(HTTP en.wikipedia.org/wiki/Free_list, Free list allocator), stackable on top of
another allocator. Allocation requests between $(D min) and $(D max) bytes are
rounded up to $(D max) and served from a singly-linked list of buffers
deallocated in the past. All other allocations are directed to $(D
ParentAllocator). Due to the simplicity of free list management, allocations
from the free list are fast.
One instantiation is of particular interest: $(D FreeList!(0, unbounded)) puts
every deallocation in the freelist, and subsequently serves any allocation from
the freelist (if not empty). There is no checking of size matching, which would
be incorrect for a freestanding allocator but is both correct and fast when an
owning allocator on top of the free list allocator (such as $(D Segregator)) is
already in charge of handling size checking.
The following methods are defined if $(D ParentAllocator) defines them, and
forward to it: $(D expand), $(D owns), $(D reallocate).
*/
struct FreeList(ParentAllocator,
size_t minSize, size_t maxSize = minSize,
Flag!"adaptive" adaptive = No.adaptive)
{
import std.conv : text;
import std.exception : enforce;
import std.traits : hasMember;
import std.typecons : Ternary;
static assert(minSize != unbounded, "Use minSize = 0 for no low bound.");
static assert(maxSize >= (void*).sizeof,
"Maximum size must accommodate a pointer.");
private enum unchecked = minSize == 0 && maxSize == unbounded;
private enum hasTolerance = !unchecked && (minSize != maxSize
|| maxSize == chooseAtRuntime);
static if (minSize == chooseAtRuntime)
{
/**
Returns the smallest allocation size eligible for allocation from the
freelist. (If $(D minSize != chooseAtRuntime), this is simply an alias
for $(D minSize).)
*/
@property size_t min() const
{
assert(_min != chooseAtRuntime);
return _min;
}
/**
If $(D FreeList) has been instantiated with $(D minSize ==
chooseAtRuntime), then the $(D min) property is writable. Setting it
must precede any allocation.
Params:
low = new value for $(D min)
Precondition: $(D low <= max), or $(D maxSize == chooseAtRuntime) and
$(D max) has not yet been initialized. Also, no allocation has been
yet done with this allocator.
Postcondition: $(D min == low)
*/
@property void min(size_t low)
{
assert(low <= max || max == chooseAtRuntime);
minimize;
_min = low;
}
}
else
{
alias min = minSize;
}
static if (maxSize == chooseAtRuntime)
{
/**
Returns the largest allocation size eligible for allocation from the
freelist. (If $(D maxSize != chooseAtRuntime), this is simply an alias
for $(D maxSize).) All allocation requests for sizes greater than or
equal to $(D min) and less than or equal to $(D max) are rounded to $(D
max) and forwarded to the parent allocator. When the block fitting the
same constraint gets deallocated, it is put in the freelist with the
allocated size assumed to be $(D max).
*/
@property size_t max() const { return _max; }
/**
If $(D FreeList) has been instantiated with $(D maxSize ==
chooseAtRuntime), then the $(D max) property is writable. Setting it
must precede any allocation.
Params:
high = new value for $(D max)
Precondition: $(D high >= min), or $(D minSize == chooseAtRuntime) and
$(D min) has not yet been initialized. Also $(D high >= (void*).sizeof). Also, no allocation has been yet done with this allocator.
Postcondition: $(D max == high)
*/
@property void max(size_t high)
{
assert((high >= min || min == chooseAtRuntime)
&& high >= (void*).sizeof);
minimize;
_max = high;
}
///
unittest
{
FreeList!(Mallocator, chooseAtRuntime, chooseAtRuntime) a;
a.min = 64;
a.max = 128;
assert(a.min == 64);
assert(a.max == 128);
}
}
else
{
alias max = maxSize;
}
private bool tooSmall(size_t n) const
{
static if (minSize == 0) return false;
else return n < min;
}
private bool tooLarge(size_t n) const
{
static if (maxSize == unbounded) return false;
else return n > max;
}
private bool freeListEligible(size_t n) const
{
static if (unchecked)
{
return true;
}
else
{
static if (minSize == 0)
{
if (!n) return false;
}
static if (minSize == maxSize && minSize != chooseAtRuntime)
return n == maxSize;
else
return !tooSmall(n) && !tooLarge(n);
}
}
static if (!unchecked)
private void[] blockFor(Node* p)
{
assert(p);
return (cast(void*) p)[0 .. max];
}
// statistics
static if (adaptive == Yes.adaptive)
{
private enum double windowLength = 1000.0;
private enum double tooFewMisses = 0.01;
private double probMiss = 1.0; // start with a high miss probability
private uint accumSamples, accumMisses;
void updateStats()
{
assert(accumSamples >= accumMisses);
/*
Given that for the past windowLength samples we saw misses with
estimated probability probMiss, and assuming the new sample wasMiss or
not, what's the new estimated probMiss?
*/
probMiss = (probMiss * windowLength + accumMisses)
/ (windowLength + accumSamples);
assert(probMiss <= 1.0);
accumSamples = 0;
accumMisses = 0;
// If probability to miss is under x%, yank one off the freelist
static if (!unchecked)
{
if (probMiss < tooFewMisses && _root)
{
auto b = blockFor(_root);
_root = _root.next;
parent.deallocate(b);
}
}
}
}
private struct Node { Node* next; }
static assert(ParentAllocator.alignment >= Node.alignof);
// state
/**
The parent allocator. Depending on whether $(D ParentAllocator) holds state
or not, this is a member variable or an alias for
`ParentAllocator.instance`.
*/
static if (stateSize!ParentAllocator) ParentAllocator parent;
else alias parent = ParentAllocator.instance;
private Node* root;
static if (minSize == chooseAtRuntime) private size_t _min = chooseAtRuntime;
static if (maxSize == chooseAtRuntime) private size_t _max = chooseAtRuntime;
/**
Alignment offered.
*/
alias alignment = ParentAllocator.alignment;
/**
If $(D maxSize == unbounded), returns $(D parent.goodAllocSize(bytes)).
Otherwise, returns $(D max) for sizes in the interval $(D [min, max]), and
$(D parent.goodAllocSize(bytes)) otherwise.
Precondition:
If set at runtime, $(D min) and/or $(D max) must be initialized
appropriately.
Postcondition:
$(D result >= bytes)
*/
size_t goodAllocSize(size_t bytes)
{
assert(minSize != chooseAtRuntime && maxSize != chooseAtRuntime);
static if (maxSize != unbounded)
{
if (freeListEligible(bytes))
{
assert(parent.goodAllocSize(max) == max,
text("Wrongly configured freelist: maximum should be ",
parent.goodAllocSize(max), " instead of ", max));
return max;
}
}
return parent.goodAllocSize(bytes);
}
private void[] allocateEligible(size_t bytes)
{
assert(bytes);
if (root)
{
// faster
auto result = (cast(ubyte*) root)[0 .. bytes];
root = root.next;
return result;
}
// slower
static if (hasTolerance)
{
immutable toAllocate = max;
}
else
{
alias toAllocate = bytes;
}
assert(toAllocate == max || max == unbounded);
auto result = parent.allocate(toAllocate);
static if (hasTolerance)
{
if (result) result = result.ptr[0 .. bytes];
}
static if (adaptive == Yes.adaptive)
{
++accumMisses;
updateStats;
}
return result;
}
/**
Allocates memory either off of the free list or from the parent allocator.
If $(D n) is within $(D [min, max]) or if the free list is unchecked
($(D minSize == 0 && maxSize == size_t.max)), then the free list is
consulted first. If not empty (hit), the block at the front of the free
list is removed from the list and returned. Otherwise (miss), a new block
of $(D max) bytes is allocated, truncated to $(D n) bytes, and returned.
Params:
n = number of bytes to allocate
Returns:
The allocated block, or $(D null).
Precondition:
If set at runtime, $(D min) and/or $(D max) must be initialized
appropriately.
Postcondition: $(D result.length == bytes || result is null)
*/
void[] allocate(size_t n)
{
static if (adaptive == Yes.adaptive) ++accumSamples;
assert(n < size_t.max / 2);
// fast path
if (freeListEligible(n))
{
return allocateEligible(n);
}
// slower
static if (adaptive == Yes.adaptive)
{
updateStats;
}
return parent.allocate(n);
}
// Forwarding methods
mixin(forwardToMember("parent",
"expand", "owns", "reallocate"));
/**
If $(D block.length) is within $(D [min, max]) or if the free list is
unchecked ($(D minSize == 0 && maxSize == size_t.max)), then inserts the
block at the front of the free list. For all others, forwards to $(D
parent.deallocate) if $(D Parent.deallocate) is defined.
Params:
block = Block to deallocate.
Precondition:
If set at runtime, $(D min) and/or $(D max) must be initialized
appropriately. The block must have been allocated with this
freelist, and no dynamic changing of $(D min) or $(D max) is allowed to
occur between allocation and deallocation.
*/
bool deallocate(void[] block)
{
if (freeListEligible(block.length))
{
if (min == 0)
{
// In this case a null pointer might have made it this far.
if (block is null) return true;
}
auto t = root;
root = cast(Node*) block.ptr;
root.next = t;
return true;
}
static if (hasMember!(ParentAllocator, "deallocate"))
return parent.deallocate(block);
else
return false;
}
/**
Defined only if $(D ParentAllocator) defines $(D deallocateAll). If so,
forwards to it and resets the freelist.
*/
static if (hasMember!(ParentAllocator, "deallocateAll"))
bool deallocateAll()
{
root = null;
return parent.deallocateAll();
}
/**
Nonstandard function that minimizes the memory usage of the freelist by
freeing each element in turn. Defined only if $(D ParentAllocator) defines
$(D deallocate).
*/
static if (hasMember!(ParentAllocator, "deallocate") && !unchecked)
void minimize()
{
while (root)
{
auto nuke = blockFor(root);
root = root.next;
parent.deallocate(nuke);
}
}
}
unittest
{
import std.experimental.allocator.gc_allocator : GCAllocator;
FreeList!(GCAllocator, 0, 8) fl;
assert(fl.root is null);
auto b1 = fl.allocate(7);
fl.allocate(8);
assert(fl.root is null);
fl.deallocate(b1);
assert(fl.root !is null);
fl.allocate(8);
assert(fl.root is null);
}
/**
Free list built on top of exactly one contiguous block of memory. The block is
assumed to have been allocated with $(D ParentAllocator), and is released in
$(D ContiguousFreeList)'s destructor (unless $(D ParentAllocator) is $(D
NullAllocator)).
$(D ContiguousFreeList) has most advantages of $(D FreeList) but fewer
disadvantages. It has better cache locality because items are closer to one
another. It imposes less fragmentation on its parent allocator.
The disadvantages of $(D ContiguousFreeList) over $(D FreeList) are its pay
upfront model (as opposed to $(D FreeList)'s pay-as-you-go approach), and a
hard limit on the number of nodes in the list. Thus, a large number of long-
lived objects may occupy the entire block, making it unavailable for serving
allocations from the free list. However, an absolute cap on the free list size
may be beneficial.
The options $(D minSize == unbounded) and $(D maxSize == unbounded) are not
available for $(D ContiguousFreeList).
*/
struct ContiguousFreeList(ParentAllocator,
size_t minSize, size_t maxSize = minSize)
{
import std.experimental.allocator.building_blocks.null_allocator
: NullAllocator;
import std.experimental.allocator.building_blocks.stats_collector
: StatsCollector, Options;
import std.traits : hasMember;
import std.typecons : Ternary;
alias Impl = FreeList!(NullAllocator, minSize, maxSize);
enum unchecked = minSize == 0 && maxSize == unbounded;
alias Node = Impl.Node;
alias SParent = StatsCollector!(ParentAllocator, Options.bytesUsed);
// state
/**
The parent allocator. Depending on whether $(D ParentAllocator) holds state
or not, this is a member variable or an alias for
`ParentAllocator.instance`.
*/
SParent parent;
FreeList!(NullAllocator, minSize, maxSize) fl;
void[] support;
size_t allocated;
/// Alignment offered.
enum uint alignment = (void*).alignof;
private void initialize(void[] buffer, size_t itemSize = fl.max)
{
assert(itemSize != unbounded && itemSize != chooseAtRuntime);
assert(buffer.ptr.alignedAt(alignment));
immutable available = buffer.length / itemSize;
if (available == 0) return;
support = buffer;
fl.root = cast(Node*) buffer.ptr;
auto past = cast(Node*) (buffer.ptr + available * itemSize);
for (auto n = fl.root; ; )
{
auto next = cast(Node*) (cast(ubyte*) n + itemSize);
if (next == past)
{
n.next = null;
break;
}
assert(next < past);
assert(n < next);
n.next = next;
n = next;
}
}
/**
Constructors setting up the memory structured as a free list.
Params:
buffer = Buffer to structure as a free list. If $(D ParentAllocator) is not
$(D NullAllocator), the buffer is assumed to be allocated by $(D parent)
and will be freed in the destructor.
parent = Parent allocator. For construction from stateless allocators, use
their `instance` static member.
bytes = Bytes (not items) to be allocated for the free list. Memory will be
allocated during construction and deallocated in the destructor.
max = Maximum size eligible for freelisting. Construction with this
parameter is defined only if $(D maxSize == chooseAtRuntime) or $(D maxSize
== unbounded).
min = Minimum size eligible for freelisting. Construction with this
parameter is defined only if $(D minSize == chooseAtRuntime). If this
condition is met and no $(D min) parameter is present, $(D min) is
initialized with $(D max).
*/
static if (!stateSize!ParentAllocator)
this(void[] buffer)
{
initialize(buffer);
}
/// ditto
static if (stateSize!ParentAllocator)
this(ParentAllocator parent, void[] buffer)
{
initialize(buffer);
this.parent = SParent(parent);
}
/// ditto
static if (!stateSize!ParentAllocator)
this(size_t bytes)
{
initialize(ParentAllocator.instance.allocate(bytes));
}
/// ditto
static if (stateSize!ParentAllocator)
this(ParentAllocator parent, size_t bytes)
{
initialize(parent.allocate(bytes));
this.parent = SParent(parent);
}
/// ditto
static if (!stateSize!ParentAllocator
&& (maxSize == chooseAtRuntime || maxSize == unbounded))
this(size_t bytes, size_t max)
{
static if (maxSize == chooseAtRuntime) fl.max = max;
static if (minSize == chooseAtRuntime) fl.min = max;
initialize(parent.allocate(bytes), max);
}
/// ditto
static if (stateSize!ParentAllocator
&& (maxSize == chooseAtRuntime || maxSize == unbounded))
this(ParentAllocator parent, size_t bytes, size_t max)
{
static if (maxSize == chooseAtRuntime) fl.max = max;
static if (minSize == chooseAtRuntime) fl.min = max;
initialize(parent.allocate(bytes), max);
this.parent = SParent(parent);
}
/// ditto
static if (!stateSize!ParentAllocator
&& (maxSize == chooseAtRuntime || maxSize == unbounded)
&& minSize == chooseAtRuntime)
this(size_t bytes, size_t min, size_t max)
{
static if (maxSize == chooseAtRuntime) fl.max = max;
fl.min = min;
initialize(parent.allocate(bytes), max);
static if (stateSize!ParentAllocator)
this.parent = SParent(parent);
}
/// ditto
static if (stateSize!ParentAllocator
&& (maxSize == chooseAtRuntime || maxSize == unbounded)
&& minSize == chooseAtRuntime)
this(ParentAllocator parent, size_t bytes, size_t min, size_t max)
{
static if (maxSize == chooseAtRuntime) fl.max = max;
fl.min = min;
initialize(parent.allocate(bytes), max);
static if (stateSize!ParentAllocator)
this.parent = SParent(parent);
}
/**
If $(D n) is eligible for freelisting, returns $(D max). Otherwise, returns
$(D parent.goodAllocSize(n)).
Precondition:
If set at runtime, $(D min) and/or $(D max) must be initialized
appropriately.
Postcondition:
$(D result >= bytes)
*/
size_t goodAllocSize(size_t n)
{
if (fl.freeListEligible(n)) return fl.max;
return parent.goodAllocSize(n);
}
/**
Allocate $(D n) bytes of memory. If $(D n) is eligible for freelist and the
freelist is not empty, pops the memory off the free list. In all other
cases, uses the parent allocator.
*/
void[] allocate(size_t n)
{
auto result = fl.allocate(n);
if (result)
{
// Only case we care about: eligible sizes allocated from us
++allocated;
return result;
}
// All others, allocate from parent
return parent.allocate(n);
}
/**
Defined if `ParentAllocator` defines it. Checks whether the block
belongs to this allocator.
*/
static if (hasMember!(SParent, "owns") || unchecked)
Ternary owns(void[] b)
{
if (support.ptr <= b.ptr && b.ptr < support.ptr + support.length)
return Ternary.yes;
static if (unchecked)
return Ternary.no;
else
return parent.owns(b);
}
/**
Deallocates $(D b). If it's of eligible size, it's put on the free list.
Otherwise, it's returned to $(D parent).
Precondition: $(D b) has been allocated with this allocator, or is $(D
null).
*/
bool deallocate(void[] b)
{
if (support.ptr <= b.ptr && b.ptr < support.ptr + support.length)
{
// we own this guy
import std.conv : text;
assert(fl.freeListEligible(b.length), text(b.length));
assert(allocated);
--allocated;
// Put manually in the freelist
auto t = fl.root;
fl.root = cast(Node*) b.ptr;
fl.root.next = t;
return true;
}
return parent.deallocate(b);
}
/**
Deallocates everything from the parent.
*/
static if (hasMember!(ParentAllocator, "deallocateAll")
&& stateSize!ParentAllocator)
bool deallocateAll()
{
bool result = fl.deallocateAll && parent.deallocateAll;
allocated = 0;
return result;
}
/**
Returns `Ternary.yes` if no memory is currently allocated with this
allocator, `Ternary.no` otherwise. This method never returns
`Ternary.unknown`.
*/
Ternary empty()
{
return Ternary(allocated == 0 && parent.bytesUsed == 0);
}
}
///
unittest
{
import std.experimental.allocator.gc_allocator : GCAllocator;
import std.experimental.allocator.building_blocks.allocator_list
: AllocatorList;
alias ScalableFreeList = AllocatorList!((n) =>
ContiguousFreeList!(GCAllocator, 0, unbounded)(4096)
);
}
unittest
{
import std.experimental.allocator.building_blocks.null_allocator
: NullAllocator;
import std.typecons : Ternary;
alias A = ContiguousFreeList!(NullAllocator, 0, 64);
auto a = A(new void[1024]);
assert(a.empty == Ternary.yes);
assert(a.goodAllocSize(15) == 64);
assert(a.goodAllocSize(65) == NullAllocator.instance.goodAllocSize(65));
auto b = a.allocate(100);
assert(a.empty == Ternary.yes);
assert(b.length == 0);
a.deallocate(b);
b = a.allocate(64);
assert(a.empty == Ternary.no);
assert(b.length == 64);
assert(a.owns(b) == Ternary.yes);
assert(a.owns(null) == Ternary.no);
a.deallocate(b);
}
unittest
{
import std.experimental.allocator.building_blocks.region : Region;
import std.experimental.allocator.gc_allocator : GCAllocator;
import std.typecons : Ternary;
alias A = ContiguousFreeList!(Region!GCAllocator, 0, 64);
auto a = A(Region!GCAllocator(1024 * 4), 1024);
assert(a.empty == Ternary.yes);
assert(a.goodAllocSize(15) == 64);
assert(a.goodAllocSize(65) == a.parent.goodAllocSize(65));
auto b = a.allocate(100);
assert(a.empty == Ternary.no);
assert(a.allocated == 0);
assert(b.length == 100);
a.deallocate(b);
assert(a.empty == Ternary.yes);
b = a.allocate(64);
assert(a.empty == Ternary.no);
assert(b.length == 64);
assert(a.owns(b) == Ternary.yes);
assert(a.owns(null) == Ternary.no);
a.deallocate(b);
}
unittest
{
import std.experimental.allocator.gc_allocator : GCAllocator;
alias A = ContiguousFreeList!(GCAllocator, 64, 64);
auto a = A(1024);
const b = a.allocate(100);
assert(b.length == 100);
}
/**
FreeList shared across threads. Allocation and deallocation are lock-free. The
parameters have the same semantics as for $(D FreeList).
$(D expand) is defined to forward to $(ParentAllocator.expand) (it must be also
$(D shared)).
*/
struct SharedFreeList(ParentAllocator,
size_t minSize, size_t maxSize = minSize, size_t approxMaxNodes = unbounded)
{
import std.conv : text;
import std.exception : enforce;
import std.traits : hasMember;
static assert(approxMaxNodes, "approxMaxNodes must not be null.");
static assert(minSize != unbounded, "Use minSize = 0 for no low bound.");
static assert(maxSize >= (void*).sizeof,
"Maximum size must accommodate a pointer.");
private import core.atomic;
static if (minSize != chooseAtRuntime)
{
alias min = minSize;
}
else
{
private shared size_t _min = chooseAtRuntime;
@property size_t min() const shared
{
assert(_min != chooseAtRuntime);
return _min;
}
@property void min(size_t x) shared
{
enforce(x <= max);
enforce(cas(&_min, chooseAtRuntime, x),
"SharedFreeList.min must be initialized exactly once.");
}
static if (maxSize == chooseAtRuntime)
{
// Both bounds can be set, provide one function for setting both in
// one shot.
void setBounds(size_t low, size_t high) shared
{
enforce(low <= high && high >= (void*).sizeof);
enforce(cas(&_min, chooseAtRuntime, low),
"SharedFreeList.min must be initialized exactly once.");
enforce(cas(&_max, chooseAtRuntime, high),
"SharedFreeList.max must be initialized exactly once.");
}
}
}
private bool tooSmall(size_t n) const shared
{
static if (minSize == 0) return false;
else static if (minSize == chooseAtRuntime) return n < _min;
else return n < minSize;
}
static if (maxSize != chooseAtRuntime)
{
alias max = maxSize;
}
else
{
private shared size_t _max = chooseAtRuntime;
@property size_t max() const shared { return _max; }
@property void max(size_t x) shared
{
enforce(x >= _min && x >= (void*).sizeof);
enforce(cas(&_max, chooseAtRuntime, x),
"SharedFreeList.max must be initialized exactly once.");
}
}
private bool tooLarge(size_t n) const shared
{
static if (maxSize == unbounded) return false;
else static if (maxSize == chooseAtRuntime) return n > _max;
else return n > maxSize;
}
private bool freeListEligible(size_t n) const shared
{
static if (minSize == maxSize && minSize != chooseAtRuntime)
return n == maxSize;
else return !tooSmall(n) && !tooLarge(n);
}
static if (approxMaxNodes != chooseAtRuntime)
{
alias approxMaxLength = approxMaxNodes;
}
else
{
private shared size_t _approxMaxLength = chooseAtRuntime;
@property size_t approxMaxLength() const shared { return _approxMaxLength; }
@property void approxMaxLength(size_t x) shared { _approxMaxLength = enforce(x); }
}
static if (approxMaxNodes != unbounded)
{
private shared size_t nodes;
private void incNodes() shared
{
atomicOp!("+=")(nodes, 1);
}
private void decNodes() shared
{
assert(nodes);
atomicOp!("-=")(nodes, 1);
}
private bool nodesFull() shared
{
return nodes >= approxMaxLength;
}
}
else
{
private static void incNodes() { }
private static void decNodes() { }
private enum bool nodesFull = false;
}
version (StdDdoc)
{
/**
Properties for getting (and possibly setting) the bounds. Setting bounds
is allowed only once , and before any allocation takes place. Otherwise,
the primitives have the same semantics as those of $(D FreeList).
*/
@property size_t min();
/// Ditto
@property void min(size_t newMinSize);
/// Ditto
@property size_t max();
/// Ditto
@property void max(size_t newMaxSize);
/// Ditto
void setBounds(size_t newMin, size_t newMax);
///
unittest
{
SharedFreeList!(Mallocator, chooseAtRuntime, chooseAtRuntime) a;
// Set the maxSize first so setting the minSize doesn't throw
a.max = 128;
a.min = 64;
a.setBounds(64, 128); // equivalent
assert(a.max == 128);
assert(a.min == 64);
}
/**
Properties for getting (and possibly setting) the approximate maximum length of a shared freelist.
*/
@property size_t approxMaxLength() const shared;
/// ditto
@property void approxMaxLength(size_t x) shared;
///
unittest
{
SharedFreeList!(Mallocator, 50, 50, chooseAtRuntime) a;
// Set the maxSize first so setting the minSize doesn't throw
a.approxMaxLength = 128;
assert(a.approxMaxLength == 128);
a.approxMaxLength = 1024;
assert(a.approxMaxLength == 1024);
a.approxMaxLength = 1;
assert(a.approxMaxLength == 1);
}
}
/**
The parent allocator. Depending on whether $(D ParentAllocator) holds state
or not, this is a member variable or an alias for
`ParentAllocator.instance`.
*/
static if (stateSize!ParentAllocator) shared ParentAllocator parent;
else alias parent = ParentAllocator.instance;
mixin(forwardToMember("parent", "expand"));
private struct Node { Node* next; }
static assert(ParentAllocator.alignment >= Node.alignof);
private Node* _root;
/// Standard primitives.
enum uint alignment = ParentAllocator.alignment;
/// Ditto
size_t goodAllocSize(size_t bytes) shared
{
if (freeListEligible(bytes)) return maxSize == unbounded ? bytes : max;
return parent.goodAllocSize(bytes);
}
/// Ditto
static if (hasMember!(ParentAllocator, "owns"))
Ternary owns(void[] b) shared const
{
return parent.owns(b);
}
/// Ditto
static if (hasMember!(ParentAllocator, "reallocate"))
bool reallocate(void[] b, size_t s)
{
return parent.reallocate(b, s);
}
/// Ditto
void[] allocate(size_t bytes) shared
{
assert(bytes < size_t.max / 2);
if (!freeListEligible(bytes)) return parent.allocate(bytes);
if (maxSize != unbounded) bytes = max;
// Pop off the freelist
shared Node* oldRoot = void, next = void;
do
{
oldRoot = _root; // atomic load
if (!oldRoot) return allocateFresh(bytes);
next = oldRoot.next; // atomic load
}
while (!cas(&_root, oldRoot, next));
// great, snatched the root
decNodes();
return (cast(ubyte*) oldRoot)[0 .. bytes];
}
private void[] allocateFresh(const size_t bytes) shared
{
assert(bytes == max || max == unbounded);
return parent.allocate(bytes);
}
/// Ditto
bool deallocate(void[] b) shared
{
if (!nodesFull && freeListEligible(b.length))
{
auto newRoot = cast(shared Node*) b.ptr;
shared Node* oldRoot;
do
{
oldRoot = _root;
newRoot.next = oldRoot;
}
while (!cas(&_root, oldRoot, newRoot));
incNodes();
return true;
}
static if (hasMember!(ParentAllocator, "deallocate"))
return parent.deallocate(b);
else
return false;
}
/// Ditto
bool deallocateAll() shared
{
bool result = false;
static if (hasMember!(ParentAllocator, "deallocateAll"))
{
result = parent.deallocateAll();
}
else static if (hasMember!(ParentAllocator, "deallocate"))
{
result = true;
for (auto n = _root; n; n = n.next)
{
if (!parent.deallocate((cast(ubyte*)n)[0 .. max]))
result = false;
}
}
_root = null;
return result;
}
}
unittest
{
import std.algorithm.comparison : equal;
import std.concurrency : receiveOnly, send, spawn, thisTid, Tid;
import std.range : repeat;
import std.experimental.allocator.mallocator : Mallocator;
static shared SharedFreeList!(Mallocator, 64, 128, 10) a;
assert(a.goodAllocSize(1) == platformAlignment);
auto b = a.allocate(100);
a.deallocate(b);
static void fun(Tid tid, int i)
{
scope(exit) tid.send(true);
auto b = cast(ubyte[]) a.allocate(100);
b[] = cast(ubyte) i;
assert(b.equal(repeat(cast(ubyte) i, b.length)));
a.deallocate(b);
}
Tid[] tids;
foreach (i; 0 .. 20)
{
tids ~= spawn(&fun, thisTid, i);
}
foreach (i; 0 .. 20)
{
assert(receiveOnly!bool);
}
}
unittest
{
import std.experimental.allocator.mallocator : Mallocator;
shared SharedFreeList!(Mallocator, chooseAtRuntime, chooseAtRuntime) a;
a.allocate(64);
}
unittest
{
import std.experimental.allocator.mallocator : Mallocator;
shared SharedFreeList!(Mallocator, chooseAtRuntime, chooseAtRuntime, chooseAtRuntime) a;
a.allocate(64);
}
unittest
{
import std.experimental.allocator.mallocator : Mallocator;
shared SharedFreeList!(Mallocator, 30, 40) a;
a.allocate(64);
}
unittest
{
import std.experimental.allocator.mallocator : Mallocator;
shared SharedFreeList!(Mallocator, 30, 40, chooseAtRuntime) a;
a.allocate(64);
}
|
D
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.