code
stringlengths 3
10M
| language
stringclasses 31
values |
|---|---|
/home/tardigrade/filecoin/filecoin_loans_test/filecoin-signing-tools/target/release/build/crossbeam-utils-df61a0e750b4c856/build_script_build-df61a0e750b4c856: /home/tardigrade/.cargo/registry/src/github.com-1ecc6299db9ec823/crossbeam-utils-0.8.3/build.rs
/home/tardigrade/filecoin/filecoin_loans_test/filecoin-signing-tools/target/release/build/crossbeam-utils-df61a0e750b4c856/build_script_build-df61a0e750b4c856.d: /home/tardigrade/.cargo/registry/src/github.com-1ecc6299db9ec823/crossbeam-utils-0.8.3/build.rs
/home/tardigrade/.cargo/registry/src/github.com-1ecc6299db9ec823/crossbeam-utils-0.8.3/build.rs:
|
D
|
module kurikame.config;
import kurikame.scripts;
import std.algorithm;
import std.c.stdlib;
import std.conv;
import std.file;
import std.string;
// Configuration is loaded from (KURIKAME_HOME ~ "/etc/config")
final abstract class Config
{
static:
private:
ushort port;
string nick;
string server;
string[] channels;
string homeDirectory;
string[] admins;
static this()
{
// Need a place to look for the config files, target server and what not.
homeDirectory = to!string(getenv("KURIKAME_HOME")).dup;
auto lines = readText(homeDirectory ~ "/etc/config").splitLines();
foreach (string line ; lines)
{
assignConfigLine(line);
}
}
void assignConfigLine(string line)
{
auto equalsIndex = line.indexOf('=');
string key = line[0 .. equalsIndex];
string value = line[equalsIndex + 1 .. line.length];
switch (key)
{
case ("port"):
port = to!ushort(value);
break;
case ("server"):
server = value;
break;
case ("channels"):
channels = split(value, ',');
break;
case ("nick"):
nick = value;
break;
case ("admins"):
admins = split(value, ',');
break;
default:
throw new Exception("Invalid config key: " ~ key);
break;
}
}
public:
@property auto Nick()
{
return nick;
}
@property auto Port()
{
return port;
}
@property auto Server()
{
return server;
}
@property auto Channels()
{
return channels;
}
@property auto Admins()
{
return admins;
}
}
unittest
{
assert(equal(split("a,b,c", ','), ["a", "b", "c"]));
}
|
D
|
# FIXED
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_common/source/F2837xS_Spi.c
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_device.h
F2837xS_Spi.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_17.6.0.STS/include/assert.h
F2837xS_Spi.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_17.6.0.STS/include/linkage.h
F2837xS_Spi.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_17.6.0.STS/include/stdarg.h
F2837xS_Spi.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_17.6.0.STS/include/stdbool.h
F2837xS_Spi.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_17.6.0.STS/include/stddef.h
F2837xS_Spi.obj: C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_17.6.0.STS/include/stdint.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_adc.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_analogsubsys.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_cla.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_cmpss.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_cputimer.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_dac.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_dcsm.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_dma.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_common/include/F2837xS_defaultisr.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_ecap.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_emif.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_epwm.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_epwm_xbar.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_eqep.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_flash.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_gpio.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_i2c.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_input_xbar.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_mcbsp.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_memconfig.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_nmiintrupt.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_output_xbar.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_piectrl.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_pievect.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_sci.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_sdfm.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_spi.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_sysctrl.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_trig_xbar.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_upp.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_xbar.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_xint.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_common/include/F2837xS_Examples.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_common/include/F2837xS_GlobalPrototypes.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_common/include/F2837xS_cputimervars.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_common/include/F2837xS_Cla_defines.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_common/include/F2837xS_EPwm_defines.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_common/include/F2837xS_Adc_defines.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_common/include/F2837xS_Emif_defines.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_common/include/F2837xS_Gpio_defines.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_common/include/F2837xS_I2c_defines.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_common/include/F2837xS_Pie_defines.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_common/include/F2837xS_Dma_defines.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_common/include/F2837xS_SysCtrl_defines.h
F2837xS_Spi.obj: C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_common/include/F2837xS_Upp_defines.h
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_common/source/F2837xS_Spi.c:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_device.h:
C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_17.6.0.STS/include/assert.h:
C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_17.6.0.STS/include/linkage.h:
C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_17.6.0.STS/include/stdarg.h:
C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_17.6.0.STS/include/stdbool.h:
C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_17.6.0.STS/include/stddef.h:
C:/CCStudio_v8/ccsv8/tools/compiler/ti-cgt-c2000_17.6.0.STS/include/stdint.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_adc.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_analogsubsys.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_cla.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_cmpss.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_cputimer.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_dac.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_dcsm.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_dma.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_common/include/F2837xS_defaultisr.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_ecap.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_emif.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_epwm.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_epwm_xbar.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_eqep.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_flash.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_gpio.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_i2c.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_input_xbar.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_mcbsp.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_memconfig.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_nmiintrupt.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_output_xbar.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_piectrl.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_pievect.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_sci.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_sdfm.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_spi.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_sysctrl.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_trig_xbar.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_upp.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_xbar.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_headers/include/F2837xS_xint.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_common/include/F2837xS_Examples.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_common/include/F2837xS_GlobalPrototypes.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_common/include/F2837xS_cputimervars.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_common/include/F2837xS_Cla_defines.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_common/include/F2837xS_EPwm_defines.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_common/include/F2837xS_Adc_defines.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_common/include/F2837xS_Emif_defines.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_common/include/F2837xS_Gpio_defines.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_common/include/F2837xS_I2c_defines.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_common/include/F2837xS_Pie_defines.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_common/include/F2837xS_Dma_defines.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_common/include/F2837xS_SysCtrl_defines.h:
C:/ayush2_nigam4/repo/trunk/lab3/v140/F2837xS_common/include/F2837xS_Upp_defines.h:
|
D
|
/*
TEST_OUTPUT:
---
fail_compilation/fail177.d(22): Error: cannot modify immutable expression j
fail_compilation/fail177.d(24): Error: cannot modify const expression i
fail_compilation/fail177.d(26): Error: cannot modify const expression s1.x
fail_compilation/fail177.d(27): Error: cannot modify const expression *s1.p
fail_compilation/fail177.d(29): Error: cannot modify const expression s2.x
fail_compilation/fail177.d(30): Error: cannot modify const expression *s2.p
---
*/
struct S
{
int x;
int* p;
}
void test(const(S) s1, const S s2, const(int) i)
{
immutable int j = 3;
j = 4;
i = 4;
s1.x = 3;
*s1.p = 4;
s2.x = 3;
*s2.p = 4;
}
|
D
|
/*
TEST_OUTPUT:
---
fail_compilation/fail356c.d(13): Error: function expected before (), not bar of type int
---
*/
import foo = imports.fail356;
int foo; // doesn't collide with renamed import
void main()
{
auto x = foo.bar; // --> rewritten to bar(foo) by UFCS
// declared 'foo' hides renamed module name 'foo'
}
|
D
|
/substrate-node-template/target/debug/deps/ref_cast-4b429fefd15301ad.rmeta: /root/.cargo/registry/src/github.com-1ecc6299db9ec823/ref-cast-1.0.2/src/lib.rs /root/.cargo/registry/src/github.com-1ecc6299db9ec823/ref-cast-1.0.2/src/trivial.rs
/substrate-node-template/target/debug/deps/ref_cast-4b429fefd15301ad.d: /root/.cargo/registry/src/github.com-1ecc6299db9ec823/ref-cast-1.0.2/src/lib.rs /root/.cargo/registry/src/github.com-1ecc6299db9ec823/ref-cast-1.0.2/src/trivial.rs
/root/.cargo/registry/src/github.com-1ecc6299db9ec823/ref-cast-1.0.2/src/lib.rs:
/root/.cargo/registry/src/github.com-1ecc6299db9ec823/ref-cast-1.0.2/src/trivial.rs:
|
D
|
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric;
enum cs = [6,36,216,1296,7776,46656,279936,9,81,729,6561,59049,531441];
void main()
{
auto N = readln.chomp.to!int;
auto DP = new int[][](cs.length, N+1);
foreach (ref dp; DP) dp[] = -1;
int solve(int i, int n) {
if (i == cs.length) return n;
if (DP[i][n] == -1) {
if (n >= cs[i]) {
DP[i][n] = min(solve(i+1, n), solve(i, n-cs[i]) + 1);
} else {
DP[i][n] = solve(i+1, n);
}
}
return DP[i][n];
}
writeln(solve(0, N));
}
|
D
|
//https://redd.it/bazy5j
import std.stdio;
import std.array;
import std.range;
import std.algorithm;
void main()
{
}
ulong fit(ulong[] dimensions, ulong[] boxes)
{
return zip(dimensions, boxes).map!(z => z[0] / z[1]).reduce!"a * b";
}
ulong fit1(ulong X, ulong Y, ulong x, ulong y)
{
return fit([X, Y], [x, y]);
}
unittest
{
assert(fit1(25, 18, 6, 5) == 12);
assert(fit1(10, 10, 1, 1) == 100);
assert(fit1(12, 34, 5, 6) == 10);
assert(fit1(12345, 678910, 1112, 1314) == 5676);
assert(fit1(5, 100, 6, 1) == 0);
}
ulong fit2(ulong X, ulong Y, ulong x, ulong y)
{
return max(fit([X, Y], [x, y]), fit([X, Y], [y, x]));
}
unittest
{
assert(fit2(25, 18, 6, 5) == 15);
assert(fit2(12, 34, 5, 6) == 12);
assert(fit2(12345, 678910, 1112, 1314) == 5676);
assert(fit2(5, 5, 3, 2) == 2);
assert(fit2(5, 100, 6, 1) == 80);
assert(fit2(5, 5, 6, 1) == 0);
}
ulong fitn(ulong[] dimensions, ulong[] boxes)
{
return boxes.permutations.map!(p => fit(dimensions, p.array)).reduce!max;
}
unittest
{
assert(fitn([123, 456, 789, 1011, 1213, 1415], [16, 17, 18, 19, 20, 21]) == 1883443968);
assert(fitn([123, 456, 789], [10, 11, 12]) == 32604);
assert(fitn([3, 4], [1, 2]) == 6);
}
|
D
|
// REQUIRED_ARGS: -w
// https://issues.dlang.org/show_bug.cgi?id=4375: Dangling else
/*
TEST_OUTPUT:
---
fail_compilation/fail4375a.d(16): Warning: else is dangling, add { } after condition at fail_compilation/fail4375a.d(13)
Error: warnings are treated as errors
Use -wi if you wish to treat warnings only as informational.
---
*/
void main() {
if (true)
if (false)
assert(3);
else
assert(4);
}
|
D
|
/**
* Compiler implementation of the
* $(LINK2 http://www.dlang.org, D programming language).
*
* Copyright: Copyright (C) 1994-1998 by Symantec
* Copyright (C) 2000-2020 by The D Language Foundation, All Rights Reserved
* Authors: $(LINK2 http://www.digitalmars.com, Walter Bright)
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/backend/cod3.d, backend/cod3.d)
* Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/backend/cod3.d
*/
module dmd.backend.cod3;
version (SCPP)
version = COMPILE;
version (MARS)
version = COMPILE;
version (COMPILE)
{
import core.stdc.stdio;
import core.stdc.stdlib;
import core.stdc.string;
import dmd.backend.backend;
import dmd.backend.cc;
import dmd.backend.cdef;
import dmd.backend.cg87;
import dmd.backend.cgcse;
import dmd.backend.code;
import dmd.backend.code_x86;
import dmd.backend.codebuilder;
import dmd.backend.dlist;
import dmd.backend.dvec;
import dmd.backend.melf;
import dmd.backend.mem;
import dmd.backend.el;
import dmd.backend.exh;
import dmd.backend.global;
import dmd.backend.obj;
import dmd.backend.oper;
import dmd.backend.outbuf;
import dmd.backend.rtlsym;
import dmd.backend.ty;
import dmd.backend.type;
import dmd.backend.xmm;
version (SCPP)
{
import parser;
import precomp;
}
extern (C++):
nothrow:
version (MARS)
enum MARS = true;
else
enum MARS = false;
int REGSIZE();
extern __gshared CGstate cgstate;
extern __gshared ubyte[FLMAX] segfl;
extern __gshared bool[FLMAX] stackfl, flinsymtab;
private extern (D) uint mask(uint m) { return 1 << m; }
//private void genorreg(ref CodeBuilder c, uint t, uint f) { genregs(c, 0x09, f, t); }
extern __gshared targ_size_t retsize;
enum JMPJMPTABLE = false; // benchmarking shows it's slower
enum MINLL = 0x8000_0000_0000_0000L;
enum MAXLL = 0x7FFF_FFFF_FFFF_FFFFL;
/*************
* Size in bytes of each instruction.
* 0 means illegal instruction.
* bit M: if there is a modregrm field (EV1 is reserved for modregrm)
* bit T: if there is a second operand (EV2)
* bit E: if second operand is only 8 bits
* bit A: a short version exists for the AX reg
* bit R: a short version exists for regs
* bits 2..0: size of instruction (excluding optional bytes)
*/
enum
{
M = 0x80,
T = 0x40,
E = 0x20,
A = 0x10,
R = 0x08,
W = 0,
}
private __gshared ubyte[256] inssize =
[ M|2,M|2,M|2,M|2, T|E|2,T|3,1,1, /* 00 */
M|2,M|2,M|2,M|2, T|E|2,T|3,1,1, /* 08 */
M|2,M|2,M|2,M|2, T|E|2,T|3,1,1, /* 10 */
M|2,M|2,M|2,M|2, T|E|2,T|3,1,1, /* 18 */
M|2,M|2,M|2,M|2, T|E|2,T|3,1,1, /* 20 */
M|2,M|2,M|2,M|2, T|E|2,T|3,1,1, /* 28 */
M|2,M|2,M|2,M|2, T|E|2,T|3,1,1, /* 30 */
M|2,M|2,M|2,M|2, T|E|2,T|3,1,1, /* 38 */
1,1,1,1, 1,1,1,1, /* 40 */
1,1,1,1, 1,1,1,1, /* 48 */
1,1,1,1, 1,1,1,1, /* 50 */
1,1,1,1, 1,1,1,1, /* 58 */
1,1,M|2,M|2, 1,1,1,1, /* 60 */
T|3,M|T|4,T|E|2,M|T|E|3, 1,1,1,1, /* 68 */
T|E|2,T|E|2,T|E|2,T|E|2, T|E|2,T|E|2,T|E|2,T|E|2, /* 70 */
T|E|2,T|E|2,T|E|2,T|E|2, T|E|2,T|E|2,T|E|2,T|E|2, /* 78 */
M|T|E|A|3,M|T|A|4,M|T|E|3,M|T|E|3, M|2,M|2,M|2,M|A|R|2, /* 80 */
M|A|2,M|A|2,M|A|2,M|A|2, M|2,M|2,M|2,M|R|2, /* 88 */
1,1,1,1, 1,1,1,1, /* 90 */
1,1,T|5,1, 1,1,1,1, /* 98 */
// cod3_set32() patches this
// T|5,T|5,T|5,T|5, 1,1,1,1, /* A0 */
T|3,T|3,T|3,T|3, 1,1,1,1, /* A0 */
T|E|2,T|3,1,1, 1,1,1,1, /* A8 */
T|E|2,T|E|2,T|E|2,T|E|2, T|E|2,T|E|2,T|E|2,T|E|2, /* B0 */
T|3,T|3,T|3,T|3, T|3,T|3,T|3,T|3, /* B8 */
M|T|E|3,M|T|E|3,T|3,1, M|2,M|2,M|T|E|R|3,M|T|R|4, /* C0 */
T|E|4,1,T|3,1, 1,T|E|2,1,1, /* C8 */
M|2,M|2,M|2,M|2, T|E|2,T|E|2,0,1, /* D0 */
/* For the floating instructions, allow room for the FWAIT */
M|2,M|2,M|2,M|2, M|2,M|2,M|2,M|2, /* D8 */
T|E|2,T|E|2,T|E|2,T|E|2, T|E|2,T|E|2,T|E|2,T|E|2, /* E0 */
T|3,T|3,T|5,T|E|2, 1,1,1,1, /* E8 */
1,0,1,1, 1,1,M|A|2,M|A|2, /* F0 */
1,1,1,1, 1,1,M|2,M|R|2 /* F8 */
];
private __gshared const ubyte[256] inssize32 =
[ 2,2,2,2, 2,5,1,1, /* 00 */
2,2,2,2, 2,5,1,1, /* 08 */
2,2,2,2, 2,5,1,1, /* 10 */
2,2,2,2, 2,5,1,1, /* 18 */
2,2,2,2, 2,5,1,1, /* 20 */
2,2,2,2, 2,5,1,1, /* 28 */
2,2,2,2, 2,5,1,1, /* 30 */
2,2,2,2, 2,5,1,1, /* 38 */
1,1,1,1, 1,1,1,1, /* 40 */
1,1,1,1, 1,1,1,1, /* 48 */
1,1,1,1, 1,1,1,1, /* 50 */
1,1,1,1, 1,1,1,1, /* 58 */
1,1,2,2, 1,1,1,1, /* 60 */
5,6,2,3, 1,1,1,1, /* 68 */
2,2,2,2, 2,2,2,2, /* 70 */
2,2,2,2, 2,2,2,2, /* 78 */
3,6,3,3, 2,2,2,2, /* 80 */
2,2,2,2, 2,2,2,2, /* 88 */
1,1,1,1, 1,1,1,1, /* 90 */
1,1,7,1, 1,1,1,1, /* 98 */
5,5,5,5, 1,1,1,1, /* A0 */
2,5,1,1, 1,1,1,1, /* A8 */
2,2,2,2, 2,2,2,2, /* B0 */
5,5,5,5, 5,5,5,5, /* B8 */
3,3,3,1, 2,2,3,6, /* C0 */
4,1,3,1, 1,2,1,1, /* C8 */
2,2,2,2, 2,2,0,1, /* D0 */
/* For the floating instructions, don't need room for the FWAIT */
2,2,2,2, 2,2,2,2, /* D8 */
2,2,2,2, 2,2,2,2, /* E0 */
5,5,7,2, 1,1,1,1, /* E8 */
1,0,1,1, 1,1,2,2, /* F0 */
1,1,1,1, 1,1,2,2 /* F8 */
];
/* For 2 byte opcodes starting with 0x0F */
private __gshared ubyte[256] inssize2 =
[ M|3,M|3,M|3,M|3, 2,2,2,2, // 00
2,2,M|3,2, 2,M|3,2,M|T|E|4, // 08
M|3,M|3,M|3,M|3, M|3,M|3,M|3,M|3, // 10
M|3,2,2,2, 2,2,2,2, // 18
M|3,M|3,M|3,M|3, M|3,2,M|3,2, // 20
M|3,M|3,M|3,M|3, M|3,M|3,M|3,M|3, // 28
2,2,2,2, 2,2,2,2, // 30
M|4,2,M|T|E|5,2, 2,2,2,2, // 38
M|3,M|3,M|3,M|3, M|3,M|3,M|3,M|3, // 40
M|3,M|3,M|3,M|3, M|3,M|3,M|3,M|3, // 48
M|3,M|3,M|3,M|3, M|3,M|3,M|3,M|3, // 50
M|3,M|3,M|3,M|3, M|3,M|3,M|3,M|3, // 58
M|3,M|3,M|3,M|3, M|3,M|3,M|3,M|3, // 60
M|3,M|3,M|3,M|3, M|3,M|3,M|3,M|3, // 68
M|T|E|4,M|T|E|4,M|T|E|4,M|T|E|4, M|3,M|3,M|3,2, // 70
2,2,2,2, M|3,M|3,M|3,M|3, // 78
W|T|4,W|T|4,W|T|4,W|T|4, W|T|4,W|T|4,W|T|4,W|T|4, // 80
W|T|4,W|T|4,W|T|4,W|T|4, W|T|4,W|T|4,W|T|4,W|T|4, // 88
M|3,M|3,M|3,M|3, M|3,M|3,M|3,M|3, // 90
M|3,M|3,M|3,M|3, M|3,M|3,M|3,M|3, // 98
2,2,2,M|3, M|T|E|4,M|3,2,2, // A0
2,2,2,M|3, M|T|E|4,M|3,M|3,M|3, // A8
M|E|3,M|3,M|3,M|3, M|3,M|3,M|3,M|3, // B0
M|3,2,M|T|E|4,M|3, M|3,M|3,M|3,M|3, // B8
M|3,M|3,M|T|E|4,M|3, M|T|E|4,M|T|E|4,M|T|E|4,M|3, // C0
2,2,2,2, 2,2,2,2, // C8
M|3,M|3,M|3,M|3, M|3,M|3,M|3,M|3, // D0
M|3,M|3,M|3,M|3, M|3,M|3,M|3,M|3, // D8
M|3,M|3,M|3,M|3, M|3,M|3,M|3,M|3, // E0
M|3,M|3,M|3,M|3, M|3,M|3,M|3,M|3, // E8
M|3,M|3,M|3,M|3, M|3,M|3,M|3,M|3, // F0
M|3,M|3,M|3,M|3, M|3,M|3,M|3,2 // F8
];
/*************************************************
* Generate code to save `reg` in `regsave` stack area.
* Params:
* regsave = register save areay on stack
* cdb = where to write generated code
* reg = register to save
* idx = set to location in regsave for use in REGSAVE_restore()
*/
void REGSAVE_save(ref REGSAVE regsave, ref CodeBuilder cdb, reg_t reg, out uint idx)
{
if (isXMMreg(reg))
{
regsave.alignment = 16;
regsave.idx = (regsave.idx + 15) & ~15;
idx = regsave.idx;
regsave.idx += 16;
// MOVD idx[RBP],xmm
opcode_t op = STOAPD;
if (TARGET_LINUX && I32)
// Haven't yet figured out why stack is not aligned to 16
op = STOUPD;
cdb.genc1(op,modregxrm(2, reg - XMM0, BPRM),FLregsave,cast(targ_uns) idx);
}
else
{
if (!regsave.alignment)
regsave.alignment = REGSIZE;
idx = regsave.idx;
regsave.idx += REGSIZE;
// MOV idx[RBP],reg
cdb.genc1(0x89,modregxrm(2, reg, BPRM),FLregsave,cast(targ_uns) idx);
if (I64)
code_orrex(cdb.last(), REX_W);
}
reflocal = true;
if (regsave.idx > regsave.top)
regsave.top = regsave.idx; // keep high water mark
}
/*******************************
* Restore `reg` from `regsave` area.
* Complement REGSAVE_save().
*/
void REGSAVE_restore(const ref REGSAVE regsave, ref CodeBuilder cdb, reg_t reg, uint idx)
{
if (isXMMreg(reg))
{
assert(regsave.alignment == 16);
// MOVD xmm,idx[RBP]
opcode_t op = LODAPD;
if (TARGET_LINUX && I32)
// Haven't yet figured out why stack is not aligned to 16
op = LODUPD;
cdb.genc1(op,modregxrm(2, reg - XMM0, BPRM),FLregsave,cast(targ_uns) idx);
}
else
{ // MOV reg,idx[RBP]
cdb.genc1(0x8B,modregxrm(2, reg, BPRM),FLregsave,cast(targ_uns) idx);
if (I64)
code_orrex(cdb.last(), REX_W);
}
}
/************************************
* Size for vex encoded instruction.
*/
ubyte vex_inssize(code *c)
{
assert(c.Iflags & CFvex && c.Ivex.pfx == 0xC4);
ubyte ins;
if (c.Iflags & CFvex3)
{
switch (c.Ivex.mmmm)
{
case 0: // no prefix
case 1: // 0F
ins = cast(ubyte)(inssize2[c.Ivex.op] + 2);
break;
case 2: // 0F 38
ins = cast(ubyte)(inssize2[0x38] + 1);
break;
case 3: // 0F 3A
ins = cast(ubyte)(inssize2[0x3A] + 1);
break;
default:
printf("Iop = %x mmmm = %x\n", c.Iop, c.Ivex.mmmm);
assert(0);
}
}
else
{
ins = cast(ubyte)(inssize2[c.Ivex.op] + 1);
}
return ins;
}
/************************************
* Determine if there is a modregrm byte for code.
*/
int cod3_EA(code *c)
{ uint ins;
opcode_t op1 = c.Iop & 0xFF;
if (op1 == ESCAPE)
ins = 0;
else if ((c.Iop & 0xFFFD00) == 0x0F3800)
ins = inssize2[(c.Iop >> 8) & 0xFF];
else if ((c.Iop & 0xFF00) == 0x0F00)
ins = inssize2[op1];
else
ins = inssize[op1];
return ins & M;
}
/********************************
* setup ALLREGS and BYTEREGS
* called by: codgen
*/
void cod3_initregs()
{
if (I64)
{
ALLREGS = mAX|mBX|mCX|mDX|mSI|mDI| mR8|mR9|mR10|mR11|mR12|mR13|mR14|mR15;
BYTEREGS = ALLREGS;
}
else
{
ALLREGS = ALLREGS_INIT;
BYTEREGS = BYTEREGS_INIT;
}
}
/********************************
* set initial global variable values
*/
void cod3_setdefault()
{
fregsaved = mBP | mSI | mDI;
}
/********************************
* Fix global variables for 386.
*/
void cod3_set32()
{
inssize[0xA0] = T|5;
inssize[0xA1] = T|5;
inssize[0xA2] = T|5;
inssize[0xA3] = T|5;
BPRM = 5; /* [EBP] addressing mode */
fregsaved = mBP | mBX | mSI | mDI; // saved across function calls
FLOATREGS = FLOATREGS_32;
FLOATREGS2 = FLOATREGS2_32;
DOUBLEREGS = DOUBLEREGS_32;
if (config.flags3 & CFG3eseqds)
fregsaved |= mES;
foreach (ref v; inssize2[0x80 .. 0x90])
v = W|T|6;
TARGET_STACKALIGN = config.fpxmmregs ? 16 : 4;
}
/********************************
* Fix global variables for I64.
*/
void cod3_set64()
{
inssize[0xA0] = T|5; // MOV AL,mem
inssize[0xA1] = T|5; // MOV RAX,mem
inssize[0xA2] = T|5; // MOV mem,AL
inssize[0xA3] = T|5; // MOV mem,RAX
BPRM = 5; // [RBP] addressing mode
static if (TARGET_WINDOS)
{
fregsaved = mBP | mBX | mDI | mSI | mR12 | mR13 | mR14 | mR15 | mES | mXMM6 | mXMM7; // also XMM8..15;
}
else
{
fregsaved = mBP | mBX | mR12 | mR13 | mR14 | mR15 | mES; // saved across function calls
}
FLOATREGS = FLOATREGS_64;
FLOATREGS2 = FLOATREGS2_64;
DOUBLEREGS = DOUBLEREGS_64;
ALLREGS = mAX|mBX|mCX|mDX|mSI|mDI| mR8|mR9|mR10|mR11|mR12|mR13|mR14|mR15;
BYTEREGS = ALLREGS;
foreach (ref v; inssize2[0x80 .. 0x90])
v = W|T|6;
TARGET_STACKALIGN = config.fpxmmregs ? 16 : 8;
}
/*********************************
* Word or dword align start of function.
* Params:
* seg = segment to write alignment bytes to
* nbytes = number of alignment bytes to write
*/
void cod3_align_bytes(int seg, size_t nbytes)
{
/* Table 4-2 from Intel Instruction Set Reference M-Z
* 1 bytes NOP 90
* 2 bytes 66 NOP 66 90
* 3 bytes NOP DWORD ptr [EAX] 0F 1F 00
* 4 bytes NOP DWORD ptr [EAX + 00H] 0F 1F 40 00
* 5 bytes NOP DWORD ptr [EAX + EAX*1 + 00H] 0F 1F 44 00 00
* 6 bytes 66 NOP DWORD ptr [EAX + EAX*1 + 00H] 66 0F 1F 44 00 00
* 7 bytes NOP DWORD ptr [EAX + 00000000H] 0F 1F 80 00 00 00 00
* 8 bytes NOP DWORD ptr [EAX + EAX*1 + 00000000H] 0F 1F 84 00 00 00 00 00
* 9 bytes 66 NOP DWORD ptr [EAX + EAX*1 + 00000000H] 66 0F 1F 84 00 00 00 00 00
* only for CPUs: CPUID.01H.EAX[Bytes 11:8] = 0110B or 1111B
*/
assert(SegData[seg].SDseg == seg);
while (nbytes)
{ size_t n = nbytes;
const(char)* p;
if (nbytes > 1 && (I64 || config.fpxmmregs))
{
switch (n)
{
case 2: p = "\x66\x90"; break;
case 3: p = "\x0F\x1F\x00"; break;
case 4: p = "\x0F\x1F\x40\x00"; break;
case 5: p = "\x0F\x1F\x44\x00\x00"; break;
case 6: p = "\x66\x0F\x1F\x44\x00\x00"; break;
case 7: p = "\x0F\x1F\x80\x00\x00\x00\x00"; break;
case 8: p = "\x0F\x1F\x84\x00\x00\x00\x00\x00"; break;
default: p = "\x66\x0F\x1F\x84\x00\x00\x00\x00\x00"; n = 9; break;
}
}
else
{
static immutable ubyte[15] nops = [
0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90,0x90
]; // XCHG AX,AX
if (n > nops.length)
n = nops.length;
p = cast(char*)nops;
}
objmod.write_bytes(SegData[seg],cast(uint)n,cast(char*)p);
nbytes -= n;
}
}
/****************************
* Align start of function.
* Params:
* seg = segment of function
*/
void cod3_align(int seg)
{
uint nbytes;
static if (TARGET_WINDOS)
{
if (config.flags4 & CFG4speed) // if optimized for speed
{
// Pick alignment based on CPU target
if (config.target_cpu == TARGET_80486 ||
config.target_cpu >= TARGET_PentiumPro)
{ // 486 does reads on 16 byte boundaries, so if we are near
// such a boundary, align us to it
nbytes = -Offset(seg) & 15;
if (nbytes < 8)
cod3_align_bytes(seg, nbytes);
}
}
}
else
{
nbytes = -Offset(seg) & 7;
cod3_align_bytes(seg, nbytes);
}
}
/**********************************
* Generate code to adjust the stack pointer by `nbytes`
* Params:
* cdb = code builder
* nbytes = number of bytes to adjust stack pointer
*/
void cod3_stackadj(ref CodeBuilder cdb, int nbytes)
{
//printf("cod3_stackadj(%d)\n", nbytes);
uint grex = I64 ? REX_W << 16 : 0;
uint rm;
if (nbytes > 0)
rm = modregrm(3,5,SP); // SUB ESP,nbytes
else
{
nbytes = -nbytes;
rm = modregrm(3,0,SP); // ADD ESP,nbytes
}
cdb.genc2(0x81, grex | rm, nbytes);
}
/**********************************
* Generate code to align the stack pointer at `nbytes`
* Params:
* cdb = code builder
* nbytes = number of bytes to align stack pointer
*/
void cod3_stackalign(ref CodeBuilder cdb, int nbytes)
{
//printf("cod3_stackalign(%d)\n", nbytes);
const grex = I64 ? REX_W << 16 : 0;
const rm = modregrm(3, 4, SP); // AND ESP,-nbytes
cdb.genc2(0x81, grex | rm, -nbytes);
}
static if (ELFOBJ)
{
/* Constructor that links the ModuleReference to the head of
* the list pointed to by _Dmoduleref
*/
void cod3_buildmodulector(Outbuffer* buf, int codeOffset, int refOffset)
{
/* ret
* codeOffset:
* pushad
* mov EAX,&ModuleReference
* mov ECX,_DmoduleRef
* mov EDX,[ECX]
* mov [EAX],EDX
* mov [ECX],EAX
* popad
* ret
*/
const int seg = CODE;
if (I64 && config.flags3 & CFG3pic)
{ // LEA RAX,ModuleReference[RIP]
buf.writeByte(REX | REX_W);
buf.writeByte(LEA);
buf.writeByte(modregrm(0,AX,5));
codeOffset += 3;
codeOffset += Obj.writerel(seg, codeOffset, R_X86_64_PC32, 3 /*STI_DATA*/, refOffset - 4);
// MOV RCX,_DmoduleRef@GOTPCREL[RIP]
buf.writeByte(REX | REX_W);
buf.writeByte(0x8B);
buf.writeByte(modregrm(0,CX,5));
codeOffset += 3;
codeOffset += Obj.writerel(seg, codeOffset, R_X86_64_GOTPCREL, Obj.external_def("_Dmodule_ref"), -4);
}
else
{
/* movl ModuleReference*, %eax */
buf.writeByte(0xB8);
codeOffset += 1;
const uint reltype = I64 ? R_X86_64_32 : R_386_32;
codeOffset += Obj.writerel(seg, codeOffset, reltype, 3 /*STI_DATA*/, refOffset);
/* movl _Dmodule_ref, %ecx */
buf.writeByte(0xB9);
codeOffset += 1;
codeOffset += Obj.writerel(seg, codeOffset, reltype, Obj.external_def("_Dmodule_ref"), 0);
}
if (I64)
buf.writeByte(REX | REX_W);
buf.writeByte(0x8B); buf.writeByte(0x11); /* movl (%ecx), %edx */
if (I64)
buf.writeByte(REX | REX_W);
buf.writeByte(0x89); buf.writeByte(0x10); /* movl %edx, (%eax) */
if (I64)
buf.writeByte(REX | REX_W);
buf.writeByte(0x89); buf.writeByte(0x01); /* movl %eax, (%ecx) */
buf.writeByte(0xC3); /* ret */
}
}
/*****************************
* Given a type, return a mask of
* registers to hold that type.
* Input:
* tyf function type
*/
regm_t regmask(tym_t tym, tym_t tyf)
{
switch (tybasic(tym))
{
case TYvoid:
case TYstruct:
case TYarray:
return 0;
case TYbool:
case TYwchar_t:
case TYchar16:
case TYchar:
case TYschar:
case TYuchar:
case TYshort:
case TYushort:
case TYint:
case TYuint:
case TYnullptr:
case TYnptr:
case TYnref:
case TYsptr:
case TYcptr:
case TYimmutPtr:
case TYsharePtr:
case TYfgPtr:
return mAX;
case TYfloat:
case TYifloat:
if (I64)
return mXMM0;
if (config.exe & EX_flat)
return mST0;
goto case TYlong;
case TYlong:
case TYulong:
case TYdchar:
if (!I16)
return mAX;
goto case TYfptr;
case TYfptr:
case TYhptr:
return mDX | mAX;
case TYcent:
case TYucent:
assert(I64);
return mDX | mAX;
case TYvptr:
return mDX | mBX;
case TYdouble:
case TYdouble_alias:
case TYidouble:
if (I64)
return mXMM0;
if (config.exe & EX_flat)
return mST0;
return DOUBLEREGS;
case TYllong:
case TYullong:
return I64 ? cast(regm_t) mAX : (I32 ? mDX | mAX : DOUBLEREGS);
case TYldouble:
case TYildouble:
return mST0;
case TYcfloat:
static if (TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_OPENBSD || TARGET_DRAGONFLYBSD || TARGET_SOLARIS)
{
if (I32 && tybasic(tyf) == TYnfunc)
return mDX | mAX;
}
goto case TYcdouble;
case TYcdouble:
if (I64)
return mXMM0 | mXMM1;
goto case TYcldouble;
case TYcldouble:
return mST01;
// SIMD vector types
case TYfloat4:
case TYdouble2:
case TYschar16:
case TYuchar16:
case TYshort8:
case TYushort8:
case TYlong4:
case TYulong4:
case TYllong2:
case TYullong2:
case TYfloat8:
case TYdouble4:
case TYschar32:
case TYuchar32:
case TYshort16:
case TYushort16:
case TYlong8:
case TYulong8:
case TYllong4:
case TYullong4:
if (!config.fpxmmregs)
{ printf("SIMD operations not supported on this platform\n");
exit(1);
}
return mXMM0;
default:
debug WRTYxx(tym);
assert(0);
}
}
/*******************************
* setup register allocator parameters with platform specific data
*/
void cgreg_dst_regs(reg_t* dst_integer_reg, reg_t* dst_float_reg)
{
*dst_integer_reg = AX;
*dst_float_reg = XMM0;
}
void cgreg_set_priorities(tym_t ty, const(reg_t)** pseq, const(reg_t)** pseqmsw)
{
const sz = tysize(ty);
if (tyxmmreg(ty))
{
static immutable ubyte[9] sequence = [XMM0,XMM1,XMM2,XMM3,XMM4,XMM5,XMM6,XMM7,NOREG];
*pseq = sequence.ptr;
}
else if (I64)
{
if (sz == REGSIZE * 2)
{
static immutable ubyte[3] seqmsw1 = [CX,DX,NOREG];
static immutable ubyte[5] seqlsw1 = [AX,BX,SI,DI,NOREG];
*pseq = seqlsw1.ptr;
*pseqmsw = seqmsw1.ptr;
}
else
{ // R10 is reserved for the static link
static immutable ubyte[15] sequence2 = [AX,CX,DX,SI,DI,R8,R9,R11,BX,R12,R13,R14,R15,BP,NOREG];
*pseq = cast(ubyte*)sequence2.ptr;
}
}
else if (I32)
{
if (sz == REGSIZE * 2)
{
static immutable ubyte[5] seqlsw3 = [AX,BX,SI,DI,NOREG];
static immutable ubyte[3] seqmsw3 = [CX,DX,NOREG];
*pseq = seqlsw3.ptr;
*pseqmsw = seqmsw3.ptr;
}
else
{
static immutable ubyte[8] sequence4 = [AX,CX,DX,BX,SI,DI,BP,NOREG];
*pseq = sequence4.ptr;
}
}
else
{ assert(I16);
if (typtr(ty))
{
// For pointer types, try to pick index register first
static immutable ubyte[8] seqidx5 = [BX,SI,DI,AX,CX,DX,BP,NOREG];
*pseq = seqidx5.ptr;
}
else
{
// Otherwise, try to pick index registers last
static immutable ubyte[8] sequence6 = [AX,CX,DX,BX,SI,DI,BP,NOREG];
*pseq = sequence6.ptr;
}
}
}
/*******************************************
* Call finally block.
* Params:
* bf = block to call
* retregs = registers to preserve across call
* Returns:
* code generated
*/
private code *callFinallyBlock(block *bf, regm_t retregs)
{
CodeBuilder cdbs; cdbs.ctor();
CodeBuilder cdbr; cdbr.ctor();
int nalign = 0;
calledFinally = true;
uint npush = gensaverestore(retregs,cdbs,cdbr);
if (STACKALIGN >= 16)
{ npush += REGSIZE;
if (npush & (STACKALIGN - 1))
{ nalign = STACKALIGN - (npush & (STACKALIGN - 1));
cod3_stackadj(cdbs, nalign);
}
}
cdbs.genc(0xE8,0,0,0,FLblock,cast(targ_size_t)bf);
regcon.immed.mval = 0;
if (nalign)
cod3_stackadj(cdbs, -nalign);
cdbs.append(cdbr);
return cdbs.finish();
}
/*******************************
* Generate block exit code
*/
void outblkexitcode(ref CodeBuilder cdb, block *bl, ref int anyspill, const(char)* sflsave, Symbol** retsym, const regm_t mfuncregsave)
{
CodeBuilder cdb2; cdb2.ctor();
elem *e = bl.Belem;
block *nextb;
regm_t retregs = 0;
if (bl.BC != BCasm)
assert(bl.Bcode == null);
switch (bl.BC) /* block exit condition */
{
case BCiftrue:
{
bool jcond = true;
block *bs1 = bl.nthSucc(0);
block *bs2 = bl.nthSucc(1);
if (bs1 == bl.Bnext)
{ // Swap bs1 and bs2
block *btmp;
jcond ^= 1;
btmp = bs1;
bs1 = bs2;
bs2 = btmp;
}
logexp(cdb,e,jcond,FLblock,cast(code *) bs1);
nextb = bs2;
}
L5:
if (configv.addlinenumbers && bl.Bsrcpos.Slinnum &&
!(funcsym_p.ty() & mTYnaked))
{
//printf("BCiftrue: %s(%u)\n", bl.Bsrcpos.Sfilename ? bl.Bsrcpos.Sfilename : "", bl.Bsrcpos.Slinnum);
cdb.genlinnum(bl.Bsrcpos);
}
if (nextb != bl.Bnext)
{
assert(!(bl.Bflags & BFLepilog));
genjmp(cdb,JMP,FLblock,nextb);
}
break;
case BCjmptab:
case BCifthen:
case BCswitch:
{
assert(!(bl.Bflags & BFLepilog));
doswitch(cdb,bl); // hide messy details
break;
}
version (MARS)
{
case BCjcatch: // D catch clause of try-catch
assert(ehmethod(funcsym_p) != EHmethod.EH_NONE);
// Mark all registers as destroyed. This will prevent
// register assignments to variables used in catch blocks.
getregs(cdb,lpadregs());
if (config.ehmethod == EHmethod.EH_DWARF)
{
/* Each block must have ESP set to the same value it was at the end
* of the prolog. But the unwinder calls catch blocks with ESP set
* at the value it was when the throwing function was called, which
* may have arguments pushed on the stack.
* This instruction will reset ESP to the correct offset from EBP.
*/
cdb.gen1(ESCAPE | ESCfixesp);
}
goto case_goto;
}
version (SCPP)
{
case BCcatch: // C++ catch clause of try-catch
// Mark all registers as destroyed. This will prevent
// register assignments to variables used in catch blocks.
getregs(cdb,allregs | mES);
goto case_goto;
case BCtry:
usednteh |= EHtry;
if (config.exe == EX_WIN32)
usednteh |= NTEHtry;
goto case_goto;
}
case BCgoto:
nextb = bl.nthSucc(0);
if ((MARS ||
funcsym_p.Sfunc.Fflags3 & Fnteh) &&
ehmethod(funcsym_p) != EHmethod.EH_DWARF &&
bl.Btry != nextb.Btry &&
nextb.BC != BC_finally)
{
regm_t retregsx = 0;
gencodelem(cdb,e,&retregsx,true);
int toindex = nextb.Btry ? nextb.Btry.Bscope_index : -1;
assert(bl.Btry);
int fromindex = bl.Btry.Bscope_index;
version (MARS)
{
if (toindex + 1 == fromindex)
{ // Simply call __finally
if (bl.Btry &&
bl.Btry.nthSucc(1).BC == BCjcatch)
{
goto L5; // it's a try-catch, not a try-finally
}
}
}
if (config.ehmethod == EHmethod.EH_WIN32 && !(funcsym_p.Sfunc.Fflags3 & Feh_none) ||
config.ehmethod == EHmethod.EH_SEH)
{
nteh_unwind(cdb,0,toindex);
}
else
{
version (MARS)
{
if (toindex + 1 <= fromindex)
{
//c = cat(c, linux_unwind(0, toindex));
block *bt;
//printf("B%d: fromindex = %d, toindex = %d\n", bl.Bdfoidx, fromindex, toindex);
bt = bl;
while ((bt = bt.Btry) != null && bt.Bscope_index != toindex)
{ block *bf;
//printf("\tbt.Bscope_index = %d, bt.Blast_index = %d\n", bt.Bscope_index, bt.Blast_index);
bf = bt.nthSucc(1);
// Only look at try-finally blocks
if (bf.BC == BCjcatch)
continue;
if (bf == nextb)
continue;
//printf("\tbf = B%d, nextb = B%d\n", bf.Bdfoidx, nextb.Bdfoidx);
if (nextb.BC == BCgoto &&
!nextb.Belem &&
bf == nextb.nthSucc(0))
continue;
// call __finally
cdb.append(callFinallyBlock(bf.nthSucc(0), retregsx));
}
}
}
}
goto L5;
}
case_goto:
{
regm_t retregsx = 0;
gencodelem(cdb,e,&retregsx,true);
if (anyspill)
{ // Add in the epilog code
CodeBuilder cdbstore; cdbstore.ctor();
CodeBuilder cdbload; cdbload.ctor();
for (int i = 0; i < anyspill; i++)
{ Symbol *s = globsym.tab[i];
if (s.Sflags & SFLspill &&
vec_testbit(dfoidx,s.Srange))
{
s.Sfl = sflsave[i]; // undo block register assignments
cgreg_spillreg_epilog(bl,s,cdbstore,cdbload);
}
}
cdb.append(cdbstore);
cdb.append(cdbload);
}
nextb = bl.nthSucc(0);
goto L5;
}
case BC_try:
if (config.ehmethod == EHmethod.EH_NONE || funcsym_p.Sfunc.Fflags3 & Feh_none)
{
/* Need to use frame pointer to access locals, not the stack pointer,
* because we'll be calling the BC_finally blocks and the stack will be off.
*/
needframe = 1;
}
else if (config.ehmethod == EHmethod.EH_SEH || config.ehmethod == EHmethod.EH_WIN32)
{
usednteh |= NTEH_try;
nteh_usevars();
}
else
usednteh |= EHtry;
goto case_goto;
case BC_finally:
if (ehmethod(funcsym_p) == EHmethod.EH_DWARF)
{
// Mark scratch registers as destroyed.
getregsNoSave(lpadregs());
regm_t retregsx = 0;
gencodelem(cdb,bl.Belem,&retregsx,true);
// JMP bl.nthSucc(1)
nextb = bl.nthSucc(1);
goto L5;
}
else
{
if (config.ehmethod == EHmethod.EH_SEH ||
config.ehmethod == EHmethod.EH_WIN32 && !(funcsym_p.Sfunc.Fflags3 & Feh_none))
{
// Mark all registers as destroyed. This will prevent
// register assignments to variables used in finally blocks.
getregsNoSave(lpadregs());
}
assert(!e);
// Generate CALL to finalizer code
cdb.append(callFinallyBlock(bl.nthSucc(0), 0));
// JMP bl.nthSucc(1)
nextb = bl.nthSucc(1);
goto L5;
}
case BC_lpad:
{
assert(ehmethod(funcsym_p) == EHmethod.EH_DWARF);
// Mark all registers as destroyed. This will prevent
// register assignments to variables used in finally blocks.
getregsNoSave(lpadregs());
regm_t retregsx = 0;
gencodelem(cdb,bl.Belem,&retregsx,true);
// JMP bl.nthSucc(0)
nextb = bl.nthSucc(0);
goto L5;
}
case BC_ret:
{
regm_t retregsx = 0;
gencodelem(cdb,e,&retregsx,true);
if (ehmethod(funcsym_p) == EHmethod.EH_DWARF)
{
}
else
cdb.gen1(0xC3); // RET
break;
}
static if (NTEXCEPTIONS)
{
case BC_except:
{
assert(!e);
usednteh |= NTEH_except;
nteh_setsp(cdb,0x8B);
getregsNoSave(allregs);
nextb = bl.nthSucc(0);
goto L5;
}
case BC_filter:
{
nteh_filter(cdb, bl);
// Mark all registers as destroyed. This will prevent
// register assignments to variables used in filter blocks.
getregsNoSave(allregs);
regm_t retregsx = regmask(e.Ety, TYnfunc);
gencodelem(cdb,e,&retregsx,true);
cdb.gen1(0xC3); // RET
break;
}
}
case BCretexp:
retregs = regmask(e.Ety, funcsym_p.ty());
// For the final load into the return regs, don't set regcon.used,
// so that the optimizer can potentially use retregs for register
// variable assignments.
if (config.flags4 & CFG4optimized)
{ regm_t usedsave;
docommas(cdb,&e);
usedsave = regcon.used;
if (!OTleaf(e.Eoper))
gencodelem(cdb,e,&retregs,true);
else
{
if (e.Eoper == OPconst)
regcon.mvar = 0;
gencodelem(cdb,e,&retregs,true);
regcon.used = usedsave;
if (e.Eoper == OPvar)
{ Symbol *s = e.EV.Vsym;
if (s.Sfl == FLreg && s.Sregm != mAX)
*retsym = s;
}
}
}
else
{
gencodelem(cdb,e,&retregs,true);
}
goto L4;
case BCret:
case BCexit:
retregs = 0;
gencodelem(cdb,e,&retregs,true);
L4:
if (retregs == mST0)
{ assert(global87.stackused == 1);
pop87(); // account for return value
}
else if (retregs == mST01)
{ assert(global87.stackused == 2);
pop87();
pop87(); // account for return value
}
if (bl.BC == BCexit)
{
if (config.flags4 & CFG4optimized)
mfuncreg = mfuncregsave;
}
else if (MARS || usednteh & NTEH_try)
{
block *bt = bl;
while ((bt = bt.Btry) != null)
{
block *bf = bt.nthSucc(1);
version (MARS)
{
// Only look at try-finally blocks
if (bf.BC == BCjcatch)
{
continue;
}
}
if (config.ehmethod == EHmethod.EH_WIN32 && !(funcsym_p.Sfunc.Fflags3 & Feh_none) ||
config.ehmethod == EHmethod.EH_SEH)
{
if (bt.Bscope_index == 0)
{
// call __finally
CodeBuilder cdbs; cdbs.ctor();
CodeBuilder cdbr; cdbr.ctor();
nteh_gensindex(cdb,-1);
gensaverestore(retregs,cdbs,cdbr);
cdb.append(cdbs);
cdb.genc(0xE8,0,0,0,FLblock,cast(targ_size_t)bf.nthSucc(0));
regcon.immed.mval = 0;
cdb.append(cdbr);
}
else
{
nteh_unwind(cdb,retregs,~0);
}
break;
}
else
{
// call __finally
cdb.append(callFinallyBlock(bf.nthSucc(0), retregs));
}
}
}
break;
case BCasm:
{
assert(!e);
// Mark destroyed registers
CodeBuilder cdbx; cdbx.ctor();
getregs(cdbx,iasm_regs(bl)); // mark destroyed registers
code *c = cdbx.finish();
if (bl.Bsucc)
{ nextb = bl.nthSucc(0);
if (!bl.Bnext)
{
cdb.append(bl.Bcode);
cdb.append(c);
goto L5;
}
if (nextb != bl.Bnext &&
bl.Bnext &&
!(bl.Bnext.BC == BCgoto &&
!bl.Bnext.Belem &&
nextb == bl.Bnext.nthSucc(0)))
{
// See if already have JMP at end of block
code *cl = code_last(bl.Bcode);
if (!cl || cl.Iop != JMP)
{
cdb.append(bl.Bcode);
cdb.append(c);
goto L5; // add JMP at end of block
}
}
}
cdb.append(bl.Bcode);
break;
}
default:
debug
printf("bl.BC = %d\n",bl.BC);
assert(0);
}
}
/***********************************************
* Struct necessary for sorting switch cases.
*/
alias _compare_fp_t = extern(C) nothrow int function(const void*, const void*);
extern(C) void qsort(void* base, size_t nmemb, size_t size, _compare_fp_t compar);
extern (C) // qsort cmp functions need to be "C"
{
struct CaseVal
{
targ_ullong val;
block *target;
/* Sort function for qsort() */
extern (C) static nothrow int cmp(scope const(void*) p, scope const(void*) q)
{
const(CaseVal)* c1 = cast(const(CaseVal)*)p;
const(CaseVal)* c2 = cast(const(CaseVal)*)q;
return (c1.val < c2.val) ? -1 : ((c1.val == c2.val) ? 0 : 1);
}
}
}
/***
* Generate comparison of [reg2,reg] with val
*/
private void cmpval(ref CodeBuilder cdb, targ_llong val, uint sz, reg_t reg, reg_t reg2, reg_t sreg)
{
if (I64 && sz == 8)
{
assert(reg2 == NOREG);
if (val == cast(int)val) // if val is a 64 bit value sign-extended from 32 bits
{
cdb.genc2(0x81,modregrmx(3,7,reg),cast(targ_size_t)val); // CMP reg,value32
cdb.last().Irex |= REX_W; // 64 bit operand
}
else
{
assert(sreg != NOREG);
movregconst(cdb,sreg,cast(targ_size_t)val,64); // MOV sreg,val64
genregs(cdb,0x3B,reg,sreg); // CMP reg,sreg
code_orrex(cdb.last(), REX_W);
getregsNoSave(mask(sreg)); // don't remember we loaded this constant
}
}
else if (reg2 == NOREG)
cdb.genc2(0x81,modregrmx(3,7,reg),cast(targ_size_t)val); // CMP reg,casevalue
else
{
cdb.genc2(0x81,modregrm(3,7,reg2),cast(targ_size_t)MSREG(val)); // CMP reg2,MSREG(casevalue)
code *cnext = gennop(null);
genjmp(cdb,JNE,FLcode,cast(block *) cnext); // JNE cnext
cdb.genc2(0x81,modregrm(3,7,reg),cast(targ_size_t)val); // CMP reg,casevalue
cdb.append(cnext);
}
}
private void ifthen(ref CodeBuilder cdb, CaseVal *casevals, size_t ncases,
uint sz, reg_t reg, reg_t reg2, reg_t sreg, block *bdefault, bool last)
{
if (ncases >= 4 && config.flags4 & CFG4speed)
{
size_t pivot = ncases >> 1;
// Compares for casevals[0..pivot]
CodeBuilder cdb1; cdb1.ctor();
ifthen(cdb1, casevals, pivot, sz, reg, reg2, sreg, bdefault, true);
// Compares for casevals[pivot+1..ncases]
CodeBuilder cdb2; cdb2.ctor();
ifthen(cdb2, casevals + pivot + 1, ncases - pivot - 1, sz, reg, reg2, sreg, bdefault, last);
code *c2 = gennop(null);
// Compare for caseval[pivot]
cmpval(cdb, casevals[pivot].val, sz, reg, reg2, sreg);
genjmp(cdb,JE,FLblock,casevals[pivot].target); // JE target
// Note uint jump here, as cases were sorted using uint comparisons
genjmp(cdb,JA,FLcode,cast(block *) c2); // JG c2
cdb.append(cdb1);
cdb.append(c2);
cdb.append(cdb2);
}
else
{ // Not worth doing a binary search, just do a sequence of CMP/JE
for (size_t n = 0; n < ncases; n++)
{
targ_llong val = casevals[n].val;
cmpval(cdb, val, sz, reg, reg2, sreg);
code *cnext = null;
if (reg2 != NOREG)
{
cnext = gennop(null);
genjmp(cdb,JNE,FLcode,cast(block *) cnext); // JNE cnext
cdb.genc2(0x81,modregrm(3,7,reg2),cast(targ_size_t)MSREG(val)); // CMP reg2,MSREG(casevalue)
}
genjmp(cdb,JE,FLblock,casevals[n].target); // JE caseaddr
cdb.append(cnext);
}
if (last) // if default is not next block
genjmp(cdb,JMP,FLblock,bdefault);
}
}
/*******************************
* Generate code for blocks ending in a switch statement.
* Take BCswitch and decide on
* BCifthen use if - then code
* BCjmptab index into jump table
* BCswitch search table for match
*/
void doswitch(ref CodeBuilder cdb, block *b)
{
targ_ulong msw;
// If switch tables are in code segment and we need a CS: override to get at them
bool csseg = cast(bool)(config.flags & CFGromable);
//printf("doswitch(%d)\n", b.BC);
elem *e = b.Belem;
elem_debug(e);
docommas(cdb,&e);
cgstate.stackclean++;
tym_t tys = tybasic(e.Ety);
int sz = _tysize[tys];
bool dword = (sz == 2 * REGSIZE);
bool mswsame = true; // assume all msw's are the same
targ_llong *p = b.Bswitch; // pointer to case data
assert(p);
uint ncases = cast(uint)*p++; // number of cases
targ_llong vmax = MINLL; // smallest possible llong
targ_llong vmin = MAXLL; // largest possible llong
for (uint n = 0; n < ncases; n++) // find max and min case values
{
targ_llong val = *p++;
if (val > vmax) vmax = val;
if (val < vmin) vmin = val;
if (REGSIZE == 2)
{
ushort ms = (val >> 16) & 0xFFFF;
if (n == 0)
msw = ms;
else if (msw != ms)
mswsame = 0;
}
else // REGSIZE == 4
{
targ_ulong ms = (val >> 32) & 0xFFFFFFFF;
if (n == 0)
msw = ms;
else if (msw != ms)
mswsame = 0;
}
}
p -= ncases;
//dbg_printf("vmax = x%lx, vmin = x%lx, vmax-vmin = x%lx\n",vmax,vmin,vmax - vmin);
/* Three kinds of switch strategies - pick one
*/
if (ncases <= 3)
goto Lifthen;
else if (I16 && cast(targ_ullong)(vmax - vmin) <= ncases * 2)
goto Ljmptab; // >=50% of the table is case values, rest is default
else if (cast(targ_ullong)(vmax - vmin) <= ncases * 3)
goto Ljmptab; // >= 33% of the table is case values, rest is default
else if (I16)
goto Lswitch;
else
goto Lifthen;
/*************************************************************************/
{ // generate if-then sequence
Lifthen:
regm_t retregs = ALLREGS;
b.BC = BCifthen;
scodelem(cdb,e,&retregs,0,true);
reg_t reg, reg2;
if (dword)
{ reg = findreglsw(retregs);
reg2 = findregmsw(retregs);
}
else
{
reg = findreg(retregs); // reg that result is in
reg2 = NOREG;
}
list_t bl = b.Bsucc;
block *bdefault = b.nthSucc(0);
if (dword && mswsame)
{
cdb.genc2(0x81,modregrm(3,7,reg2),msw); // CMP reg2,MSW
genjmp(cdb,JNE,FLblock,bdefault); // JNE default
reg2 = NOREG;
}
reg_t sreg = NOREG; // may need a scratch register
// Put into casevals[0..ncases] so we can sort then slice
CaseVal *casevals = cast(CaseVal *)malloc(ncases * CaseVal.sizeof);
assert(casevals);
for (uint n = 0; n < ncases; n++)
{
casevals[n].val = p[n];
bl = list_next(bl);
casevals[n].target = list_block(bl);
// See if we need a scratch register
if (sreg == NOREG && I64 && sz == 8 && p[n] != cast(int)p[n])
{ regm_t regm = ALLREGS & ~mask(reg);
allocreg(cdb,®m, &sreg, TYint);
}
}
// Sort cases so we can do a runtime binary search
qsort(casevals, ncases, CaseVal.sizeof, &CaseVal.cmp);
//for (uint n = 0; n < ncases; n++)
//printf("casevals[%lld] = x%x\n", n, casevals[n].val);
// Generate binary tree of comparisons
ifthen(cdb, casevals, ncases, sz, reg, reg2, sreg, bdefault, bdefault != b.Bnext);
free(casevals);
cgstate.stackclean--;
return;
}
/*************************************************************************/
{
// Use switch value to index into jump table
Ljmptab:
//printf("Ljmptab:\n");
b.BC = BCjmptab;
/* If vmin is small enough, we can just set it to 0 and the jump
* table entries from 0..vmin-1 can be set with the default target.
* This saves the SUB instruction.
* Must be same computation as used in outjmptab().
*/
if (vmin > 0 && vmin <= _tysize[TYint])
vmin = 0;
b.Btablesize = cast(int) (vmax - vmin + 1) * tysize(TYnptr);
regm_t retregs = IDXREGS;
if (dword)
retregs |= mMSW;
static if (TARGET_LINUX || TARGET_FREEBSD || TARGET_OPENBSD || TARGET_DRAGONFLYBSD || TARGET_SOLARIS)
{
if (I32 && config.flags3 & CFG3pic)
retregs &= ~mBX; // need EBX for GOT
}
bool modify = (I16 || I64 || vmin);
scodelem(cdb,e,&retregs,0,!modify);
reg_t reg = findreg(retregs & IDXREGS); // reg that result is in
reg_t reg2;
if (dword)
reg2 = findregmsw(retregs);
if (modify)
{
assert(!(retregs & regcon.mvar));
getregs(cdb,retregs);
}
if (vmin) // if there is a minimum
{
cdb.genc2(0x81,modregrm(3,5,reg),cast(targ_size_t)vmin); // SUB reg,vmin
if (dword)
{ cdb.genc2(0x81,modregrm(3,3,reg2),cast(targ_size_t)MSREG(vmin)); // SBB reg2,vmin
genjmp(cdb,JNE,FLblock,b.nthSucc(0)); // JNE default
}
}
else if (dword)
{ gentstreg(cdb,reg2); // TEST reg2,reg2
genjmp(cdb,JNE,FLblock,b.nthSucc(0)); // JNE default
}
if (vmax - vmin != REGMASK) // if there is a maximum
{ // CMP reg,vmax-vmin
cdb.genc2(0x81,modregrm(3,7,reg),cast(targ_size_t)(vmax-vmin));
if (I64 && sz == 8)
code_orrex(cdb.last(), REX_W);
genjmp(cdb,JA,FLblock,b.nthSucc(0)); // JA default
}
if (I64)
{
if (!vmin)
{ // Need to clear out high 32 bits of reg
// Use 8B instead of 89, as 89 will be optimized away as a NOP
genregs(cdb,0x8B,reg,reg); // MOV reg,reg
}
if (config.flags3 & CFG3pic || config.exe == EX_WIN64)
{
/* LEA R1,disp[RIP] 48 8D 05 00 00 00 00
* MOVSXD R2,[reg*4][R1] 48 63 14 B8
* LEA R1,[R1][R2] 48 8D 04 02
* JMP R1 FF E0
*/
reg_t r1;
regm_t scratchm = ALLREGS & ~mask(reg);
allocreg(cdb,&scratchm,&r1,TYint);
reg_t r2;
scratchm = ALLREGS & ~(mask(reg) | mask(r1));
allocreg(cdb,&scratchm,&r2,TYint);
CodeBuilder cdbe; cdbe.ctor();
cdbe.genc1(LEA,(REX_W << 16) | modregxrm(0,r1,5),FLswitch,0); // LEA R1,disp[RIP]
cdbe.last().IEV1.Vswitch = b;
cdbe.gen2sib(0x63,(REX_W << 16) | modregxrm(0,r2,4), modregxrmx(2,reg,r1)); // MOVSXD R2,[reg*4][R1]
cdbe.gen2sib(LEA,(REX_W << 16) | modregxrm(0,r1,4),modregxrmx(0,r1,r2)); // LEA R1,[R1][R2]
cdbe.gen2(0xFF,modregrmx(3,4,r1)); // JMP R1
b.Btablesize = cast(int) (vmax - vmin + 1) * 4;
code *ce = cdbe.finish();
pinholeopt(ce, null);
cdb.append(cdbe);
}
else
{
cdb.genc1(0xFF,modregrm(0,4,4),FLswitch,0); // JMP disp[reg*8]
cdb.last().IEV1.Vswitch = b;
cdb.last().Isib = modregrm(3,reg & 7,5);
if (reg & 8)
cdb.last().Irex |= REX_X;
}
}
else if (I32)
{
static if (JMPJMPTABLE)
{
/* LEA jreg,offset ctable[reg][reg * 4]
JMP jreg
ctable:
JMP case0
JMP case1
...
*/
CodeBuilder ctable; ctable.ctor();
block *bdef = b.nthSucc(0);
targ_llong u;
for (u = vmin; ; u++)
{ block *targ = bdef;
for (n = 0; n < ncases; n++)
{
if (p[n] == u)
{ targ = b.nthSucc(n + 1);
break;
}
}
genjmp(ctable,JMP,FLblock,targ);
ctable.last().Iflags |= CFjmp5; // don't shrink these
if (u == vmax)
break;
}
// Allocate scratch register jreg
regm_t scratchm = ALLREGS & ~mask(reg);
uint jreg = AX;
allocreg(cdb,&scratchm,&jreg,TYint);
// LEA jreg, offset ctable[reg][reg*4]
cdb.genc1(LEA,modregrm(2,jreg,4),FLcode,6);
cdb.last().Isib = modregrm(2,reg,reg);
cdb.gen2(0xFF,modregrm(3,4,jreg)); // JMP jreg
cdb.append(ctable);
b.Btablesize = 0;
cgstate.stackclean--;
return;
}
else static if (TARGET_OSX)
{
/* CALL L1
* L1: POP R1
* ADD R1,disp[reg*4][R1]
* JMP R1
*/
// Allocate scratch register r1
regm_t scratchm = ALLREGS & ~mask(reg);
reg_t r1;
allocreg(cdb,&scratchm,&r1,TYint);
cdb.genc2(CALL,0,0); // CALL L1
cdb.gen1(0x58 + r1); // L1: POP R1
cdb.genc1(0x03,modregrm(2,r1,4),FLswitch,0); // ADD R1,disp[reg*4][EBX]
cdb.last().IEV1.Vswitch = b;
cdb.last().Isib = modregrm(2,reg,r1);
cdb.gen2(0xFF,modregrm(3,4,r1)); // JMP R1
}
else
{
if (config.flags3 & CFG3pic)
{
/* MOV R1,EBX
* SUB R1,funcsym_p@GOTOFF[offset][reg*4][EBX]
* JMP R1
*/
// Load GOT in EBX
load_localgot(cdb);
// Allocate scratch register r1
regm_t scratchm = ALLREGS & ~(mask(reg) | mBX);
reg_t r1;
allocreg(cdb,&scratchm,&r1,TYint);
genmovreg(cdb,r1,BX); // MOV R1,EBX
cdb.genc1(0x2B,modregxrm(2,r1,4),FLswitch,0); // SUB R1,disp[reg*4][EBX]
cdb.last().IEV1.Vswitch = b;
cdb.last().Isib = modregrm(2,reg,BX);
cdb.gen2(0xFF,modregrmx(3,4,r1)); // JMP R1
}
else
{
cdb.genc1(0xFF,modregrm(0,4,4),FLswitch,0); // JMP disp[idxreg*4]
cdb.last().IEV1.Vswitch = b;
cdb.last().Isib = modregrm(2,reg,5);
}
}
}
else if (I16)
{
cdb.gen2(0xD1,modregrm(3,4,reg)); // SHL reg,1
uint rm = getaddrmode(retregs) | modregrm(0,4,0);
cdb.genc1(0xFF,rm,FLswitch,0); // JMP [CS:]disp[idxreg]
cdb.last().IEV1.Vswitch = b;
cdb.last().Iflags |= csseg ? CFcs : 0; // segment override
}
else
assert(0);
cgstate.stackclean--;
return;
}
/*************************************************************************/
{
/* Scan a table of case values, and jump to corresponding address.
* Since it relies on REPNE SCASW, it has really nothing to recommend it
* over Lifthen for 32 and 64 bit code.
* Note that it has not been tested with MACHOBJ (OSX).
*/
Lswitch:
regm_t retregs = mAX; // SCASW requires AX
if (dword)
retregs |= mDX;
else if (ncases <= 6 || config.flags4 & CFG4speed)
goto Lifthen;
scodelem(cdb,e,&retregs,0,true);
if (dword && mswsame)
{ /* CMP DX,MSW */
cdb.genc2(0x81,modregrm(3,7,DX),msw);
genjmp(cdb,JNE,FLblock,b.nthSucc(0)); // JNE default
}
getregs(cdb,mCX|mDI);
static if (TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_OPENBSD || TARGET_DRAGONFLYBSD || TARGET_SOLARIS)
{
if (config.flags3 & CFG3pic)
{ // Add in GOT
getregs(cdb,mDX);
cdb.genc2(CALL,0,0); // CALL L1
cdb.gen1(0x58 + DI); // L1: POP EDI
// ADD EDI,_GLOBAL_OFFSET_TABLE_+3
Symbol *gotsym = Obj.getGOTsym();
cdb.gencs(0x81,modregrm(3,0,DI),FLextern,gotsym);
cdb.last().Iflags = CFoff;
cdb.last().IEV2.Voffset = 3;
makeitextern(gotsym);
genmovreg(cdb, DX, DI); // MOV EDX, EDI
// ADD EDI,offset of switch table
cdb.gencs(0x81,modregrm(3,0,DI),FLswitch,null);
cdb.last().IEV2.Vswitch = b;
}
}
if (!(config.flags3 & CFG3pic))
{
// MOV DI,offset of switch table
cdb.gencs(0xC7,modregrm(3,0,DI),FLswitch,null);
cdb.last().IEV2.Vswitch = b;
}
movregconst(cdb,CX,ncases,0); // MOV CX,ncases
/* The switch table will be accessed through ES:DI.
* Therefore, load ES with proper segment value.
*/
if (config.flags3 & CFG3eseqds)
{
assert(!csseg);
getregs(cdb,mCX); // allocate CX
}
else
{
getregs(cdb,mES|mCX); // allocate ES and CX
cdb.gen1(csseg ? 0x0E : 0x1E); // PUSH CS/DS
cdb.gen1(0x07); // POP ES
}
targ_size_t disp = (ncases - 1) * _tysize[TYint]; // displacement to jump table
if (dword && !mswsame)
{
/* Build the following:
L1: SCASW
JNE L2
CMP DX,[CS:]disp[DI]
L2: LOOPNE L1
*/
const int mod = (disp > 127) ? 2 : 1; // displacement size
code *cloop = genc2(null,0xE0,0,-7 - mod - csseg); // LOOPNE scasw
cdb.gen1(0xAF); // SCASW
code_orflag(cdb.last(),CFtarg2); // target of jump
genjmp(cdb,JNE,FLcode,cast(block *) cloop); // JNE loop
// CMP DX,[CS:]disp[DI]
cdb.genc1(0x39,modregrm(mod,DX,5),FLconst,disp);
cdb.last().Iflags |= csseg ? CFcs : 0; // possible seg override
cdb.append(cloop);
disp += ncases * _tysize[TYint]; // skip over msw table
}
else
{
cdb.gen1(0xF2); // REPNE
cdb.gen1(0xAF); // SCASW
}
genjmp(cdb,JNE,FLblock,b.nthSucc(0)); // JNE default
const int mod = (disp > 127) ? 2 : 1; // 1 or 2 byte displacement
if (csseg)
cdb.gen1(SEGCS); // table is in code segment
static if (TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_OPENBSD || TARGET_DRAGONFLYBSD || TARGET_SOLARIS)
{
if (config.flags3 & CFG3pic)
{ // ADD EDX,(ncases-1)*2[EDI]
cdb.genc1(0x03,modregrm(mod,DX,7),FLconst,disp);
// JMP EDX
cdb.gen2(0xFF,modregrm(3,4,DX));
}
}
if (!(config.flags3 & CFG3pic))
{ // JMP (ncases-1)*2[DI]
cdb.genc1(0xFF,modregrm(mod,4,(I32 ? 7 : 5)),FLconst,disp);
cdb.last().Iflags |= csseg ? CFcs : 0;
}
b.Btablesize = disp + _tysize[TYint] + ncases * tysize(TYnptr);
//assert(b.Bcode);
cgstate.stackclean--;
return;
}
}
/******************************
* Output data block for a jump table (BCjmptab).
* The 'holes' in the table get filled with the
* default label.
*/
void outjmptab(block *b)
{
if (JMPJMPTABLE && I32)
return;
targ_llong *p = b.Bswitch; // pointer to case data
size_t ncases = cast(size_t)*p++; // number of cases
/* Find vmin and vmax, the range of the table will be [vmin .. vmax + 1]
* Must be same computation as used in doswitch().
*/
targ_llong vmax = MINLL; // smallest possible llong
targ_llong vmin = MAXLL; // largest possible llong
for (size_t n = 0; n < ncases; n++) // find min case value
{ targ_llong val = p[n];
if (val > vmax) vmax = val;
if (val < vmin) vmin = val;
}
if (vmin > 0 && vmin <= _tysize[TYint])
vmin = 0;
assert(vmin <= vmax);
/* Segment and offset into which the jump table will be emitted
*/
int jmpseg = objmod.jmpTableSegment(funcsym_p);
targ_size_t *poffset = &Offset(jmpseg);
/* Align start of jump table
*/
targ_size_t alignbytes = _align(0,*poffset) - *poffset;
objmod.lidata(jmpseg,*poffset,alignbytes);
assert(*poffset == b.Btableoffset); // should match precomputed value
Symbol *gotsym = null;
targ_size_t def = b.nthSucc(0).Boffset; // default address
for (targ_llong u = vmin; ; u++)
{ targ_size_t targ = def; // default
for (size_t n = 0; n < ncases; n++)
{ if (p[n] == u)
{ targ = b.nthSucc(cast(int)(n + 1)).Boffset;
break;
}
}
static if (TARGET_LINUX || TARGET_FREEBSD || TARGET_OPENBSD || TARGET_DRAGONFLYBSD || TARGET_SOLARIS)
{
if (I64)
{
if (config.flags3 & CFG3pic)
{
objmod.reftodatseg(jmpseg,*poffset,targ + (u - vmin) * 4,funcsym_p.Sseg,CFswitch);
*poffset += 4;
}
else
{
objmod.reftodatseg(jmpseg,*poffset,targ,funcsym_p.Sxtrnnum,CFoffset64 | CFswitch);
*poffset += 8;
}
}
else
{
if (config.flags3 & CFG3pic)
{
assert(config.flags & CFGromable);
// Want a GOTPC fixup to _GLOBAL_OFFSET_TABLE_
if (!gotsym)
gotsym = Obj.getGOTsym();
objmod.reftoident(jmpseg,*poffset,gotsym,*poffset - targ,CFswitch);
}
else
objmod.reftocodeseg(jmpseg,*poffset,targ);
*poffset += 4;
}
}
else static if (TARGET_OSX)
{
targ_size_t val;
if (I64)
val = targ - b.Btableoffset;
else
val = targ - b.Btablebase;
objmod.write_bytes(SegData[jmpseg],4,&val);
}
else static if (TARGET_WINDOS)
{
if (I64)
{
targ_size_t val = targ - b.Btableoffset;
objmod.write_bytes(SegData[jmpseg],4,&val);
}
else
{
objmod.reftocodeseg(jmpseg,*poffset,targ);
*poffset += tysize(TYnptr);
}
}
else
assert(0);
if (u == vmax) // for case that (vmax == ~0)
break;
}
}
/******************************
* Output data block for a switch table.
* Two consecutive tables, the first is the case value table, the
* second is the address table.
*/
void outswitab(block *b)
{
//printf("outswitab()\n");
targ_llong *p = b.Bswitch; // pointer to case data
uint ncases = cast(uint)*p++; // number of cases
const int seg = objmod.jmpTableSegment(funcsym_p);
targ_size_t *poffset = &Offset(seg);
targ_size_t offset = *poffset;
targ_size_t alignbytes = _align(0,*poffset) - *poffset;
objmod.lidata(seg,*poffset,alignbytes); // any alignment bytes necessary
assert(*poffset == offset + alignbytes);
uint sz = _tysize[TYint];
assert(SegData[seg].SDseg == seg);
for (uint n = 0; n < ncases; n++) // send out value table
{
//printf("\tcase %d, offset = x%x\n", n, *poffset);
objmod.write_bytes(SegData[seg],sz,p);
p++;
}
offset += alignbytes + sz * ncases;
assert(*poffset == offset);
if (b.Btablesize == ncases * (REGSIZE * 2 + tysize(TYnptr)))
{
// Send out MSW table
p -= ncases;
for (uint n = 0; n < ncases; n++)
{
targ_size_t val = cast(targ_size_t)MSREG(*p);
p++;
objmod.write_bytes(SegData[seg],REGSIZE,&val);
}
offset += REGSIZE * ncases;
assert(*poffset == offset);
}
list_t bl = b.Bsucc;
for (uint n = 0; n < ncases; n++) // send out address table
{
bl = list_next(bl);
objmod.reftocodeseg(seg,*poffset,list_block(bl).Boffset);
*poffset += tysize(TYnptr);
}
assert(*poffset == offset + ncases * tysize(TYnptr));
}
/*****************************
* Return a jump opcode relevant to the elem for a JMP true.
*/
int jmpopcode(elem *e)
{
tym_t tym;
int zero,i,jp,op;
static immutable ubyte[6][2][2] jops =
[ /* <= > < >= == != <=0 >0 <0 >=0 ==0 !=0 */
[ [JLE,JG ,JL ,JGE,JE ,JNE],[JLE,JG ,JS ,JNS,JE ,JNE] ], /* signed */
[ [JBE,JA ,JB ,JAE,JE ,JNE],[JE ,JNE,JB ,JAE,JE ,JNE] ], /* uint */
/+
[ [JLE,JG ,JL ,JGE,JE ,JNE],[JLE,JG ,JL ,JGE,JE ,JNE] ], /* real */
[ [JBE,JA ,JB ,JAE,JE ,JNE],[JBE,JA ,JB ,JAE,JE ,JNE] ], /* 8087 */
[ [JA ,JBE,JAE,JB ,JE ,JNE],[JBE,JA ,JB ,JAE,JE ,JNE] ], /* 8087 R */
+/
];
enum
{
XP = (JP << 8),
XNP = (JNP << 8),
}
static immutable uint[26][1] jfops =
/* le gt lt ge eqeq ne unord lg leg ule ul uge */
[
[ XNP|JBE,JA,XNP|JB,JAE,XNP|JE, XP|JNE,JP, JNE,JNP, JBE,JC,XP|JAE,
/* ug ue ngt nge nlt nle ord nlg nleg nule nul nuge nug nue */
XP|JA,JE,JBE,JB, XP|JAE,XP|JA, JNP,JE, JP, JA, JNC,XNP|JB, XNP|JBE,JNE ], /* 8087 */
];
assert(e);
while (e.Eoper == OPcomma ||
/* The OTleaf(e.EV.E1.Eoper) is to line up with the case in cdeq() where */
/* we decide if mPSW is passed on when evaluating E2 or not. */
(e.Eoper == OPeq && OTleaf(e.EV.E1.Eoper)))
{
e = e.EV.E2; /* right operand determines it */
}
op = e.Eoper;
tym_t tymx = tybasic(e.Ety);
bool needsNanCheck = tyfloating(tymx) && config.inline8087 &&
(tymx == TYldouble || tymx == TYildouble || tymx == TYcldouble ||
tymx == TYcdouble || tymx == TYcfloat ||
(tyxmmreg(tymx) && config.fpxmmregs && e.Ecount != e.Ecomsub) ||
op == OPind ||
(OTcall(op) && (regmask(tymx, tybasic(e.EV.E1.Eoper)) & (mST0 | XMMREGS))));
if (e.Ecount != e.Ecomsub) // comsubs just get Z bit set
{
if (needsNanCheck) // except for floating point values that need a NaN check
return XP|JNE;
else
return JNE;
}
if (!OTrel(op)) // not relational operator
{
if (needsNanCheck)
return XP|JNE;
if (op == OPu32_64) { e = e.EV.E1; op = e.Eoper; }
if (op == OPu16_32) { e = e.EV.E1; op = e.Eoper; }
if (op == OPu8_16) op = e.EV.E1.Eoper;
return ((op >= OPbt && op <= OPbts) || op == OPbtst) ? JC : JNE;
}
if (e.EV.E2.Eoper == OPconst)
zero = !boolres(e.EV.E2);
else
zero = 0;
tym = e.EV.E1.Ety;
if (tyfloating(tym))
{
static if (1)
{
i = 0;
if (config.inline8087)
{ i = 1;
static if (1)
{
if (rel_exception(op) || config.flags4 & CFG4fastfloat)
{
const bool NOSAHF = (I64 || config.fpxmmregs);
if (zero)
{
if (NOSAHF)
op = swaprel(op);
}
else if (NOSAHF)
op = swaprel(op);
else if (cmporder87(e.EV.E2))
op = swaprel(op);
else
{ }
}
else
{
if (zero && config.target_cpu < TARGET_80386)
{ }
else
op = swaprel(op);
}
}
else
{
if (zero && !rel_exception(op) && config.target_cpu >= TARGET_80386)
op = swaprel(op);
else if (!zero &&
(cmporder87(e.EV.E2) || !(rel_exception(op) || config.flags4 & CFG4fastfloat)))
/* compare is reversed */
op = swaprel(op);
}
}
jp = jfops[0][op - OPle];
goto L1;
}
else
{
i = (config.inline8087) ? (3 + cmporder87(e.EV.E2)) : 2;
}
}
else if (tyuns(tym) || tyuns(e.EV.E2.Ety))
i = 1;
else if (tyintegral(tym) || typtr(tym))
i = 0;
else
{
debug
elem_print(e);
WRTYxx(tym);
assert(0);
}
jp = jops[i][zero][op - OPle]; /* table starts with OPle */
/* Try to rewrite uint comparisons so they rely on just the Carry flag
*/
if (i == 1 && (jp == JA || jp == JBE) &&
(e.EV.E2.Eoper != OPconst && e.EV.E2.Eoper != OPrelconst))
{
jp = (jp == JA) ? JC : JNC;
}
L1:
debug
if ((jp & 0xF0) != 0x70)
{
WROP(op);
printf("i %d zero %d op x%x jp x%x\n",i,zero,op,jp);
}
assert((jp & 0xF0) == 0x70);
return jp;
}
/**********************************
* Append code to cdb which validates pointer described by
* addressing mode in *pcs. Modify addressing mode in *pcs.
* Params:
* cdb = append generated code to this
* pcs = original addressing mode to be updated
* keepmsk = mask of registers we must not destroy or use
* if (keepmsk & RMstore), this will be only a store operation
* into the lvalue
*/
void cod3_ptrchk(ref CodeBuilder cdb,code *pcs,regm_t keepmsk)
{
ubyte sib;
reg_t reg;
uint flagsave;
assert(!I64);
if (!I16 && pcs.Iflags & (CFes | CFss | CFcs | CFds | CFfs | CFgs))
return; // not designed to deal with 48 bit far pointers
ubyte rm = pcs.Irm;
assert(!(rm & 0x40)); // no disp8 or reg addressing modes
// If the addressing mode is already a register
reg = rm & 7;
if (I16)
{ static immutable ubyte[8] imode = [ BP,BP,BP,BP,SI,DI,BP,BX ];
reg = imode[reg]; // convert [SI] to SI, etc.
}
regm_t idxregs = mask(reg);
if ((rm & 0x80 && (pcs.IFL1 != FLoffset || pcs.IEV1.Vuns)) ||
!(idxregs & ALLREGS)
)
{
// Load the offset into a register, so we can push the address
regm_t idxregs2 = (I16 ? IDXREGS : ALLREGS) & ~keepmsk; // only these can be index regs
assert(idxregs2);
allocreg(cdb,&idxregs2,®,TYoffset);
const opsave = pcs.Iop;
flagsave = pcs.Iflags;
pcs.Iop = LEA;
pcs.Irm |= modregrm(0,reg,0);
pcs.Iflags &= ~(CFopsize | CFss | CFes | CFcs); // no prefix bytes needed
cdb.gen(pcs); // LEA reg,EA
pcs.Iflags = flagsave;
pcs.Iop = opsave;
}
// registers destroyed by the function call
//used = (mBP | ALLREGS | mES) & ~fregsaved;
regm_t used = 0; // much less code generated this way
code *cs2 = null;
regm_t tosave = used & (keepmsk | idxregs);
for (int i = 0; tosave; i++)
{
regm_t mi = mask(i);
assert(i < REGMAX);
if (mi & tosave) /* i = register to save */
{
int push,pop;
stackchanged = 1;
if (i == ES)
{ push = 0x06;
pop = 0x07;
}
else
{ push = 0x50 + i;
pop = push | 8;
}
cdb.gen1(push); // PUSH i
cs2 = cat(gen1(null,pop),cs2); // POP i
tosave &= ~mi;
}
}
// For 16 bit models, push a far pointer
if (I16)
{
int segreg;
switch (pcs.Iflags & (CFes | CFss | CFcs | CFds | CFfs | CFgs))
{ case CFes: segreg = 0x06; break;
case CFss: segreg = 0x16; break;
case CFcs: segreg = 0x0E; break;
case 0: segreg = 0x1E; break; // DS
default:
assert(0);
}
// See if we should default to SS:
// (Happens when BP is part of the addressing mode)
if (segreg == 0x1E && (rm & 0xC0) != 0xC0 &&
rm & 2 && (rm & 7) != 7)
{
segreg = 0x16;
if (config.wflags & WFssneds)
pcs.Iflags |= CFss; // because BP won't be there anymore
}
cdb.gen1(segreg); // PUSH segreg
}
cdb.gen1(0x50 + reg); // PUSH reg
// Rewrite the addressing mode in *pcs so it is just 0[reg]
setaddrmode(pcs, idxregs);
pcs.IFL1 = FLoffset;
pcs.IEV1.Vuns = 0;
// Call the validation function
{
makeitextern(getRtlsym(RTLSYM_PTRCHK));
used &= ~(keepmsk | idxregs); // regs destroyed by this exercise
getregs(cdb,used);
// CALL __ptrchk
cdb.gencs((LARGECODE) ? 0x9A : CALL,0,FLfunc,getRtlsym(RTLSYM_PTRCHK));
}
cdb.append(cs2);
}
/***********************************
* Determine if BP can be used as a general purpose register.
* Note parallels between this routine and prolog().
* Returns:
* 0 can't be used, needed for frame
* mBP can be used
*/
regm_t cod3_useBP()
{
tym_t tym;
tym_t tyf;
// Note that DOSX memory model cannot use EBP as a general purpose
// register, as SS != DS.
if (!(config.exe & EX_flat) || config.flags & (CFGalwaysframe | CFGnoebp))
goto Lcant;
if (anyiasm)
goto Lcant;
tyf = funcsym_p.ty();
if (tyf & mTYnaked) // if no prolog/epilog for function
goto Lcant;
if (funcsym_p.Sfunc.Fflags3 & Ffakeeh)
{
goto Lcant; // need consistent stack frame
}
tym = tybasic(tyf);
if (tym == TYifunc)
goto Lcant;
stackoffsets(0);
localsize = Auto.offset + Fast.offset; // an estimate only
// if (localsize)
{
if (!(config.flags4 & CFG4speed) ||
config.target_cpu < TARGET_Pentium ||
tyfarfunc(tym) ||
config.flags & CFGstack ||
localsize >= 0x100 || // arbitrary value < 0x1000
(usednteh & (NTEH_try | NTEH_except | NTEHcpp | EHcleanup | EHtry | NTEHpassthru)) ||
calledFinally ||
Alloca.size
)
goto Lcant;
}
return mBP;
Lcant:
return 0;
}
/*************************************************
* Generate code segment to be used later to restore a cse
*/
bool cse_simple(code *c, elem *e)
{
regm_t regm;
reg_t reg;
int sz = tysize(e.Ety);
if (!I16 && // don't bother with 16 bit code
e.Eoper == OPadd &&
sz == REGSIZE &&
e.EV.E2.Eoper == OPconst &&
e.EV.E1.Eoper == OPvar &&
isregvar(e.EV.E1,®m,®) &&
!(e.EV.E1.EV.Vsym.Sflags & SFLspill)
)
{
memset(c,0,(*c).sizeof);
// Make this an LEA instruction
c.Iop = LEA;
buildEA(c,reg,-1,1,e.EV.E2.EV.Vuns);
if (I64)
{ if (sz == 8)
c.Irex |= REX_W;
}
return true;
}
else if (e.Eoper == OPind &&
sz <= REGSIZE &&
e.EV.E1.Eoper == OPvar &&
isregvar(e.EV.E1,®m,®) &&
(I32 || I64 || regm & IDXREGS) &&
!(e.EV.E1.EV.Vsym.Sflags & SFLspill)
)
{
memset(c,0,(*c).sizeof);
// Make this a MOV instruction
c.Iop = (sz == 1) ? 0x8A : 0x8B; // MOV reg,EA
buildEA(c,reg,-1,1,0);
if (sz == 2 && I32)
c.Iflags |= CFopsize;
else if (I64)
{ if (sz == 8)
c.Irex |= REX_W;
}
return true;
}
return false;
}
/**************************
* Store `reg` to the common subexpression save area in index `slot`.
* Params:
* cdb = where to write code to
* tym = type of value that's in `reg`
* reg = register to save
* slot = index into common subexpression save area
*/
void gen_storecse(ref CodeBuilder cdb, tym_t tym, reg_t reg, size_t slot)
{
// MOV slot[BP],reg
if (isXMMreg(reg) && config.fpxmmregs) // watch out for ES
{
const aligned = tyvector(tym) ? STACKALIGN >= 16 : true;
const op = xmmstore(tym, aligned);
cdb.genc1(op,modregxrm(2, reg - XMM0, BPRM),FLcs,cast(targ_size_t)slot);
return;
}
opcode_t op = STO; // normal mov
if (reg == ES)
{
reg = 0; // the real reg number
op = 0x8C; // segment reg mov
}
cdb.genc1(op,modregxrm(2, reg, BPRM),FLcs,cast(targ_uns)slot);
if (I64)
code_orrex(cdb.last(), REX_W);
}
void gen_testcse(ref CodeBuilder cdb, tym_t tym, uint sz, size_t slot)
{
// CMP slot[BP],0
cdb.genc(sz == 1 ? 0x80 : 0x81,modregrm(2,7,BPRM),
FLcs,cast(targ_uns)slot, FLconst,cast(targ_uns) 0);
if ((I64 || I32) && sz == 2)
cdb.last().Iflags |= CFopsize;
if (I64 && sz == 8)
code_orrex(cdb.last(), REX_W);
}
void gen_loadcse(ref CodeBuilder cdb, tym_t tym, reg_t reg, size_t slot)
{
// MOV reg,slot[BP]
if (isXMMreg(reg) && config.fpxmmregs)
{
const aligned = tyvector(tym) ? STACKALIGN >= 16 : true;
const op = xmmload(tym, aligned);
cdb.genc1(op,modregxrm(2, reg - XMM0, BPRM),FLcs,cast(targ_size_t)slot);
return;
}
opcode_t op = LOD;
if (reg == ES)
{
op = 0x8E;
reg = 0;
}
cdb.genc1(op,modregxrm(2,reg,BPRM),FLcs,cast(targ_uns)slot);
if (I64)
code_orrex(cdb.last(), REX_W);
}
/***************************************
* Gen code for OPframeptr
*/
void cdframeptr(ref CodeBuilder cdb, elem *e, regm_t *pretregs)
{
regm_t retregs = *pretregs & allregs;
if (!retregs)
retregs = allregs;
reg_t reg;
allocreg(cdb,&retregs, ®, TYint);
code cs;
cs.Iop = ESCAPE | ESCframeptr;
cs.Iflags = 0;
cs.Irex = 0;
cs.Irm = cast(ubyte)reg;
cdb.gen(&cs);
fixresult(cdb,e,retregs,pretregs);
}
/***************************************
* Gen code for load of _GLOBAL_OFFSET_TABLE_.
* This value gets cached in the local variable 'localgot'.
*/
void cdgot(ref CodeBuilder cdb, elem *e, regm_t *pretregs)
{
static if (TARGET_OSX)
{
regm_t retregs = *pretregs & allregs;
if (!retregs)
retregs = allregs;
reg_t reg;
allocreg(cdb,&retregs, ®, TYnptr);
cdb.genc(CALL,0,0,0,FLgot,0); // CALL L1
cdb.gen1(0x58 + reg); // L1: POP reg
fixresult(cdb,e,retregs,pretregs);
}
else static if (TARGET_LINUX || TARGET_FREEBSD || TARGET_OPENBSD || TARGET_DRAGONFLYBSD || TARGET_SOLARIS)
{
regm_t retregs = *pretregs & allregs;
if (!retregs)
retregs = allregs;
reg_t reg;
allocreg(cdb,&retregs, ®, TYnptr);
cdb.genc2(CALL,0,0); // CALL L1
cdb.gen1(0x58 + reg); // L1: POP reg
// ADD reg,_GLOBAL_OFFSET_TABLE_+3
Symbol *gotsym = Obj.getGOTsym();
cdb.gencs(0x81,modregrm(3,0,reg),FLextern,gotsym);
/* Because the 2:3 offset from L1: is hardcoded,
* this sequence of instructions must not
* have any instructions in between,
* so set CFvolatile to prevent the scheduler from rearranging it.
*/
code *cgot = cdb.last();
cgot.Iflags = CFoff | CFvolatile;
cgot.IEV2.Voffset = (reg == AX) ? 2 : 3;
makeitextern(gotsym);
fixresult(cdb,e,retregs,pretregs);
}
else
assert(0);
}
/**************************************************
* Load contents of localgot into EBX.
*/
void load_localgot(ref CodeBuilder cdb)
{
static if (TARGET_LINUX || TARGET_FREEBSD || TARGET_OPENBSD || TARGET_DRAGONFLYBSD || TARGET_SOLARIS)
{
if (config.flags3 & CFG3pic && I32)
{
if (localgot && !(localgot.Sflags & SFLdead))
{
localgot.Sflags &= ~GTregcand; // because this hack doesn't work with reg allocator
elem *e = el_var(localgot);
regm_t retregs = mBX;
codelem(cdb,e,&retregs,false);
el_free(e);
}
else
{
elem *e = el_long(TYnptr, 0);
e.Eoper = OPgot;
regm_t retregs = mBX;
codelem(cdb,e,&retregs,false);
el_free(e);
}
}
}
}
static if (TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_OPENBSD || TARGET_DRAGONFLYBSD || TARGET_SOLARIS)
{
/*****************************
* Returns:
* # of bytes stored
*/
private int obj_namestring(char *p,const(char)* name)
{
size_t len = strlen(name);
if (len > 255)
{
short *ps = cast(short *)p;
p[0] = 0xFF;
p[1] = 0;
ps[1] = cast(short)len;
memcpy(p + 4,name,len);
const int ONS_OHD = 4; // max # of extra bytes added by obj_namestring()
len += ONS_OHD;
}
else
{
p[0] = cast(char)len;
memcpy(p + 1,name,len);
len++;
}
return cast(int)len;
}
}
void genregs(ref CodeBuilder cdb,opcode_t op,uint dstreg,uint srcreg)
{
return cdb.gen2(op,modregxrmx(3,dstreg,srcreg));
}
void gentstreg(ref CodeBuilder cdb, uint t)
{
cdb.gen2(0x85,modregxrmx(3,t,t)); // TEST t,t
code_orflag(cdb.last(),CFpsw);
}
void genpush(ref CodeBuilder cdb, reg_t reg)
{
cdb.gen1(0x50 + (reg & 7));
if (reg & 8)
code_orrex(cdb.last(), REX_B);
}
void genpop(ref CodeBuilder cdb, reg_t reg)
{
cdb.gen1(0x58 + (reg & 7));
if (reg & 8)
code_orrex(cdb.last(), REX_B);
}
/**************************
* Generate a MOV to,from register instruction.
* Smart enough to dump redundant register moves, and segment
* register moves.
*/
code *genmovreg(uint to,uint from)
{
CodeBuilder cdb; cdb.ctor();
genmovreg(cdb, to, from);
return cdb.finish();
}
void genmovreg(ref CodeBuilder cdb,uint to,uint from)
{
genmovreg(cdb, to, from, TYMAX);
}
void genmovreg(ref CodeBuilder cdb, uint to, uint from, tym_t tym)
{
// register kind. ex: GPR,XMM,SEG
static uint _K(uint reg)
{
switch (reg)
{
case ES: return ES;
case XMM15:
case XMM0: .. case XMM7: return XMM0;
case AX: .. case R15: return AX;
default: return reg;
}
}
// kind combination (order kept)
static uint _X(uint to, uint from) { return (_K(to) << 8) + _K(from); }
if (to != from)
{
if (tym == TYMAX) tym = TYsize_t; // avoid register slicing
switch (_X(to, from))
{
case _X(AX, AX):
genregs(cdb, 0x89, from, to); // MOV to,from
if (I64 && tysize(tym) >= 8)
code_orrex(cdb.last(), REX_W);
else if (tysize(tym) == 2)
code_orflag(cdb.last(), CFopsize);
break;
case _X(XMM0, XMM0): // MOVD/Q to,from
genregs(cdb, xmmload(tym), to-XMM0, from-XMM0);
checkSetVex(cdb.last(), tym);
break;
case _X(AX, XMM0): // MOVD/Q to,from
genregs(cdb, STOD, from-XMM0, to);
if (I64 && tysize(tym) >= 8)
code_orrex(cdb.last(), REX_W);
checkSetVex(cdb.last(), tym);
break;
case _X(XMM0, AX): // MOVD/Q to,from
genregs(cdb, LODD, to-XMM0, from);
if (I64 && tysize(tym) >= 8)
code_orrex(cdb.last(), REX_W);
checkSetVex(cdb.last(), tym);
break;
case _X(ES, AX):
assert(tysize(tym) <= REGSIZE);
genregs(cdb, 0x8E, 0, from);
break;
case _X(AX, ES):
assert(tysize(tym) <= REGSIZE);
genregs(cdb, 0x8C, 0, to);
break;
default:
debug printf("genmovreg(to = %s, from = %s)\n"
, regm_str(mask(to)), regm_str(mask(from)));
assert(0);
}
}
}
/***************************************
* Generate immediate multiply instruction for r1=r2*imm.
* Optimize it into LEA's if we can.
*/
void genmulimm(ref CodeBuilder cdb,uint r1,uint r2,targ_int imm)
{
// These optimizations should probably be put into pinholeopt()
switch (imm)
{
case 1:
genmovreg(cdb,r1,r2);
break;
case 5:
{
code cs;
cs.Iop = LEA;
cs.Iflags = 0;
cs.Irex = 0;
buildEA(&cs,r2,r2,4,0);
cs.orReg(r1);
cdb.gen(&cs);
break;
}
default:
cdb.genc2(0x69,modregxrmx(3,r1,r2),imm); // IMUL r1,r2,imm
break;
}
}
/******************************
* Load CX with the value of _AHSHIFT.
*/
void genshift(ref CodeBuilder cdb)
{
version (SCPP)
{
// Set up ahshift to trick ourselves into giving the right fixup,
// which must be seg-relative, external frame, external target.
cdb.gencs(0xC7,modregrm(3,0,CX),FLfunc,getRtlsym(RTLSYM_AHSHIFT));
cdb.last().Iflags |= CFoff;
}
else
assert(0);
}
/******************************
* Move constant value into reg.
* Take advantage of existing values in registers.
* If flags & mPSW
* set flags based on result
* Else if flags & 8
* do not disturb flags
* Else
* don't care about flags
* If flags & 1 then byte move
* If flags & 2 then short move (for I32 and I64)
* If flags & 4 then don't disturb unused portion of register
* If flags & 16 then reg is a byte register AL..BH
* If flags & 64 (0x40) then 64 bit move (I64 only)
* Returns:
* code (if any) generated
*/
void movregconst(ref CodeBuilder cdb,reg_t reg,targ_size_t value,regm_t flags)
{
reg_t r;
regm_t mreg;
//printf("movregconst(reg=%s, value= %lld (%llx), flags=%x)\n", regm_str(mask(reg)), value, value, flags);
regm_t regm = regcon.immed.mval & mask(reg);
targ_size_t regv = regcon.immed.value[reg];
if (flags & 1) // 8 bits
{
value &= 0xFF;
regm &= BYTEREGS;
// If we already have the right value in the right register
if (regm && (regv & 0xFF) == value)
goto L2;
if (flags & 16 && reg & 4 && // if an H byte register
regcon.immed.mval & mask(reg & 3) &&
(((regv = regcon.immed.value[reg & 3]) >> 8) & 0xFF) == value)
goto L2;
/* Avoid byte register loads on Pentium Pro and Pentium II
* to avoid dependency stalls.
*/
if (config.flags4 & CFG4speed &&
config.target_cpu >= TARGET_PentiumPro && !(flags & 4))
goto L3;
// See if another register has the right value
r = 0;
for (mreg = (regcon.immed.mval & BYTEREGS); mreg; mreg >>= 1)
{
if (mreg & 1)
{
if ((regcon.immed.value[r] & 0xFF) == value)
{
genregs(cdb,0x8A,reg,r); // MOV regL,rL
if (I64 && reg >= 4 || r >= 4)
code_orrex(cdb.last(), REX);
goto L2;
}
if (!(I64 && reg >= 4) &&
r < 4 && ((regcon.immed.value[r] >> 8) & 0xFF) == value)
{
genregs(cdb,0x8A,reg,r | 4); // MOV regL,rH
goto L2;
}
}
r++;
}
if (value == 0 && !(flags & 8))
{
if (!(flags & 4) && // if we can set the whole register
!(flags & 16 && reg & 4)) // and reg is not an H register
{
genregs(cdb,0x31,reg,reg); // XOR reg,reg
regimmed_set(reg,value);
regv = 0;
}
else
genregs(cdb,0x30,reg,reg); // XOR regL,regL
flags &= ~mPSW; // flags already set by XOR
}
else
{
cdb.genc2(0xC6,modregrmx(3,0,reg),value); // MOV regL,value
if (reg >= 4 && I64)
{
code_orrex(cdb.last(), REX);
}
}
L2:
if (flags & mPSW)
genregs(cdb,0x84,reg,reg); // TEST regL,regL
if (regm)
// Set just the 'L' part of the register value
regimmed_set(reg,(regv & ~cast(targ_size_t)0xFF) | value);
else if (flags & 16 && reg & 4 && regcon.immed.mval & mask(reg & 3))
// Set just the 'H' part of the register value
regimmed_set((reg & 3),(regv & ~cast(targ_size_t)0xFF00) | (value << 8));
return;
}
L3:
if (I16)
value = cast(targ_short) value; // sign-extend MSW
else if (I32)
value = cast(targ_int) value;
if (!I16 && flags & 2) // load 16 bit value
{
value &= 0xFFFF;
if (value == 0)
goto L1;
else
{
if (flags & mPSW)
goto L1;
cdb.genc2(0xC7,modregrmx(3,0,reg),value); // MOV reg,value
cdb.last().Iflags |= CFopsize; // yes, even for I64
if (regm)
// High bits of register are not affected by 16 bit load
regimmed_set(reg,(regv & ~cast(targ_size_t)0xFFFF) | value);
}
return;
}
L1:
// If we already have the right value in the right register
if (regm && (regv & 0xFFFFFFFF) == (value & 0xFFFFFFFF) && !(flags & 64))
{
if (flags & mPSW)
gentstreg(cdb,reg);
}
else if (flags & 64 && regm && regv == value)
{ // Look at the full 64 bits
if (flags & mPSW)
{
gentstreg(cdb,reg);
code_orrex(cdb.last(), REX_W);
}
}
else
{
if (flags & mPSW)
{
switch (value)
{
case 0:
genregs(cdb,0x31,reg,reg);
break;
case 1:
if (I64)
goto L4;
genregs(cdb,0x31,reg,reg);
goto inc;
case ~cast(targ_size_t)0:
if (I64)
goto L4;
genregs(cdb,0x31,reg,reg);
goto dec;
default:
L4:
if (flags & 64)
{
cdb.genc2(0xB8 + (reg&7),REX_W << 16 | (reg&8) << 13,value); // MOV reg,value64
gentstreg(cdb,reg);
code_orrex(cdb.last(), REX_W);
}
else
{
value &= 0xFFFFFFFF;
cdb.genc2(0xB8 + (reg&7),(reg&8) << 13,value); // MOV reg,value
gentstreg(cdb,reg);
}
break;
}
}
else
{
// Look for single byte conversion
if (regcon.immed.mval & mAX)
{
if (I32)
{
if (reg == AX && value == cast(targ_short) regv)
{
cdb.gen1(0x98); // CWDE
goto done;
}
if (reg == DX &&
value == (regcon.immed.value[AX] & 0x80000000 ? 0xFFFFFFFF : 0) &&
!(config.flags4 & CFG4speed && config.target_cpu >= TARGET_Pentium)
)
{
cdb.gen1(0x99); // CDQ
goto done;
}
}
else if (I16)
{
if (reg == AX &&
cast(targ_short) value == cast(byte) regv)
{
cdb.gen1(0x98); // CBW
goto done;
}
if (reg == DX &&
cast(targ_short) value == (regcon.immed.value[AX] & 0x8000 ? cast(targ_short) 0xFFFF : cast(targ_short) 0) &&
!(config.flags4 & CFG4speed && config.target_cpu >= TARGET_Pentium)
)
{
cdb.gen1(0x99); // CWD
goto done;
}
}
}
if (value == 0 && !(flags & 8) && config.target_cpu >= TARGET_80486)
{
genregs(cdb,0x31,reg,reg); // XOR reg,reg
goto done;
}
if (!I64 && regm && !(flags & 8))
{
if (regv + 1 == value ||
// Catch case of (0xFFFF+1 == 0) for 16 bit compiles
(I16 && cast(targ_short)(regv + 1) == cast(targ_short)value))
{
inc:
cdb.gen1(0x40 + reg); // INC reg
goto done;
}
if (regv - 1 == value)
{
dec:
cdb.gen1(0x48 + reg); // DEC reg
goto done;
}
}
// See if another register has the right value
r = 0;
for (mreg = regcon.immed.mval; mreg; mreg >>= 1)
{
debug
assert(!I16 || regcon.immed.value[r] == cast(targ_short)regcon.immed.value[r]);
if (mreg & 1 && regcon.immed.value[r] == value)
{
genmovreg(cdb,reg,r);
goto done;
}
r++;
}
if (value == 0 && !(flags & 8))
{
genregs(cdb,0x31,reg,reg); // XOR reg,reg
}
else
{ // See if we can just load a byte
if (regm & BYTEREGS &&
!(config.flags4 & CFG4speed && config.target_cpu >= TARGET_PentiumPro)
)
{
if ((regv & ~cast(targ_size_t)0xFF) == (value & ~cast(targ_size_t)0xFF))
{
movregconst(cdb,reg,value,(flags & 8) |4|1); // load regL
return;
}
if (regm & (mAX|mBX|mCX|mDX) &&
(regv & ~cast(targ_size_t)0xFF00) == (value & ~cast(targ_size_t)0xFF00) &&
!I64)
{
movregconst(cdb,4|reg,value >> 8,(flags & 8) |4|1|16); // load regH
return;
}
}
if (flags & 64)
cdb.genc2(0xB8 + (reg&7),REX_W << 16 | (reg&8) << 13,value); // MOV reg,value64
else
{
value &= 0xFFFFFFFF;
cdb.genc2(0xB8 + (reg&7),(reg&8) << 13,value); // MOV reg,value
}
}
}
done:
regimmed_set(reg,value);
}
}
/**************************
* Generate a jump instruction.
*/
void genjmp(ref CodeBuilder cdb,opcode_t op,uint fltarg,block *targ)
{
code cs;
cs.Iop = op & 0xFF;
cs.Iflags = 0;
cs.Irex = 0;
if (op != JMP && op != 0xE8) // if not already long branch
cs.Iflags = CFjmp16; // assume long branch for op = 0x7x
cs.IFL2 = cast(ubyte)fltarg; // FLblock (or FLcode)
cs.IEV2.Vblock = targ; // target block (or code)
if (fltarg == FLcode)
(cast(code *)targ).Iflags |= CFtarg;
if (config.flags4 & CFG4fastfloat) // if fast floating point
{
cdb.gen(&cs);
return;
}
switch (op & 0xFF00) // look at second jump opcode
{
// The JP and JNP come from floating point comparisons
case JP << 8:
cdb.gen(&cs);
cs.Iop = JP;
cdb.gen(&cs);
break;
case JNP << 8:
{
// Do a JP around the jump instruction
code *cnop = gennop(null);
genjmp(cdb,JP,FLcode,cast(block *) cnop);
cdb.gen(&cs);
cdb.append(cnop);
break;
}
case 1 << 8: // toggled no jump
case 0 << 8:
cdb.gen(&cs);
break;
default:
debug
printf("jop = x%x\n",op);
assert(0);
}
}
/*********************************************
* Generate first part of prolog for interrupt function.
*/
void prolog_ifunc(ref CodeBuilder cdb, tym_t* tyf)
{
static immutable ubyte[4] ops2 = [ 0x60,0x1E,0x06,0 ];
static immutable ubyte[11] ops0 = [ 0x50,0x51,0x52,0x53,
0x54,0x55,0x56,0x57,
0x1E,0x06,0 ];
immutable(ubyte)* p = (config.target_cpu >= TARGET_80286) ? ops2.ptr : ops0.ptr;
do
cdb.gen1(*p);
while (*++p);
genregs(cdb,0x8B,BP,SP); // MOV BP,SP
if (localsize)
cod3_stackadj(cdb, cast(int)localsize);
*tyf |= mTYloadds;
}
void prolog_ifunc2(ref CodeBuilder cdb, tym_t tyf, tym_t tym, bool pushds)
{
/* Determine if we need to reload DS */
if (tyf & mTYloadds)
{
if (!pushds) // if not already pushed
cdb.gen1(0x1E); // PUSH DS
spoff += _tysize[TYint];
cdb.genc(0xC7,modregrm(3,0,AX),0,0,FLdatseg,cast(targ_uns) 0); // MOV AX,DGROUP
code *c = cdb.last();
c.IEV2.Vseg = DATA;
c.Iflags ^= CFseg | CFoff; // turn off CFoff, on CFseg
cdb.gen2(0x8E,modregrm(3,3,AX)); // MOV DS,AX
useregs(mAX);
}
if (tym == TYifunc)
cdb.gen1(0xFC); // CLD
}
void prolog_16bit_windows_farfunc(ref CodeBuilder cdb, tym_t* tyf, bool* pushds)
{
int wflags = config.wflags;
if (wflags & WFreduced && !(*tyf & mTYexport))
{ // reduced prolog/epilog for non-exported functions
wflags &= ~(WFdgroup | WFds | WFss);
}
getregsNoSave(mAX); // should not have any value in AX
int segreg;
switch (wflags & (WFdgroup | WFds | WFss))
{
case WFdgroup: // MOV AX,DGROUP
{
if (wflags & WFreduced)
*tyf &= ~mTYloadds; // remove redundancy
cdb.genc(0xC7,modregrm(3,0,AX),0,0,FLdatseg,cast(targ_uns) 0);
code *c = cdb.last();
c.IEV2.Vseg = DATA;
c.Iflags ^= CFseg | CFoff; // turn off CFoff, on CFseg
break;
}
case WFss:
segreg = 2; // SS
goto Lmovax;
case WFds:
segreg = 3; // DS
Lmovax:
cdb.gen2(0x8C,modregrm(3,segreg,AX)); // MOV AX,segreg
if (wflags & WFds)
cdb.gen1(0x90); // NOP
break;
case 0:
break;
default:
debug
printf("config.wflags = x%x\n",config.wflags);
assert(0);
}
if (wflags & WFincbp)
cdb.gen1(0x40 + BP); // INC BP
cdb.gen1(0x50 + BP); // PUSH BP
genregs(cdb,0x8B,BP,SP); // MOV BP,SP
if (wflags & (WFsaveds | WFds | WFss | WFdgroup))
{
cdb.gen1(0x1E); // PUSH DS
*pushds = true;
BPoff = -REGSIZE;
}
if (wflags & (WFds | WFss | WFdgroup))
cdb.gen2(0x8E,modregrm(3,3,AX)); // MOV DS,AX
}
/**********************************************
* Set up frame register.
* Input:
* *xlocalsize amount of local variables
* Output:
* *enter set to true if ENTER instruction can be used, false otherwise
* *xlocalsize amount to be subtracted from stack pointer
* *cfa_offset the frame pointer's offset from the CFA
* Returns:
* generated code
*/
void prolog_frame(ref CodeBuilder cdb, uint farfunc, uint* xlocalsize, bool* enter, int* cfa_offset)
{
//printf("prolog_frame\n");
*cfa_offset = 0;
if (0 && config.exe == EX_WIN64)
{
// PUSH RBP
// LEA RBP,0[RSP]
cdb. gen1(0x50 + BP);
cdb.genc1(LEA,(REX_W<<16) | (modregrm(0,4,SP)<<8) | modregrm(2,BP,4),FLconst,0);
*enter = false;
return;
}
if (config.wflags & WFincbp && farfunc)
cdb.gen1(0x40 + BP); // INC BP
if (config.target_cpu < TARGET_80286 ||
config.exe & (EX_LINUX | EX_LINUX64 | EX_OSX | EX_OSX64 | EX_FREEBSD | EX_FREEBSD64 | EX_DRAGONFLYBSD64 | EX_SOLARIS | EX_SOLARIS64 | EX_WIN64) ||
!localsize ||
config.flags & CFGstack ||
(*xlocalsize >= 0x1000 && config.exe & EX_flat) ||
localsize >= 0x10000 ||
(NTEXCEPTIONS == 2 &&
(usednteh & (NTEH_try | NTEH_except | NTEHcpp | EHcleanup | EHtry | NTEHpassthru) && (config.ehmethod == EHmethod.EH_WIN32 && !(funcsym_p.Sfunc.Fflags3 & Feh_none) || config.ehmethod == EHmethod.EH_SEH))) ||
(config.target_cpu >= TARGET_80386 &&
config.flags4 & CFG4speed)
)
{
cdb.gen1(0x50 + BP); // PUSH BP
genregs(cdb,0x8B,BP,SP); // MOV BP,SP
if (I64)
code_orrex(cdb.last(), REX_W); // MOV RBP,RSP
if ((config.objfmt & (OBJ_ELF | OBJ_MACH)) && config.fulltypes)
// Don't reorder instructions, as dwarf CFA relies on it
code_orflag(cdb.last(), CFvolatile);
static if (NTEXCEPTIONS == 2)
{
if (usednteh & (NTEH_try | NTEH_except | NTEHcpp | EHcleanup | EHtry | NTEHpassthru) && (config.ehmethod == EHmethod.EH_WIN32 && !(funcsym_p.Sfunc.Fflags3 & Feh_none) || config.ehmethod == EHmethod.EH_SEH))
{
nteh_prolog(cdb);
int sz = nteh_contextsym_size();
assert(sz != 0); // should be 5*4, not 0
*xlocalsize -= sz; // sz is already subtracted from ESP
// by nteh_prolog()
}
}
if (config.fulltypes == CVDWARF_C || config.fulltypes == CVDWARF_D ||
config.ehmethod == EHmethod.EH_DWARF)
{
int off = 2 * REGSIZE; // 1 for the return address + 1 for the PUSH EBP
dwarf_CFA_set_loc(1); // address after PUSH EBP
dwarf_CFA_set_reg_offset(SP, off); // CFA is now 8[ESP]
dwarf_CFA_offset(BP, -off); // EBP is at 0[ESP]
dwarf_CFA_set_loc(I64 ? 4 : 3); // address after MOV EBP,ESP
/* Oddly, the CFA is not the same as the frame pointer,
* which is why the offset of BP is set to 8
*/
dwarf_CFA_set_reg_offset(BP, off); // CFA is now 0[EBP]
*cfa_offset = off; // remember the difference between the CFA and the frame pointer
}
*enter = false; /* do not use ENTER instruction */
}
else
*enter = true;
}
/**********************************************
* Enforce stack alignment.
* Input:
* cdb code builder.
* Returns:
* generated code
*/
void prolog_stackalign(ref CodeBuilder cdb)
{
if (!enforcealign)
return;
const offset = (hasframe ? 2 : 1) * REGSIZE; // 1 for the return address + 1 for the PUSH EBP
if (offset & (STACKALIGN - 1) || TARGET_STACKALIGN < STACKALIGN)
cod3_stackalign(cdb, STACKALIGN);
}
void prolog_frameadj(ref CodeBuilder cdb, tym_t tyf, uint xlocalsize, bool enter, bool* pushalloc)
{
uint pushallocreg = (tyf == TYmfunc) ? CX : AX;
static if (TARGET_LINUX)
{
bool check = false; // seems that Linux doesn't need to fault in stack pages
}
else
{
bool check = (config.flags & CFGstack && !(I32 && xlocalsize < 0x1000)) // if stack overflow check
|| (TARGET_WINDOS && xlocalsize >= 0x1000 && config.exe & EX_flat);
}
if (check)
{
if (I16)
{
// BUG: Won't work if parameter is passed in AX
movregconst(cdb,AX,xlocalsize,false); // MOV AX,localsize
makeitextern(getRtlsym(RTLSYM_CHKSTK));
// CALL _chkstk
cdb.gencs((LARGECODE) ? 0x9A : CALL,0,FLfunc,getRtlsym(RTLSYM_CHKSTK));
useregs((ALLREGS | mBP | mES) & ~getRtlsym(RTLSYM_CHKSTK).Sregsaved);
}
else
{
/* Watch out for 64 bit code where EDX is passed as a register parameter
*/
reg_t reg = I64 ? R11 : DX; // scratch register
/* MOV EDX, xlocalsize/0x1000
* L1: SUB ESP, 0x1000
* TEST [ESP],ESP
* DEC EDX
* JNE L1
* SUB ESP, xlocalsize % 0x1000
*/
movregconst(cdb, reg, xlocalsize / 0x1000, false);
cod3_stackadj(cdb, 0x1000);
code_orflag(cdb.last(), CFtarg2);
cdb.gen2sib(0x85, modregrm(0,SP,4),modregrm(0,4,SP));
if (I64)
{ cdb.gen2(0xFF, modregrmx(3,1,R11)); // DEC R11D
cdb.genc2(JNE,0,cast(targ_uns)-15);
}
else
{ cdb.gen1(0x48 + DX); // DEC EDX
cdb.genc2(JNE,0,cast(targ_uns)-12);
}
regimmed_set(reg,0); // reg is now 0
cod3_stackadj(cdb, xlocalsize & 0xFFF);
useregs(mask(reg));
}
}
else
{
if (enter)
{ // ENTER xlocalsize,0
cdb.genc(0xC8,0,FLconst,xlocalsize,FLconst,cast(targ_uns) 0);
assert(!(config.fulltypes == CVDWARF_C || config.fulltypes == CVDWARF_D)); // didn't emit Dwarf data
}
else if (xlocalsize == REGSIZE && config.flags4 & CFG4optimized)
{
cdb. gen1(0x50 + pushallocreg); // PUSH AX
// Do this to prevent an -x[EBP] to be moved in
// front of the push.
code_orflag(cdb.last(),CFvolatile);
*pushalloc = true;
}
else
cod3_stackadj(cdb, xlocalsize);
}
}
void prolog_frameadj2(ref CodeBuilder cdb, tym_t tyf, uint xlocalsize, bool* pushalloc)
{
uint pushallocreg = (tyf == TYmfunc) ? CX : AX;
if (xlocalsize == REGSIZE)
{
cdb.gen1(0x50 + pushallocreg); // PUSH AX
*pushalloc = true;
}
else if (xlocalsize == 2 * REGSIZE)
{
cdb.gen1(0x50 + pushallocreg); // PUSH AX
cdb.gen1(0x50 + pushallocreg); // PUSH AX
*pushalloc = true;
}
else
cod3_stackadj(cdb, xlocalsize);
}
void prolog_setupalloca(ref CodeBuilder cdb)
{
//printf("prolog_setupalloca() offset x%x size x%x alignment x%x\n",
//cast(int)Alloca.offset, cast(int)Alloca.size, cast(int)Alloca.alignment);
// Set up magic parameter for alloca()
// MOV -REGSIZE[BP],localsize - BPoff
cdb.genc(0xC7,modregrm(2,0,BPRM),
FLconst,Alloca.offset + BPoff,
FLconst,localsize - BPoff);
if (I64)
code_orrex(cdb.last(), REX_W);
}
/**************************************
* Save registers that the function destroys,
* but that the ABI says should be preserved across
* function calls.
*
* Emit Dwarf info for these saves.
* Params:
* cdb = append generated instructions to this
* topush = mask of registers to push
* cfa_offset = offset of frame pointer from CFA
*/
void prolog_saveregs(ref CodeBuilder cdb, regm_t topush, int cfa_offset)
{
if (pushoffuse)
{
// Save to preallocated section in the stack frame
int xmmtopush = numbitsset(topush & XMMREGS); // XMM regs take 16 bytes
int gptopush = numbitsset(topush) - xmmtopush; // general purpose registers to save
targ_size_t xmmoffset = pushoff + BPoff;
if (!hasframe || enforcealign)
xmmoffset += EBPtoESP;
targ_size_t gpoffset = xmmoffset + xmmtopush * 16;
while (topush)
{
reg_t reg = findreg(topush);
topush &= ~mask(reg);
if (isXMMreg(reg))
{
if (hasframe && !enforcealign)
{
// MOVUPD xmmoffset[EBP],xmm
cdb.genc1(STOUPD,modregxrm(2,reg-XMM0,BPRM),FLconst,xmmoffset);
}
else
{
// MOVUPD xmmoffset[ESP],xmm
cdb.genc1(STOUPD,modregxrm(2,reg-XMM0,4) + 256*modregrm(0,4,SP),FLconst,xmmoffset);
}
xmmoffset += 16;
}
else
{
if (hasframe && !enforcealign)
{
// MOV gpoffset[EBP],reg
cdb.genc1(0x89,modregxrm(2,reg,BPRM),FLconst,gpoffset);
}
else
{
// MOV gpoffset[ESP],reg
cdb.genc1(0x89,modregxrm(2,reg,4) + 256*modregrm(0,4,SP),FLconst,gpoffset);
}
if (I64)
code_orrex(cdb.last(), REX_W);
if (config.fulltypes == CVDWARF_C || config.fulltypes == CVDWARF_D ||
config.ehmethod == EHmethod.EH_DWARF)
{ // Emit debug_frame data giving location of saved register
code *c = cdb.finish();
pinholeopt(c, null);
dwarf_CFA_set_loc(calcblksize(c)); // address after save
dwarf_CFA_offset(reg, cast(int)(gpoffset - cfa_offset));
cdb.reset();
cdb.append(c);
}
gpoffset += REGSIZE;
}
}
}
else
{
while (topush) /* while registers to push */
{
reg_t reg = findreg(topush);
topush &= ~mask(reg);
if (isXMMreg(reg))
{
// SUB RSP,16
cod3_stackadj(cdb, 16);
// MOVUPD 0[RSP],xmm
cdb.genc1(STOUPD,modregxrm(2,reg-XMM0,4) + 256*modregrm(0,4,SP),FLconst,0);
EBPtoESP += 16;
spoff += 16;
}
else
{
genpush(cdb, reg);
EBPtoESP += REGSIZE;
spoff += REGSIZE;
if (config.fulltypes == CVDWARF_C || config.fulltypes == CVDWARF_D ||
config.ehmethod == EHmethod.EH_DWARF)
{ // Emit debug_frame data giving location of saved register
// relative to 0[EBP]
code *c = cdb.finish();
pinholeopt(c, null);
dwarf_CFA_set_loc(calcblksize(c)); // address after PUSH reg
dwarf_CFA_offset(reg, -EBPtoESP - cfa_offset);
cdb.reset();
cdb.append(c);
}
}
}
}
}
/**************************************
* Undo prolog_saveregs()
*/
private void epilog_restoreregs(ref CodeBuilder cdb, regm_t topop)
{
debug
if (topop & ~(XMMREGS | 0xFFFF))
printf("fregsaved = %s, mfuncreg = %s\n",regm_str(fregsaved),regm_str(mfuncreg));
assert(!(topop & ~(XMMREGS | 0xFFFF)));
if (pushoffuse)
{
// Save to preallocated section in the stack frame
int xmmtopop = numbitsset(topop & XMMREGS); // XMM regs take 16 bytes
int gptopop = numbitsset(topop) - xmmtopop; // general purpose registers to save
targ_size_t xmmoffset = pushoff + BPoff;
if (!hasframe || enforcealign)
xmmoffset += EBPtoESP;
targ_size_t gpoffset = xmmoffset + xmmtopop * 16;
while (topop)
{
reg_t reg = findreg(topop);
topop &= ~mask(reg);
if (isXMMreg(reg))
{
if (hasframe && !enforcealign)
{
// MOVUPD xmm,xmmoffset[EBP]
cdb.genc1(LODUPD,modregxrm(2,reg-XMM0,BPRM),FLconst,xmmoffset);
}
else
{
// MOVUPD xmm,xmmoffset[ESP]
cdb.genc1(LODUPD,modregxrm(2,reg-XMM0,4) + 256*modregrm(0,4,SP),FLconst,xmmoffset);
}
xmmoffset += 16;
}
else
{
if (hasframe && !enforcealign)
{
// MOV reg,gpoffset[EBP]
cdb.genc1(0x8B,modregxrm(2,reg,BPRM),FLconst,gpoffset);
}
else
{
// MOV reg,gpoffset[ESP]
cdb.genc1(0x8B,modregxrm(2,reg,4) + 256*modregrm(0,4,SP),FLconst,gpoffset);
}
if (I64)
code_orrex(cdb.last(), REX_W);
gpoffset += REGSIZE;
}
}
}
else
{
reg_t reg = I64 ? XMM7 : DI;
if (!(topop & XMMREGS))
reg = R15;
regm_t regm = 1 << reg;
while (topop)
{ if (topop & regm)
{
if (isXMMreg(reg))
{
// MOVUPD xmm,0[RSP]
cdb.genc1(LODUPD,modregxrm(2,reg-XMM0,4) + 256*modregrm(0,4,SP),FLconst,0);
// ADD RSP,16
cod3_stackadj(cdb, -16);
}
else
{
cdb.gen1(0x58 + (reg & 7)); // POP reg
if (reg & 8)
code_orrex(cdb.last(), REX_B);
}
topop &= ~regm;
}
regm >>= 1;
reg--;
}
}
}
version (SCPP)
{
void prolog_trace(ref CodeBuilder cdb, bool farfunc, uint* regsaved)
{
Symbol *s = getRtlsym(farfunc ? RTLSYM_TRACE_PRO_F : RTLSYM_TRACE_PRO_N);
makeitextern(s);
cdb.gencs(I16 ? 0x9A : CALL,0,FLfunc,s); // CALL _trace
if (!I16)
code_orflag(cdb.last(),CFoff | CFselfrel);
/* Embedding the function name inline after the call works, but it
* makes disassembling the code annoying.
*/
static if (ELFOBJ || MACHOBJ)
{
// Generate length prefixed name that is recognized by profiler
size_t len = strlen(funcsym_p.Sident);
char *buffer = cast(char *)malloc(len + 4);
assert(buffer);
if (len <= 254)
{
buffer[0] = len;
memcpy(buffer + 1, funcsym_p.Sident, len);
len++;
}
else
{
buffer[0] = 0xFF;
buffer[1] = 0;
buffer[2] = len & 0xFF;
buffer[3] = len >> 8;
memcpy(buffer + 4, funcsym_p.Sident, len);
len += 4;
}
cdb.genasm(buffer, len); // append func name
free(buffer);
}
else
{
char [IDMAX+IDOHD+1] name = void;
size_t len = objmod.mangle(funcsym_p,name.ptr);
assert(len < name.length);
cdb.genasm(name.ptr,len); // append func name
}
*regsaved = s.Sregsaved;
}
}
/******************************
* Generate special varargs prolog for Posix 64 bit systems.
* Params:
* cdb = sink for generated code
* sv = symbol for __va_argsave
* namedargs = registers that named parameters (not ... arguments) were passed in.
*/
void prolog_genvarargs(ref CodeBuilder cdb, Symbol* sv, regm_t namedargs)
{
/* Generate code to move any arguments passed in registers into
* the stack variable __va_argsave,
* so we can reference it via pointers through va_arg().
* struct __va_argsave_t {
* size_t[6] regs;
* real[8] fpregs;
* uint offset_regs;
* uint offset_fpregs;
* void* stack_args;
* void* reg_args;
* }
* The MOVAPS instructions seg fault if data is not aligned on
* 16 bytes, so this gives us a nice check to ensure no mistakes.
MOV voff+0*8[RBP],EDI
MOV voff+1*8[RBP],ESI
MOV voff+2*8[RBP],RDX
MOV voff+3*8[RBP],RCX
MOV voff+4*8[RBP],R8
MOV voff+5*8[RBP],R9
MOVZX EAX,AL // AL = 0..8, # of XMM registers used
SHL EAX,2 // 4 bytes for each MOVAPS
LEA R11,offset L2[RIP]
SUB R11,RAX
LEA RAX,voff+6*8+0x7F[RBP]
JMP R11d
MOVAPS -0x0F[RAX],XMM7 // only save XMM registers if actually used
MOVAPS -0x1F[RAX],XMM6
MOVAPS -0x2F[RAX],XMM5
MOVAPS -0x3F[RAX],XMM4
MOVAPS -0x4F[RAX],XMM3
MOVAPS -0x5F[RAX],XMM2
MOVAPS -0x6F[RAX],XMM1
MOVAPS -0x7F[RAX],XMM0
L2:
MOV 1[RAX],offset_regs // set __va_argsave.offset_regs
MOV 5[RAX],offset_fpregs // set __va_argsave.offset_fpregs
LEA R11, Para.size+Para.offset[RBP]
MOV 9[RAX],R11 // set __va_argsave.stack_args
SUB RAX,6*8+0x7F // point to start of __va_argsave
MOV 6*8+8*16+4+4+8[RAX],RAX // set __va_argsave.reg_args
* RAX and R11 are destroyed.
*/
/* Save registers into the voff area on the stack
*/
targ_size_t voff = Auto.size + BPoff + sv.Soffset; // EBP offset of start of sv
const int vregnum = 6;
const uint vsize = vregnum * 8 + 8 * 16;
static immutable ubyte[vregnum] regs = [ DI,SI,DX,CX,R8,R9 ];
if (!hasframe || enforcealign)
voff += EBPtoESP;
for (int i = 0; i < vregnum; i++)
{
uint r = regs[i];
if (!(mask(r) & namedargs)) // unnamed arguments would be the ... ones
{
uint ea = (REX_W << 16) | modregxrm(2,r,BPRM);
if (!hasframe || enforcealign)
ea = (REX_W << 16) | (modregrm(0,4,SP) << 8) | modregxrm(2,r,4);
cdb.genc1(0x89,ea,FLconst,voff + i*8);
}
}
genregs(cdb,0x0FB6,AX,AX); // MOVZX EAX,AL
cdb.genc2(0xC1,modregrm(3,4,AX),2); // SHL EAX,2
int raxoff = cast(int)(voff+6*8+0x7F);
uint L2offset = (raxoff < -0x7F) ? 0x2D : 0x2A;
if (!hasframe || enforcealign)
L2offset += 1; // +1 for sib byte
// LEA R11,offset L2[RIP]
cdb.genc1(LEA,(REX_W << 16) | modregxrm(0,R11,5),FLconst,L2offset);
genregs(cdb,0x29,AX,R11); // SUB R11,RAX
code_orrex(cdb.last(), REX_W);
// LEA RAX,voff+vsize-6*8-16+0x7F[RBP]
uint ea = (REX_W << 16) | modregrm(2,AX,BPRM);
if (!hasframe || enforcealign)
// add sib byte for [RSP] addressing
ea = (REX_W << 16) | (modregrm(0,4,SP) << 8) | modregxrm(2,AX,4);
cdb.genc1(LEA,ea,FLconst,raxoff);
cdb.gen2(0xFF,modregrmx(3,4,R11)); // JMP R11d
for (int i = 0; i < 8; i++)
{
// MOVAPS -15-16*i[RAX],XMM7-i
cdb.genc1(0x0F29,modregrm(0,XMM7-i,0),FLconst,-15-16*i);
}
/* Compute offset_regs and offset_fpregs
*/
uint offset_regs = 0;
uint offset_fpregs = vregnum * 8;
for (int i = AX; i <= XMM7; i++)
{
regm_t m = mask(i);
if (m & namedargs)
{
if (m & (mDI|mSI|mDX|mCX|mR8|mR9))
offset_regs += 8;
else if (m & XMMREGS)
offset_fpregs += 16;
namedargs &= ~m;
if (!namedargs)
break;
}
}
// MOV 1[RAX],offset_regs
cdb.genc(0xC7,modregrm(2,0,AX),FLconst,1,FLconst,offset_regs);
// MOV 5[RAX],offset_fpregs
cdb.genc(0xC7,modregrm(2,0,AX),FLconst,5,FLconst,offset_fpregs);
// LEA R11, Para.size+Para.offset[RBP]
ea = modregxrm(2,R11,BPRM);
if (!hasframe)
ea = (modregrm(0,4,SP) << 8) | modregrm(2,DX,4);
Para.offset = (Para.offset + (REGSIZE - 1)) & ~(REGSIZE - 1);
cdb.genc1(LEA,(REX_W << 16) | ea,FLconst,Para.size + Para.offset);
// MOV 9[RAX],R11
cdb.genc1(0x89,(REX_W << 16) | modregxrm(2,R11,AX),FLconst,9);
// SUB RAX,6*8+0x7F // point to start of __va_argsave
cdb.genc2(0x2D,0,6*8+0x7F);
code_orrex(cdb.last(), REX_W);
// MOV 6*8+8*16+4+4+8[RAX],RAX // set __va_argsave.reg_args
cdb.genc1(0x89,(REX_W << 16) | modregrm(2,AX,AX),FLconst,6*8+8*16+4+4+8);
pinholeopt(cdb.peek(), null);
useregs(mAX|mR11);
}
void prolog_gen_win64_varargs(ref CodeBuilder cdb)
{
/* The Microsoft scheme.
* http://msdn.microsoft.com/en-US/library/dd2wa36c(v=vs.80)
* Copy registers onto stack.
mov 8[RSP],RCX
mov 010h[RSP],RDX
mov 018h[RSP],R8
mov 020h[RSP],R9
*/
}
/************************************
* Params:
* cdb = generated code sink
* tf = what's the type of the function
* pushalloc = use PUSH to allocate on the stack rather than subtracting from SP
* namedargs = set to the registers that named parameters were passed in
*/
void prolog_loadparams(ref CodeBuilder cdb, tym_t tyf, bool pushalloc, out regm_t namedargs)
{
//printf("prolog_loadparams()\n");
debug
for (SYMIDX si = 0; si < globsym.top; si++)
{
Symbol *s = globsym.tab[si];
if (debugr && (s.Sclass == SCfastpar || s.Sclass == SCshadowreg))
{
printf("symbol '%s' is fastpar in register [%s,%s]\n", s.Sident.ptr,
regm_str(mask(s.Spreg)),
(s.Spreg2 == NOREG ? "NOREG" : regm_str(mask(s.Spreg2))));
if (s.Sfl == FLreg)
printf("\tassigned to register %s\n", regm_str(mask(s.Sreglsw)));
}
}
uint pushallocreg = (tyf == TYmfunc) ? CX : AX;
/* Copy SCfastpar and SCshadowreg (parameters passed in registers) that were not assigned
* registers into their stack locations.
*/
regm_t shadowregm = 0;
for (SYMIDX si = 0; si < globsym.top; si++)
{
Symbol *s = globsym.tab[si];
uint sz = cast(uint)type_size(s.Stype);
if ((s.Sclass == SCfastpar || s.Sclass == SCshadowreg) && s.Sfl != FLreg)
{ // Argument is passed in a register
type *t = s.Stype;
type *t2 = null;
tym_t tyb = tybasic(t.Tty);
// This logic is same as FuncParamRegs_alloc function at src/dmd/backend/cod1.d
//
// Treat array of 1 the same as its element type
// (Don't put volatile parameters in registers)
if (tyb == TYarray && t.Tdim == 1 && !(t.Tty & mTYvolatile))
{
t = t.Tnext;
tyb = tybasic(t.Tty);
}
// If struct just wraps another type
if (tyb == TYstruct)
{
// On windows 64 bits, structs occupy a general purpose register,
// regardless of the struct size or the number & types of its fields.
if (config.exe != EX_WIN64)
{
type *targ1 = t.Ttag.Sstruct.Sarg1type;
t2 = t.Ttag.Sstruct.Sarg2type;
if (targ1)
t = targ1;
}
}
if (Symbol_Sisdead(s, anyiasm))
{
// Ignore it, as it is never referenced
}
else
{
targ_size_t offset = Fast.size + BPoff;
if (s.Sclass == SCshadowreg)
offset = Para.size;
offset += s.Soffset;
if (!hasframe || (enforcealign && s.Sclass != SCshadowreg))
offset += EBPtoESP;
reg_t preg = s.Spreg;
for (int i = 0; i < 2; ++i) // twice, once for each possible parameter register
{
shadowregm |= mask(preg);
opcode_t op = 0x89; // MOV x[EBP],preg
if (isXMMreg(preg))
op = xmmstore(t.Tty);
if (!(pushalloc && preg == pushallocreg) || s.Sclass == SCshadowreg)
{
if (hasframe && (!enforcealign || s.Sclass == SCshadowreg))
{
// MOV x[EBP],preg
cdb.genc1(op,modregxrm(2,preg,BPRM),FLconst,offset);
if (isXMMreg(preg))
{
checkSetVex(cdb.last(), t.Tty);
}
else
{
//printf("%s Fast.size = %d, BPoff = %d, Soffset = %d, sz = %d\n",
// s.Sident, (int)Fast.size, (int)BPoff, (int)s.Soffset, (int)sz);
if (I64 && sz > 4)
code_orrex(cdb.last(), REX_W);
}
}
else
{
// MOV offset[ESP],preg
// BUG: byte size?
cdb.genc1(op,
(modregrm(0,4,SP) << 8) |
modregxrm(2,preg,4),FLconst,offset);
if (isXMMreg(preg))
{
checkSetVex(cdb.last(), t.Tty);
}
else
{
if (I64 && sz > 4)
cdb.last().Irex |= REX_W;
}
}
}
preg = s.Spreg2;
if (preg == NOREG)
break;
if (t2)
t = t2;
offset += REGSIZE;
}
}
}
}
if (config.exe == EX_WIN64 && variadic(funcsym_p.Stype))
{
/* The Microsoft scheme.
* http://msdn.microsoft.com/en-US/library/dd2wa36c(v=vs.80)
* Copy registers onto stack.
mov 8[RSP],RCX or XMM0
mov 010h[RSP],RDX or XMM1
mov 018h[RSP],R8 or XMM2
mov 020h[RSP],R9 or XMM3
*/
static immutable reg_t[4] vregs = [ CX,DX,R8,R9 ];
for (int i = 0; i < vregs.length; ++i)
{
uint preg = vregs[i];
uint offset = cast(uint)(Para.size + i * REGSIZE);
if (!(shadowregm & (mask(preg) | mask(XMM0 + i))))
{
if (hasframe)
{
// MOV x[EBP],preg
cdb.genc1(0x89,
modregxrm(2,preg,BPRM),FLconst, offset);
code_orrex(cdb.last(), REX_W);
}
else
{
// MOV offset[ESP],preg
cdb.genc1(0x89,
(modregrm(0,4,SP) << 8) |
modregxrm(2,preg,4),FLconst,offset + EBPtoESP);
}
cdb.last().Irex |= REX_W;
}
}
}
/* Copy SCfastpar and SCshadowreg (parameters passed in registers) that were assigned registers
* into their assigned registers.
* Note that we have a big problem if Pa is passed in R1 and assigned to R2,
* and Pb is passed in R2 but assigned to R1. Detect it and assert.
*/
regm_t assignregs = 0;
for (SYMIDX si = 0; si < globsym.top; si++)
{
Symbol *s = globsym.tab[si];
uint sz = cast(uint)type_size(s.Stype);
if (s.Sclass == SCfastpar || s.Sclass == SCshadowreg)
namedargs |= s.Spregm();
if ((s.Sclass == SCfastpar || s.Sclass == SCshadowreg) && s.Sfl == FLreg)
{ // Argument is passed in a register
type *t = s.Stype;
type *t2 = null;
if (tybasic(t.Tty) == TYstruct && config.exe != EX_WIN64)
{ type *targ1 = t.Ttag.Sstruct.Sarg1type;
t2 = t.Ttag.Sstruct.Sarg2type;
if (targ1)
t = targ1;
}
reg_t preg = s.Spreg;
reg_t r = s.Sreglsw;
for (int i = 0; i < 2; ++i)
{
if (preg == NOREG)
break;
assert(!(mask(preg) & assignregs)); // not already stepped on
assignregs |= mask(r);
// MOV reg,preg
if (r == preg)
{
}
else if (mask(preg) & XMMREGS)
{
const op = xmmload(t.Tty); // MOVSS/D xreg,preg
uint xreg = r - XMM0;
cdb.gen2(op,modregxrmx(3,xreg,preg - XMM0));
}
else
{
//printf("test1 mov %s, %s\n", regstring[r], regstring[preg]);
genmovreg(cdb,r,preg);
if (I64 && sz == 8)
code_orrex(cdb.last(), REX_W);
}
preg = s.Spreg2;
r = s.Sregmsw;
if (t2)
t = t2;
}
}
}
/* For parameters that were passed on the stack, but are enregistered,
* initialize the registers with the parameter stack values.
* Do not use assignaddr(), as it will replace the stack reference with
* the register.
*/
for (SYMIDX si = 0; si < globsym.top; si++)
{
Symbol *s = globsym.tab[si];
uint sz = cast(uint)type_size(s.Stype);
if ((s.Sclass == SCregpar || s.Sclass == SCparameter) &&
s.Sfl == FLreg &&
(refparam
// This variable has been reference by a nested function
|| MARS && s.Stype.Tty & mTYvolatile
))
{
// MOV reg,param[BP]
//assert(refparam);
if (mask(s.Sreglsw) & XMMREGS)
{
const op = xmmload(s.Stype.Tty); // MOVSS/D xreg,mem
uint xreg = s.Sreglsw - XMM0;
cdb.genc1(op,modregxrm(2,xreg,BPRM),FLconst,Para.size + s.Soffset);
if (!hasframe)
{ // Convert to ESP relative address rather than EBP
code *c = cdb.last();
c.Irm = cast(ubyte)modregxrm(2,xreg,4);
c.Isib = modregrm(0,4,SP);
c.IEV1.Vpointer += EBPtoESP;
}
}
else
{
cdb.genc1(sz == 1 ? 0x8A : 0x8B,
modregxrm(2,s.Sreglsw,BPRM),FLconst,Para.size + s.Soffset);
code *c = cdb.last();
if (!I16 && sz == SHORTSIZE)
c.Iflags |= CFopsize; // operand size
if (I64 && sz >= REGSIZE)
c.Irex |= REX_W;
if (I64 && sz == 1 && s.Sreglsw >= 4)
c.Irex |= REX;
if (!hasframe)
{ // Convert to ESP relative address rather than EBP
assert(!I16);
c.Irm = cast(ubyte)modregxrm(2,s.Sreglsw,4);
c.Isib = modregrm(0,4,SP);
c.IEV1.Vpointer += EBPtoESP;
}
if (sz > REGSIZE)
{
cdb.genc1(0x8B,
modregxrm(2,s.Sregmsw,BPRM),FLconst,Para.size + s.Soffset + REGSIZE);
code *cx = cdb.last();
if (I64)
cx.Irex |= REX_W;
if (!hasframe)
{ // Convert to ESP relative address rather than EBP
assert(!I16);
cx.Irm = cast(ubyte)modregxrm(2,s.Sregmsw,4);
cx.Isib = modregrm(0,4,SP);
cx.IEV1.Vpointer += EBPtoESP;
}
}
}
}
}
}
/*******************************
* Generate and return function epilog.
* Output:
* retsize Size of function epilog
*/
void epilog(block *b)
{
code *cpopds;
reg_t reg;
reg_t regx; // register that's not a return reg
regm_t topop,regm;
targ_size_t xlocalsize = localsize;
CodeBuilder cdbx; cdbx.ctor();
tym_t tyf = funcsym_p.ty();
tym_t tym = tybasic(tyf);
bool farfunc = tyfarfunc(tym) != 0;
if (!(b.Bflags & BFLepilog)) // if no epilog code
goto Lret; // just generate RET
regx = (b.BC == BCret) ? AX : CX;
retsize = 0;
if (tyf & mTYnaked) // if no prolog/epilog
return;
if (tym == TYifunc)
{
static immutable ubyte[5] ops2 = [ 0x07,0x1F,0x61,0xCF,0 ];
static immutable ubyte[12] ops0 = [ 0x07,0x1F,0x5F,0x5E,
0x5D,0x5B,0x5B,0x5A,
0x59,0x58,0xCF,0 ];
genregs(cdbx,0x8B,SP,BP); // MOV SP,BP
auto p = (config.target_cpu >= TARGET_80286) ? ops2.ptr : ops0.ptr;
do
cdbx.gen1(*p);
while (*++p);
goto Lopt;
}
if (config.flags & CFGtrace &&
(!(config.flags4 & CFG4allcomdat) ||
funcsym_p.Sclass == SCcomdat ||
funcsym_p.Sclass == SCglobal ||
(config.flags2 & CFG2comdat && SymInline(funcsym_p))
)
)
{
Symbol *s = getRtlsym(farfunc ? RTLSYM_TRACE_EPI_F : RTLSYM_TRACE_EPI_N);
makeitextern(s);
cdbx.gencs(I16 ? 0x9A : CALL,0,FLfunc,s); // CALLF _trace
if (!I16)
code_orflag(cdbx.last(),CFoff | CFselfrel);
useregs((ALLREGS | mBP | mES) & ~s.Sregsaved);
}
if (usednteh & (NTEH_try | NTEH_except | NTEHcpp | EHcleanup | EHtry | NTEHpassthru) && (config.exe == EX_WIN32 || MARS))
{
nteh_epilog(cdbx);
}
cpopds = null;
if (tyf & mTYloadds)
{
cdbx.gen1(0x1F); // POP DS
cpopds = cdbx.last();
}
/* Pop all the general purpose registers saved on the stack
* by the prolog code. Remember to do them in the reverse
* order they were pushed.
*/
topop = fregsaved & ~mfuncreg;
epilog_restoreregs(cdbx, topop);
version (MARS)
{
if (usednteh & NTEHjmonitor)
{
regm_t retregs = 0;
if (b.BC == BCretexp)
retregs = regmask(b.Belem.Ety, tym);
nteh_monitor_epilog(cdbx,retregs);
xlocalsize += 8;
}
}
if (config.wflags & WFwindows && farfunc)
{
int wflags = config.wflags;
if (wflags & WFreduced && !(tyf & mTYexport))
{ // reduced prolog/epilog for non-exported functions
wflags &= ~(WFdgroup | WFds | WFss);
if (!(wflags & WFsaveds))
goto L4;
}
if (localsize)
{
cdbx.genc1(LEA,modregrm(1,SP,6),FLconst,cast(targ_uns)-2); /* LEA SP,-2[BP] */
}
if (wflags & (WFsaveds | WFds | WFss | WFdgroup))
{
if (cpopds)
cpopds.Iop = NOP; // don't need previous one
cdbx.gen1(0x1F); // POP DS
}
cdbx.gen1(0x58 + BP); // POP BP
if (config.wflags & WFincbp)
cdbx.gen1(0x48 + BP); // DEC BP
assert(hasframe);
}
else
{
if (needframe || (xlocalsize && hasframe))
{
L4:
assert(hasframe);
if (xlocalsize || enforcealign)
{
if (config.flags2 & CFG2stomp)
{ /* MOV ECX,0xBEAF
* L1:
* MOV [ESP],ECX
* ADD ESP,4
* CMP EBP,ESP
* JNE L1
* POP EBP
*/
/* Value should be:
* 1. != 0 (code checks for null pointers)
* 2. be odd (to mess up alignment)
* 3. fall in first 64K (likely marked as inaccessible)
* 4. be a value that stands out in the debugger
*/
assert(I32 || I64);
targ_size_t value = 0x0000BEAF;
reg_t regcx = CX;
mfuncreg &= ~mask(regcx);
uint grex = I64 ? REX_W << 16 : 0;
cdbx.genc2(0xC7,grex | modregrmx(3,0,regcx),value); // MOV regcx,value
cdbx.gen2sib(0x89,grex | modregrm(0,regcx,4),modregrm(0,4,SP)); // MOV [ESP],regcx
code *c1 = cdbx.last();
cdbx.genc2(0x81,grex | modregrm(3,0,SP),REGSIZE); // ADD ESP,REGSIZE
genregs(cdbx,0x39,SP,BP); // CMP EBP,ESP
if (I64)
code_orrex(cdbx.last(),REX_W);
genjmp(cdbx,JNE,FLcode,cast(block *)c1); // JNE L1
// explicitly mark as short jump, needed for correct retsize calculation (Bugzilla 15779)
cdbx.last().Iflags &= ~CFjmp16;
cdbx.gen1(0x58 + BP); // POP BP
}
else if (config.exe == EX_WIN64)
{ // See http://msdn.microsoft.com/en-us/library/tawsa7cb(v=vs.80).aspx
// LEA RSP,0[RBP]
cdbx.genc1(LEA,(REX_W<<16)|modregrm(2,SP,BPRM),FLconst,0);
cdbx.gen1(0x58 + BP); // POP RBP
}
else if (config.target_cpu >= TARGET_80286 &&
!(config.target_cpu >= TARGET_80386 && config.flags4 & CFG4speed)
)
cdbx.gen1(0xC9); // LEAVE
else if (0 && xlocalsize == REGSIZE && Alloca.size == 0 && I32)
{ // This doesn't work - I should figure out why
mfuncreg &= ~mask(regx);
cdbx.gen1(0x58 + regx); // POP regx
cdbx.gen1(0x58 + BP); // POP BP
}
else
{
genregs(cdbx,0x8B,SP,BP); // MOV SP,BP
if (I64)
code_orrex(cdbx.last(), REX_W); // MOV RSP,RBP
cdbx.gen1(0x58 + BP); // POP BP
}
}
else
cdbx.gen1(0x58 + BP); // POP BP
if (config.wflags & WFincbp && farfunc)
cdbx.gen1(0x48 + BP); // DEC BP
}
else if (xlocalsize == REGSIZE && (!I16 || b.BC == BCret))
{
mfuncreg &= ~mask(regx);
cdbx.gen1(0x58 + regx); // POP regx
}
else if (xlocalsize)
cod3_stackadj(cdbx, cast(int)-xlocalsize);
}
if (b.BC == BCret || b.BC == BCretexp)
{
Lret:
opcode_t op = tyfarfunc(tym) ? 0xCA : 0xC2;
if (tym == TYhfunc)
{
cdbx.genc2(0xC2,0,4); // RET 4
}
else if (!typfunc(tym) || // if caller cleans the stack
config.exe == EX_WIN64 ||
Para.offset == 0) // or nothing pushed on the stack anyway
{
op++; // to a regular RET
cdbx.gen1(op);
}
else
{ // Stack is always aligned on register size boundary
Para.offset = (Para.offset + (REGSIZE - 1)) & ~(REGSIZE - 1);
if (Para.offset >= 0x10000)
{
/*
POP REG
ADD ESP, Para.offset
JMP REG
*/
cdbx.gen1(0x58+regx);
cdbx.genc2(0x81, modregrm(3,0,SP), Para.offset);
if (I64)
code_orrex(cdbx.last(), REX_W);
cdbx.genc2(0xFF, modregrm(3,4,regx), 0);
if (I64)
code_orrex(cdbx.last(), REX_W);
}
else
cdbx.genc2(op,0,Para.offset); // RET Para.offset
}
}
Lopt:
// If last instruction in ce is ADD SP,imm, and first instruction
// in c sets SP, we can dump the ADD.
CodeBuilder cdb; cdb.ctor();
cdb.append(b.Bcode);
code *cr = cdb.last();
code *c = cdbx.peek();
if (cr && c && !I64)
{
if (cr.Iop == 0x81 && cr.Irm == modregrm(3,0,SP)) // if ADD SP,imm
{
if (
c.Iop == 0xC9 || // LEAVE
(c.Iop == 0x8B && c.Irm == modregrm(3,SP,BP)) || // MOV SP,BP
(c.Iop == LEA && c.Irm == modregrm(1,SP,6)) // LEA SP,-imm[BP]
)
cr.Iop = NOP;
else if (c.Iop == 0x58 + BP) // if POP BP
{
cr.Iop = 0x8B;
cr.Irm = modregrm(3,SP,BP); // MOV SP,BP
}
}
else
{
static if (0)
{
// These optimizations don't work if the called function
// cleans off the stack.
if (c.Iop == 0xC3 && cr.Iop == CALL) // CALL near
{
cr.Iop = 0xE9; // JMP near
c.Iop = NOP;
}
else if (c.Iop == 0xCB && cr.Iop == 0x9A) // CALL far
{
cr.Iop = 0xEA; // JMP far
c.Iop = NOP;
}
}
}
}
pinholeopt(c, null);
retsize += calcblksize(c); // compute size of function epilog
cdb.append(cdbx);
b.Bcode = cdb.finish();
}
/*******************************
* Return offset of SP from BP.
*/
targ_size_t cod3_spoff()
{
//printf("spoff = x%x, localsize = x%x\n", (int)spoff, (int)localsize);
return spoff + localsize;
}
void gen_spill_reg(ref CodeBuilder cdb, Symbol* s, bool toreg)
{
code cs;
const regm_t keepmsk = toreg ? RMload : RMstore;
elem* e = el_var(s); // so we can trick getlvalue() into working for us
if (mask(s.Sreglsw) & XMMREGS)
{ // Convert to save/restore of XMM register
if (toreg)
cs.Iop = xmmload(s.Stype.Tty); // MOVSS/D xreg,mem
else
cs.Iop = xmmstore(s.Stype.Tty); // MOVSS/D mem,xreg
getlvalue(cdb,&cs,e,keepmsk);
cs.orReg(s.Sreglsw - XMM0);
cdb.gen(&cs);
}
else
{
const int sz = cast(int)type_size(s.Stype);
cs.Iop = toreg ? 0x8B : 0x89; // MOV reg,mem[ESP] : MOV mem[ESP],reg
cs.Iop ^= (sz == 1);
getlvalue(cdb,&cs,e,keepmsk);
cs.orReg(s.Sreglsw);
if (I64 && sz == 1 && s.Sreglsw >= 4)
cs.Irex |= REX;
if ((cs.Irm & 0xC0) == 0xC0 && // reg,reg
(((cs.Irm >> 3) ^ cs.Irm) & 7) == 0 && // registers match
(((cs.Irex >> 2) ^ cs.Irex) & 1) == 0) // REX_R and REX_B match
{ } // skip MOV reg,reg
else
cdb.gen(&cs);
if (sz > REGSIZE)
{
cs.setReg(s.Sregmsw);
getlvalue_msw(&cs);
if ((cs.Irm & 0xC0) == 0xC0 && // reg,reg
(((cs.Irm >> 3) ^ cs.Irm) & 7) == 0 && // registers match
(((cs.Irex >> 2) ^ cs.Irex) & 1) == 0) // REX_R and REX_B match
{ } // skip MOV reg,reg
else
cdb.gen(&cs);
}
}
el_free(e);
}
/****************************
* Generate code for, and output a thunk.
* Params:
* sthunk = Symbol of thunk
* sfunc = Symbol of thunk's target function
* thisty = Type of this pointer
* p = ESP parameter offset to this pointer
* d = offset to add to 'this' pointer
* d2 = offset from 'this' to vptr
* i = offset into vtbl[]
*/
void cod3_thunk(Symbol *sthunk,Symbol *sfunc,uint p,tym_t thisty,
uint d,int i,uint d2)
{
targ_size_t thunkoffset;
int seg = sthunk.Sseg;
cod3_align(seg);
// Skip over return address
tym_t thunkty = tybasic(sthunk.ty());
if (tyfarfunc(thunkty))
p += I32 ? 8 : tysize(TYfptr); // far function
else
p += tysize(TYnptr);
CodeBuilder cdb; cdb.ctor();
if (!I16)
{
/*
Generate:
ADD p[ESP],d
For direct call:
JMP sfunc
For virtual call:
MOV EAX, p[ESP] EAX = this
MOV EAX, d2[EAX] EAX = this.vptr
JMP i[EAX] jump to virtual function
*/
reg_t reg = 0;
if (cast(int)d < 0)
{
d = -d;
reg = 5; // switch from ADD to SUB
}
if (thunkty == TYmfunc)
{ // ADD ECX,d
if (d)
cdb.genc2(0x81,modregrm(3,reg,CX),d);
}
else if (thunkty == TYjfunc || (I64 && thunkty == TYnfunc))
{ // ADD EAX,d
int rm = AX;
if (config.exe == EX_WIN64)
rm = CX;
else if (I64)
rm = DI;
if (d)
cdb.genc2(0x81,modregrm(3,reg,rm),d);
}
else
{
cdb.genc(0x81,modregrm(2,reg,4),
FLconst,p, // to this
FLconst,d); // ADD p[ESP],d
cdb.last().Isib = modregrm(0,4,SP);
}
if (I64 && cdb.peek())
cdb.last().Irex |= REX_W;
}
else
{
/*
Generate:
MOV BX,SP
ADD [SS:] p[BX],d
For direct call:
JMP sfunc
For virtual call:
MOV BX, p[BX] BX = this
MOV BX, d2[BX] BX = this.vptr
JMP i[BX] jump to virtual function
*/
genregs(cdb,0x89,SP,BX); // MOV BX,SP
cdb.genc(0x81,modregrm(2,0,7),
FLconst,p, // to this
FLconst,d); // ADD p[BX],d
if (config.wflags & WFssneds ||
// If DS needs reloading from SS,
// then assume SS != DS on thunk entry
(LARGEDATA && config.wflags & WFss))
cdb.last().Iflags |= CFss; // SS:
}
if ((i & 0xFFFF) != 0xFFFF) // if virtual call
{
const bool FARTHIS = (tysize(thisty) > REGSIZE);
const bool FARVPTR = FARTHIS;
assert(thisty != TYvptr); // can't handle this case
if (!I16)
{
assert(!FARTHIS && !LARGECODE);
if (thunkty == TYmfunc) // if 'this' is in ECX
{
// MOV EAX,d2[ECX]
cdb.genc1(0x8B,modregrm(2,AX,CX),FLconst,d2);
}
else if (thunkty == TYjfunc) // if 'this' is in EAX
{
// MOV EAX,d2[EAX]
cdb.genc1(0x8B,modregrm(2,AX,AX),FLconst,d2);
}
else
{
// MOV EAX,p[ESP]
cdb.genc1(0x8B,(modregrm(0,4,SP) << 8) | modregrm(2,AX,4),FLconst,cast(targ_uns) p);
if (I64)
cdb.last().Irex |= REX_W;
// MOV EAX,d2[EAX]
cdb.genc1(0x8B,modregrm(2,AX,AX),FLconst,d2);
}
if (I64)
code_orrex(cdb.last(), REX_W);
// JMP i[EAX]
cdb.genc1(0xFF,modregrm(2,4,0),FLconst,cast(targ_uns) i);
}
else
{
// MOV/LES BX,[SS:] p[BX]
cdb.genc1((FARTHIS ? 0xC4 : 0x8B),modregrm(2,BX,7),FLconst,cast(targ_uns) p);
if (config.wflags & WFssneds ||
// If DS needs reloading from SS,
// then assume SS != DS on thunk entry
(LARGEDATA && config.wflags & WFss))
cdb.last().Iflags |= CFss; // SS:
// MOV/LES BX,[ES:]d2[BX]
cdb.genc1((FARVPTR ? 0xC4 : 0x8B),modregrm(2,BX,7),FLconst,d2);
if (FARTHIS)
cdb.last().Iflags |= CFes; // ES:
// JMP i[BX]
cdb.genc1(0xFF,modregrm(2,(LARGECODE ? 5 : 4),7),FLconst,cast(targ_uns) i);
if (FARVPTR)
cdb.last().Iflags |= CFes; // ES:
}
}
else
{
static if (0)
{
localgot = null; // no local variables
code *c1 = load_localgot();
if (c1)
{
assignaddrc(c1);
cdb.append(c1);
}
}
cdb.gencs((LARGECODE ? 0xEA : 0xE9),0,FLfunc,sfunc); // JMP sfunc
cdb.last().Iflags |= LARGECODE ? (CFseg | CFoff) : (CFselfrel | CFoff);
}
thunkoffset = Offset(seg);
code *c = cdb.finish();
pinholeopt(c,null);
codout(seg,c);
code_free(c);
sthunk.Soffset = thunkoffset;
sthunk.Ssize = Offset(seg) - thunkoffset; // size of thunk
sthunk.Sseg = seg;
static if (TARGET_LINUX || TARGET_OSX || TARGET_FREEBSD || TARGET_OPENBSD || TARGET_DRAGONFLYBSD || TARGET_SOLARIS)
{
objmod.pubdef(seg,sthunk,sthunk.Soffset);
}
static if (TARGET_WINDOS)
{
if (config.objfmt == OBJ_MSCOFF)
objmod.pubdef(seg,sthunk,sthunk.Soffset);
}
searchfixlist(sthunk); // resolve forward refs
}
/*****************************
* Assume symbol s is extern.
*/
void makeitextern(Symbol *s)
{
if (s.Sxtrnnum == 0)
{
s.Sclass = SCextern; /* external */
/*printf("makeitextern(x%x)\n",s);*/
objmod.external(s);
}
}
/*******************************
* Replace JMPs in Bgotocode with JMP SHORTs whereever possible.
* This routine depends on FLcode jumps to only be forward
* referenced.
* BFLjmpoptdone is set to true if nothing more can be done
* with this block.
* Input:
* flag !=0 means don't have correct Boffsets yet
* Returns:
* number of bytes saved
*/
int branch(block *bl,int flag)
{
int bytesaved;
code* c,cn,ct;
targ_size_t offset,disp;
targ_size_t csize;
if (!flag)
bl.Bflags |= BFLjmpoptdone; // assume this will be all
c = bl.Bcode;
if (!c)
return 0;
bytesaved = 0;
offset = bl.Boffset; /* offset of start of block */
while (1)
{
ubyte op;
csize = calccodsize(c);
cn = code_next(c);
op = cast(ubyte)c.Iop;
if ((op & ~0x0F) == 0x70 && c.Iflags & CFjmp16 ||
(op == JMP && !(c.Iflags & CFjmp5)))
{
L1:
switch (c.IFL2)
{
case FLblock:
if (flag) // no offsets yet, don't optimize
goto L3;
disp = c.IEV2.Vblock.Boffset - offset - csize;
/* If this is a forward branch, and there is an aligned
* block intervening, it is possible that shrinking
* the jump instruction will cause it to be out of
* range of the target. This happens if the alignment
* prevents the target block from moving correspondingly
* closer.
*/
if (disp >= 0x7F-4 && c.IEV2.Vblock.Boffset > offset)
{ /* Look for intervening alignment
*/
for (block *b = bl.Bnext; b; b = b.Bnext)
{
if (b.Balign)
{
bl.Bflags &= ~BFLjmpoptdone; // some JMPs left
goto L3;
}
if (b == c.IEV2.Vblock)
break;
}
}
break;
case FLcode:
{
code *cr;
disp = 0;
ct = c.IEV2.Vcode; /* target of branch */
assert(ct.Iflags & (CFtarg | CFtarg2));
for (cr = cn; cr; cr = code_next(cr))
{
if (cr == ct)
break;
disp += calccodsize(cr);
}
if (!cr)
{ // Didn't find it in forward search. Try backwards jump
int s = 0;
disp = 0;
for (cr = bl.Bcode; cr != cn; cr = code_next(cr))
{
assert(cr != null); // must have found it
if (cr == ct)
s = 1;
if (s)
disp += calccodsize(cr);
}
}
if (config.flags4 & CFG4optimized && !flag)
{
/* Propagate branch forward past junk */
while (1)
{
if (ct.Iop == NOP ||
ct.Iop == (ESCAPE | ESClinnum))
{
ct = code_next(ct);
if (!ct)
goto L2;
}
else
{
c.IEV2.Vcode = ct;
ct.Iflags |= CFtarg;
break;
}
}
/* And eliminate jmps to jmps */
if ((op == ct.Iop || ct.Iop == JMP) &&
(op == JMP || c.Iflags & CFjmp16))
{
c.IFL2 = ct.IFL2;
c.IEV2.Vcode = ct.IEV2.Vcode;
/*printf("eliminating branch\n");*/
goto L1;
}
L2:
{ }
}
}
break;
default:
goto L3;
}
if (disp == 0) // bra to next instruction
{
bytesaved += csize;
c.Iop = NOP; // del branch instruction
c.IEV2.Vcode = null;
c = cn;
if (!c)
break;
continue;
}
else if (cast(targ_size_t)cast(targ_schar)(disp - 2) == (disp - 2) &&
cast(targ_size_t)cast(targ_schar)disp == disp)
{
if (op == JMP)
{
c.Iop = JMPS; // JMP SHORT
bytesaved += I16 ? 1 : 3;
}
else // else Jcond
{
c.Iflags &= ~CFjmp16; // a branch is ok
bytesaved += I16 ? 3 : 4;
// Replace a cond jump around a call to a function that
// never returns with a cond jump to that function.
if (config.flags4 & CFG4optimized &&
config.target_cpu >= TARGET_80386 &&
disp == (I16 ? 3 : 5) &&
cn &&
cn.Iop == CALL &&
cn.IFL2 == FLfunc &&
cn.IEV2.Vsym.Sflags & SFLexit &&
!(cn.Iflags & (CFtarg | CFtarg2))
)
{
cn.Iop = 0x0F00 | ((c.Iop & 0x0F) ^ 0x81);
c.Iop = NOP;
c.IEV2.Vcode = null;
bytesaved++;
// If nobody else points to ct, we can remove the CFtarg
if (flag && ct)
{
code *cx;
for (cx = bl.Bcode; 1; cx = code_next(cx))
{
if (!cx)
{
ct.Iflags &= ~CFtarg;
break;
}
if (cx.IEV2.Vcode == ct)
break;
}
}
}
}
csize = calccodsize(c);
}
else
bl.Bflags &= ~BFLjmpoptdone; // some JMPs left
}
L3:
if (cn)
{
offset += csize;
c = cn;
}
else
break;
}
//printf("bytesaved = x%x\n",bytesaved);
return bytesaved;
}
/************************************************
* Adjust all Soffset's of stack variables so they
* are all relative to the frame pointer.
*/
version (MARS)
{
void cod3_adjSymOffsets()
{
SYMIDX si;
//printf("cod3_adjSymOffsets()\n");
for (si = 0; si < globsym.top; si++)
{
//printf("\tglobsym.tab[%d] = %p\n",si,globsym.tab[si]);
Symbol *s = globsym.tab[si];
switch (s.Sclass)
{
case SCparameter:
case SCregpar:
case SCshadowreg:
//printf("s = '%s', Soffset = x%x, Para.size = x%x, EBPtoESP = x%x\n", s.Sident, s.Soffset, Para.size, EBPtoESP);
s.Soffset += Para.size;
if (0 && !(funcsym_p.Sfunc.Fflags3 & Fmember))
{
if (!hasframe)
s.Soffset += EBPtoESP;
if (funcsym_p.Sfunc.Fflags3 & Fnested)
s.Soffset += REGSIZE;
}
break;
case SCfastpar:
//printf("\tfastpar %s %p Soffset %x Fast.size %x BPoff %x\n", s.Sident, s, (int)s.Soffset, (int)Fast.size, (int)BPoff);
s.Soffset += Fast.size + BPoff;
break;
case SCauto:
case SCregister:
if (s.Sfl == FLfast)
s.Soffset += Fast.size + BPoff;
else
//printf("s = '%s', Soffset = x%x, Auto.size = x%x, BPoff = x%x EBPtoESP = x%x\n", s.Sident, (int)s.Soffset, (int)Auto.size, (int)BPoff, (int)EBPtoESP);
// if (!(funcsym_p.Sfunc.Fflags3 & Fnested))
s.Soffset += Auto.size + BPoff;
break;
case SCbprel:
break;
default:
continue;
}
static if (0)
{
if (!hasframe)
s.Soffset += EBPtoESP;
}
}
}
}
/*******************************
* Take symbol info in union ev and replace it with a real address
* in Vpointer.
*/
void assignaddr(block *bl)
{
int EBPtoESPsave = EBPtoESP;
int hasframesave = hasframe;
if (bl.Bflags & BFLoutsideprolog)
{
EBPtoESP = -REGSIZE;
hasframe = 0;
}
assignaddrc(bl.Bcode);
hasframe = hasframesave;
EBPtoESP = EBPtoESPsave;
}
void assignaddrc(code *c)
{
int sn;
Symbol *s;
ubyte ins,rm;
targ_size_t soff;
targ_size_t base;
base = EBPtoESP;
for (; c; c = code_next(c))
{
debug
{
if (0)
{ printf("assignaddrc()\n");
code_print(c);
}
if (code_next(c) && code_next(code_next(c)) == c)
assert(0);
}
if (c.Iflags & CFvex && c.Ivex.pfx == 0xC4)
ins = vex_inssize(c);
else if ((c.Iop & 0xFFFD00) == 0x0F3800)
ins = inssize2[(c.Iop >> 8) & 0xFF];
else if ((c.Iop & 0xFF00) == 0x0F00)
ins = inssize2[c.Iop & 0xFF];
else if ((c.Iop & 0xFF) == ESCAPE)
{
if (c.Iop == (ESCAPE | ESCadjesp))
{
//printf("adjusting EBPtoESP (%d) by %ld\n",EBPtoESP,(long)c.IEV1.Vint);
EBPtoESP += c.IEV1.Vint;
c.Iop = NOP;
}
else if (c.Iop == (ESCAPE | ESCfixesp))
{
//printf("fix ESP\n");
if (hasframe)
{
// LEA ESP,-EBPtoESP[EBP]
c.Iop = LEA;
if (c.Irm & 8)
c.Irex |= REX_R;
c.Irm = modregrm(2,SP,BP);
c.Iflags = CFoff;
c.IFL1 = FLconst;
c.IEV1.Vuns = -EBPtoESP;
if (enforcealign)
{
// AND ESP, -STACKALIGN
code *cn = code_calloc();
cn.Iop = 0x81;
cn.Irm = modregrm(3, 4, SP);
cn.Iflags = CFoff;
cn.IFL2 = FLconst;
cn.IEV2.Vsize_t = -STACKALIGN;
if (I64)
c.Irex |= REX_W;
cn.next = c.next;
c.next = cn;
}
}
}
else if (c.Iop == (ESCAPE | ESCframeptr))
{ // Convert to load of frame pointer
// c.Irm is the register to use
if (hasframe && !enforcealign)
{ // MOV reg,EBP
c.Iop = 0x89;
if (c.Irm & 8)
c.Irex |= REX_B;
c.Irm = modregrm(3,BP,c.Irm & 7);
}
else
{ // LEA reg,EBPtoESP[ESP]
c.Iop = LEA;
if (c.Irm & 8)
c.Irex |= REX_R;
c.Irm = modregrm(2,c.Irm & 7,4);
c.Isib = modregrm(0,4,SP);
c.Iflags = CFoff;
c.IFL1 = FLconst;
c.IEV1.Vuns = EBPtoESP;
}
}
if (I64)
c.Irex |= REX_W;
continue;
}
else
ins = inssize[c.Iop & 0xFF];
if (!(ins & M) ||
((rm = c.Irm) & 0xC0) == 0xC0)
goto do2; /* if no first operand */
if (is32bitaddr(I32,c.Iflags))
{
if (
((rm & 0xC0) == 0 && !((rm & 7) == 4 && (c.Isib & 7) == 5 || (rm & 7) == 5))
)
goto do2; /* if no first operand */
}
else
{
if (
((rm & 0xC0) == 0 && !((rm & 7) == 6))
)
goto do2; /* if no first operand */
}
s = c.IEV1.Vsym;
switch (c.IFL1)
{
case FLdata:
if (config.objfmt == OBJ_OMF && s.Sclass != SCcomdat)
{
version (MARS)
{
c.IEV1.Vseg = s.Sseg;
}
else
{
c.IEV1.Vseg = DATA;
}
c.IEV1.Vpointer += s.Soffset;
c.IFL1 = FLdatseg;
}
else
c.IFL1 = FLextern;
goto do2;
case FLudata:
if (config.objfmt == OBJ_OMF)
{
version (MARS)
{
c.IEV1.Vseg = s.Sseg;
}
else
{
c.IEV1.Vseg = UDATA;
}
c.IEV1.Vpointer += s.Soffset;
c.IFL1 = FLdatseg;
}
else
c.IFL1 = FLextern;
goto do2;
case FLtlsdata:
if (config.objfmt == OBJ_ELF || config.objfmt == OBJ_MACH)
c.IFL1 = FLextern;
goto do2;
case FLdatseg:
//c.IEV1.Vseg = DATA;
goto do2;
case FLfardata:
case FLcsdata:
case FLpseudo:
goto do2;
case FLstack:
//printf("Soffset = %d, EBPtoESP = %d, base = %d, pointer = %d\n",
//s.Soffset,EBPtoESP,base,c.IEV1.Vpointer);
c.IEV1.Vpointer += s.Soffset + EBPtoESP - base - EEStack.offset;
break;
case FLfast:
soff = Fast.size;
goto L1;
case FLreg:
case FLauto:
soff = Auto.size;
L1:
if (Symbol_Sisdead(s, anyiasm))
{
c.Iop = NOP; // remove references to it
continue;
}
if (s.Sfl == FLreg && c.IEV1.Vpointer < 2)
{
reg_t reg = s.Sreglsw;
assert(!(s.Sregm & ~mask(reg)));
if (c.IEV1.Vpointer == 1)
{
assert(reg < 4); /* must be a BYTEREGS */
reg |= 4; /* convert to high byte reg */
}
if (reg & 8)
{
assert(I64);
c.Irex |= REX_B;
reg &= 7;
}
c.Irm = (c.Irm & modregrm(0,7,0))
| modregrm(3,0,reg);
assert(c.Iop != LES && c.Iop != LEA);
goto do2;
}
else
{ c.IEV1.Vpointer += s.Soffset + soff + BPoff;
if (s.Sflags & SFLunambig)
c.Iflags |= CFunambig;
L2:
if (!hasframe || (enforcealign && c.IFL1 != FLpara))
{ /* Convert to ESP relative address instead of EBP */
assert(!I16);
c.IEV1.Vpointer += EBPtoESP;
ubyte crm = c.Irm;
if ((crm & 7) == 4) // if SIB byte
{
assert((c.Isib & 7) == BP);
assert((crm & 0xC0) != 0);
c.Isib = (c.Isib & ~7) | modregrm(0,0,SP);
}
else
{
assert((crm & 7) == 5);
c.Irm = (crm & modregrm(0,7,0))
| modregrm(2,0,4);
c.Isib = modregrm(0,4,SP);
}
}
}
break;
case FLpara:
soff = Para.size - BPoff; // cancel out add of BPoff
goto L1;
case FLfltreg:
c.IEV1.Vpointer += Foff + BPoff;
c.Iflags |= CFunambig;
goto L2;
case FLallocatmp:
c.IEV1.Vpointer += Alloca.offset + BPoff;
goto L2;
case FLfuncarg:
c.IEV1.Vpointer += cgstate.funcarg.offset + BPoff;
goto L2;
case FLbprel:
c.IEV1.Vpointer += s.Soffset;
break;
case FLcs:
sn = c.IEV1.Vuns;
if (!CSE.loaded(sn)) // if never loaded
{
c.Iop = NOP;
continue;
}
c.IEV1.Vpointer = CSE.offset(sn) + CSoff + BPoff;
c.Iflags |= CFunambig;
goto L2;
case FLregsave:
sn = c.IEV1.Vuns;
c.IEV1.Vpointer = sn + regsave.off + BPoff;
c.Iflags |= CFunambig;
goto L2;
case FLndp:
version (MARS)
{
assert(c.IEV1.Vuns < NDP.savetop);
}
c.IEV1.Vpointer = c.IEV1.Vuns * tysize(TYldouble) + NDPoff + BPoff;
c.Iflags |= CFunambig;
goto L2;
case FLoffset:
break;
case FLlocalsize:
c.IEV1.Vpointer += localsize;
break;
case FLconst:
default:
goto do2;
}
c.IFL1 = FLconst;
do2:
/* Ignore TEST (F6 and F7) opcodes */
if (!(ins & T)) goto done; /* if no second operand */
s = c.IEV2.Vsym;
switch (c.IFL2)
{
case FLdata:
if (config.objfmt == OBJ_ELF || config.objfmt == OBJ_MACH)
{
c.IFL2 = FLextern;
goto do2;
}
else
{
if (s.Sclass == SCcomdat)
{ c.IFL2 = FLextern;
goto do2;
}
c.IEV2.Vseg = MARS ? s.Sseg : DATA;
c.IEV2.Vpointer += s.Soffset;
c.IFL2 = FLdatseg;
goto done;
}
case FLudata:
if (config.objfmt == OBJ_ELF || config.objfmt == OBJ_MACH)
{
c.IFL2 = FLextern;
goto do2;
}
else
{
c.IEV2.Vseg = MARS ? s.Sseg : UDATA;
c.IEV2.Vpointer += s.Soffset;
c.IFL2 = FLdatseg;
goto done;
}
case FLtlsdata:
if (config.objfmt == OBJ_ELF || config.objfmt == OBJ_MACH)
{
c.IFL2 = FLextern;
goto do2;
}
goto done;
case FLdatseg:
//c.IEV2.Vseg = DATA;
goto done;
case FLcsdata:
case FLfardata:
goto done;
case FLreg:
case FLpseudo:
assert(0);
/* NOTREACHED */
case FLfast:
c.IEV2.Vpointer += s.Soffset + Fast.size + BPoff;
break;
case FLauto:
c.IEV2.Vpointer += s.Soffset + Auto.size + BPoff;
L3:
if (!hasframe || (enforcealign && c.IFL2 != FLpara))
/* Convert to ESP relative address instead of EBP */
c.IEV2.Vpointer += EBPtoESP;
break;
case FLpara:
c.IEV2.Vpointer += s.Soffset + Para.size;
goto L3;
case FLfltreg:
c.IEV2.Vpointer += Foff + BPoff;
goto L3;
case FLallocatmp:
c.IEV2.Vpointer += Alloca.offset + BPoff;
goto L3;
case FLfuncarg:
c.IEV2.Vpointer += cgstate.funcarg.offset + BPoff;
goto L3;
case FLbprel:
c.IEV2.Vpointer += s.Soffset;
break;
case FLstack:
c.IEV2.Vpointer += s.Soffset + EBPtoESP - base;
break;
case FLcs:
case FLndp:
case FLregsave:
assert(0);
case FLconst:
break;
case FLlocalsize:
c.IEV2.Vpointer += localsize;
break;
default:
goto done;
}
c.IFL2 = FLconst;
done:
{ }
}
}
/*******************************
* Return offset from BP of symbol s.
*/
targ_size_t cod3_bpoffset(Symbol *s)
{
targ_size_t offset;
symbol_debug(s);
offset = s.Soffset;
switch (s.Sfl)
{
case FLpara:
offset += Para.size;
break;
case FLfast:
offset += Fast.size + BPoff;
break;
case FLauto:
offset += Auto.size + BPoff;
break;
default:
WRFL(cast(FL)s.Sfl);
symbol_print(s);
assert(0);
}
assert(hasframe);
return offset;
}
/*******************************
* Find shorter versions of the same instructions.
* Does these optimizations:
* replaces jmps to the next instruction with NOPs
* sign extension of modregrm displacement
* sign extension of immediate data (can't do it for OR, AND, XOR
* as the opcodes are not defined)
* short versions for AX EA
* short versions for reg EA
* Code is neither removed nor added.
* Params:
* b = block for code (or null)
* c = code list to optimize
*/
void pinholeopt(code *c,block *b)
{
targ_size_t a;
uint mod;
ubyte ins;
int usespace;
int useopsize;
int space;
block *bn;
debug
{
__gshared int tested; if (!tested) { tested++; pinholeopt_unittest(); }
}
debug
{
code *cstart = c;
if (debugc)
{
printf("+pinholeopt(%p)\n",c);
}
}
if (b)
{
bn = b.Bnext;
usespace = (config.flags4 & CFG4space && b.BC != BCasm);
useopsize = (I16 || (config.flags4 & CFG4space && b.BC != BCasm));
}
else
{
bn = null;
usespace = (config.flags4 & CFG4space);
useopsize = (I16 || config.flags4 & CFG4space);
}
for (; c; c = code_next(c))
{
L1:
opcode_t op = c.Iop;
if (c.Iflags & CFvex && c.Ivex.pfx == 0xC4)
ins = vex_inssize(c);
else if ((op & 0xFFFD00) == 0x0F3800)
ins = inssize2[(op >> 8) & 0xFF];
else if ((op & 0xFF00) == 0x0F00)
ins = inssize2[op & 0xFF];
else
ins = inssize[op & 0xFF];
if (ins & M) // if modregrm byte
{
int shortop = (c.Iflags & CFopsize) ? !I16 : I16;
int local_BPRM = BPRM;
if (c.Iflags & CFaddrsize)
local_BPRM ^= 5 ^ 6; // toggle between 5 and 6
uint rm = c.Irm;
reg_t reg = rm & modregrm(0,7,0); // isolate reg field
reg_t ereg = rm & 7;
//printf("c = %p, op = %02x rm = %02x\n", c, op, rm);
/* If immediate second operand */
if ((ins & T ||
((op == 0xF6 || op == 0xF7) && (reg < modregrm(0,2,0) || reg > modregrm(0,3,0)))
) &&
c.IFL2 == FLconst)
{
int flags = c.Iflags & CFpsw; /* if want result in flags */
targ_long u = c.IEV2.Vuns;
if (ins & E)
u = cast(byte) u;
else if (shortop)
u = cast(short) u;
// Replace CMP reg,0 with TEST reg,reg
if ((op & 0xFE) == 0x80 && // 80 is CMP R8,imm8; 81 is CMP reg,imm
rm >= modregrm(3,7,AX) &&
u == 0)
{
c.Iop = (op & 1) | 0x84;
c.Irm = modregrm(3,ereg,ereg);
if (c.Irex & REX_B)
c.Irex |= REX_R;
goto L1;
}
/* Optimize ANDs with an immediate constant */
if ((op == 0x81 || op == 0x80) && reg == modregrm(0,4,0))
{
if (rm >= modregrm(3,4,AX)) // AND reg,imm
{
if (u == 0)
{
/* Replace with XOR reg,reg */
c.Iop = 0x30 | (op & 1);
c.Irm = modregrm(3,ereg,ereg);
if (c.Irex & REX_B)
c.Irex |= REX_R;
goto L1;
}
if (u == 0xFFFFFFFF && !flags)
{
c.Iop = NOP;
goto L1;
}
}
if (op == 0x81 && !flags)
{ // If we can do the operation in one byte
// If EA is not SI or DI
if ((rm < modregrm(3,4,SP) || I64) &&
(config.flags4 & CFG4space ||
config.target_cpu < TARGET_PentiumPro)
)
{
if ((u & 0xFFFFFF00) == 0xFFFFFF00)
goto L2;
else if (rm < modregrm(3,0,0) || (!c.Irex && ereg < 4))
{
if (!shortop)
{
if ((u & 0xFFFF00FF) == 0xFFFF00FF)
goto L3;
}
else
{
if ((u & 0xFF) == 0xFF)
goto L3;
}
}
}
if (!shortop && useopsize)
{
if ((u & 0xFFFF0000) == 0xFFFF0000)
{
c.Iflags ^= CFopsize;
goto L1;
}
if ((u & 0xFFFF) == 0xFFFF && rm < modregrm(3,4,AX))
{
c.IEV1.Voffset += 2; /* address MSW */
c.IEV2.Vuns >>= 16;
c.Iflags ^= CFopsize;
goto L1;
}
if (rm >= modregrm(3,4,AX))
{
if (u == 0xFF && (rm <= modregrm(3,4,BX) || I64))
{
c.Iop = 0x0FB6; // MOVZX
c.Irm = modregrm(3,ereg,ereg);
if (c.Irex & REX_B)
c.Irex |= REX_R;
goto L1;
}
if (u == 0xFFFF)
{
c.Iop = 0x0FB7; // MOVZX
c.Irm = modregrm(3,ereg,ereg);
if (c.Irex & REX_B)
c.Irex |= REX_R;
goto L1;
}
}
}
}
}
/* Look for ADD,OR,SUB,XOR with u that we can eliminate */
if (!flags &&
(op == 0x81 || op == 0x80) &&
(reg == modregrm(0,0,0) || reg == modregrm(0,1,0) || // ADD,OR
reg == modregrm(0,5,0) || reg == modregrm(0,6,0)) // SUB, XOR
)
{
if (u == 0)
{
c.Iop = NOP;
goto L1;
}
if (u == ~0 && reg == modregrm(0,6,0)) /* XOR */
{
c.Iop = 0xF6 | (op & 1); /* NOT */
c.Irm ^= modregrm(0,6^2,0);
goto L1;
}
if (!shortop &&
useopsize &&
op == 0x81 &&
(u & 0xFFFF0000) == 0 &&
(reg == modregrm(0,6,0) || reg == modregrm(0,1,0)))
{
c.Iflags ^= CFopsize;
goto L1;
}
}
/* Look for TEST or OR or XOR with an immediate constant */
/* that we can replace with a byte operation */
if (op == 0xF7 && reg == modregrm(0,0,0) ||
op == 0x81 && reg == modregrm(0,6,0) && !flags ||
op == 0x81 && reg == modregrm(0,1,0))
{
// See if we can replace a dword with a word
// (avoid for 32 bit instructions, because CFopsize
// is too slow)
if (!shortop && useopsize)
{
if ((u & 0xFFFF0000) == 0)
{
c.Iflags ^= CFopsize;
goto L1;
}
/* If memory (not register) addressing mode */
if ((u & 0xFFFF) == 0 && rm < modregrm(3,0,AX))
{
c.IEV1.Voffset += 2; /* address MSW */
c.IEV2.Vuns >>= 16;
c.Iflags ^= CFopsize;
goto L1;
}
}
// If EA is not SI or DI
if (rm < (modregrm(3,0,SP) | reg) &&
(usespace ||
config.target_cpu < TARGET_PentiumPro)
)
{
if ((u & 0xFFFFFF00) == 0)
{
L2: c.Iop--; /* to byte instruction */
c.Iflags &= ~CFopsize;
goto L1;
}
if (((u & 0xFFFF00FF) == 0 ||
(shortop && (u & 0xFF) == 0)) &&
(rm < modregrm(3,0,0) || (!c.Irex && ereg < 4)))
{
L3:
c.IEV2.Vuns >>= 8;
if (rm >= (modregrm(3,0,AX) | reg))
c.Irm |= 4; /* AX.AH, BX.BH, etc. */
else
c.IEV1.Voffset += 1;
goto L2;
}
}
// BUG: which is right?
//else if ((u & 0xFFFF0000) == 0)
else if (0 && op == 0xF7 &&
rm >= modregrm(3,0,SP) &&
(u & 0xFFFF0000) == 0)
c.Iflags &= ~CFopsize;
}
// Try to replace TEST reg,-1 with TEST reg,reg
if (op == 0xF6 && rm >= modregrm(3,0,AX) && rm <= modregrm(3,0,7)) // TEST regL,immed8
{
if ((u & 0xFF) == 0xFF)
{
L4:
c.Iop = 0x84; // TEST regL,regL
c.Irm = modregrm(3,ereg,ereg);
if (c.Irex & REX_B)
c.Irex |= REX_R;
c.Iflags &= ~CFopsize;
goto L1;
}
}
if (op == 0xF7 && rm >= modregrm(3,0,AX) && rm <= modregrm(3,0,7) && (I64 || ereg < 4))
{
if (u == 0xFF)
{
if (ereg & 4) // SIL,DIL,BPL,SPL need REX prefix
c.Irex |= REX;
goto L4;
}
if ((u & 0xFFFF) == 0xFF00 && shortop && !c.Irex && ereg < 4)
{
ereg |= 4; /* to regH */
goto L4;
}
}
/* Look for sign extended immediate data */
if (cast(byte) u == u)
{
if (op == 0x81)
{
if (reg != 0x08 && reg != 0x20 && reg != 0x30)
c.Iop = op = 0x83; /* 8 bit sgn ext */
}
else if (op == 0x69) /* IMUL rw,ew,dw */
c.Iop = op = 0x6B; /* IMUL rw,ew,db */
}
// Look for SHIFT EA,imm8 we can replace with short form
if (u == 1 && ((op & 0xFE) == 0xC0))
c.Iop |= 0xD0;
} /* if immediate second operand */
/* Look for AX short form */
if (ins & A)
{
if (rm == modregrm(0,AX,local_BPRM) &&
!(c.Irex & REX_R) && // and it's AX, not R8
(op & ~3) == 0x88 &&
!I64)
{
op = ((op & 3) + 0xA0) ^ 2;
/* 8A. A0 */
/* 8B. A1 */
/* 88. A2 */
/* 89. A3 */
c.Iop = op;
c.IFL2 = c.IFL1;
c.IEV2 = c.IEV1;
}
/* Replace MOV REG1,REG2 with MOV EREG1,EREG2 */
else if (!I16 &&
(op == 0x89 || op == 0x8B) &&
(rm & 0xC0) == 0xC0 &&
(!b || b.BC != BCasm)
)
c.Iflags &= ~CFopsize;
// If rm is AX
else if ((rm & modregrm(3,0,7)) == modregrm(3,0,AX) && !(c.Irex & (REX_R | REX_B)))
{
switch (op)
{
case 0x80: op = reg | 4; break;
case 0x81: op = reg | 5; break;
case 0x87: op = 0x90 + (reg>>3); break; // XCHG
case 0xF6:
if (reg == 0)
op = 0xA8; /* TEST AL,immed8 */
break;
case 0xF7:
if (reg == 0)
op = 0xA9; /* TEST AX,immed16 */
break;
default:
break;
}
c.Iop = op;
}
}
/* Look for reg short form */
if ((ins & R) && (rm & 0xC0) == 0xC0)
{
switch (op)
{
case 0xC6: op = 0xB0 + ereg; break;
case 0xC7: // if no sign extension
if (!(c.Irex & REX_W && c.IEV2.Vint < 0))
{
c.Irm = 0;
c.Irex &= ~REX_W;
op = 0xB8 + ereg;
}
break;
case 0xFF:
switch (reg)
{ case 6<<3: op = 0x50+ereg; break;/* PUSH*/
case 0<<3: if (!I64) op = 0x40+ereg; break; /* INC*/
case 1<<3: if (!I64) op = 0x48+ereg; break; /* DEC*/
default: break;
}
break;
case 0x8F: op = 0x58 + ereg; break;
case 0x87:
if (reg == 0 && !(c.Irex & (REX_R | REX_B))) // Issue 12968: Needed to ensure it's referencing RAX, not R8
op = 0x90 + ereg;
break;
default:
break;
}
c.Iop = op;
}
// Look to remove redundant REX prefix on XOR
if (c.Irex == REX_W // ignore ops involving R8..R15
&& (op == 0x31 || op == 0x33) // XOR
&& ((rm & 0xC0) == 0xC0) // register direct
&& ((reg >> 3) == ereg)) // register with itself
{
c.Irex = 0;
}
// Look to replace SHL reg,1 with ADD reg,reg
if ((op & ~1) == 0xD0 &&
(rm & modregrm(3,7,0)) == modregrm(3,4,0) &&
config.target_cpu >= TARGET_80486)
{
c.Iop &= 1;
c.Irm = cast(ubyte)((rm & modregrm(3,0,7)) | (ereg << 3));
if (c.Irex & REX_B)
c.Irex |= REX_R;
if (!(c.Iflags & CFpsw) && !I16)
c.Iflags &= ~CFopsize;
goto L1;
}
/* Look for sign extended modregrm displacement, or 0
* displacement.
*/
if (((rm & 0xC0) == 0x80) && // it's a 16/32 bit disp
c.IFL1 == FLconst) // and it's a constant
{
a = c.IEV1.Vpointer;
if (a == 0 && (rm & 7) != local_BPRM && // if 0[disp]
!(local_BPRM == 5 && (rm & 7) == 4 && (c.Isib & 7) == BP)
)
c.Irm &= 0x3F;
else if (!I16)
{
if (cast(targ_size_t)cast(targ_schar)a == a)
c.Irm ^= 0xC0; /* do 8 sx */
}
else if ((cast(targ_size_t)cast(targ_schar)a & 0xFFFF) == (a & 0xFFFF))
c.Irm ^= 0xC0; /* do 8 sx */
}
/* Look for LEA reg,[ireg], replace with MOV reg,ireg */
if (op == LEA)
{
rm = c.Irm & 7;
mod = c.Irm & modregrm(3,0,0);
if (mod == 0)
{
if (!I16)
{
switch (rm)
{
case 4:
case 5:
break;
default:
c.Irm |= modregrm(3,0,0);
c.Iop = 0x8B;
break;
}
}
else
{
switch (rm)
{
case 4: rm = modregrm(3,0,SI); goto L6;
case 5: rm = modregrm(3,0,DI); goto L6;
case 7: rm = modregrm(3,0,BX); goto L6;
L6: c.Irm = cast(ubyte)(rm + reg);
c.Iop = 0x8B;
break;
default:
break;
}
}
}
/* replace LEA reg,0[BP] with MOV reg,BP */
else if (mod == modregrm(1,0,0) && rm == local_BPRM &&
c.IFL1 == FLconst && c.IEV1.Vpointer == 0)
{
c.Iop = 0x8B; /* MOV reg,BP */
c.Irm = cast(ubyte)(modregrm(3,0,BP) + reg);
}
}
// Replace [R13] with 0[R13]
if (c.Irex & REX_B && ((c.Irm & modregrm(3,0,7)) == modregrm(0,0,BP) ||
issib(c.Irm) && (c.Irm & modregrm(3,0,0)) == 0 && (c.Isib & 7) == BP))
{
c.Irm |= modregrm(1,0,0);
c.IFL1 = FLconst;
c.IEV1.Vpointer = 0;
}
}
else if (!(c.Iflags & CFvex))
{
switch (op)
{
default:
// Look for MOV r64, immediate
if ((c.Irex & REX_W) && (op & ~7) == 0xB8)
{
/* Look for zero extended immediate data */
if (c.IEV2.Vsize_t == c.IEV2.Vuns)
{
c.Irex &= ~REX_W;
}
/* Look for sign extended immediate data */
else if (c.IEV2.Vsize_t == c.IEV2.Vint)
{
c.Irm = modregrm(3,0,op & 7);
c.Iop = op = 0xC7;
c.IEV2.Vsize_t = c.IEV2.Vuns;
}
}
if ((op & ~0x0F) != 0x70)
break;
goto case JMP;
case JMP:
switch (c.IFL2)
{
case FLcode:
if (c.IEV2.Vcode == code_next(c))
{
c.Iop = NOP;
continue;
}
break;
case FLblock:
if (!code_next(c) && c.IEV2.Vblock == bn)
{
c.Iop = NOP;
continue;
}
break;
case FLconst:
case FLfunc:
case FLextern:
break;
default:
WRFL(cast(FL)c.IFL2);
assert(0);
}
break;
case 0x68: // PUSH immed16
if (c.IFL2 == FLconst)
{
targ_long u = c.IEV2.Vuns;
if (I64 ||
((c.Iflags & CFopsize) ? I16 : I32))
{ // PUSH 32/64 bit operand
if (u == cast(byte) u)
c.Iop = 0x6A; // PUSH immed8
}
else // PUSH 16 bit operand
{
if (cast(short)u == cast(byte) u)
c.Iop = 0x6A; // PUSH immed8
}
}
break;
}
}
}
debug
if (debugc)
{
printf("-pinholeopt(%p)\n",cstart);
for (c = cstart; c; c = code_next(c))
code_print(c);
}
}
debug
{
private void pinholeopt_unittest()
{
//printf("pinholeopt_unittest()\n");
static struct CS
{
uint model,op,ea;
targ_size_t ev1,ev2;
uint flags;
}
__gshared CS[2][22] tests =
[
// XOR reg,immed NOT regL
[ { 16,0x81,modregrm(3,6,BX),0,0xFF,0 }, { 0,0xF6,modregrm(3,2,BX),0,0xFF } ],
// MOV 0[BX],3 MOV [BX],3
[ { 16,0xC7,modregrm(2,0,7),0,3 }, { 0,0xC7,modregrm(0,0,7),0,3 } ],
/+ // only if config.flags4 & CFG4space
// TEST regL,immed8
[ { 0,0xF6,modregrm(3,0,BX),0,0xFF,0 }, { 0,0x84,modregrm(3,BX,BX),0,0xFF }],
[ { 0,0xF7,modregrm(3,0,BX),0,0xFF,0 }, { 0,0x84,modregrm(3,BX,BX),0,0xFF }],
[ { 64,0xF6,modregrmx(3,0,R8),0,0xFF,0 }, { 0,0x84,modregxrmx(3,R8,R8),0,0xFF }],
[ { 64,0xF7,modregrmx(3,0,R8),0,0xFF,0 }, { 0,0x84,modregxrmx(3,R8,R8),0,0xFF }],
+/
// PUSH immed => PUSH immed8
[ { 0,0x68,0,0,0 }, { 0,0x6A,0,0,0 }],
[ { 0,0x68,0,0,0x7F }, { 0,0x6A,0,0,0x7F }],
[ { 0,0x68,0,0,0x80 }, { 0,0x68,0,0,0x80 }],
[ { 16,0x68,0,0,0,CFopsize }, { 0,0x6A,0,0,0,CFopsize }],
[ { 16,0x68,0,0,0x7F,CFopsize }, { 0,0x6A,0,0,0x7F,CFopsize }],
[ { 16,0x68,0,0,0x80,CFopsize }, { 0,0x68,0,0,0x80,CFopsize }],
[ { 16,0x68,0,0,0x10000,0 }, { 0,0x6A,0,0,0x10000,0 }],
[ { 16,0x68,0,0,0x10000,CFopsize }, { 0,0x68,0,0,0x10000,CFopsize }],
[ { 32,0x68,0,0,0,CFopsize }, { 0,0x6A,0,0,0,CFopsize }],
[ { 32,0x68,0,0,0x7F,CFopsize }, { 0,0x6A,0,0,0x7F,CFopsize }],
[ { 32,0x68,0,0,0x80,CFopsize }, { 0,0x68,0,0,0x80,CFopsize }],
[ { 32,0x68,0,0,0x10000,CFopsize }, { 0,0x6A,0,0,0x10000,CFopsize }],
[ { 32,0x68,0,0,0x8000,CFopsize }, { 0,0x68,0,0,0x8000,CFopsize }],
// clear r64, for r64 != R8..R15
[ { 64,0x31,0x800C0,0,0,0 }, { 0,0x31,0xC0,0,0,0}],
[ { 64,0x33,0x800C0,0,0,0 }, { 0,0x33,0xC0,0,0,0}],
// MOV r64, immed
[ { 64,0xC7,0x800C0,0,0xFFFFFFFF,0 }, { 0,0xC7,0x800C0,0,0xFFFFFFFF,0}],
[ { 64,0xC7,0x800C0,0,0x7FFFFFFF,0 }, { 0,0xB8,0,0,0x7FFFFFFF,0}],
[ { 64,0xB8,0x80000,0,0xFFFFFFFF,0 }, { 0,0xB8,0,0,0xFFFFFFFF,0 }],
[ { 64,0xB8,0x80000,0,cast(targ_size_t)0x1FFFFFFFF,0 }, { 0,0xB8,0x80000,0,cast(targ_size_t)0x1FFFFFFFF,0 }],
[ { 64,0xB8,0x80000,0,cast(targ_size_t)0xFFFFFFFFFFFFFFFF,0 }, { 0,0xC7,0x800C0,0,cast(targ_size_t)0xFFFFFFFF,0}],
];
//config.flags4 |= CFG4space;
for (int i = 0; i < tests.length; i++)
{ CS *pin = &tests[i][0];
CS *pout = &tests[i][1];
code cs = void;
memset(&cs, 0, cs.sizeof);
if (pin.model)
{
if (I16 && pin.model != 16)
continue;
if (I32 && pin.model != 32)
continue;
if (I64 && pin.model != 64)
continue;
}
//printf("[%d]\n", i);
cs.Iop = pin.op;
cs.Iea = pin.ea;
cs.IFL1 = FLconst;
cs.IFL2 = FLconst;
cs.IEV1.Vsize_t = pin.ev1;
cs.IEV2.Vsize_t = pin.ev2;
cs.Iflags = pin.flags;
pinholeopt(&cs, null);
if (cs.Iop != pout.op)
{ printf("[%d] Iop = x%02x, pout = x%02x\n", i, cs.Iop, pout.op);
assert(0);
}
assert(cs.Iea == pout.ea);
assert(cs.IEV1.Vsize_t == pout.ev1);
assert(cs.IEV2.Vsize_t == pout.ev2);
assert(cs.Iflags == pout.flags);
}
}
}
void simplify_code(code* c)
{
reg_t reg;
if (config.flags4 & CFG4optimized &&
(c.Iop == 0x81 || c.Iop == 0x80) &&
c.IFL2 == FLconst &&
reghasvalue((c.Iop == 0x80) ? BYTEREGS : ALLREGS,I64 ? c.IEV2.Vsize_t : c.IEV2.Vlong,®) &&
!(I16 && c.Iflags & CFopsize)
)
{
// See if we can replace immediate instruction with register instruction
static immutable ubyte[8] regop =
[ 0x00,0x08,0x10,0x18,0x20,0x28,0x30,0x38 ];
//printf("replacing 0x%02x, val = x%lx\n",c.Iop,c.IEV2.Vlong);
c.Iop = regop[(c.Irm & modregrm(0,7,0)) >> 3] | (c.Iop & 1);
code_newreg(c, reg);
if (I64 && !(c.Iop & 1) && (reg & 4))
c.Irex |= REX;
}
}
/**************************
* Compute jump addresses for FLcode.
* Note: only works for forward referenced code.
* only direct jumps and branches are detected.
* LOOP instructions only work for backward refs.
*/
void jmpaddr(code *c)
{
code* ci,cn,ctarg,cstart;
targ_size_t ad;
//printf("jmpaddr()\n");
cstart = c; /* remember start of code */
while (c)
{
const op = c.Iop;
if (op <= 0xEB &&
inssize[op] & T && // if second operand
c.IFL2 == FLcode &&
((op & ~0x0F) == 0x70 || op == JMP || op == JMPS || op == JCXZ || op == CALL))
{
ci = code_next(c);
ctarg = c.IEV2.Vcode; /* target code */
ad = 0; /* IP displacement */
while (ci && ci != ctarg)
{
ad += calccodsize(ci);
ci = code_next(ci);
}
if (!ci)
goto Lbackjmp; // couldn't find it
if (!I16 || op == JMP || op == JMPS || op == JCXZ || op == CALL)
c.IEV2.Vpointer = ad;
else /* else conditional */
{
if (!(c.Iflags & CFjmp16)) /* if branch */
c.IEV2.Vpointer = ad;
else /* branch around a long jump */
{
cn = code_next(c);
c.next = code_calloc();
code_next(c).next = cn;
c.Iop = op ^ 1; /* converse jmp */
c.Iflags &= ~CFjmp16;
c.IEV2.Vpointer = I16 ? 3 : 5;
cn = code_next(c);
cn.Iop = JMP; /* long jump */
cn.IFL2 = FLconst;
cn.IEV2.Vpointer = ad;
}
}
c.IFL2 = FLconst;
}
if (op == LOOP && c.IFL2 == FLcode) /* backwards refs */
{
Lbackjmp:
ctarg = c.IEV2.Vcode;
for (ci = cstart; ci != ctarg; ci = code_next(ci))
if (!ci || ci == c)
assert(0);
ad = 2; /* - IP displacement */
while (ci != c)
{
assert(ci);
ad += calccodsize(ci);
ci = code_next(ci);
}
c.IEV2.Vpointer = (-ad) & 0xFF;
c.IFL2 = FLconst;
}
c = code_next(c);
}
}
/*******************************
* Calculate bl.Bsize.
*/
uint calcblksize(code *c)
{
uint size;
for (size = 0; c; c = code_next(c))
{
uint sz = calccodsize(c);
//printf("off=%02x, sz = %d, code %p: op=%02x\n", size, sz, c, c.Iop);
size += sz;
}
//printf("calcblksize(c = x%x) = %d\n", c, size);
return size;
}
/*****************************
* Calculate and return code size of a code.
* Note that NOPs are sometimes used as markers, but are
* never output. LINNUMs are never output.
* Note: This routine must be fast. Profiling shows it is significant.
*/
uint calccodsize(code *c)
{
uint size;
ubyte rm,mod,ins;
uint iflags;
uint i32 = I32 || I64;
uint a32 = i32;
debug
assert((a32 & ~1) == 0);
iflags = c.Iflags;
opcode_t op = c.Iop;
if (iflags & CFvex && c.Ivex.pfx == 0xC4)
{
ins = vex_inssize(c);
size = ins & 7;
goto Lmodrm;
}
else if ((op & 0xFF00) == 0x0F00 || (op & 0xFFFD00) == 0x0F3800)
op = 0x0F;
else
op &= 0xFF;
switch (op)
{
case 0x0F:
if ((c.Iop & 0xFFFD00) == 0x0F3800)
{ // 3 byte op ( 0F38-- or 0F3A-- )
ins = inssize2[(c.Iop >> 8) & 0xFF];
size = ins & 7;
if (c.Iop & 0xFF000000)
size++;
}
else
{ // 2 byte op ( 0F-- )
ins = inssize2[c.Iop & 0xFF];
size = ins & 7;
if (c.Iop & 0xFF0000)
size++;
}
break;
case NOP:
case ESCAPE:
size = 0; // since these won't be output
goto Lret2;
case ASM:
if (c.Iflags == CFaddrsize) // kludge for DA inline asm
size = _tysize[TYnptr];
else
size = cast(uint)c.IEV1.len;
goto Lret2;
case 0xA1:
case 0xA3:
if (c.Irex)
{
size = 9; // 64 bit immediate value for MOV to/from RAX
goto Lret;
}
goto Ldefault;
case 0xF6: /* TEST mem8,immed8 */
ins = inssize[op];
size = ins & 7;
if (i32)
size = inssize32[op];
if ((c.Irm & (7<<3)) == 0)
size++; /* size of immed8 */
break;
case 0xF7:
ins = inssize[op];
size = ins & 7;
if (i32)
size = inssize32[op];
if ((c.Irm & (7<<3)) == 0)
size += (i32 ^ ((iflags & CFopsize) !=0)) ? 4 : 2;
break;
default:
Ldefault:
ins = inssize[op];
size = ins & 7;
if (i32)
size = inssize32[op];
}
if (iflags & (CFwait | CFopsize | CFaddrsize | CFSEG))
{
if (iflags & CFwait) // if add FWAIT prefix
size++;
if (iflags & CFSEG) // if segment override
size++;
// If the instruction has a second operand that is not an 8 bit,
// and the operand size prefix is present, then fix the size computation
// because the operand size will be different.
// Walter, I had problems with this bit at the end. There can still be
// an ADDRSIZE prefix for these and it does indeed change the operand size.
if (iflags & (CFopsize | CFaddrsize))
{
if ((ins & (T|E)) == T)
{
if ((op & 0xAC) == 0xA0)
{
if (iflags & CFaddrsize && !I64)
{ if (I32)
size -= 2;
else
size += 2;
}
}
else if (iflags & CFopsize)
{ if (I16)
size += 2;
else
size -= 2;
}
}
if (iflags & CFaddrsize)
{ if (!I64)
a32 ^= 1;
size++;
}
if (iflags & CFopsize)
size++; /* +1 for OPSIZE prefix */
}
}
Lmodrm:
if ((op & ~0x0F) == 0x70)
{
if (iflags & CFjmp16) // if long branch
size += I16 ? 3 : 4; // + 3(4) bytes for JMP
}
else if (ins & M) // if modregrm byte
{
rm = c.Irm;
mod = rm & 0xC0;
if (a32 || I64)
{ // 32 bit addressing
if (issib(rm))
size++;
switch (mod)
{ case 0:
if (issib(rm) && (c.Isib & 7) == 5 ||
(rm & 7) == 5)
size += 4; /* disp32 */
if (c.Irex & REX_B && (rm & 7) == 5)
/* Instead of selecting R13, this mode is an [RIP] relative
* address. Although valid, it's redundant, and should not
* be generated. Instead, generate 0[R13] instead of [R13].
*/
assert(0);
break;
case 0x40:
size++; /* disp8 */
break;
case 0x80:
size += 4; /* disp32 */
break;
default:
break;
}
}
else
{ // 16 bit addressing
if (mod == 0x40) /* 01: 8 bit displacement */
size++;
else if (mod == 0x80 || (mod == 0 && (rm & 7) == 6))
size += 2;
}
}
Lret:
if (!(iflags & CFvex) && c.Irex)
{
size++;
if (c.Irex & REX_W && (op & ~7) == 0xB8)
size += 4;
}
Lret2:
//printf("op = x%02x, size = %d\n",op,size);
return size;
}
/********************************
* Return !=0 if codes match.
*/
static if (0)
{
int code_match(code *c1,code *c2)
{
code cs1,cs2;
ubyte ins;
if (c1 == c2)
goto match;
cs1 = *c1;
cs2 = *c2;
if (cs1.Iop != cs2.Iop)
goto nomatch;
switch (cs1.Iop)
{
case ESCAPE | ESCctor:
case ESCAPE | ESCdtor:
goto nomatch;
case NOP:
goto match;
case ASM:
if (cs1.IEV1.len == cs2.IEV1.len &&
memcmp(cs1.IEV1.bytes,cs2.IEV1.bytes,cs1.EV1.len) == 0)
goto match;
else
goto nomatch;
default:
if ((cs1.Iop & 0xFF) == ESCAPE)
goto match;
break;
}
if (cs1.Iflags != cs2.Iflags)
goto nomatch;
ins = inssize[cs1.Iop & 0xFF];
if ((cs1.Iop & 0xFFFD00) == 0x0F3800)
{
ins = inssize2[(cs1.Iop >> 8) & 0xFF];
}
else if ((cs1.Iop & 0xFF00) == 0x0F00)
{
ins = inssize2[cs1.Iop & 0xFF];
}
if (ins & M) // if modregrm byte
{
if (cs1.Irm != cs2.Irm)
goto nomatch;
if ((cs1.Irm & 0xC0) == 0xC0)
goto do2;
if (is32bitaddr(I32,cs1.Iflags))
{
if (issib(cs1.Irm) && cs1.Isib != cs2.Isib)
goto nomatch;
if (
((rm & 0xC0) == 0 && !((rm & 7) == 4 && (c.Isib & 7) == 5 || (rm & 7) == 5))
)
goto do2; /* if no first operand */
}
else
{
if (
((rm & 0xC0) == 0 && !((rm & 7) == 6))
)
goto do2; /* if no first operand */
}
if (cs1.IFL1 != cs2.IFL1)
goto nomatch;
if (flinsymtab[cs1.IFL1] && cs1.IEV1.Vsym != cs2.IEV1.Vsym)
goto nomatch;
if (cs1.IEV1.Voffset != cs2.IEV1.Voffset)
goto nomatch;
}
do2:
if (!(ins & T)) // if no second operand
goto match;
if (cs1.IFL2 != cs2.IFL2)
goto nomatch;
if (flinsymtab[cs1.IFL2] && cs1.IEV2.Vsym != cs2.IEV2.Vsym)
goto nomatch;
if (cs1.IEV2.Voffset != cs2.IEV2.Voffset)
goto nomatch;
match:
return 1;
nomatch:
return 0;
}
}
/**************************
* Write code to intermediate file.
* Code starts at offset.
* Returns:
* addr of end of code
*/
struct MiniCodeBuf
{
nothrow:
size_t index;
size_t offset;
int seg;
char[100] bytes; // = void;
this(int seg)
{
index = 0;
this.offset = cast(size_t)Offset(seg);
this.seg = seg;
}
void flushx()
{
// Emit accumulated bytes to code segment
debug assert(index < bytes.length);
offset += objmod.bytes(seg, offset, cast(uint)index, bytes.ptr);
index = 0;
}
void gen(char c) { bytes[index++] = c; }
void genp(size_t n, void *p) { memcpy(&bytes[index], p, n); index += n; }
void flush() { if (index) flushx(); }
uint getOffset() { return cast(uint)(offset + index); }
uint available() { return cast(uint)(bytes.sizeof - index); }
}
private void do8bit(MiniCodeBuf *pbuf, FL, evc *);
private void do16bit(MiniCodeBuf *pbuf, FL, evc *,int);
private void do32bit(MiniCodeBuf *pbuf, FL, evc *,int,int = 0);
private void do64bit(MiniCodeBuf *pbuf, FL, evc *,int);
uint codout(int seg, code *c)
{
ubyte rm,mod;
ubyte ins;
code *cn;
uint flags;
Symbol *s;
debug
if (debugc) printf("codout(%p), Coffset = x%llx\n",c,cast(ulong)Offset(seg));
MiniCodeBuf ggen = void;
ggen.index = 0;
ggen.offset = cast(size_t)Offset(seg);
ggen.seg = seg;
for (; c; c = code_next(c))
{
debug
{
if (debugc) { printf("off=%02lx, sz=%ld, ",cast(int)ggen.getOffset(),cast(int)calccodsize(c)); code_print(c); }
uint startoffset = ggen.getOffset();
}
opcode_t op = c.Iop;
ins = inssize[op & 0xFF];
switch (op & 0xFF)
{
case ESCAPE:
/* Check for SSE4 opcode v/pmaxuw xmm1,xmm2/m128 */
if(op == 0x660F383E || c.Iflags & CFvex) break;
switch (op & 0xFFFF00)
{ case ESClinnum:
/* put out line number stuff */
objmod.linnum(c.IEV1.Vsrcpos,seg,ggen.getOffset());
break;
version (SCPP)
{
static if (1)
{
case ESCctor:
case ESCdtor:
case ESCoffset:
if (config.exe != EX_WIN32)
except_pair_setoffset(c,ggen.getOffset() - funcoffset);
break;
case ESCmark:
case ESCrelease:
case ESCmark2:
case ESCrelease2:
break;
}
else
{
case ESCctor:
except_push(ggen.getOffset() - funcoffset,c.IEV1.Vtor,null);
break;
case ESCdtor:
except_pop(ggen.getOffset() - funcoffset,c.IEV1.Vtor,null);
break;
case ESCmark:
except_mark();
break;
case ESCrelease:
except_release();
break;
}
}
case ESCadjesp:
//printf("adjust ESP %ld\n", (long)c.IEV1.Vint);
break;
default:
break;
}
debug
assert(calccodsize(c) == 0);
continue;
case NOP: /* don't send them out */
if (op != NOP)
break;
debug
assert(calccodsize(c) == 0);
continue;
case ASM:
if (op != ASM)
break;
ggen.flush();
if (c.Iflags == CFaddrsize) // kludge for DA inline asm
{
do32bit(&ggen, FLblockoff,&c.IEV1,0);
}
else
{
ggen.offset += objmod.bytes(seg,ggen.offset,cast(uint)c.IEV1.len,c.IEV1.bytes);
}
debug
assert(calccodsize(c) == c.IEV1.len);
continue;
default:
break;
}
flags = c.Iflags;
// See if we need to flush (don't have room for largest code sequence)
if (ggen.available() < (1+4+4+8+8))
ggen.flush();
// see if we need to put out prefix bytes
if (flags & (CFwait | CFPREFIX | CFjmp16))
{
int override_;
if (flags & CFwait)
ggen.gen(0x9B); // FWAIT
/* ? SEGES : SEGSS */
switch (flags & CFSEG)
{ case CFes: override_ = SEGES; goto segover;
case CFss: override_ = SEGSS; goto segover;
case CFcs: override_ = SEGCS; goto segover;
case CFds: override_ = SEGDS; goto segover;
case CFfs: override_ = SEGFS; goto segover;
case CFgs: override_ = SEGGS; goto segover;
segover: ggen.gen(cast(ubyte)override_);
break;
default: break;
}
if (flags & CFaddrsize)
ggen.gen(0x67);
// Do this last because of instructions like ADDPD
if (flags & CFopsize)
ggen.gen(0x66); /* operand size */
if ((op & ~0x0F) == 0x70 && flags & CFjmp16) /* long condit jmp */
{
if (!I16)
{ // Put out 16 bit conditional jump
c.Iop = op = 0x0F00 | (0x80 | (op & 0x0F));
}
else
{
cn = code_calloc();
/*cxcalloc++;*/
cn.next = code_next(c);
c.next= cn; // link into code
cn.Iop = JMP; // JMP block
cn.IFL2 = c.IFL2;
cn.IEV2.Vblock = c.IEV2.Vblock;
c.Iop = op ^= 1; // toggle condition
c.IFL2 = FLconst;
c.IEV2.Vpointer = I16 ? 3 : 5; // skip over JMP block
c.Iflags &= ~CFjmp16;
}
}
}
if (flags & CFvex)
{
if (flags & CFvex3)
{
ggen.gen(0xC4);
ggen.gen(cast(ubyte)VEX3_B1(c.Ivex));
ggen.gen(cast(ubyte)VEX3_B2(c.Ivex));
ggen.gen(c.Ivex.op);
}
else
{
ggen.gen(0xC5);
ggen.gen(cast(ubyte)VEX2_B1(c.Ivex));
ggen.gen(c.Ivex.op);
}
ins = vex_inssize(c);
goto Lmodrm;
}
if (op > 0xFF)
{
if ((op & 0xFFFD00) == 0x0F3800)
ins = inssize2[(op >> 8) & 0xFF];
else if ((op & 0xFF00) == 0x0F00)
ins = inssize2[op & 0xFF];
if (op & 0xFF000000)
{
ubyte op1 = op >> 24;
if (op1 == 0xF2 || op1 == 0xF3 || op1 == 0x66)
{
ggen.gen(op1);
if (c.Irex)
ggen.gen(c.Irex | REX);
}
else
{
if (c.Irex)
ggen.gen(c.Irex | REX);
ggen.gen(op1);
}
ggen.gen((op >> 16) & 0xFF);
ggen.gen((op >> 8) & 0xFF);
ggen.gen(op & 0xFF);
}
else if (op & 0xFF0000)
{
ubyte op1 = cast(ubyte)(op >> 16);
if (op1 == 0xF2 || op1 == 0xF3 || op1 == 0x66)
{
ggen.gen(op1);
if (c.Irex)
ggen.gen(c.Irex | REX);
}
else
{
if (c.Irex)
ggen.gen(c.Irex | REX);
ggen.gen(op1);
}
ggen.gen((op >> 8) & 0xFF);
ggen.gen(op & 0xFF);
}
else
{
if (c.Irex)
ggen.gen(c.Irex | REX);
ggen.gen((op >> 8) & 0xFF);
ggen.gen(op & 0xFF);
}
}
else
{
if (c.Irex)
ggen.gen(c.Irex | REX);
ggen.gen(cast(ubyte)op);
}
Lmodrm:
if (ins & M) /* if modregrm byte */
{
rm = c.Irm;
ggen.gen(rm);
// Look for an address size override when working with the
// MOD R/M and SIB bytes
if (is32bitaddr( I32, flags))
{
if (issib(rm))
ggen.gen(c.Isib);
switch (rm & 0xC0)
{
case 0x40:
do8bit(&ggen, cast(FL) c.IFL1,&c.IEV1); // 8 bit
break;
case 0:
if (!(issib(rm) && (c.Isib & 7) == 5 ||
(rm & 7) == 5))
break;
goto case 0x80;
case 0x80:
{
int cfflags = CFoff;
targ_size_t val = 0;
if (I64)
{
if ((rm & modregrm(3,0,7)) == modregrm(0,0,5)) // if disp32[RIP]
{
cfflags |= CFpc32;
val = -4;
reg_t reg = rm & modregrm(0,7,0);
if (ins & T ||
((op == 0xF6 || op == 0xF7) && (reg == modregrm(0,0,0) || reg == modregrm(0,1,0))))
{ if (ins & E || op == 0xF6)
val = -5;
else if (c.Iflags & CFopsize)
val = -6;
else
val = -8;
}
static if (TARGET_OSX || TARGET_WINDOS)
{
/* Mach-O and Win64 fixups already take the 4 byte size
* into account, so bias by 4
` */
val += 4;
}
}
}
do32bit(&ggen, cast(FL)c.IFL1,&c.IEV1,cfflags,cast(int)val);
break;
}
default:
break;
}
}
else
{
switch (rm & 0xC0)
{ case 0x40:
do8bit(&ggen, cast(FL) c.IFL1,&c.IEV1); // 8 bit
break;
case 0:
if ((rm & 7) != 6)
break;
goto case 0x80;
case 0x80:
do16bit(&ggen, cast(FL)c.IFL1,&c.IEV1,CFoff);
break;
default:
break;
}
}
}
else
{
if (op == 0xC8)
do16bit(&ggen, cast(FL)c.IFL1,&c.IEV1,0);
}
flags &= CFseg | CFoff | CFselfrel;
if (ins & T) /* if second operand */
{
if (ins & E) /* if data-8 */
do8bit(&ggen, cast(FL) c.IFL2,&c.IEV2);
else if (!I16)
{
switch (op)
{
case 0xC2: /* RETN imm16 */
case 0xCA: /* RETF imm16 */
do16:
do16bit(&ggen, cast(FL)c.IFL2,&c.IEV2,flags);
break;
case 0xA1:
case 0xA3:
if (I64 && c.Irex)
{
do64:
do64bit(&ggen, cast(FL)c.IFL2,&c.IEV2,flags);
break;
}
goto case 0xA0;
case 0xA0: /* MOV AL,byte ptr [] */
case 0xA2:
if (c.Iflags & CFaddrsize && !I64)
goto do16;
else
do32:
do32bit(&ggen, cast(FL)c.IFL2,&c.IEV2,flags);
break;
case 0x9A:
case 0xEA:
if (c.Iflags & CFopsize)
goto ptr1616;
else
goto ptr1632;
case 0x68: // PUSH immed32
if (cast(FL)c.IFL2 == FLblock)
{
c.IFL2 = FLblockoff;
goto do32;
}
else
goto case_default;
case CALL: // CALL rel
case JMP: // JMP rel
flags |= CFselfrel;
goto case_default;
default:
if ((op|0xF) == 0x0F8F) // Jcc rel16 rel32
flags |= CFselfrel;
if (I64 && (op & ~7) == 0xB8 && c.Irex & REX_W)
goto do64;
case_default:
if (c.Iflags & CFopsize)
goto do16;
else
goto do32;
}
}
else
{
switch (op)
{
case 0xC2:
case 0xCA:
goto do16;
case 0xA0:
case 0xA1:
case 0xA2:
case 0xA3:
if (c.Iflags & CFaddrsize)
goto do32;
else
goto do16;
case 0x9A:
case 0xEA:
if (c.Iflags & CFopsize)
goto ptr1632;
else
goto ptr1616;
ptr1616:
ptr1632:
//assert(c.IFL2 == FLfunc);
ggen.flush();
if (c.IFL2 == FLdatseg)
{
objmod.reftodatseg(seg,ggen.offset,c.IEV2.Vpointer,
c.IEV2.Vseg,flags);
ggen.offset += 4;
}
else
{
s = c.IEV2.Vsym;
ggen.offset += objmod.reftoident(seg,ggen.offset,s,0,flags);
}
break;
case 0x68: // PUSH immed16
if (cast(FL)c.IFL2 == FLblock)
{ c.IFL2 = FLblockoff;
goto do16;
}
else
goto case_default16;
case CALL:
case JMP:
flags |= CFselfrel;
goto default;
default:
case_default16:
if (c.Iflags & CFopsize)
goto do32;
else
goto do16;
}
}
}
else if (op == 0xF6) /* TEST mem8,immed8 */
{
if ((rm & (7<<3)) == 0)
do8bit(&ggen, cast(FL)c.IFL2,&c.IEV2);
}
else if (op == 0xF7)
{
if ((rm & (7<<3)) == 0) /* TEST mem16/32,immed16/32 */
{
if ((I32 || I64) ^ ((c.Iflags & CFopsize) != 0))
do32bit(&ggen, cast(FL)c.IFL2,&c.IEV2,flags);
else
do16bit(&ggen, cast(FL)c.IFL2,&c.IEV2,flags);
}
}
debug
if (ggen.getOffset() - startoffset != calccodsize(c))
{
printf("actual: %d, calc: %d\n", cast(int)(ggen.getOffset() - startoffset), cast(int)calccodsize(c));
code_print(c);
assert(0);
}
}
ggen.flush();
Offset(seg) = ggen.offset;
//printf("-codout(), Coffset = x%x\n", Offset(seg));
return cast(uint)ggen.offset; /* ending address */
}
private void do64bit(MiniCodeBuf *pbuf, FL fl, evc *uev,int flags)
{
char *p;
Symbol *s;
targ_size_t ad;
assert(I64);
switch (fl)
{
case FLconst:
ad = *cast(targ_size_t *) uev;
L1:
pbuf.genp(8,&ad);
return;
case FLdatseg:
pbuf.flush();
objmod.reftodatseg(pbuf.seg,pbuf.offset,uev.Vpointer,uev.Vseg,CFoffset64 | flags);
break;
case FLframehandler:
framehandleroffset = pbuf.getOffset();
ad = 0;
goto L1;
case FLswitch:
pbuf.flush();
ad = uev.Vswitch.Btableoffset;
if (config.flags & CFGromable)
objmod.reftocodeseg(pbuf.seg,pbuf.offset,ad);
else
objmod.reftodatseg(pbuf.seg,pbuf.offset,ad,objmod.jmpTableSegment(funcsym_p),CFoff);
break;
case FLcsdata:
case FLfardata:
//symbol_print(uev.Vsym);
// NOTE: In ELFOBJ all symbol refs have been tagged FLextern
// strings and statics are treated like offsets from a
// un-named external with is the start of .rodata or .data
case FLextern: /* external data symbol */
case FLtlsdata:
static if (TARGET_LINUX || TARGET_FREEBSD || TARGET_OPENBSD || TARGET_DRAGONFLYBSD || TARGET_SOLARIS)
{
case FLgot:
case FLgotoff:
}
pbuf.flush();
s = uev.Vsym; /* symbol pointer */
objmod.reftoident(pbuf.seg,pbuf.offset,s,uev.Voffset,CFoffset64 | flags);
break;
static if (TARGET_OSX)
{
case FLgot:
funcsym_p.Slocalgotoffset = pbuf.getOffset();
ad = 0;
goto L1;
}
case FLfunc: /* function call */
s = uev.Vsym; /* symbol pointer */
assert(TARGET_SEGMENTED || !tyfarfunc(s.ty()));
pbuf.flush();
objmod.reftoident(pbuf.seg,pbuf.offset,s,0,CFoffset64 | flags);
break;
case FLblock: /* displacement to another block */
ad = uev.Vblock.Boffset - pbuf.getOffset() - 4;
//printf("FLblock: funcoffset = %x, pbuf.getOffset = %x, Boffset = %x, ad = %x\n", funcoffset, pbuf.getOffset(), uev.Vblock.Boffset, ad);
goto L1;
case FLblockoff:
pbuf.flush();
assert(uev.Vblock);
//printf("FLblockoff: offset = %x, Boffset = %x, funcoffset = %x\n", pbuf.offset, uev.Vblock.Boffset, funcoffset);
objmod.reftocodeseg(pbuf.seg,pbuf.offset,uev.Vblock.Boffset);
break;
default:
WRFL(fl);
assert(0);
}
pbuf.offset += 8;
}
private void do32bit(MiniCodeBuf *pbuf, FL fl, evc *uev,int flags, int val)
{
char *p;
Symbol *s;
targ_size_t ad;
//printf("do32bit(flags = x%x)\n", flags);
switch (fl)
{
case FLconst:
assert(targ_size_t.sizeof == 4 || targ_size_t.sizeof == 8);
ad = * cast(targ_size_t *) uev;
L1:
pbuf.genp(4,&ad);
return;
case FLdatseg:
pbuf.flush();
objmod.reftodatseg(pbuf.seg,pbuf.offset,uev.Vpointer,uev.Vseg,flags);
break;
case FLframehandler:
framehandleroffset = pbuf.getOffset();
ad = 0;
goto L1;
case FLswitch:
pbuf.flush();
ad = uev.Vswitch.Btableoffset;
if (config.flags & CFGromable)
{
static if (TARGET_OSX)
{
// These are magic values based on the exact code generated for the switch jump
if (I64)
uev.Vswitch.Btablebase = pbuf.getOffset() + 4;
else
uev.Vswitch.Btablebase = pbuf.getOffset() + 4 - 8;
ad -= uev.Vswitch.Btablebase;
goto L1;
}
else static if (TARGET_WINDOS)
{
if (I64)
{
uev.Vswitch.Btablebase = pbuf.getOffset() + 4;
ad -= uev.Vswitch.Btablebase;
goto L1;
}
else
objmod.reftocodeseg(pbuf.seg,pbuf.offset,ad);
}
else
{
objmod.reftocodeseg(pbuf.seg,pbuf.offset,ad);
}
}
else
objmod.reftodatseg(pbuf.seg,pbuf.offset,ad,objmod.jmpTableSegment(funcsym_p),CFoff);
break;
case FLcode:
//assert(JMPJMPTABLE); // the only use case
pbuf.flush();
ad = *cast(targ_size_t *) uev + pbuf.getOffset();
objmod.reftocodeseg(pbuf.seg,pbuf.offset,ad);
break;
case FLcsdata:
case FLfardata:
//symbol_print(uev.Vsym);
// NOTE: In ELFOBJ all symbol refs have been tagged FLextern
// strings and statics are treated like offsets from a
// un-named external with is the start of .rodata or .data
case FLextern: /* external data symbol */
case FLtlsdata:
static if (TARGET_LINUX || TARGET_FREEBSD || TARGET_OPENBSD || TARGET_DRAGONFLYBSD || TARGET_SOLARIS)
{
case FLgot:
case FLgotoff:
}
pbuf.flush();
s = uev.Vsym; /* symbol pointer */
if (TARGET_WINDOS && I64 && (flags & CFpc32))
{
/* This is for those funky fixups where the location to be fixed up
* is a 'val' amount back from the current RIP, biased by adding 4.
*/
assert(val >= -5 && val <= 0);
flags |= (-val & 7) << 24; // set CFREL value
assert(CFREL == (7 << 24));
objmod.reftoident(pbuf.seg,pbuf.offset,s,uev.Voffset,flags);
}
else
objmod.reftoident(pbuf.seg,pbuf.offset,s,uev.Voffset + val,flags);
break;
static if (TARGET_OSX)
{
case FLgot:
funcsym_p.Slocalgotoffset = pbuf.getOffset();
ad = 0;
goto L1;
}
case FLfunc: /* function call */
s = uev.Vsym; /* symbol pointer */
if (tyfarfunc(s.ty()))
{ /* Large code references are always absolute */
pbuf.flush();
pbuf.offset += objmod.reftoident(pbuf.seg,pbuf.offset,s,0,flags) - 4;
}
else if (s.Sseg == pbuf.seg &&
(s.Sclass == SCstatic || s.Sclass == SCglobal) &&
s.Sxtrnnum == 0 && flags & CFselfrel)
{ /* if we know it's relative address */
ad = s.Soffset - pbuf.getOffset() - 4;
goto L1;
}
else
{
assert(TARGET_SEGMENTED || !tyfarfunc(s.ty()));
pbuf.flush();
objmod.reftoident(pbuf.seg,pbuf.offset,s,val,flags);
}
break;
case FLblock: /* displacement to another block */
ad = uev.Vblock.Boffset - pbuf.getOffset() - 4;
//printf("FLblock: funcoffset = %x, pbuf.getOffset = %x, Boffset = %x, ad = %x\n", funcoffset, pbuf.getOffset(), uev.Vblock.Boffset, ad);
goto L1;
case FLblockoff:
pbuf.flush();
assert(uev.Vblock);
//printf("FLblockoff: offset = %x, Boffset = %x, funcoffset = %x\n", pbuf.offset, uev.Vblock.Boffset, funcoffset);
objmod.reftocodeseg(pbuf.seg,pbuf.offset,uev.Vblock.Boffset);
break;
default:
WRFL(fl);
assert(0);
}
pbuf.offset += 4;
}
private void do16bit(MiniCodeBuf *pbuf, FL fl, evc *uev,int flags)
{
char *p;
Symbol *s;
targ_size_t ad;
switch (fl)
{
case FLconst:
pbuf.genp(2,cast(char *) uev);
return;
case FLdatseg:
pbuf.flush();
objmod.reftodatseg(pbuf.seg,pbuf.offset,uev.Vpointer,uev.Vseg,flags);
break;
case FLswitch:
pbuf.flush();
ad = uev.Vswitch.Btableoffset;
if (config.flags & CFGromable)
objmod.reftocodeseg(pbuf.seg,pbuf.offset,ad);
else
objmod.reftodatseg(pbuf.seg,pbuf.offset,ad,objmod.jmpTableSegment(funcsym_p),CFoff);
break;
case FLcsdata:
case FLfardata:
case FLextern: /* external data symbol */
case FLtlsdata:
//assert(SIXTEENBIT || TARGET_SEGMENTED);
pbuf.flush();
s = uev.Vsym; /* symbol pointer */
objmod.reftoident(pbuf.seg,pbuf.offset,s,uev.Voffset,flags);
break;
case FLfunc: /* function call */
//assert(SIXTEENBIT || TARGET_SEGMENTED);
s = uev.Vsym; /* symbol pointer */
if (tyfarfunc(s.ty()))
{ /* Large code references are always absolute */
pbuf.flush();
pbuf.offset += objmod.reftoident(pbuf.seg,pbuf.offset,s,0,flags) - 2;
}
else if (s.Sseg == pbuf.seg &&
(s.Sclass == SCstatic || s.Sclass == SCglobal) &&
s.Sxtrnnum == 0 && flags & CFselfrel)
{ /* if we know it's relative address */
ad = s.Soffset - pbuf.getOffset() - 2;
goto L1;
}
else
{
pbuf.flush();
objmod.reftoident(pbuf.seg,pbuf.offset,s,0,flags);
}
break;
case FLblock: /* displacement to another block */
ad = uev.Vblock.Boffset - pbuf.getOffset() - 2;
debug
{
targ_ptrdiff_t delta = uev.Vblock.Boffset - pbuf.getOffset() - 2;
assert(cast(short)delta == delta);
}
L1:
pbuf.genp(2,&ad); // displacement
return;
case FLblockoff:
pbuf.flush();
objmod.reftocodeseg(pbuf.seg,pbuf.offset,uev.Vblock.Boffset);
break;
default:
WRFL(fl);
assert(0);
}
pbuf.offset += 2;
}
private void do8bit(MiniCodeBuf *pbuf, FL fl, evc *uev)
{
char c;
targ_ptrdiff_t delta;
switch (fl)
{
case FLconst:
c = cast(char)uev.Vuns;
break;
case FLblock:
delta = uev.Vblock.Boffset - pbuf.getOffset() - 1;
if (cast(byte)delta != delta)
{
version (MARS)
{
if (uev.Vblock.Bsrcpos.Slinnum)
printf("%s(%d): ", uev.Vblock.Bsrcpos.Sfilename, uev.Vblock.Bsrcpos.Slinnum);
}
printf("block displacement of %lld exceeds the maximum offset of -128 to 127.\n", cast(long)delta);
err_exit();
}
c = cast(char)delta;
debug assert(uev.Vblock.Boffset > pbuf.getOffset() || c != 0x7F);
break;
default:
debug printf("fl = %d\n",fl);
assert(0);
}
pbuf.gen(c);
}
/**********************************
*/
version (SCPP)
{
static if (HYDRATE)
{
void code_hydrate(code **pc)
{
code *c;
ubyte ins,rm;
FL fl;
assert(pc);
while (*pc)
{
c = cast(code *) ph_hydrate(cast(void**)pc);
if (c.Iflags & CFvex && c.Ivex.pfx == 0xC4)
ins = vex_inssize(c);
else if ((c.Iop & 0xFFFD00) == 0x0F3800)
ins = inssize2[(c.Iop >> 8) & 0xFF];
else if ((c.Iop & 0xFF00) == 0x0F00)
ins = inssize2[c.Iop & 0xFF];
else
ins = inssize[c.Iop & 0xFF];
switch (c.Iop)
{
default:
break;
case ESCAPE | ESClinnum:
srcpos_hydrate(&c.IEV1.Vsrcpos);
goto done;
case ESCAPE | ESCctor:
case ESCAPE | ESCdtor:
el_hydrate(&c.IEV1.Vtor);
goto done;
case ASM:
ph_hydrate(cast(void**)&c.IEV1.bytes);
goto done;
}
if (!(ins & M) ||
((rm = c.Irm) & 0xC0) == 0xC0)
goto do2; /* if no first operand */
if (is32bitaddr(I32,c.Iflags))
{
if (
((rm & 0xC0) == 0 && !((rm & 7) == 4 && (c.Isib & 7) == 5 || (rm & 7) == 5))
)
goto do2; /* if no first operand */
}
else
{
if (
((rm & 0xC0) == 0 && !((rm & 7) == 6))
)
goto do2; /* if no first operand */
}
fl = cast(FL) c.IFL1;
switch (fl)
{
case FLudata:
case FLdata:
case FLreg:
case FLauto:
case FLfast:
case FLbprel:
case FLpara:
case FLcsdata:
case FLfardata:
case FLtlsdata:
case FLfunc:
case FLpseudo:
case FLextern:
assert(flinsymtab[fl]);
symbol_hydrate(&c.IEV1.Vsym);
symbol_debug(c.IEV1.Vsym);
break;
case FLdatseg:
case FLfltreg:
case FLallocatmp:
case FLcs:
case FLndp:
case FLoffset:
case FLlocalsize:
case FLconst:
case FLframehandler:
assert(!flinsymtab[fl]);
break;
case FLcode:
ph_hydrate(cast(void**)&c.IEV1.Vcode);
break;
case FLblock:
case FLblockoff:
ph_hydrate(cast(void**)&c.IEV1.Vblock);
break;
version (SCPP)
{
case FLctor:
case FLdtor:
el_hydrate(cast(elem**)&c.IEV1.Vtor);
break;
}
case FLasm:
ph_hydrate(cast(void**)&c.IEV1.bytes);
break;
default:
WRFL(fl);
assert(0);
}
do2:
/* Ignore TEST (F6 and F7) opcodes */
if (!(ins & T))
goto done; /* if no second operand */
fl = cast(FL) c.IFL2;
switch (fl)
{
case FLudata:
case FLdata:
case FLreg:
case FLauto:
case FLfast:
case FLbprel:
case FLpara:
case FLcsdata:
case FLfardata:
case FLtlsdata:
case FLfunc:
case FLpseudo:
case FLextern:
assert(flinsymtab[fl]);
symbol_hydrate(&c.IEV2.Vsym);
symbol_debug(c.IEV2.Vsym);
break;
case FLdatseg:
case FLfltreg:
case FLallocatmp:
case FLcs:
case FLndp:
case FLoffset:
case FLlocalsize:
case FLconst:
case FLframehandler:
assert(!flinsymtab[fl]);
break;
case FLcode:
ph_hydrate(cast(void**)&c.IEV2.Vcode);
break;
case FLblock:
case FLblockoff:
ph_hydrate(cast(void**)&c.IEV2.Vblock);
break;
default:
WRFL(fl);
assert(0);
}
done:
{ }
pc = &c.next;
}
}
}
/**********************************
*/
static if (DEHYDRATE)
{
void code_dehydrate(code **pc)
{
code *c;
ubyte ins,rm;
FL fl;
while ((c = *pc) != null)
{
ph_dehydrate(pc);
if (c.Iflags & CFvex && c.Ivex.pfx == 0xC4)
ins = vex_inssize(c);
else if ((c.Iop & 0xFFFD00) == 0x0F3800)
ins = inssize2[(c.Iop >> 8) & 0xFF];
else if ((c.Iop & 0xFF00) == 0x0F00)
ins = inssize2[c.Iop & 0xFF];
else
ins = inssize[c.Iop & 0xFF];
switch (c.Iop)
{
default:
break;
case ESCAPE | ESClinnum:
srcpos_dehydrate(&c.IEV1.Vsrcpos);
goto done;
case ESCAPE | ESCctor:
case ESCAPE | ESCdtor:
el_dehydrate(&c.IEV1.Vtor);
goto done;
case ASM:
ph_dehydrate(&c.IEV1.bytes);
goto done;
}
if (!(ins & M) ||
((rm = c.Irm) & 0xC0) == 0xC0)
goto do2; /* if no first operand */
if (is32bitaddr(I32,c.Iflags))
{
if (
((rm & 0xC0) == 0 && !((rm & 7) == 4 && (c.Isib & 7) == 5 || (rm & 7) == 5))
)
goto do2; /* if no first operand */
}
else
{
if (
((rm & 0xC0) == 0 && !((rm & 7) == 6))
)
goto do2; /* if no first operand */
}
fl = cast(FL) c.IFL1;
switch (fl)
{
case FLudata:
case FLdata:
case FLreg:
case FLauto:
case FLfast:
case FLbprel:
case FLpara:
case FLcsdata:
case FLfardata:
case FLtlsdata:
case FLfunc:
case FLpseudo:
case FLextern:
assert(flinsymtab[fl]);
symbol_dehydrate(&c.IEV1.Vsym);
break;
case FLdatseg:
case FLfltreg:
case FLallocatmp:
case FLcs:
case FLndp:
case FLoffset:
case FLlocalsize:
case FLconst:
case FLframehandler:
assert(!flinsymtab[fl]);
break;
case FLcode:
ph_dehydrate(&c.IEV1.Vcode);
break;
case FLblock:
case FLblockoff:
ph_dehydrate(&c.IEV1.Vblock);
break;
version (SCPP)
{
case FLctor:
case FLdtor:
el_dehydrate(&c.IEV1.Vtor);
break;
}
case FLasm:
ph_dehydrate(&c.IEV1.bytes);
break;
default:
WRFL(fl);
assert(0);
break;
}
do2:
/* Ignore TEST (F6 and F7) opcodes */
if (!(ins & T))
goto done; /* if no second operand */
fl = cast(FL) c.IFL2;
switch (fl)
{
case FLudata:
case FLdata:
case FLreg:
case FLauto:
case FLfast:
case FLbprel:
case FLpara:
case FLcsdata:
case FLfardata:
case FLtlsdata:
case FLfunc:
case FLpseudo:
case FLextern:
assert(flinsymtab[fl]);
symbol_dehydrate(&c.IEV2.Vsym);
break;
case FLdatseg:
case FLfltreg:
case FLallocatmp:
case FLcs:
case FLndp:
case FLoffset:
case FLlocalsize:
case FLconst:
case FLframehandler:
assert(!flinsymtab[fl]);
break;
case FLcode:
ph_dehydrate(&c.IEV2.Vcode);
break;
case FLblock:
case FLblockoff:
ph_dehydrate(&c.IEV2.Vblock);
break;
default:
WRFL(fl);
assert(0);
break;
}
done:
pc = &code_next(c);
}
}
}
}
/***************************
* Debug code to dump code structure.
*/
void WRcodlst(code *c)
{
for (; c; c = code_next(c))
code_print(c);
}
extern (C) void code_print(code* c)
{
ubyte ins;
ubyte rexb;
if (c == null)
{
printf("code 0\n");
return;
}
const op = c.Iop;
if (c.Iflags & CFvex && c.Ivex.pfx == 0xC4)
ins = vex_inssize(c);
else if ((c.Iop & 0xFFFD00) == 0x0F3800)
ins = inssize2[(op >> 8) & 0xFF];
else if ((c.Iop & 0xFF00) == 0x0F00)
ins = inssize2[op & 0xFF];
else
ins = inssize[op & 0xFF];
printf("code %p: nxt=%p ",c,code_next(c));
if (c.Iflags & CFvex)
{
if (c.Iflags & CFvex3)
{
printf("vex=0xC4");
printf(" 0x%02X", VEX3_B1(c.Ivex));
printf(" 0x%02X", VEX3_B2(c.Ivex));
rexb =
( c.Ivex.w ? REX_W : 0) |
(!c.Ivex.r ? REX_R : 0) |
(!c.Ivex.x ? REX_X : 0) |
(!c.Ivex.b ? REX_B : 0);
}
else
{
printf("vex=0xC5");
printf(" 0x%02X", VEX2_B1(c.Ivex));
rexb = !c.Ivex.r ? REX_R : 0;
}
printf(" ");
}
else
rexb = c.Irex;
if (rexb)
{
printf("rex=0x%02X ", c.Irex);
if (rexb & REX_W)
printf("W");
if (rexb & REX_R)
printf("R");
if (rexb & REX_X)
printf("X");
if (rexb & REX_B)
printf("B");
printf(" ");
}
printf("op=0x%02X",op);
if ((op & 0xFF) == ESCAPE)
{
if ((op & 0xFF00) == ESClinnum)
{
printf(" linnum = %d\n",c.IEV1.Vsrcpos.Slinnum);
return;
}
printf(" ESCAPE %d",c.Iop >> 8);
}
if (c.Iflags)
printf(" flg=%x",c.Iflags);
if (ins & M)
{
uint rm = c.Irm;
printf(" rm=0x%02X=%d,%d,%d",rm,(rm>>6)&3,(rm>>3)&7,rm&7);
if (!I16 && issib(rm))
{
ubyte sib = c.Isib;
printf(" sib=%02x=%d,%d,%d",sib,(sib>>6)&3,(sib>>3)&7,sib&7);
}
if ((rm & 0xC7) == BPRM || (rm & 0xC0) == 0x80 || (rm & 0xC0) == 0x40)
{
switch (c.IFL1)
{
case FLconst:
case FLoffset:
printf(" int = %4d",c.IEV1.Vuns);
break;
case FLblock:
printf(" block = %p",c.IEV1.Vblock);
break;
case FLswitch:
case FLblockoff:
case FLlocalsize:
case FLframehandler:
case 0:
break;
case FLdatseg:
printf(" %d.%llx",c.IEV1.Vseg,cast(ulong)c.IEV1.Vpointer);
break;
case FLauto:
case FLfast:
case FLreg:
case FLdata:
case FLudata:
case FLpara:
case FLbprel:
case FLtlsdata:
printf(" sym='%s'",c.IEV1.Vsym.Sident.ptr);
break;
case FLextern:
printf(" FLextern offset = %4d",cast(int)c.IEV1.Voffset);
break;
default:
WRFL(cast(FL)c.IFL1);
break;
}
}
}
if (ins & T)
{
printf(" ");
WRFL(cast(FL)c.IFL2);
switch (c.IFL2)
{
case FLconst:
printf(" int = %4d",c.IEV2.Vuns);
break;
case FLblock:
printf(" block = %p",c.IEV2.Vblock);
break;
case FLswitch:
case FLblockoff:
case 0:
case FLlocalsize:
case FLframehandler:
break;
case FLdatseg:
printf(" %d.%llx",c.IEV2.Vseg,cast(ulong)c.IEV2.Vpointer);
break;
case FLauto:
case FLfast:
case FLreg:
case FLpara:
case FLbprel:
case FLfunc:
case FLdata:
case FLudata:
case FLtlsdata:
printf(" sym='%s'",c.IEV2.Vsym.Sident.ptr);
break;
case FLcode:
printf(" code = %p",c.IEV2.Vcode);
break;
default:
WRFL(cast(FL)c.IFL2);
break;
}
}
printf("\n");
}
}
|
D
|
module UnrealScript.TribesGame.TrAccolade_FlagHolder;
import ScriptClasses;
import UnrealScript.Helpers;
import UnrealScript.TribesGame.TrAccolade;
extern(C++) interface TrAccolade_FlagHolder : TrAccolade
{
public extern(D):
private static __gshared ScriptClass mStaticClass;
@property final static ScriptClass StaticClass() { mixin(MGSCC("Class TribesGame.TrAccolade_FlagHolder")); }
private static __gshared TrAccolade_FlagHolder mDefaultProperties;
@property final static TrAccolade_FlagHolder DefaultProperties() { mixin(MGDPC("TrAccolade_FlagHolder", "TrAccolade_FlagHolder TribesGame.Default__TrAccolade_FlagHolder")); }
}
|
D
|
instance Mod_13047_SP_Seelenpeiniger_OM (Npc_Default)
{
//-------- primary data --------
name = "Seelenpeiniger";
npctype = npctype_main;
guild = GIL_DMT;
level = 25;
voice = 5;
id = 13047;
flags = NPC_FLAG_GHOST;
//-------- abilities --------
attribute[ATR_STRENGTH] = 100;
attribute[ATR_HITPOINTS_MAX]= 600;
attribute[ATR_HITPOINTS] = 600;
protection[PROT_EDGE] = -1;
protection[PROT_BLUNT] = -1;
protection[PROT_POINT] = -1;
protection[PROT_MAGIC] = -1;
protection[PROT_FIRE] = -1;
//-------- visuals --------
// animations
Mdl_SetVisual (self,"HUMANS.MDS");
// body mesh ,bdytex,skin,head mesh ,headtex,teethtex,ruestung
Mdl_SetVisualBody (self,"hum_body_Naked0", 0, 3,"Hum_Head_FatBald", 2, 1, ITAR_TARNUNG);
Mdl_SetModelFatness(self,0);
effect = "SPELLFX_DARKARMOR";
fight_tactic = FAI_HUMAN_STRONG;
//-------- inventory --------
B_SetFightSkillS (self, 20);
//-------------Daily Routine-------------
daily_routine = Rtn_start_13047;
};
FUNC VOID Rtn_start_13047 ()
{
TA_Stand_WP (06,00,20,00,"OM_081");
TA_Stand_WP (20,00,06,00,"OM_081");
};
|
D
|
/*
* Copyright (c) 2004-2009 Derelict Developers
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the names 'Derelict', 'DerelictGL', nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
module derelict.opengl.extension.nv.vertex_array_range2;
private
{
import derelict.opengl.gltypes;
import derelict.opengl.gl;
import derelict.util.wrapper;
}
private bool enabled = false;
struct NVVertexArrayRange2
{
static bool load(char[] extString)
{
if(extString.findStr("GL_NV_vertex_array_range2") == -1)
return false;
enabled = true;
return true;
}
static bool isEnabled()
{
return enabled;
}
}
version(DerelictGL_NoExtensionLoaders)
{
}
else
{
static this()
{
DerelictGL.registerExtensionLoader(&NVVertexArrayRange2.load);
}
}
enum : GLenum
{
GL_VERTEX_ARRAY_WITHOUT_FLUSH_NV = 0x8533
}
|
D
|
instance DIA_Addon_Skinner_EXIT(C_Info)
{
npc = BDT_1082_Addon_Skinner;
nr = 999;
condition = DIA_Addon_Skinner_EXIT_Condition;
information = DIA_Addon_Skinner_EXIT_Info;
permanent = TRUE;
description = Dialog_Ende;
};
func int DIA_Addon_Skinner_EXIT_Condition()
{
return TRUE;
};
func void DIA_Addon_Skinner_EXIT_Info()
{
AI_StopProcessInfos(self);
};
instance DIA_Addon_Skinner_PICKPOCKET(C_Info)
{
npc = BDT_1082_Addon_Skinner;
nr = 900;
condition = DIA_Addon_Skinner_PICKPOCKET_Condition;
information = DIA_Addon_Skinner_PICKPOCKET_Info;
permanent = TRUE;
description = Pickpocket_100;
};
func int DIA_Addon_Skinner_PICKPOCKET_Condition()
{
return C_Beklauen(100,200);
};
func void DIA_Addon_Skinner_PICKPOCKET_Info()
{
Info_ClearChoices(DIA_Addon_Skinner_PICKPOCKET);
Info_AddChoice(DIA_Addon_Skinner_PICKPOCKET,Dialog_Back,DIA_Addon_Skinner_PICKPOCKET_BACK);
Info_AddChoice(DIA_Addon_Skinner_PICKPOCKET,DIALOG_PICKPOCKET,DIA_Addon_Skinner_PICKPOCKET_DoIt);
};
func void DIA_Addon_Skinner_PICKPOCKET_DoIt()
{
B_Beklauen();
Info_ClearChoices(DIA_Addon_Wache_02_PICKPOCKET);
};
func void DIA_Addon_Skinner_PICKPOCKET_BACK()
{
Info_ClearChoices(DIA_Addon_Wache_02_PICKPOCKET);
B_Say(self,self,"$AWAKE");
};
instance DIA_Addon_Skinner_Hi(C_Info)
{
npc = BDT_1082_Addon_Skinner;
nr = 2;
condition = DIA_Addon_Skinner_Hi_Condition;
information = DIA_Addon_Skinner_Hi_Info;
permanent = TRUE;
important = TRUE;
};
func int DIA_Addon_Skinner_Hi_Condition()
{
if(Npc_IsInState(self,ZS_Talk))
{
return TRUE;
};
};
func void DIA_Addon_Skinner_Hi_Info()
{
AI_Output(self,other,"DIA_Addon_Skinner_Hi_08_00"); //Why did you wake me, eh? I bet you don't even know...
AI_Output(self,other,"DIA_Addon_Skinner_Hi_08_01"); //No - don't say anything. It's too late for excuses.
AI_Output(self,other,"DIA_Addon_Skinner_Hi_08_02"); //Now you have two choices. You can fight me and my Betty. Or you can try to run away.
AI_Output(self,other,"DIA_Addon_Skinner_Hi_08_03"); //In your place, I'd run...
AI_StopProcessInfos(self);
B_Attack(self,other,AR_NONE,1);
};
instance DIA_Addon_Skinner_Attentat(C_Info)
{
npc = BDT_1082_Addon_Skinner;
nr = 9;
condition = DIA_Addon_Skinner_Attentat_Condition;
information = DIA_Addon_Skinner_Attentat_Info;
permanent = FALSE;
description = "About the attack...";
};
func int DIA_Addon_Skinner_Attentat_Condition()
{
if(MIS_Judas == LOG_Running)
{
return TRUE;
};
};
func void DIA_Addon_Skinner_Attentat_Info()
{
AI_Output(other,self,"DIA_Addon_Skinner_Attentat_15_00"); //About the attack...
AI_Output(self,other,"DIA_Addon_Skinner_Attentat_08_01"); //What do you want?
Info_ClearChoices(DIA_Addon_Skinner_Attentat);
Info_AddChoice(DIA_Addon_Skinner_Attentat,"Get rid of Esteban",DIA_Addon_Skinner_ATTENTAT_ADDON_CONTRA);
Info_AddChoice(DIA_Addon_Skinner_Attentat,"Hunt down the traitor",DIA_Addon_Skinner_ATTENTAT_ADDON_PRO);
};
func void DIA_Addon_Skinner_ATTENTAT_ADDON_CONTRA()
{
AI_Output(other,self,"DIA_Addon_Skinner_ATTENTAT_ADDON_CONTRA_15_00"); //I want to get Esteban out of the way.
AI_Output(self,other,"DIA_Addon_Skinner_ATTENTAT_ADDON_CONTRA_08_01"); //Super.
Judas_Counter = Judas_Counter + 1;
Info_ClearChoices(DIA_Addon_Skinner_Attentat);
};
func void DIA_Addon_Skinner_ATTENTAT_ADDON_PRO()
{
AI_Output(other,self,"DIA_Addon_Skinner_ATTENTAT_ADDON_PRO_15_00"); //I want to track down the traitor.
AI_Output(self,other,"DIA_Addon_Skinner_ATTENTAT_ADDON_PRO_08_01"); //Shit.
Info_ClearChoices(DIA_Addon_Skinner_Attentat);
};
|
D
|
module game.core.draw;
import std.algorithm;
import std.conv; // replay sign
import std.math; // sin, for replay sign
import std.range : retro;
import std.string; // format
import basics.alleg5;
import basics.globals; // replay sign
import game.core.game;
import game.tribe;
import graphic.color;
import graphic.cutbit; // replay sign
import graphic.gadget;
import graphic.internal;
import graphic.map;
import graphic.torbit;
import hardware.display;
import hardware.tharsis;
package void
implGameDraw(Game game) { with (game)
{
version (tharsisprofiling)
auto zo = Zone(profiler, "game entire implGameDraw()");
nurse.applyChangesToLand();
{
version (tharsisprofiling)
auto zo2 = Zone(profiler, "game entire drawing to map");
// speeding up drawing by setting the drawing target now.
// This RAII struct is used in each innermost loop, too, but it does
// nothing except comparing two pointers there if we've set stuff here.
auto drata = TargetTorbit(map);
with (level)
map.clearScreenRect(color.makecol(bgRed, bgGreen, bgBlue));
game.drawGadgets();
game.drawLand();
game.pingGoals();
assert (_effect);
_effect.draw(_chatArea.console);
_effect.calc(); // --timeToLive, moves. No physics, so OK to calc here.
game.drawAllLixes();
}
pan.showInfo(localTribe);
pan.update(nurse.scores);
pan.age = nurse.constStateForDrawingOnly.update;
game.showSpawnIntervalOnHatches();
auto drata = TargetBitmap(al_get_backbuffer(display));
{
version (tharsisprofiling)
auto zo2 = Zone(profiler, "game draws map to screen");
map.drawCamera();
}
game.drawReplaySign();
}}
// end with(game), end implGameDraw()
private:
void drawGadgets(Game game)
{
version (tharsisprofiling)
auto zone = Zone(profiler, "game draws gadgets");
game.nurse.drawAllGadgets();
}
void pingGoals(Game game) { with (game)
{
immutable remains = _altickPingGoalsUntil - timerTicks;
if (remains < 0)
return;
immutable int period = ticksPerSecond / 4;
assert (period > 0);
Alcol colOuter = remains % period > period / 2 ? color.white : color.black;
Alcol colInner = colOuter == color.white ? color.black : color.white;
foreach (g; nurse.goalsOfTeam(localTribe.style)) {
Rect outer = Rect(g.loc - Point(5, 5), g.xl + 10, g.yl + 10);
Rect inner = Rect(g.loc, g.xl, g.yl);
map.drawFilledRectangle(outer, colOuter);
map.drawFilledRectangle(inner, colInner);
g.draw();
}
}}
void drawLand(Game game)
{
version (tharsisproftsriling)
auto zone = Zone(profiler, "game draws land to map");
game.map.loadCameraRect(game.nurse.constStateForDrawingOnly.land);
}
void drawAllLixes(Game game)
{
version (tharsisprofiling)
auto zone = Zone(profiler, "game draws lixes");
void drawTribe(in Tribe tr)
{
tr.lixvec.retro.filter!(l => ! l.marked).each!(l => l.draw);
tr.lixvec.retro.filter!(l => l.marked).each!(l => l.draw);
}
with (game) {
foreach (otherTribe; nurse.constStateForDrawingOnly.tribes)
if (otherTribe !is game.localTribe)
drawTribe(otherTribe);
drawTribe(game.localTribe);
if (_drawHerHighlit)
_drawHerHighlit.drawAgainHighlit();
}
}
void showSpawnIntervalOnHatches(Game game)
{
game.pan.dontShowSpawnInterval();
if (game.nurse.constStateForDrawingOnly.hatches.any!(h =>
game.map.isPointInRectangle(game.map.mouseOnLand, h.rect)))
game.pan.showSpawnInterval(game.localTribe.spawnint);
}
void drawReplaySign(Game game)
{
if (game.replaying && game.view.showReplaySign) {
const(Cutbit) rep = getInternal(fileImageGameReplay);
rep.drawToCurrentAlbitNotTorbit(Point(0,
(rep.yl/5 * (1 + sin(timerTicks * 0.08f))).to!int));
}
}
|
D
|
instance BDT_1076_Addon_Bandit (Npc_Default)
{
// ------ NSC ------
name = NAME_BANDIT;
guild = GIL_BDT;
id = 1076;
voice = 13;
flags = 0;
npctype = NPCTYPE_TAL_AMBIENT;
// ------ Attribute ------
B_SetAttributesToChapter (self, 5);
// ------ Kampf-Taktik ------
fight_tactic = FAI_HUMAN_STRONG;
// ------ Equippte Waffen ------
EquipItem (self, ItMw_1H_Mace_L_04);
EquipItem (self, ItRw_Bow_M_02);
// ------ Inventory ------
B_CreateAmbientInv (self);
// ------ visuals ------
B_SetNpcVisual (self, MALE, "Hum_Head_FatBald", Face_N_NormalBart06, BodyTex_N, ITAR_BDT_M);
Mdl_SetModelFatness (self, 1);
Mdl_ApplyOverlayMds (self, "Humans_Militia.mds");
// ------ NSC-relevante Talente vergeben ------
B_GiveNpcTalents (self);
// ------ Kampf-Talente ------
B_SetFightSkills (self, 90);
// ------ TA anmelden ------
daily_routine = Rtn_Start_1076;
};
FUNC VOID Rtn_Start_1076 ()
{
TA_Smalltalk (06,00,12,00,"BL_SMALLTALK_01");
TA_Cook_Cauldron (12,00,22,00,"ADW_PATH_TO_BL_COOK");
TA_Stand_Eating (22,00,06,00,"BL_FIGHT_04");
};
|
D
|
module io.protocol.Writer;
private import io.Buffer;
public import io.model;
public import io.protocol.model;
class Писатель : ИПисатель
{
this (ИПротокол протокол);
this (ИПотокВывода поток);
final ИБуфер буфер ();
ИПисатель нс ();
ИПисатель нс (ткст кс);
final ИПисатель слей ();
final ИПисатель помести () ;
final ИПисатель помести (ИПисатель.Клозура дг) ;
final ИПисатель помести (ИЗаписываемое x) ;
final ИПисатель помести (бул x);
final ИПисатель помести (ббайт x);
final ИПисатель помести (байт x);
final ИПисатель помести (бкрат x;
final ИПисатель помести (крат x);
final ИПисатель помести (бцел x);
final ИПисатель помести (цел x);
final ИПисатель помести (бдол x);
final ИПисатель помести (дол x);
final ИПисатель помести (плав x);
final ИПисатель помести (дво x);
final ИПисатель помести (реал x);
final ИПисатель помести (сим x);
final ИПисатель помести (шим x);
final ИПисатель помести (дим x);
final ИПисатель помести (бул[] x);
final ИПисатель помести (байт[] x);
final ИПисатель помести (ббайт[] x);
final ИПисатель помести (крат[] x);
final ИПисатель помести (бкрат[] x);
final ИПисатель помести (цел[] x);
final ИПисатель помести (бцел[] x);
final ИПисатель помести (дол[] x);
final ИПисатель помести (бдол[] x);
final ИПисатель помести (плав[] x);
final ИПисатель помести (дво[] x);
final ИПисатель помести (реал[] x);
final ИПисатель помести (ткст x) ;
final ИПисатель помести (шим[] x) ;
final ИПисатель помести (дим[] x);
private проц пишиМассив (ук ист, бцел байты, ИПротокол.Тип тип);
private проц пишиЭлемент (ук ист, бцел байты, ИПротокол.Тип тип);
}
|
D
|
/**
* D header file for POSIX.
*
* Copyright: Copyright Sean Kelly 2005 - 2009.
* License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
* Authors: Sean Kelly, Alex Rønne Petersen
* Standards: The Open Group Base Specifications Issue 6, IEEE Std 1003.1, 2004 Edition
*/
/* Copyright Sean Kelly 2005 - 2009.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
module core.sys.posix.pthread;
import core.sys.posix.config;
public import core.sys.posix.sys.types;
public import core.sys.posix.sched;
public import core.sys.posix.time;
import core.stdc.stdint;
version (OSX)
version = Darwin;
else version (iOS)
version = Darwin;
else version (TVOS)
version = Darwin;
else version (WatchOS)
version = Darwin;
version (Posix):
extern (C)
nothrow:
//
// Required
//
/*
PTHREAD_CANCEL_ASYNCHRONOUS
PTHREAD_CANCEL_ENABLE
PTHREAD_CANCEL_DEFERRED
PTHREAD_CANCEL_DISABLE
PTHREAD_CANCELED
PTHREAD_COND_INITIALIZER
PTHREAD_CREATE_DETACHED
PTHREAD_CREATE_JOINABLE
PTHREAD_EXPLICIT_SCHED
PTHREAD_INHERIT_SCHED
PTHREAD_MUTEX_INITIALIZER
PTHREAD_ONCE_INIT
PTHREAD_PROCESS_SHARED
PTHREAD_PROCESS_PRIVATE
int pthread_atfork(void function(), void function(), void function());
int pthread_attr_destroy(pthread_attr_t*);
int pthread_attr_getdetachstate(const scope pthread_attr_t*, int*);
int pthread_attr_getschedparam(const scope pthread_attr_t*, sched_param*);
int pthread_attr_init(pthread_attr_t*);
int pthread_attr_setdetachstate(pthread_attr_t*, int);
int pthread_attr_setschedparam(const scope pthread_attr_t*, sched_param*);
int pthread_cancel(pthread_t);
void pthread_cleanup_push(void function(void*), void*);
void pthread_cleanup_pop(int);
int pthread_cond_broadcast(pthread_cond_t*);
int pthread_cond_destroy(pthread_cond_t*);
int pthread_cond_init(const scope pthread_cond_t*, pthread_condattr_t*);
int pthread_cond_signal(pthread_cond_t*);
int pthread_cond_timedwait(pthread_cond_t*, pthread_mutex_t*, const scope timespec*);
int pthread_cond_wait(pthread_cond_t*, pthread_mutex_t*);
int pthread_condattr_destroy(pthread_condattr_t*);
int pthread_condattr_init(pthread_condattr_t*);
int pthread_create(pthread_t*, const scope pthread_attr_t*, void* function(void*), void*);
int pthread_detach(pthread_t);
int pthread_equal(pthread_t, pthread_t);
void pthread_exit(void*);
void* pthread_getspecific(pthread_key_t);
int pthread_join(pthread_t, void**);
int pthread_key_create(pthread_key_t*, void function(void*));
int pthread_key_delete(pthread_key_t);
int pthread_mutex_destroy(pthread_mutex_t*);
int pthread_mutex_init(pthread_mutex_t*, pthread_mutexattr_t*);
int pthread_mutex_lock(pthread_mutex_t*);
int pthread_mutex_trylock(pthread_mutex_t*);
int pthread_mutex_unlock(pthread_mutex_t*);
int pthread_mutexattr_destroy(pthread_mutexattr_t*);
int pthread_mutexattr_init(pthread_mutexattr_t*);
int pthread_once(pthread_once_t*, void function());
int pthread_rwlock_destroy(pthread_rwlock_t*);
int pthread_rwlock_init(pthread_rwlock_t*, const scope pthread_rwlockattr_t*);
int pthread_rwlock_rdlock(pthread_rwlock_t*);
int pthread_rwlock_tryrdlock(pthread_rwlock_t*);
int pthread_rwlock_trywrlock(pthread_rwlock_t*);
int pthread_rwlock_unlock(pthread_rwlock_t*);
int pthread_rwlock_wrlock(pthread_rwlock_t*);
int pthread_rwlockattr_destroy(pthread_rwlockattr_t*);
int pthread_rwlockattr_init(pthread_rwlockattr_t*);
pthread_t pthread_self();
int pthread_setcancelstate(int, int*);
int pthread_setcanceltype(int, int*);
int pthread_setspecific(pthread_key_t, const scope void*);
void pthread_testcancel();
*/
version (CRuntime_Glibc)
{
enum
{
PTHREAD_CANCEL_ENABLE,
PTHREAD_CANCEL_DISABLE
}
enum
{
PTHREAD_CANCEL_DEFERRED,
PTHREAD_CANCEL_ASYNCHRONOUS
}
enum PTHREAD_CANCELED = cast(void*) -1;
//enum pthread_mutex_t PTHREAD_COND_INITIALIZER = { __LOCK_ALT_INITIALIZER, 0, "", 0 };
enum
{
PTHREAD_CREATE_JOINABLE,
PTHREAD_CREATE_DETACHED
}
enum
{
PTHREAD_INHERIT_SCHED,
PTHREAD_EXPLICIT_SCHED
}
enum PTHREAD_MUTEX_INITIALIZER = pthread_mutex_t.init;
enum PTHREAD_ONCE_INIT = pthread_once_t.init;
enum
{
PTHREAD_PROCESS_PRIVATE,
PTHREAD_PROCESS_SHARED
}
}
else version (Darwin)
{
enum
{
PTHREAD_CANCEL_ENABLE = 1,
PTHREAD_CANCEL_DISABLE = 0
}
enum
{
PTHREAD_CANCEL_DEFERRED = 2,
PTHREAD_CANCEL_ASYNCHRONOUS = 0
}
enum PTHREAD_CANCELED = cast(void*) -1;
//enum pthread_mutex_t PTHREAD_COND_INITIALIZER = { __LOCK_ALT_INITIALIZER, 0, "", 0 };
enum
{
PTHREAD_CREATE_JOINABLE = 1,
PTHREAD_CREATE_DETACHED = 2
}
enum
{
PTHREAD_INHERIT_SCHED = 1,
PTHREAD_EXPLICIT_SCHED = 2
}
enum PTHREAD_MUTEX_INITIALIZER = pthread_mutex_t(0x32AAABA7);
enum PTHREAD_ONCE_INIT = pthread_once_t(0x30b1bcba);
enum
{
PTHREAD_PROCESS_PRIVATE = 2,
PTHREAD_PROCESS_SHARED = 1
}
}
else version (FreeBSD)
{
enum
{
PTHREAD_DETACHED = 0x1,
PTHREAD_INHERIT_SCHED = 0x4,
PTHREAD_NOFLOAT = 0x8,
PTHREAD_CREATE_DETACHED = PTHREAD_DETACHED,
PTHREAD_CREATE_JOINABLE = 0,
PTHREAD_EXPLICIT_SCHED = 0,
}
enum
{
PTHREAD_PROCESS_PRIVATE = 0,
PTHREAD_PROCESS_SHARED = 1,
}
enum
{
PTHREAD_CANCEL_ENABLE = 0,
PTHREAD_CANCEL_DISABLE = 1,
PTHREAD_CANCEL_DEFERRED = 0,
PTHREAD_CANCEL_ASYNCHRONOUS = 2,
}
enum PTHREAD_CANCELED = cast(void*) -1;
enum PTHREAD_NEEDS_INIT = 0;
enum PTHREAD_DONE_INIT = 1;
enum PTHREAD_MUTEX_INITIALIZER = null;
enum PTHREAD_ONCE_INIT = null;
enum PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP = null;
enum PTHREAD_COND_INITIALIZER = null;
enum PTHREAD_RWLOCK_INITIALIZER = null;
}
else version (NetBSD)
{
enum PRI_NONE = -1;
enum
{
PTHREAD_INHERIT_SCHED = 0x0,
PTHREAD_CREATE_DETACHED = 1,
PTHREAD_CREATE_JOINABLE = 0,
PTHREAD_EXPLICIT_SCHED = 1,
}
enum
{
PTHREAD_PROCESS_PRIVATE = 0,
PTHREAD_PROCESS_SHARED = 1,
}
enum
{
PTHREAD_CANCEL_ENABLE = 0,
PTHREAD_CANCEL_DISABLE = 1,
PTHREAD_CANCEL_DEFERRED = 0,
PTHREAD_CANCEL_ASYNCHRONOUS = 1,
}
enum PTHREAD_CANCELED = cast(void*) 1;
enum PTHREAD_DONE_INIT = 1;
enum PTHREAD_MUTEX_INITIALIZER = pthread_mutex_t(0x33330003);
enum PTHREAD_ONCE_INIT = pthread_once_t(PTHREAD_MUTEX_INITIALIZER);
enum PTHREAD_COND_INITIALIZER = pthread_cond_t(0x55550005);
enum PTHREAD_RWLOCK_INITIALIZER = pthread_rwlock_t(0x99990009);
}
else version (OpenBSD)
{
enum
{
PTHREAD_DETACHED = 0x1,
PTHREAD_INHERIT_SCHED = 0x4,
PTHREAD_NOFLOAT = 0x8,
PTHREAD_CREATE_DETACHED = PTHREAD_DETACHED,
PTHREAD_CREATE_JOINABLE = 0,
PTHREAD_EXPLICIT_SCHED = 0,
}
enum
{
PTHREAD_PROCESS_PRIVATE = 0,
PTHREAD_PROCESS_SHARED = 1,
}
enum
{
PTHREAD_CANCEL_ENABLE = 0,
PTHREAD_CANCEL_DISABLE = 1,
PTHREAD_CANCEL_DEFERRED = 0,
PTHREAD_CANCEL_ASYNCHRONOUS = 2,
}
enum PTHREAD_CANCELED = cast(void*) 1;
enum
{
PTHREAD_NEEDS_INIT = 0,
PTHREAD_DONE_INIT = 1,
}
enum PTHREAD_MUTEX_INITIALIZER = null;
enum PTHREAD_ONCE_INIT = pthread_once_t.init;
enum PTHREAD_COND_INITIALIZER = null;
enum PTHREAD_RWLOCK_INITIALIZER = null;
}
else version (DragonFlyBSD)
{
enum
{
PTHREAD_DETACHED = 0x1,
//PTHREAD_SCOPE_SYSTEM = 0x2, // defined below
PTHREAD_INHERIT_SCHED = 0x4,
PTHREAD_NOFLOAT = 0x8,
PTHREAD_CREATE_DETACHED = PTHREAD_DETACHED,
PTHREAD_CREATE_JOINABLE = 0,
//PTHREAD_SCOPE_PROCESS = 0, // defined below
PTHREAD_EXPLICIT_SCHED = 0,
}
enum
{
PTHREAD_PROCESS_PRIVATE = 0,
PTHREAD_PROCESS_SHARED = 1,
}
enum
{
PTHREAD_CANCEL_ENABLE = 0,
PTHREAD_CANCEL_DISABLE = 1,
PTHREAD_CANCEL_DEFERRED = 0,
PTHREAD_CANCEL_ASYNCHRONOUS = 2,
}
enum PTHREAD_CANCELED = cast(void*) -1;
enum PTHREAD_NEEDS_INIT = 0;
enum PTHREAD_DONE_INIT = 1;
enum PTHREAD_MUTEX_INITIALIZER = null;
enum PTHREAD_ONCE_INIT = pthread_once_t.init;
enum PTHREAD_COND_INITIALIZER = null;
enum PTHREAD_RWLOCK_INITIALIZER = null;
}
else version (Solaris)
{
enum
{
PTHREAD_INHERIT_SCHED = 0x01,
PTHREAD_NOFLOAT = 0x08,
PTHREAD_CREATE_DETACHED = 0x40,
PTHREAD_CREATE_JOINABLE = 0x00,
PTHREAD_EXPLICIT_SCHED = 0x00,
}
enum
{
PTHREAD_PROCESS_PRIVATE = 0,
PTHREAD_PROCESS_SHARED = 1,
}
enum
{
PTHREAD_CANCEL_ENABLE = 0,
PTHREAD_CANCEL_DISABLE = 1,
PTHREAD_CANCEL_DEFERRED = 0,
PTHREAD_CANCEL_ASYNCHRONOUS = 2,
}
enum PTHREAD_CANCELED = cast(void*)-19;
enum PTHREAD_MUTEX_INITIALIZER = pthread_mutex_t.init;
enum PTHREAD_ONCE_INIT = pthread_once_t.init;
}
else version (CRuntime_Bionic)
{
enum
{
PTHREAD_CREATE_JOINABLE,
PTHREAD_CREATE_DETACHED
}
enum PTHREAD_MUTEX_INITIALIZER = pthread_mutex_t.init;
enum PTHREAD_ONCE_INIT = pthread_once_t.init;
enum
{
PTHREAD_PROCESS_PRIVATE,
PTHREAD_PROCESS_SHARED
}
}
else version (CRuntime_Musl)
{
enum
{
PTHREAD_CREATE_JOINABLE = 0,
PTHREAD_CREATE_DETACHED = 1
}
enum PTHREAD_MUTEX_INITIALIZER = pthread_mutex_t.init;
enum PTHREAD_ONCE_INIT = pthread_once_t.init;
enum
{
PTHREAD_PROCESS_PRIVATE = 0,
PTHREAD_PROCESS_SHARED = 1
}
}
else version (CRuntime_UClibc)
{
enum
{
PTHREAD_CANCEL_ENABLE,
PTHREAD_CANCEL_DISABLE
}
enum
{
PTHREAD_CANCEL_DEFERRED,
PTHREAD_CANCEL_ASYNCHRONOUS
}
enum PTHREAD_CANCELED = cast(void*) -1;
enum PTHREAD_MUTEX_INITIALIZER = pthread_mutex_t.init;
enum PTHREAD_ONCE_INIT = pthread_once_t.init;
enum
{
PTHREAD_CREATE_JOINABLE,
PTHREAD_CREATE_DETACHED
}
enum
{
PTHREAD_INHERIT_SCHED,
PTHREAD_EXPLICIT_SCHED
}
enum
{
PTHREAD_PROCESS_PRIVATE,
PTHREAD_PROCESS_SHARED
}
}
else
{
static assert(false, "Unsupported platform");
}
int pthread_atfork(void function(), void function(), void function());
@nogc {
int pthread_atfork(void function() @nogc, void function() @nogc, void function() @nogc);
int pthread_attr_destroy(pthread_attr_t*);
int pthread_attr_getdetachstate(const scope pthread_attr_t*, int*);
int pthread_attr_getschedparam(const scope pthread_attr_t*, sched_param*);
int pthread_attr_init(pthread_attr_t*);
int pthread_attr_setdetachstate(pthread_attr_t*, int);
int pthread_attr_setschedparam(const scope pthread_attr_t*, sched_param*);
int pthread_cancel(pthread_t);
}
alias void function(void*) _pthread_cleanup_routine;
alias void function(void*) @nogc _pthread_cleanup_routine_nogc;
version (CRuntime_Glibc)
{
struct _pthread_cleanup_buffer
{
_pthread_cleanup_routine __routine;
void* __arg;
int __canceltype;
_pthread_cleanup_buffer* __prev;
}
void _pthread_cleanup_push(_pthread_cleanup_buffer*, _pthread_cleanup_routine, void*);
void _pthread_cleanup_push(_pthread_cleanup_buffer*, _pthread_cleanup_routine_nogc, void*) @nogc;
void _pthread_cleanup_pop(_pthread_cleanup_buffer*, int);
struct pthread_cleanup
{
_pthread_cleanup_buffer buffer = void;
extern (D) void push(F: _pthread_cleanup_routine)(F routine, void* arg )
{
_pthread_cleanup_push( &buffer, routine, arg );
}
extern (D) void pop()( int execute )
{
_pthread_cleanup_pop( &buffer, execute );
}
}
}
else version (Darwin)
{
struct _pthread_cleanup_buffer
{
_pthread_cleanup_routine __routine;
void* __arg;
_pthread_cleanup_buffer* __next;
}
struct pthread_cleanup
{
_pthread_cleanup_buffer buffer = void;
extern (D) void push(F: _pthread_cleanup_routine)(F routine, void* arg )
{
pthread_t self = pthread_self();
buffer.__routine = routine;
buffer.__arg = arg;
buffer.__next = cast(_pthread_cleanup_buffer*) self.__cleanup_stack;
self.__cleanup_stack = cast(pthread_handler_rec*) &buffer;
}
extern (D) void pop()( int execute )
{
pthread_t self = pthread_self();
self.__cleanup_stack = cast(pthread_handler_rec*) buffer.__next;
if ( execute )
{
buffer.__routine( buffer.__arg );
}
}
}
}
else version (FreeBSD)
{
struct _pthread_cleanup_info
{
uintptr_t[8] pthread_cleanup_pad;
}
struct pthread_cleanup
{
_pthread_cleanup_info __cleanup_info__ = void;
extern (D) void push(F: _pthread_cleanup_routine)(F cleanup_routine, void* cleanup_arg )
{
__pthread_cleanup_push_imp( cleanup_routine, cleanup_arg, &__cleanup_info__ );
}
extern (D) void pop()( int execute )
{
__pthread_cleanup_pop_imp( execute );
}
}
void __pthread_cleanup_push_imp(_pthread_cleanup_routine, void*, _pthread_cleanup_info*);
void __pthread_cleanup_push_imp(_pthread_cleanup_routine_nogc, void*, _pthread_cleanup_info*) @nogc;
void __pthread_cleanup_pop_imp(int);
}
else version (DragonFlyBSD)
{
struct _pthread_cleanup_info
{
uintptr_t[8] pthread_cleanup_pad;
}
struct pthread_cleanup
{
_pthread_cleanup_info __cleanup_info__ = void;
extern (D) void push()( _pthread_cleanup_routine cleanup_routine, void* cleanup_arg )
{
_pthread_cleanup_push( cleanup_routine, cleanup_arg, &__cleanup_info__ );
}
extern (D) void pop()( int execute )
{
_pthread_cleanup_pop( execute );
}
}
void _pthread_cleanup_push(_pthread_cleanup_routine, void*, _pthread_cleanup_info*);
void _pthread_cleanup_pop(int);
}
else version (NetBSD)
{
struct _pthread_cleanup_store
{
void*[4] pthread_cleanup_pad;
}
struct pthread_cleanup
{
_pthread_cleanup_store __cleanup_info__ = void;
extern (D) void push()( _pthread_cleanup_routine cleanup_routine, void* cleanup_arg )
{
pthread__cleanup_push( cleanup_routine, cleanup_arg, &__cleanup_info__ );
}
extern (D) void pop()( int execute )
{
pthread__cleanup_pop( execute, &__cleanup_info__ );
}
}
void pthread__cleanup_push(_pthread_cleanup_routine, void*, void*);
void pthread__cleanup_pop(int, void *);
}
else version (OpenBSD)
{
void pthread_cleanup_push(void function(void*), void*);
void pthread_cleanup_pop(int);
}
else version (Solaris)
{
caddr_t _getfp();
struct _pthread_cleanup_info
{
uintptr_t[4] pthread_cleanup_pad;
}
struct pthread_cleanup
{
_pthread_cleanup_info __cleanup_info__ = void;
extern (D) void push(F: _pthread_cleanup_routine)(F cleanup_routine, void* cleanup_arg)
{
__pthread_cleanup_push(cleanup_routine, cleanup_arg, _getfp(), &__cleanup_info__);
}
extern (D) void pop()(int execute)
{
__pthread_cleanup_pop(execute, &__cleanup_info__);
}
}
void __pthread_cleanup_push(_pthread_cleanup_routine, void*, caddr_t, _pthread_cleanup_info*);
void __pthread_cleanup_push(_pthread_cleanup_routine_nogc, void*, caddr_t, _pthread_cleanup_info*) @nogc;
void __pthread_cleanup_pop(int, _pthread_cleanup_info*);
}
else version (CRuntime_Bionic)
{
struct __pthread_cleanup_t
{
__pthread_cleanup_t* __cleanup_prev;
_pthread_cleanup_routine __cleanup_routine;
void* __cleanup_arg;
}
void __pthread_cleanup_push(__pthread_cleanup_t*, _pthread_cleanup_routine, void*);
void __pthread_cleanup_push(__pthread_cleanup_t*, _pthread_cleanup_routine_nogc, void*) @nogc;
void __pthread_cleanup_pop(__pthread_cleanup_t*, int);
struct pthread_cleanup
{
__pthread_cleanup_t __cleanup = void;
extern (D) void push(F: _pthread_cleanup_routine)(F routine, void* arg )
{
__pthread_cleanup_push( &__cleanup, routine, arg );
}
extern (D) void pop()( int execute )
{
__pthread_cleanup_pop( &__cleanup, execute );
}
}
}
else version (CRuntime_Musl)
{
struct __ptcb {
_pthread_cleanup_routine f;
void* __x;
__ptcb* __next;
}
void _pthread_cleanup_push(__ptcb*, _pthread_cleanup_routine, void*);
void _pthread_cleanup_pop(__ptcb*, int);
struct pthread_cleanup
{
__ptcb __cleanup = void;
extern (D) void push(F: _pthread_cleanup_routine)(F routine, void* arg )
{
_pthread_cleanup_push( &__cleanup, routine, arg );
}
extern (D) void pop()( int execute )
{
_pthread_cleanup_pop( &__cleanup, execute );
}
}
}
else version (CRuntime_UClibc)
{
struct _pthread_cleanup_buffer
{
_pthread_cleanup_routine __routine;
void* __arg;
int __canceltype;
_pthread_cleanup_buffer* __prev;
}
void _pthread_cleanup_push(_pthread_cleanup_buffer*, _pthread_cleanup_routine, void*);
void _pthread_cleanup_push(_pthread_cleanup_buffer*, _pthread_cleanup_routine_nogc, void*) @nogc;
void _pthread_cleanup_pop(_pthread_cleanup_buffer*, int);
struct pthread_cleanup
{
_pthread_cleanup_buffer buffer = void;
extern (D) void push(F: _pthread_cleanup_routine)(F routine, void* arg )
{
_pthread_cleanup_push( &buffer, routine, arg );
}
extern (D) void pop()( int execute )
{
_pthread_cleanup_pop( &buffer, execute );
}
}
}
else
{
static assert(false, "Unsupported platform");
}
@nogc:
int pthread_cond_broadcast(pthread_cond_t*);
int pthread_cond_destroy(pthread_cond_t*);
int pthread_cond_init(const scope pthread_cond_t*, pthread_condattr_t*) @trusted;
int pthread_cond_signal(pthread_cond_t*);
int pthread_cond_timedwait(pthread_cond_t*, pthread_mutex_t*, const scope timespec*);
int pthread_cond_wait(pthread_cond_t*, pthread_mutex_t*);
int pthread_condattr_destroy(pthread_condattr_t*);
int pthread_condattr_init(pthread_condattr_t*);
int pthread_create(pthread_t*, const scope pthread_attr_t*, void* function(void*), void*);
int pthread_detach(pthread_t);
int pthread_equal(pthread_t, pthread_t);
void pthread_exit(void*);
void* pthread_getspecific(pthread_key_t);
int pthread_join(pthread_t, void**);
int pthread_key_create(pthread_key_t*, void function(void*));
int pthread_key_delete(pthread_key_t);
int pthread_mutex_destroy(pthread_mutex_t*);
int pthread_mutex_init(pthread_mutex_t*, pthread_mutexattr_t*) @trusted;
int pthread_mutex_lock(pthread_mutex_t*);
int pthread_mutex_lock(shared(pthread_mutex_t)*);
int pthread_mutex_trylock(pthread_mutex_t*);
int pthread_mutex_trylock(shared(pthread_mutex_t)*);
int pthread_mutex_unlock(pthread_mutex_t*);
int pthread_mutex_unlock(shared(pthread_mutex_t)*);
int pthread_mutexattr_destroy(pthread_mutexattr_t*);
int pthread_mutexattr_init(pthread_mutexattr_t*) @trusted;
int pthread_once(pthread_once_t*, void function());
int pthread_rwlock_destroy(pthread_rwlock_t*);
int pthread_rwlock_init(pthread_rwlock_t*, const scope pthread_rwlockattr_t*);
int pthread_rwlock_rdlock(pthread_rwlock_t*);
int pthread_rwlock_tryrdlock(pthread_rwlock_t*);
int pthread_rwlock_trywrlock(pthread_rwlock_t*);
int pthread_rwlock_unlock(pthread_rwlock_t*);
int pthread_rwlock_wrlock(pthread_rwlock_t*);
int pthread_rwlockattr_destroy(pthread_rwlockattr_t*);
int pthread_rwlockattr_init(pthread_rwlockattr_t*);
pthread_t pthread_self();
int pthread_setcancelstate(int, int*);
int pthread_setcanceltype(int, int*);
int pthread_setspecific(pthread_key_t, const scope void*);
void pthread_testcancel();
//
// Barrier (BAR)
//
/*
PTHREAD_BARRIER_SERIAL_THREAD
int pthread_barrier_destroy(pthread_barrier_t*);
int pthread_barrier_init(pthread_barrier_t*, const scope pthread_barrierattr_t*, uint);
int pthread_barrier_wait(pthread_barrier_t*);
int pthread_barrierattr_destroy(pthread_barrierattr_t*);
int pthread_barrierattr_getpshared(const scope pthread_barrierattr_t*, int*); (BAR|TSH)
int pthread_barrierattr_init(pthread_barrierattr_t*);
int pthread_barrierattr_setpshared(pthread_barrierattr_t*, int); (BAR|TSH)
*/
version (CRuntime_Glibc)
{
enum PTHREAD_BARRIER_SERIAL_THREAD = -1;
int pthread_barrier_destroy(pthread_barrier_t*);
int pthread_barrier_init(pthread_barrier_t*, const scope pthread_barrierattr_t*, uint);
int pthread_barrier_wait(pthread_barrier_t*);
int pthread_barrierattr_destroy(pthread_barrierattr_t*);
int pthread_barrierattr_getpshared(const scope pthread_barrierattr_t*, int*);
int pthread_barrierattr_init(pthread_barrierattr_t*);
int pthread_barrierattr_setpshared(pthread_barrierattr_t*, int);
}
else version (FreeBSD)
{
enum PTHREAD_BARRIER_SERIAL_THREAD = -1;
int pthread_barrier_destroy(pthread_barrier_t*);
int pthread_barrier_init(pthread_barrier_t*, const scope pthread_barrierattr_t*, uint);
int pthread_barrier_wait(pthread_barrier_t*);
int pthread_barrierattr_destroy(pthread_barrierattr_t*);
int pthread_barrierattr_getpshared(const scope pthread_barrierattr_t*, int*);
int pthread_barrierattr_init(pthread_barrierattr_t*);
int pthread_barrierattr_setpshared(pthread_barrierattr_t*, int);
}
else version (DragonFlyBSD)
{
enum PTHREAD_BARRIER_SERIAL_THREAD = -1;
enum PTHREAD_KEYS_MAX = 256;
enum PTHREAD_STACK_MIN = 16384;
enum PTHREAD_THREADS_MAX = c_ulong.max;
int pthread_barrier_destroy(pthread_barrier_t*);
int pthread_barrier_init(pthread_barrier_t*, const scope pthread_barrierattr_t*, uint);
int pthread_barrier_wait(pthread_barrier_t*);
int pthread_barrierattr_destroy(pthread_barrierattr_t*);
int pthread_barrierattr_getpshared(const scope pthread_barrierattr_t*, int*);
int pthread_barrierattr_init(pthread_barrierattr_t*);
int pthread_barrierattr_setpshared(pthread_barrierattr_t*, int);
}
else version (NetBSD)
{
enum PTHREAD_BARRIER_SERIAL_THREAD = 1234567;
int pthread_barrier_destroy(pthread_barrier_t*);
int pthread_barrier_init(pthread_barrier_t*, const scope pthread_barrierattr_t*, uint);
int pthread_barrier_wait(pthread_barrier_t*);
int pthread_barrierattr_destroy(pthread_barrierattr_t*);
int pthread_barrierattr_getpshared(const scope pthread_barrierattr_t*, int*);
int pthread_barrierattr_init(pthread_barrierattr_t*);
int pthread_barrierattr_setpshared(pthread_barrierattr_t*, int);
}
else version (OpenBSD)
{
enum PTHREAD_BARRIER_SERIAL_THREAD = -1;
int pthread_barrier_destroy(pthread_barrier_t*);
int pthread_barrier_init(pthread_barrier_t*, const scope pthread_barrierattr_t*, uint);
int pthread_barrier_wait(pthread_barrier_t*);
int pthread_barrierattr_destroy(pthread_barrierattr_t*);
int pthread_barrierattr_getpshared(const scope pthread_barrierattr_t*, int*);
int pthread_barrierattr_init(pthread_barrierattr_t*);
int pthread_barrierattr_setpshared(pthread_barrierattr_t*, int);
}
else version (Darwin)
{
}
else version (Solaris)
{
enum PTHREAD_BARRIER_SERIAL_THREAD = -2;
int pthread_barrier_destroy(pthread_barrier_t*);
int pthread_barrier_init(pthread_barrier_t*, const scope pthread_barrierattr_t*, uint);
int pthread_barrier_wait(pthread_barrier_t*);
int pthread_barrierattr_destroy(pthread_barrierattr_t*);
int pthread_barrierattr_getpshared(const scope pthread_barrierattr_t*, int*);
int pthread_barrierattr_init(pthread_barrierattr_t*);
int pthread_barrierattr_setpshared(pthread_barrierattr_t*, int);
}
else version (CRuntime_Bionic)
{
}
else version (CRuntime_Musl)
{
enum PTHREAD_BARRIER_SERIAL_THREAD = -1;
int pthread_barrier_destroy(pthread_barrier_t*);
int pthread_barrier_init(pthread_barrier_t*, const scope pthread_barrierattr_t*, uint);
int pthread_barrier_wait(pthread_barrier_t*);
int pthread_barrierattr_destroy(pthread_barrierattr_t*);
int pthread_barrierattr_getpshared(const scope pthread_barrierattr_t*, int*);
int pthread_barrierattr_init(pthread_barrierattr_t*);
int pthread_barrierattr_setpshared(pthread_barrierattr_t*, int);
}
else version (CRuntime_UClibc)
{
enum PTHREAD_BARRIER_SERIAL_THREAD = -1;
int pthread_barrier_destroy(pthread_barrier_t*);
int pthread_barrier_init(pthread_barrier_t*, const scope pthread_barrierattr_t*, uint);
int pthread_barrier_wait(pthread_barrier_t*);
int pthread_barrierattr_destroy(pthread_barrierattr_t*);
int pthread_barrierattr_getpshared(const scope pthread_barrierattr_t*, int*);
int pthread_barrierattr_init(pthread_barrierattr_t*);
int pthread_barrierattr_setpshared(pthread_barrierattr_t*, int);
}
else
{
static assert(false, "Unsupported platform");
}
//
// Clock (CS)
//
/*
int pthread_condattr_getclock(const scope pthread_condattr_t*, clockid_t*);
int pthread_condattr_setclock(pthread_condattr_t*, clockid_t);
*/
version (CRuntime_Glibc)
{
int pthread_condattr_getclock(const scope pthread_condattr_t*, clockid_t*);
int pthread_condattr_setclock(pthread_condattr_t*, clockid_t);
}
else version (FreeBSD)
{
int pthread_condattr_getclock(const scope pthread_condattr_t*, clockid_t*);
int pthread_condattr_setclock(pthread_condattr_t*, clockid_t);
}
else version (DragonFlyBSD)
{
int pthread_condattr_getclock(const scope pthread_condattr_t*, clockid_t*);
int pthread_condattr_setclock(pthread_condattr_t*, clockid_t);
}
else version (NetBSD)
{
int pthread_condattr_setclock(pthread_condattr_t*, clockid_t);
}
else version (OpenBSD)
{
int pthread_condattr_getclock(const scope pthread_condattr_t*, clockid_t*);
int pthread_condattr_setclock(pthread_condattr_t*, clockid_t);
}
else version (Darwin)
{
}
else version (Solaris)
{
int pthread_condattr_getclock(const scope pthread_condattr_t*, clockid_t*);
int pthread_condattr_setclock(pthread_condattr_t*, clockid_t);
}
else version (CRuntime_Bionic)
{
}
else version (CRuntime_Musl)
{
int pthread_condattr_getclock(const scope pthread_condattr_t*, clockid_t*);
int pthread_condattr_setclock(pthread_condattr_t*, clockid_t);
}
else version (CRuntime_UClibc)
{
int pthread_condattr_getclock(const scope pthread_condattr_t*, clockid_t*);
int pthread_condattr_setclock(pthread_condattr_t*, clockid_t);
}
else
{
static assert(false, "Unsupported platform");
}
//
// Spinlock (SPI)
//
/*
int pthread_spin_destroy(pthread_spinlock_t*);
int pthread_spin_init(pthread_spinlock_t*, int);
int pthread_spin_lock(pthread_spinlock_t*);
int pthread_spin_trylock(pthread_spinlock_t*);
int pthread_spin_unlock(pthread_spinlock_t*);
*/
version (CRuntime_Glibc)
{
int pthread_spin_destroy(pthread_spinlock_t*);
int pthread_spin_init(pthread_spinlock_t*, int);
int pthread_spin_lock(pthread_spinlock_t*);
int pthread_spin_trylock(pthread_spinlock_t*);
int pthread_spin_unlock(pthread_spinlock_t*);
}
else version (FreeBSD)
{
int pthread_spin_init(pthread_spinlock_t*, int);
int pthread_spin_destroy(pthread_spinlock_t*);
int pthread_spin_lock(pthread_spinlock_t*);
int pthread_spin_trylock(pthread_spinlock_t*);
int pthread_spin_unlock(pthread_spinlock_t*);
}
else version (DragonFlyBSD)
{
int pthread_spin_init(pthread_spinlock_t*, int);
int pthread_spin_destroy(pthread_spinlock_t*);
int pthread_spin_lock(pthread_spinlock_t*);
int pthread_spin_trylock(pthread_spinlock_t*);
int pthread_spin_unlock(pthread_spinlock_t*);
}
else version (NetBSD)
{
int pthread_spin_init(pthread_spinlock_t*, int);
int pthread_spin_destroy(pthread_spinlock_t*);
int pthread_spin_lock(pthread_spinlock_t*);
int pthread_spin_trylock(pthread_spinlock_t*);
int pthread_spin_unlock(pthread_spinlock_t*);
}
else version (OpenBSD)
{
int pthread_spin_init(pthread_spinlock_t*, int);
int pthread_spin_destroy(pthread_spinlock_t*);
int pthread_spin_lock(pthread_spinlock_t*);
int pthread_spin_trylock(pthread_spinlock_t*);
int pthread_spin_unlock(pthread_spinlock_t*);
}
else version (Darwin)
{
}
else version (Solaris)
{
int pthread_spin_init(pthread_spinlock_t*, int);
int pthread_spin_destroy(pthread_spinlock_t*);
int pthread_spin_lock(pthread_spinlock_t*);
int pthread_spin_trylock(pthread_spinlock_t*);
int pthread_spin_unlock(pthread_spinlock_t*);
}
else version (CRuntime_Bionic)
{
}
else version (CRuntime_Musl)
{
int pthread_spin_destroy(pthread_spinlock_t*);
int pthread_spin_init(pthread_spinlock_t*, int);
int pthread_spin_lock(pthread_spinlock_t*);
int pthread_spin_trylock(pthread_spinlock_t*);
int pthread_spin_unlock(pthread_spinlock_t*);
}
else version (CRuntime_UClibc)
{
int pthread_spin_destroy(pthread_spinlock_t*);
int pthread_spin_init(pthread_spinlock_t*, int);
int pthread_spin_lock(pthread_spinlock_t*);
int pthread_spin_trylock(pthread_spinlock_t*);
int pthread_spin_unlock(pthread_spinlock_t*);
}
else
{
static assert(false, "Unsupported platform");
}
//
// XOpen (XSI)
//
/*
PTHREAD_MUTEX_DEFAULT
PTHREAD_MUTEX_ERRORCHECK
PTHREAD_MUTEX_NORMAL
PTHREAD_MUTEX_RECURSIVE
int pthread_attr_getguardsize(const scope pthread_attr_t*, size_t*);
int pthread_attr_setguardsize(pthread_attr_t*, size_t);
int pthread_getconcurrency();
int pthread_mutexattr_gettype(const scope pthread_mutexattr_t*, int*);
int pthread_mutexattr_settype(pthread_mutexattr_t*, int);
int pthread_setconcurrency(int);
*/
version (CRuntime_Glibc)
{
enum PTHREAD_MUTEX_NORMAL = 0;
enum PTHREAD_MUTEX_RECURSIVE = 1;
enum PTHREAD_MUTEX_ERRORCHECK = 2;
enum PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL;
int pthread_attr_getguardsize(const scope pthread_attr_t*, size_t*);
int pthread_attr_setguardsize(pthread_attr_t*, size_t);
int pthread_getconcurrency();
int pthread_mutexattr_gettype(const scope pthread_mutexattr_t*, int*);
int pthread_mutexattr_settype(pthread_mutexattr_t*, int) @trusted;
int pthread_setconcurrency(int);
}
else version (Darwin)
{
enum PTHREAD_MUTEX_NORMAL = 0;
enum PTHREAD_MUTEX_ERRORCHECK = 1;
enum PTHREAD_MUTEX_RECURSIVE = 2;
enum PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL;
int pthread_attr_getguardsize(const scope pthread_attr_t*, size_t*);
int pthread_attr_setguardsize(pthread_attr_t*, size_t);
int pthread_getconcurrency();
int pthread_mutexattr_gettype(const scope pthread_mutexattr_t*, int*);
int pthread_mutexattr_settype(pthread_mutexattr_t*, int) @trusted;
int pthread_setconcurrency(int);
}
else version (FreeBSD)
{
enum
{
PTHREAD_MUTEX_ERRORCHECK = 1,
PTHREAD_MUTEX_RECURSIVE = 2,
PTHREAD_MUTEX_NORMAL = 3,
PTHREAD_MUTEX_ADAPTIVE_NP = 4,
PTHREAD_MUTEX_TYPE_MAX
}
enum PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_ERRORCHECK;
int pthread_attr_getguardsize(const scope pthread_attr_t*, size_t*);
int pthread_attr_setguardsize(pthread_attr_t*, size_t);
int pthread_getconcurrency();
int pthread_mutexattr_gettype(pthread_mutexattr_t*, int*);
int pthread_mutexattr_settype(pthread_mutexattr_t*, int) @trusted;
int pthread_setconcurrency(int);
}
else version (NetBSD)
{
enum
{
PTHREAD_MUTEX_NORMAL = 0,
PTHREAD_MUTEX_ERRORCHECK = 1,
PTHREAD_MUTEX_RECURSIVE = 2,
PTHREAD_MUTEX_TYPE_MAX
}
enum PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_ERRORCHECK;
int pthread_attr_getguardsize(const scope pthread_attr_t*, size_t*);
int pthread_attr_setguardsize(pthread_attr_t*, size_t);
int pthread_getconcurrency();
int pthread_mutexattr_gettype(pthread_mutexattr_t*, int*);
int pthread_mutexattr_settype(pthread_mutexattr_t*, int) @trusted;
int pthread_setconcurrency(int);
}
else version (OpenBSD)
{
enum
{
PTHREAD_MUTEX_ERRORCHECK = 1,
PTHREAD_MUTEX_RECURSIVE = 2,
PTHREAD_MUTEX_NORMAL = 3,
PTHREAD_MUTEX_ADAPTIVE_NP = 4,
PTHREAD_MUTEX_TYPE_MAX
}
enum PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_ERRORCHECK;
int pthread_attr_getguardsize(const scope pthread_attr_t*, size_t*);
int pthread_attr_setguardsize(pthread_attr_t*, size_t);
int pthread_getconcurrency();
int pthread_mutexattr_gettype(pthread_mutexattr_t*, int*);
int pthread_mutexattr_settype(pthread_mutexattr_t*, int) @trusted;
int pthread_setconcurrency(int);
}
else version (DragonFlyBSD)
{
enum
{
PTHREAD_MUTEX_ERRORCHECK = 1,
PTHREAD_MUTEX_RECURSIVE = 2,
PTHREAD_MUTEX_NORMAL = 3,
PTHREAD_MUTEX_TYPE_MAX
}
enum PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_ERRORCHECK;
int pthread_attr_getguardsize(const scope pthread_attr_t*, size_t*);
int pthread_attr_setguardsize(pthread_attr_t*, size_t);
int pthread_getconcurrency();
int pthread_mutexattr_gettype(pthread_mutexattr_t*, int*);
int pthread_mutexattr_settype(pthread_mutexattr_t*, int) @trusted;
int pthread_setconcurrency(int);
}
else version (Solaris)
{
enum
{
PTHREAD_MUTEX_ERRORCHECK = 2,
PTHREAD_MUTEX_RECURSIVE = 4,
PTHREAD_MUTEX_NORMAL = 0,
}
enum PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL;
int pthread_attr_getguardsize(const scope pthread_attr_t*, size_t*);
int pthread_attr_setguardsize(pthread_attr_t*, size_t);
int pthread_getconcurrency();
int pthread_mutexattr_gettype(pthread_mutexattr_t*, int*);
int pthread_mutexattr_settype(pthread_mutexattr_t*, int) @trusted;
int pthread_setconcurrency(int);
}
else version (CRuntime_Bionic)
{
enum PTHREAD_MUTEX_NORMAL = 0;
enum PTHREAD_MUTEX_RECURSIVE = 1;
enum PTHREAD_MUTEX_ERRORCHECK = 2;
enum PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL;
int pthread_attr_getguardsize(const scope pthread_attr_t*, size_t*);
int pthread_attr_setguardsize(pthread_attr_t*, size_t);
int pthread_mutexattr_gettype(const scope pthread_mutexattr_t*, int*);
int pthread_mutexattr_settype(pthread_mutexattr_t*, int) @trusted;
}
else version (CRuntime_Musl)
{
enum {
PTHREAD_MUTEX_NORMAL = 0,
PTHREAD_MUTEX_RECURSIVE = 1,
PTHREAD_MUTEX_ERRORCHECK = 2,
PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL,
}
int pthread_mutexattr_settype(pthread_mutexattr_t*, int) @trusted;
}
else version (CRuntime_UClibc)
{
enum
{
PTHREAD_MUTEX_TIMED_NP,
PTHREAD_MUTEX_RECURSIVE_NP,
PTHREAD_MUTEX_ERRORCHECK_NP,
PTHREAD_MUTEX_ADAPTIVE_NP,
PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_TIMED_NP,
PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP,
PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP,
PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL,
PTHREAD_MUTEX_FAST_NP = PTHREAD_MUTEX_TIMED_NP
}
int pthread_attr_getguardsize(const scope pthread_attr_t*, size_t*);
int pthread_attr_setguardsize(pthread_attr_t*, size_t);
int pthread_getconcurrency();
int pthread_mutexattr_gettype(const scope pthread_mutexattr_t*, int*);
int pthread_mutexattr_settype(pthread_mutexattr_t*, int) @trusted;
int pthread_setconcurrency(int);
}
else
{
static assert(false, "Unsupported platform");
}
//
// CPU Time (TCT)
//
/*
int pthread_getcpuclockid(pthread_t, clockid_t*);
*/
version (CRuntime_Glibc)
{
int pthread_getcpuclockid(pthread_t, clockid_t*);
}
else version (FreeBSD)
{
int pthread_getcpuclockid(pthread_t, clockid_t*);
}
else version (DragonFlyBSD)
{
int pthread_getcpuclockid(pthread_t, clockid_t*);
}
else version (NetBSD)
{
}
else version (OpenBSD)
{
int pthread_getcpuclockid(pthread_t, clockid_t*);
}
else version (Darwin)
{
}
else version (Solaris)
{
}
else version (CRuntime_Bionic)
{
int pthread_getcpuclockid(pthread_t, clockid_t*);
}
else version (CRuntime_Musl)
{
int pthread_getcpuclockid(pthread_t, clockid_t*);
}
else version (CRuntime_UClibc)
{
int pthread_getcpuclockid(pthread_t, clockid_t*);
}
else
{
static assert(false, "Unsupported platform");
}
//
// Timeouts (TMO)
//
/*
int pthread_mutex_timedlock(pthread_mutex_t*, const scope timespec*);
int pthread_rwlock_timedrdlock(pthread_rwlock_t*, const scope timespec*);
int pthread_rwlock_timedwrlock(pthread_rwlock_t*, const scope timespec*);
*/
version (CRuntime_Glibc)
{
int pthread_mutex_timedlock(pthread_mutex_t*, const scope timespec*);
int pthread_rwlock_timedrdlock(pthread_rwlock_t*, const scope timespec*);
int pthread_rwlock_timedwrlock(pthread_rwlock_t*, const scope timespec*);
}
else version (Darwin)
{
int pthread_mutex_timedlock(pthread_mutex_t*, const scope timespec*);
int pthread_rwlock_timedrdlock(pthread_rwlock_t*, const scope timespec*);
int pthread_rwlock_timedwrlock(pthread_rwlock_t*, const scope timespec*);
}
else version (FreeBSD)
{
int pthread_mutex_timedlock(pthread_mutex_t*, const scope timespec*);
int pthread_rwlock_timedrdlock(pthread_rwlock_t*, const scope timespec*);
int pthread_rwlock_timedwrlock(pthread_rwlock_t*, const scope timespec*);
}
else version (NetBSD)
{
int pthread_mutex_timedlock(pthread_mutex_t*, const scope timespec*);
int pthread_rwlock_timedrdlock(pthread_rwlock_t*, const scope timespec*);
int pthread_rwlock_timedwrlock(pthread_rwlock_t*, const scope timespec*);
}
else version (OpenBSD)
{
int pthread_mutex_timedlock(pthread_mutex_t*, const scope timespec*);
int pthread_rwlock_timedrdlock(pthread_rwlock_t*, const scope timespec*);
int pthread_rwlock_timedwrlock(pthread_rwlock_t*, const scope timespec*);
}
else version (DragonFlyBSD)
{
int pthread_mutex_timedlock(pthread_mutex_t*, const scope timespec*);
int pthread_rwlock_timedrdlock(pthread_rwlock_t*, const scope timespec*);
int pthread_rwlock_timedwrlock(pthread_rwlock_t*, const scope timespec*);
}
else version (Solaris)
{
int pthread_mutex_timedlock(pthread_mutex_t*, const scope timespec*);
int pthread_rwlock_timedrdlock(pthread_rwlock_t*, const scope timespec*);
int pthread_rwlock_timedwrlock(pthread_rwlock_t*, const scope timespec*);
}
else version (CRuntime_Bionic)
{
int pthread_rwlock_timedrdlock(pthread_rwlock_t*, const scope timespec*);
int pthread_rwlock_timedwrlock(pthread_rwlock_t*, const scope timespec*);
}
else version (CRuntime_Musl)
{
int pthread_mutex_timedlock(pthread_mutex_t*, const scope timespec*);
int pthread_rwlock_timedrdlock(pthread_rwlock_t*, const scope timespec*);
int pthread_rwlock_timedwrlock(pthread_rwlock_t*, const scope timespec*);
}
else version (CRuntime_UClibc)
{
int pthread_mutex_timedlock(pthread_mutex_t*, const scope timespec*);
int pthread_rwlock_timedrdlock(pthread_rwlock_t*, const scope timespec*);
int pthread_rwlock_timedwrlock(pthread_rwlock_t*, const scope timespec*);
}
else
{
static assert(false, "Unsupported platform");
}
//
// Priority (TPI|TPP)
//
/*
PTHREAD_PRIO_INHERIT (TPI)
PTHREAD_PRIO_NONE (TPP|TPI)
PTHREAD_PRIO_PROTECT (TPI)
int pthread_mutex_getprioceiling(const scope pthread_mutex_t*, int*); (TPP)
int pthread_mutex_setprioceiling(pthread_mutex_t*, int, int*); (TPP)
int pthread_mutexattr_getprioceiling(pthread_mutexattr_t*, int*); (TPP)
int pthread_mutexattr_getprotocol(const scope pthread_mutexattr_t*, int*); (TPI|TPP)
int pthread_mutexattr_setprioceiling(pthread_mutexattr_t*, int); (TPP)
int pthread_mutexattr_setprotocol(pthread_mutexattr_t*, int); (TPI|TPP)
*/
version (Darwin)
{
enum
{
PTHREAD_PRIO_NONE,
PTHREAD_PRIO_INHERIT,
PTHREAD_PRIO_PROTECT
}
int pthread_mutex_getprioceiling(const scope pthread_mutex_t*, int*);
int pthread_mutex_setprioceiling(pthread_mutex_t*, int, int*);
int pthread_mutexattr_getprioceiling(const scope pthread_mutexattr_t*, int*);
int pthread_mutexattr_getprotocol(const scope pthread_mutexattr_t*, int*);
int pthread_mutexattr_setprioceiling(pthread_mutexattr_t*, int);
int pthread_mutexattr_setprotocol(pthread_mutexattr_t*, int);
}
else version (Solaris)
{
enum
{
PTHREAD_PRIO_NONE = 0x00,
PTHREAD_PRIO_INHERIT = 0x10,
PTHREAD_PRIO_PROTECT = 0x20,
}
int pthread_mutex_getprioceiling(const scope pthread_mutex_t*, int*);
int pthread_mutex_setprioceiling(pthread_mutex_t*, int, int*);
int pthread_mutexattr_getprioceiling(const scope pthread_mutexattr_t*, int*);
int pthread_mutexattr_getprotocol(const scope pthread_mutexattr_t*, int*);
int pthread_mutexattr_setprioceiling(pthread_mutexattr_t*, int);
int pthread_mutexattr_setprotocol(pthread_mutexattr_t*, int);
}
//
// Scheduling (TPS)
//
/*
PTHREAD_SCOPE_PROCESS
PTHREAD_SCOPE_SYSTEM
int pthread_attr_getinheritsched(const scope pthread_attr_t*, int*);
int pthread_attr_getschedpolicy(const scope pthread_attr_t*, int*);
int pthread_attr_getscope(const scope pthread_attr_t*, int*);
int pthread_attr_setinheritsched(pthread_attr_t*, int);
int pthread_attr_setschedpolicy(pthread_attr_t*, int);
int pthread_attr_setscope(pthread_attr_t*, int);
int pthread_getschedparam(pthread_t, int*, sched_param*);
int pthread_setschedparam(pthread_t, int, const scope sched_param*);
int pthread_setschedprio(pthread_t, int);
*/
version (CRuntime_Glibc)
{
enum
{
PTHREAD_SCOPE_SYSTEM,
PTHREAD_SCOPE_PROCESS
}
int pthread_attr_getinheritsched(const scope pthread_attr_t*, int*);
int pthread_attr_getschedpolicy(const scope pthread_attr_t*, int*);
int pthread_attr_getscope(const scope pthread_attr_t*, int*);
int pthread_attr_setinheritsched(pthread_attr_t*, int);
int pthread_attr_setschedpolicy(pthread_attr_t*, int);
int pthread_attr_setscope(pthread_attr_t*, int);
int pthread_getschedparam(pthread_t, int*, sched_param*);
int pthread_setschedparam(pthread_t, int, const scope sched_param*);
int pthread_setschedprio(pthread_t, int);
}
else version (Darwin)
{
enum
{
PTHREAD_SCOPE_SYSTEM = 1,
PTHREAD_SCOPE_PROCESS = 2
}
int pthread_attr_getinheritsched(const scope pthread_attr_t*, int*);
int pthread_attr_getschedpolicy(const scope pthread_attr_t*, int*);
int pthread_attr_getscope(const scope pthread_attr_t*, int*);
int pthread_attr_setinheritsched(pthread_attr_t*, int);
int pthread_attr_setschedpolicy(pthread_attr_t*, int);
int pthread_attr_setscope(pthread_attr_t*, int);
int pthread_getschedparam(pthread_t, int*, sched_param*);
int pthread_setschedparam(pthread_t, int, const scope sched_param*);
// int pthread_setschedprio(pthread_t, int); // not implemented
}
else version (FreeBSD)
{
enum
{
PTHREAD_SCOPE_PROCESS = 0,
PTHREAD_SCOPE_SYSTEM = 0x2
}
int pthread_attr_getinheritsched(const scope pthread_attr_t*, int*);
int pthread_attr_getschedpolicy(const scope pthread_attr_t*, int*);
int pthread_attr_getscope(const scope pthread_attr_t*, int*);
int pthread_attr_setinheritsched(pthread_attr_t*, int);
int pthread_attr_setschedpolicy(pthread_attr_t*, int);
int pthread_attr_setscope(const scope pthread_attr_t*, int);
int pthread_getschedparam(pthread_t, int*, sched_param*);
int pthread_setschedparam(pthread_t, int, sched_param*);
// int pthread_setschedprio(pthread_t, int); // not implemented
}
else version (NetBSD)
{
enum
{
PTHREAD_SCOPE_PROCESS = 0,
PTHREAD_SCOPE_SYSTEM = 0x1
}
int pthread_attr_getinheritsched(const scope pthread_attr_t*, int*);
int pthread_attr_getschedpolicy(const scope pthread_attr_t*, int*);
int pthread_attr_getscope(const scope pthread_attr_t*, int*);
int pthread_attr_setinheritsched(pthread_attr_t*, int);
int pthread_attr_setschedpolicy(pthread_attr_t*, int);
int pthread_attr_setscope(const scope pthread_attr_t*, int);
int pthread_getschedparam(pthread_t, int*, sched_param*);
int pthread_setschedparam(pthread_t, int, sched_param*);
//int pthread_setschedprio(pthread_t, int);
}
else version (OpenBSD)
{
enum
{
PTHREAD_SCOPE_PROCESS = 0,
PTHREAD_SCOPE_SYSTEM = 0x2
}
int pthread_attr_getinheritsched(const scope pthread_attr_t*, int*);
int pthread_attr_getschedpolicy(const scope pthread_attr_t*, int*);
int pthread_attr_getscope(const scope pthread_attr_t*, int*);
int pthread_attr_setinheritsched(pthread_attr_t*, int);
int pthread_attr_setschedpolicy(pthread_attr_t*, int);
int pthread_attr_setscope(const scope pthread_attr_t*, int);
int pthread_getschedparam(pthread_t, int*, sched_param*);
int pthread_setschedparam(pthread_t, int, sched_param*);
// int pthread_setschedprio(pthread_t, int); // not implemented
}
else version (DragonFlyBSD)
{
enum
{
PTHREAD_SCOPE_PROCESS = 0,
PTHREAD_SCOPE_SYSTEM = 0x2
}
int pthread_attr_getinheritsched(const scope pthread_attr_t*, int*);
int pthread_attr_getschedpolicy(const scope pthread_attr_t*, int*);
int pthread_attr_getscope(const scope pthread_attr_t*, int*);
int pthread_attr_setinheritsched(pthread_attr_t*, int);
int pthread_attr_setschedpolicy(pthread_attr_t*, int);
int pthread_attr_setscope(const scope pthread_attr_t*, int);
int pthread_getschedparam(pthread_t, int*, sched_param*);
int pthread_setschedparam(pthread_t, int, sched_param*);
}
else version (Solaris)
{
enum
{
PTHREAD_SCOPE_PROCESS = 0,
PTHREAD_SCOPE_SYSTEM = 1,
}
int pthread_attr_getinheritsched(const scope pthread_attr_t*, int*);
int pthread_attr_getschedpolicy(const scope pthread_attr_t*, int*);
int pthread_attr_getscope(const scope pthread_attr_t*, int*);
int pthread_attr_setinheritsched(pthread_attr_t*, int);
int pthread_attr_setschedpolicy(pthread_attr_t*, int);
int pthread_attr_setscope(const scope pthread_attr_t*, int);
int pthread_getschedparam(pthread_t, int*, sched_param*);
int pthread_setschedparam(pthread_t, int, sched_param*);
int pthread_setschedprio(pthread_t, int);
}
else version (CRuntime_Bionic)
{
enum
{
PTHREAD_SCOPE_SYSTEM,
PTHREAD_SCOPE_PROCESS
}
int pthread_attr_getschedpolicy(const scope pthread_attr_t*, int*);
int pthread_attr_getscope(const scope pthread_attr_t*);
int pthread_attr_setschedpolicy(pthread_attr_t*, int);
int pthread_attr_setscope(pthread_attr_t*, int);
int pthread_getschedparam(pthread_t, int*, sched_param*);
int pthread_setschedparam(pthread_t, int, const scope sched_param*);
}
else version (CRuntime_Musl)
{
enum
{
PTHREAD_SCOPE_SYSTEM,
PTHREAD_SCOPE_PROCESS
}
int pthread_getschedparam(pthread_t, int*, sched_param*);
int pthread_setschedparam(pthread_t, int, const scope sched_param*);
int pthread_setschedprio(pthread_t, int);
}
else version (CRuntime_UClibc)
{
enum
{
PTHREAD_SCOPE_SYSTEM,
PTHREAD_SCOPE_PROCESS
}
int pthread_attr_getinheritsched(const scope pthread_attr_t*, int*);
int pthread_attr_getschedpolicy(const scope pthread_attr_t*, int*);
int pthread_attr_getscope(const scope pthread_attr_t*, int*);
int pthread_attr_setinheritsched(pthread_attr_t*, int);
int pthread_attr_setschedpolicy(pthread_attr_t*, int);
int pthread_attr_setscope(pthread_attr_t*, int);
int pthread_getschedparam(pthread_t, int*, sched_param*);
int pthread_setschedparam(pthread_t, int, const scope sched_param*);
int pthread_setschedprio(pthread_t, int);
}
else
{
static assert(false, "Unsupported platform");
}
//
// Stack (TSA|TSS)
//
/*
int pthread_attr_getstack(const scope pthread_attr_t*, void**, size_t*); (TSA|TSS)
int pthread_attr_getstackaddr(const scope pthread_attr_t*, void**); (TSA)
int pthread_attr_getstacksize(const scope pthread_attr_t*, size_t*); (TSS)
int pthread_attr_setstack(pthread_attr_t*, void*, size_t); (TSA|TSS)
int pthread_attr_setstackaddr(pthread_attr_t*, void*); (TSA)
int pthread_attr_setstacksize(pthread_attr_t*, size_t); (TSS)
*/
version (CRuntime_Glibc)
{
int pthread_attr_getstack(const scope pthread_attr_t*, void**, size_t*);
int pthread_attr_getstackaddr(const scope pthread_attr_t*, void**);
int pthread_attr_getstacksize(const scope pthread_attr_t*, size_t*);
int pthread_attr_setstack(pthread_attr_t*, void*, size_t);
int pthread_attr_setstackaddr(pthread_attr_t*, void*);
int pthread_attr_setstacksize(pthread_attr_t*, size_t);
}
else version (Darwin)
{
int pthread_attr_getstack(const scope pthread_attr_t*, void**, size_t*);
int pthread_attr_getstackaddr(const scope pthread_attr_t*, void**);
int pthread_attr_getstacksize(const scope pthread_attr_t*, size_t*);
int pthread_attr_setstack(pthread_attr_t*, void*, size_t);
int pthread_attr_setstackaddr(pthread_attr_t*, void*);
int pthread_attr_setstacksize(pthread_attr_t*, size_t);
}
else version (FreeBSD)
{
int pthread_attr_getstack(const scope pthread_attr_t*, void**, size_t*);
int pthread_attr_getstackaddr(const scope pthread_attr_t*, void**);
int pthread_attr_getstacksize(const scope pthread_attr_t*, size_t*);
int pthread_attr_setstack(pthread_attr_t*, void*, size_t);
int pthread_attr_setstackaddr(pthread_attr_t*, void*);
int pthread_attr_setstacksize(pthread_attr_t*, size_t);
}
else version (NetBSD)
{
int pthread_attr_getstack(const scope pthread_attr_t*, void**, size_t*);
int pthread_attr_getstackaddr(const scope pthread_attr_t*, void**);
int pthread_attr_getstacksize(const scope pthread_attr_t*, size_t*);
int pthread_attr_setstack(pthread_attr_t*, void*, size_t);
int pthread_attr_setstackaddr(pthread_attr_t*, void*);
int pthread_attr_setstacksize(pthread_attr_t*, size_t);
}
else version (OpenBSD)
{
int pthread_attr_getstack(const scope pthread_attr_t*, void**, size_t*);
int pthread_attr_getstackaddr(const scope pthread_attr_t*, void**);
int pthread_attr_getstacksize(const scope pthread_attr_t*, size_t*);
int pthread_attr_setstack(pthread_attr_t*, void*, size_t);
int pthread_attr_setstackaddr(pthread_attr_t*, void*);
int pthread_attr_setstacksize(pthread_attr_t*, size_t);
}
else version (DragonFlyBSD)
{
int pthread_attr_getstack(const scope pthread_attr_t*, void**, size_t*);
int pthread_attr_getstackaddr(const scope pthread_attr_t*, void**);
int pthread_attr_getstacksize(const scope pthread_attr_t*, size_t*);
int pthread_attr_setstack(pthread_attr_t*, void*, size_t);
int pthread_attr_setstackaddr(pthread_attr_t*, void*);
int pthread_attr_setstacksize(pthread_attr_t*, size_t);
}
else version (Solaris)
{
int pthread_attr_getstack(const scope pthread_attr_t*, void**, size_t*);
int pthread_attr_getstackaddr(const scope pthread_attr_t*, void**);
int pthread_attr_getstacksize(const scope pthread_attr_t*, size_t*);
int pthread_attr_setstack(pthread_attr_t*, void*, size_t);
int pthread_attr_setstackaddr(pthread_attr_t*, void*);
int pthread_attr_setstacksize(pthread_attr_t*, size_t);
}
else version (CRuntime_Bionic)
{
int pthread_attr_getstack(const scope pthread_attr_t*, void**, size_t*);
int pthread_attr_getstackaddr(const scope pthread_attr_t*, void**);
int pthread_attr_getstacksize(const scope pthread_attr_t*, size_t*);
int pthread_attr_setstack(pthread_attr_t*, void*, size_t);
int pthread_attr_setstackaddr(pthread_attr_t*, void*);
int pthread_attr_setstacksize(pthread_attr_t*, size_t);
}
else version (CRuntime_Musl)
{
int pthread_attr_getstack(const scope pthread_attr_t*, void**, size_t*);
int pthread_attr_setstacksize(pthread_attr_t*, size_t);
}
else version (CRuntime_UClibc)
{
int pthread_attr_getstack(const scope pthread_attr_t*, void**, size_t*);
int pthread_attr_getstackaddr(const scope pthread_attr_t*, void**);
int pthread_attr_getstacksize(const scope pthread_attr_t*, size_t*);
int pthread_attr_setstack(pthread_attr_t*, void*, size_t);
int pthread_attr_setstackaddr(pthread_attr_t*, void*);
int pthread_attr_setstacksize(pthread_attr_t*, size_t);
}
else
{
static assert(false, "Unsupported platform");
}
//
// Shared Synchronization (TSH)
//
/*
int pthread_condattr_getpshared(const scope pthread_condattr_t*, int*);
int pthread_condattr_setpshared(pthread_condattr_t*, int);
int pthread_mutexattr_getpshared(const scope pthread_mutexattr_t*, int*);
int pthread_mutexattr_setpshared(pthread_mutexattr_t*, int);
int pthread_rwlockattr_getpshared(const scope pthread_rwlockattr_t*, int*);
int pthread_rwlockattr_setpshared(pthread_rwlockattr_t*, int);
*/
version (CRuntime_Glibc)
{
int pthread_condattr_getpshared(const scope pthread_condattr_t*, int*);
int pthread_condattr_setpshared(pthread_condattr_t*, int);
int pthread_mutexattr_getpshared(const scope pthread_mutexattr_t*, int*);
int pthread_mutexattr_setpshared(pthread_mutexattr_t*, int);
int pthread_rwlockattr_getpshared(const scope pthread_rwlockattr_t*, int*);
int pthread_rwlockattr_setpshared(pthread_rwlockattr_t*, int);
}
else version (FreeBSD)
{
int pthread_condattr_getpshared(const scope pthread_condattr_t*, int*);
int pthread_condattr_setpshared(pthread_condattr_t*, int);
int pthread_mutexattr_getpshared(const scope pthread_mutexattr_t*, int*);
int pthread_mutexattr_setpshared(pthread_mutexattr_t*, int);
int pthread_rwlockattr_getpshared(const scope pthread_rwlockattr_t*, int*);
int pthread_rwlockattr_setpshared(pthread_rwlockattr_t*, int);
}
else version (NetBSD)
{
int pthread_condattr_getpshared(const scope pthread_condattr_t*, int*);
int pthread_condattr_setpshared(pthread_condattr_t*, int);
int pthread_mutexattr_getpshared(const scope pthread_mutexattr_t*, int*);
int pthread_mutexattr_setpshared(pthread_mutexattr_t*, int);
int pthread_rwlockattr_getpshared(const scope pthread_rwlockattr_t*, int*);
int pthread_rwlockattr_setpshared(pthread_rwlockattr_t*, int);
}
else version (OpenBSD)
{
}
else version (DragonFlyBSD)
{
int pthread_condattr_getpshared(const scope pthread_condattr_t*, int*);
int pthread_condattr_setpshared(pthread_condattr_t*, int);
int pthread_mutexattr_getpshared(const scope pthread_mutexattr_t*, int*);
int pthread_mutexattr_setpshared(pthread_mutexattr_t*, int);
int pthread_rwlockattr_getpshared(const scope pthread_rwlockattr_t*, int*);
int pthread_rwlockattr_setpshared(pthread_rwlockattr_t*, int);
}
else version (Darwin)
{
int pthread_condattr_getpshared(const scope pthread_condattr_t*, int*);
int pthread_condattr_setpshared(pthread_condattr_t*, int);
int pthread_mutexattr_getpshared(const scope pthread_mutexattr_t*, int*);
int pthread_mutexattr_setpshared(pthread_mutexattr_t*, int);
int pthread_rwlockattr_getpshared(const scope pthread_rwlockattr_t*, int*);
int pthread_rwlockattr_setpshared(pthread_rwlockattr_t*, int);
}
else version (Solaris)
{
int pthread_condattr_getpshared(const scope pthread_condattr_t*, int*);
int pthread_condattr_setpshared(pthread_condattr_t*, int);
int pthread_mutexattr_getpshared(const scope pthread_mutexattr_t*, int*);
int pthread_mutexattr_setpshared(pthread_mutexattr_t*, int);
int pthread_rwlockattr_getpshared(const scope pthread_rwlockattr_t*, int*);
int pthread_rwlockattr_setpshared(pthread_rwlockattr_t*, int);
}
else version (CRuntime_Bionic)
{
int pthread_condattr_getpshared(pthread_condattr_t*, int*);
int pthread_condattr_setpshared(pthread_condattr_t*, int);
int pthread_mutexattr_getpshared(pthread_mutexattr_t*, int*);
int pthread_mutexattr_setpshared(pthread_mutexattr_t*, int);
int pthread_rwlockattr_getpshared(pthread_rwlockattr_t*, int*);
int pthread_rwlockattr_setpshared(pthread_rwlockattr_t*, int);
}
else version (CRuntime_Musl)
{
int pthread_condattr_getpshared(pthread_condattr_t*, int*);
int pthread_condattr_setpshared(pthread_condattr_t*, int);
int pthread_mutexattr_getpshared(pthread_mutexattr_t*, int*);
int pthread_mutexattr_setpshared(pthread_mutexattr_t*, int);
int pthread_rwlockattr_getpshared(pthread_rwlockattr_t*, int*);
int pthread_rwlockattr_setpshared(pthread_rwlockattr_t*, int);
}
else version (CRuntime_UClibc)
{
int pthread_condattr_getpshared(const scope pthread_condattr_t*, int*);
int pthread_condattr_setpshared(pthread_condattr_t*, int);
int pthread_mutexattr_getpshared(const scope pthread_mutexattr_t*, int*);
int pthread_mutexattr_setpshared(pthread_mutexattr_t*, int);
int pthread_rwlockattr_getpshared(const scope pthread_rwlockattr_t*, int*);
int pthread_rwlockattr_setpshared(pthread_rwlockattr_t*, int);
}
else
{
static assert(false, "Unsupported platform");
}
|
D
|
var int activebonus1;
var int activebonus2;
var int wite_winf;
var int asss_winf;
var string screen_wght;
var string screen_wght1;
var string screen_mwght;
func void evt_upddef_addon_func()
{
if((passive_hp == TRUE) && (hero.attribute[ATR_HITPOINTS] >= 1) && !C_BodyStateContains(hero,BS_DEAD))
{
Npc_ChangeAttribute(hero,ATR_HITPOINTS,1);
};
if(passive_mp == TRUE)
{
Npc_ChangeAttribute(hero,ATR_MANA,1);
};
if((passive_enchhp >= 1) && (hero.attribute[ATR_HITPOINTS] >= 1) && !C_BodyStateContains(hero,BS_DEAD))
{
Npc_ChangeAttribute(hero,ATR_HITPOINTS,1);
};
if((passive_enchhp >= 2) && (hero.attribute[ATR_HITPOINTS] >= 1) && !C_BodyStateContains(hero,BS_DEAD))
{
Npc_ChangeAttribute(hero,ATR_HITPOINTS,1);
};
if(passive_enchmp >= 1)
{
Npc_ChangeAttribute(hero,ATR_MANA,1);
};
if(passive_enchmp >= 2)
{
Npc_ChangeAttribute(hero,ATR_MANA,1);
};
if((passive_acrobatic == TRUE) && (passive_acrobatic_on == FALSE))
{
Mdl_ApplyOverlayMds(hero,"Humans_Acrobatic.mds");
passive_acrobatic_on = TRUE;
};
if((constantino_heal_time > 0) && (hero.attribute[ATR_HITPOINTS] >= 1) && !C_BodyStateContains(hero,BS_DEAD))
{
Npc_ChangeAttribute(hero,ATR_HITPOINTS,5);
constantino_heal_time -= 1;
};
if(constantino_heal_time < 0)
{
constantino_heal_time = 0;
};
if((constantino_mana_time > 0) && (hero.attribute[ATR_HITPOINTS] >= 1) && !C_BodyStateContains(hero,BS_DEAD))
{
Npc_ChangeAttribute(hero,ATR_MANA,5);
constantino_mana_time -= 1;
};
if(constantino_mana_time < 0)
{
constantino_mana_time = 0;
};
if((hero.HitChance[NPC_TALENT_1H] >= 60) || (hero.HitChance[NPC_TALENT_2H] >= 60))
{
orblig = 0;
}
else if((hero.HitChance[NPC_TALENT_1H] >= 50) || (hero.HitChance[NPC_TALENT_2H] >= 50))
{
orblig = 10 + Hlp_Random(10);
}
else if((hero.HitChance[NPC_TALENT_1H] >= 40) || (hero.HitChance[NPC_TALENT_2H] >= 40))
{
orblig = 20 + Hlp_Random(20);
}
else if((hero.HitChance[NPC_TALENT_1H] >= 30) || (hero.HitChance[NPC_TALENT_2H] >= 30))
{
orblig = 30 + Hlp_Random(30);
}
else if((hero.HitChance[NPC_TALENT_1H] >= 20) || (hero.HitChance[NPC_TALENT_2H] >= 20))
{
orblig = 40 + Hlp_Random(40);
}
else if((hero.HitChance[NPC_TALENT_1H] >= 10) || (hero.HitChance[NPC_TALENT_2H] >= 10))
{
orblig = 50 + Hlp_Random(50);
}
else if((hero.HitChance[NPC_TALENT_1H] >= 1) || (hero.HitChance[NPC_TALENT_2H] >= 1))
{
orblig = 60 + Hlp_Random(60);
};
if((pcblock == TRUE) && c_bodystatecontainsadd(hero,BS_PARADE))
{
if(orblig >= 1)
{
Npc_ChangeAttribute(hero,ATR_HITPOINTS,-orblig);
PrintScreen(PRINT_BLOCK_CHANCE,-1,52,FONT_SCREENBRIGHTLARGE,1);
AI_PlayAni(hero,"T_STUMBLEB");
};
};
if((Npc_GetDistToWP(Sarah,"TAVERN02") >= 450) && !C_BodyStateContains(Sarah,BS_SIT))
{
Wld_SendUntrigger("EVT_PIANO_01_TRIGGERLIST");
};
if(CurrentLevel == DRAGONISLAND_ZEN)
{
if(Npc_IsInFightMode(FireDragonIsland,FMODE_FIST) && (Npc_GetDistToNpc(FireDragonIsland,other) > FIGHT_DIST_DRAGON_MAGIC))
{
AI_RemoveWeapon(FireDragonIsland);
};
if(Npc_IsInFightMode(UndeadDragon,FMODE_FIST) && (Npc_GetDistToNpc(UndeadDragon,other) > FIGHT_DIST_DRAGON_MAGIC))
{
AI_RemoveWeapon(UndeadDragon);
};
if((FireDragonIsland.attribute[ATR_HITPOINTS] < FireDragonIsland.attribute[ATR_HITPOINTS_MAX]) && (FireDragonIsland.attribute[ATR_HITPOINTS] > (FireDragonIsland.attribute[ATR_HITPOINTS_MAX] / 10)) && !C_BodyStateContains(FireDragonIsland,BS_DEAD))
{
FireDragonIsland.attribute[ATR_HITPOINTS] += 20;
};
if((UndeadDragon.attribute[ATR_HITPOINTS] < UndeadDragon.attribute[ATR_HITPOINTS_MAX]) && (UndeadDragon.attribute[ATR_HITPOINTS] > (UndeadDragon.attribute[ATR_HITPOINTS_MAX] / 10)) && !C_BodyStateContains(UndeadDragon,BS_DEAD))
{
UndeadDragon.attribute[ATR_HITPOINTS] += 20;
};
};
if(CurrentLevel == OldWorld_Zen)
{
if(Npc_IsInFightMode(FireDragon,FMODE_FIST) && (Npc_GetDistToNpc(FireDragon,other) > FIGHT_DIST_DRAGON_MAGIC))
{
AI_RemoveWeapon(FireDragon);
};
if(Npc_IsInFightMode(IceDragon,FMODE_FIST) && (Npc_GetDistToNpc(IceDragon,other) > FIGHT_DIST_DRAGON_MAGIC))
{
AI_RemoveWeapon(IceDragon);
};
if(Npc_IsInFightMode(RockDragon,FMODE_FIST) && (Npc_GetDistToNpc(RockDragon,other) > FIGHT_DIST_DRAGON_MAGIC))
{
AI_RemoveWeapon(RockDragon);
};
if(Npc_IsInFightMode(SwampDragon,FMODE_FIST) && (Npc_GetDistToNpc(SwampDragon,other) > FIGHT_DIST_DRAGON_MAGIC))
{
AI_RemoveWeapon(SwampDragon);
};
if((FireDragon.attribute[ATR_HITPOINTS] < FireDragon.attribute[ATR_HITPOINTS_MAX]) && (FireDragon.attribute[ATR_HITPOINTS] > (FireDragon.attribute[ATR_HITPOINTS_MAX] / 10)) && !C_BodyStateContains(FireDragon,BS_DEAD))
{
FireDragon.attribute[ATR_HITPOINTS] += 20;
};
if((IceDragon.attribute[ATR_HITPOINTS] < IceDragon.attribute[ATR_HITPOINTS_MAX]) && (IceDragon.attribute[ATR_HITPOINTS] > (IceDragon.attribute[ATR_HITPOINTS_MAX] / 10)) && !C_BodyStateContains(IceDragon,BS_DEAD))
{
IceDragon.attribute[ATR_HITPOINTS] += 20;
};
if((RockDragon.attribute[ATR_HITPOINTS] < RockDragon.attribute[ATR_HITPOINTS_MAX]) && (RockDragon.attribute[ATR_HITPOINTS] > (RockDragon.attribute[ATR_HITPOINTS_MAX] / 10)) && !C_BodyStateContains(RockDragon,BS_DEAD))
{
RockDragon.attribute[ATR_HITPOINTS] += 20;
};
if((SwampDragon.attribute[ATR_HITPOINTS] < SwampDragon.attribute[ATR_HITPOINTS_MAX]) && (SwampDragon.attribute[ATR_HITPOINTS] > (SwampDragon.attribute[ATR_HITPOINTS_MAX] / 10)) && !C_BodyStateContains(SwampDragon,BS_DEAD))
{
SwampDragon.attribute[ATR_HITPOINTS] += 20;
};
};
if(drg_sd == TRUE)
{
drg_sd = FALSE;
};
if((Npc_GetDistToNpc(amort,hero) < 5000) && (CurrentLevel == OldWorld_Zen) && (amortbattle == FALSE))
{
amort.attribute[ATR_HITPOINTS] = amort.attribute[ATR_HITPOINTS_MAX];
amortbattle_onetime = FALSE;
};
if((CurrentLevel == NEWWORLD_ZEN) && (trollblack.attribute[ATR_HITPOINTS] < trollblack.attribute[ATR_HITPOINTS_MAX]) && (trollblack.attribute[ATR_HITPOINTS] > (trollblack.attribute[ATR_HITPOINTS_MAX] / 15)) && !C_BodyStateContains(trollblack,BS_DEAD))
{
trollblack.attribute[ATR_HITPOINTS] += 10;
};
if(CurrentLevel == ADDONWORLD_ZEN)
{
if(MIS_Addon_Greg_ClearCanyon == LOG_Running)
{
if(((Npc_GetDistToWP(AlligatorJack,"ADW_ENTRANCE_2_PIRATECAMP_13") < 3000) || (Npc_GetDistToWP(AlligatorJack,"ADW_CANYON_PATH_TO_LIBRARY_19") < 3000) || (Npc_GetDistToWP(AlligatorJack,"ADW_CANYON_PATH_TO_MINE2_13") < 3000) || (Npc_GetDistToWP(AlligatorJack,"ADW_CANYON_PATH_TO_BANDITS_27") < 3000)) && !Npc_IsInState(AlligatorJack,ZS_Attack))
{
if(C_BodyStateContains(AlligatorJack,BS_RUN))
{
Npc_ClearAIQueue(AlligatorJack);
};
AI_TurnToNPC(AlligatorJack,hero);
B_Say(AlligatorJack,AlligatorJack,"DIA_Addon_AlligatorJack_TheHunt_Enough_12_01");
AlligatorJack.aivar[AIV_PARTYMEMBER] = FALSE;
B_StartOtherRoutine(AlligatorJack,"START");
};
if(((Npc_GetDistToWP(Skip,"ADW_ENTRANCE_2_PIRATECAMP_13") < 3000) || (Npc_GetDistToWP(Skip,"ADW_CANYON_PATH_TO_LIBRARY_19") < 3000) || (Npc_GetDistToWP(Skip,"ADW_CANYON_PATH_TO_MINE2_13") < 3000) || (Npc_GetDistToWP(Skip,"ADW_CANYON_PATH_TO_BANDITS_27") < 3000)) && !Npc_IsInState(Skip,ZS_Attack) && (Skip.aivar[AIV_PARTYMEMBER] == TRUE))
{
if(C_BodyStateContains(Skip,BS_RUN))
{
Npc_ClearAIQueue(Skip);
};
AI_TurnToNPC(Skip,hero);
B_Say(Skip,Skip,"DIA_Addon_Skip_TooFar_08_03");
Skip.aivar[AIV_PARTYMEMBER] = FALSE;
B_StartOtherRoutine(Skip,"START");
};
if(((Npc_GetDistToWP(Matt,"ADW_ENTRANCE_2_PIRATECAMP_13") < 3000) || (Npc_GetDistToWP(Matt,"ADW_CANYON_PATH_TO_LIBRARY_19") < 3000) || (Npc_GetDistToWP(Matt,"ADW_CANYON_PATH_TO_MINE2_13") < 3000) || (Npc_GetDistToWP(Matt,"ADW_CANYON_PATH_TO_BANDITS_27") < 3000)) && !Npc_IsInState(Matt,ZS_Attack) && (Matt.aivar[AIV_PARTYMEMBER] == TRUE))
{
if(C_BodyStateContains(Matt,BS_RUN))
{
Npc_ClearAIQueue(Matt);
};
AI_TurnToNPC(Matt,hero);
B_Say(Matt,Matt,"DIA_Addon_Matt_TooFar_10_02");
Matt.aivar[AIV_PARTYMEMBER] = FALSE;
B_StartOtherRoutine(Matt,"START");
};
if(((Npc_GetDistToWP(Brandon,"ADW_ENTRANCE_2_PIRATECAMP_13") < 3000) || (Npc_GetDistToWP(Brandon,"ADW_CANYON_PATH_TO_LIBRARY_19") < 3000) || (Npc_GetDistToWP(Brandon,"ADW_CANYON_PATH_TO_MINE2_13") < 3000) || (Npc_GetDistToWP(Brandon,"ADW_CANYON_PATH_TO_BANDITS_27") < 3000)) && !Npc_IsInState(Brandon,ZS_Attack) && (Brandon.aivar[AIV_PARTYMEMBER] == TRUE))
{
if(C_BodyStateContains(Brandon,BS_RUN))
{
Npc_ClearAIQueue(Brandon);
};
AI_TurnToNPC(Brandon,hero);
B_Say(Brandon,Brandon,"DIA_Addon_Brandon_TooFar_04_02");
Brandon.aivar[AIV_PARTYMEMBER] = FALSE;
B_StartOtherRoutine(Brandon,"START");
};
if(((Npc_GetDistToWP(RoastPirate,"ADW_ENTRANCE_2_PIRATECAMP_13") < 3000) || (Npc_GetDistToWP(RoastPirate,"ADW_CANYON_PATH_TO_LIBRARY_19") < 3000) || (Npc_GetDistToWP(RoastPirate,"ADW_CANYON_PATH_TO_MINE2_13") < 3000) || (Npc_GetDistToWP(RoastPirate,"ADW_CANYON_PATH_TO_BANDITS_27") < 3000)) && !Npc_IsInState(RoastPirate,ZS_Attack) && (RoastPirate.aivar[AIV_PARTYMEMBER] == TRUE))
{
if(C_BodyStateContains(RoastPirate,BS_RUN))
{
Npc_ClearAIQueue(RoastPirate);
};
AI_TurnToNPC(RoastPirate,hero);
B_Say(RoastPirate,RoastPirate,"$RUNAWAY");
RoastPirate.aivar[AIV_PARTYMEMBER] = FALSE;
B_StartOtherRoutine(RoastPirate,"START");
};
if(((Npc_GetDistToWP(BenchPirate,"ADW_ENTRANCE_2_PIRATECAMP_13") < 3000) || (Npc_GetDistToWP(BenchPirate,"ADW_CANYON_PATH_TO_LIBRARY_19") < 3000) || (Npc_GetDistToWP(BenchPirate,"ADW_CANYON_PATH_TO_MINE2_13") < 3000) || (Npc_GetDistToWP(BenchPirate,"ADW_CANYON_PATH_TO_BANDITS_27") < 3000)) && !Npc_IsInState(BenchPirate,ZS_Attack) && (BenchPirate.aivar[AIV_PARTYMEMBER] == TRUE))
{
if(C_BodyStateContains(BenchPirate,BS_RUN))
{
Npc_ClearAIQueue(BenchPirate);
};
AI_TurnToNPC(BenchPirate,hero);
B_Say(BenchPirate,BenchPirate,"$RUNAWAY");
BenchPirate.aivar[AIV_PARTYMEMBER] = FALSE;
B_StartOtherRoutine(BenchPirate,"START");
};
};
};
if((hero.flags == NPC_FLAG_IMMORTAL) && !C_BodyStateContains(hero,BS_PARADE))
{
hero.flags = 0;
sndlock = FALSE;
};
if(load_check > 0)
{
load_check -= 1;
};
Npc_SetTalentSkill(hero,NPC_TALENT_SWORDDEF,stat_sworddef);
if(stat_sworddef < 0)
{
stat_sworddef = 0;
};
if(dead_time >= 14)
{
dead_time = 0;
if(C_BodyStateContains(hero,BS_DEAD))
{
Snd_Play("MYSTERY_03");
};
};
if(C_BodyStateContains(hero,BS_DEAD))
{
if(dead_check == FALSE)
{
dead_check = TRUE;
};
dead_time += 1;
PrintScreen("You are dead.",-1,20,FONT_SCREENBRIGHTLARGE,2);
};
if(!C_BodyStateContains(hero,BS_DEAD) && (dead_check == TRUE))
{
dead_time = 0;
dead_check = FALSE;
Wld_StopEffect("PCDEAD_FX");
};
if((start_check == TRUE) && (hero.level == 0))
{
if(hero.attribute[ATR_HITPOINTS_MAX] != 0)
{
AI_Wait(hero,2);
Wld_PlayEffect("START_BLEND",hero,hero,0,0,0,FALSE);
Wld_PlayEffect("spellFX_LIGHTSTAR_RED",hero,hero,0,0,0,FALSE);
Snd_Play("AMBIENTTONE_01_HIGH");
start_check = FALSE;
Wld_SendTrigger("XARSTAR");
};
};
Wld_SendTrigger("UPD_DEF_ADDON");
};
func void evt_updhtf_addon_func()
{
var int dominicbless;
if((Npc_HasEquippedArmor(Sarah) == FALSE) && (Npc_GetDistToWP(Sarah,"NW_NM_02_ADD_07") >= 350))
{
AI_EquipArmor(Sarah,itar_w2_ves);
};
if((Npc_HasEquippedArmor(sonja) == FALSE) && (Npc_GetDistToWP(sonja,"NW_CITY_HABOUR_PUFF_SONJA") >= 350))
{
AI_EquipArmor(sonja,itar_baron_babe_addon);
};
if((Npc_HasEquippedArmor(lucia) == FALSE) && (Npc_GetDistToWP(lucia,"BL_INN_UPSIDE_BATH_01") >= 350))
{
AI_EquipArmor(lucia,itar_lucia_addon);
};
if(dominiccurse == TRUE)
{
dominicbless = Hlp_Random(15);
if((hero.guild == GIL_PAL) && (dominicfree == TRUE))
{
if((hero.attribute[ATR_HITPOINTS] >= 1) && !C_BodyStateContains(hero,BS_DEAD))
{
Npc_ChangeAttribute(hero,ATR_HITPOINTS,dominicbless);
};
}
else
{
Snd_Play("EVIL_SPELL_01");
if(hero.attribute[ATR_HITPOINTS] > 0)
{
Npc_ChangeAttribute(hero,ATR_HITPOINTS,-dominicbless);
};
};
};
if(addon_pring == TRUE)
{
if(Npc_HasItems(hero,ItMi_PortalRing_Addon) >= 1)
{
Npc_RemoveInvItems(hero,ItMi_PortalRing_Addon,1);
addon_pring = FALSE;
};
};
if(addon_tmplopn == TRUE)
{
if(Npc_HasItems(hero,ItMi_TempelTorKey) >= 1)
{
Npc_RemoveInvItems(hero,ItMi_TempelTorKey,1);
addon_tmplopn = FALSE;
};
};
if(drg_lf == TRUE)
{
drg_lf = FALSE;
};
Wld_SendTrigger("UPD_HTF_ADDON");
};
|
D
|
/**
* Lazily evaluate static conditions for `static if`, `static assert` and template constraints.
*
* Copyright: Copyright (C) 1999-2022 by The D Language Foundation, All Rights Reserved
* Authors: $(LINK2 https://www.digitalmars.com, Walter Bright)
* License: $(LINK2 https://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/staticcond.d, _staticcond.d)
* Documentation: https://dlang.org/phobos/dmd_staticcond.html
* Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/staticcond.d
*/
module dmd.staticcond;
import dmd.arraytypes;
import dmd.dmodule;
import dmd.dscope;
import dmd.dsymbol;
import dmd.errors;
import dmd.expression;
import dmd.expressionsem;
import dmd.globals;
import dmd.identifier;
import dmd.mtype;
import dmd.root.array;
import dmd.common.outbuffer;
import dmd.tokens;
/********************************************
* Semantically analyze and then evaluate a static condition at compile time.
* This is special because short circuit operators &&, || and ?: at the top
* level are not semantically analyzed if the result of the expression is not
* necessary.
* Params:
* sc = instantiating scope
* original = original expression, for error messages
* e = resulting expression
* errors = set to `true` if errors occurred
* negatives = array to store negative clauses
* Returns:
* true if evaluates to true
*/
bool evalStaticCondition(Scope* sc, Expression original, Expression e, out bool errors, Expressions* negatives = null)
{
if (negatives)
negatives.setDim(0);
bool impl(Expression e)
{
if (e.isNotExp())
{
NotExp ne = cast(NotExp)e;
return !impl(ne.e1);
}
if (e.op == EXP.andAnd || e.op == EXP.orOr)
{
LogicalExp aae = cast(LogicalExp)e;
bool result = impl(aae.e1);
if (errors)
return false;
if (e.op == EXP.andAnd)
{
if (!result)
return false;
}
else
{
if (result)
return true;
}
result = impl(aae.e2);
return !errors && result;
}
if (e.op == EXP.question)
{
CondExp ce = cast(CondExp)e;
bool result = impl(ce.econd);
if (errors)
return false;
Expression leg = result ? ce.e1 : ce.e2;
result = impl(leg);
return !errors && result;
}
Expression before = e;
const uint nerrors = global.errors;
sc = sc.startCTFE();
sc.flags |= SCOPE.condition;
e = e.expressionSemantic(sc);
e = resolveProperties(sc, e);
e = e.toBoolean(sc);
sc = sc.endCTFE();
e = e.optimize(WANTvalue);
if (nerrors != global.errors ||
e.isErrorExp() ||
e.type.toBasetype() == Type.terror)
{
errors = true;
return false;
}
e = e.ctfeInterpret();
const opt = e.toBool();
if (opt.isEmpty())
{
e.error("expression `%s` is not constant", e.toChars());
errors = true;
return false;
}
if (negatives && !opt.get())
negatives.push(before);
return opt.get();
}
return impl(e);
}
/********************************************
* Format a static condition as a tree-like structure, marking failed and
* bypassed expressions.
* Params:
* original = original expression
* instantiated = instantiated expression
* negatives = array with negative clauses from `instantiated` expression
* full = controls whether it shows the full output or only failed parts
* itemCount = returns the number of written clauses
* Returns:
* formatted string or `null` if the expressions were `null`, or if the
* instantiated expression is not based on the original one
*/
const(char)* visualizeStaticCondition(Expression original, Expression instantiated,
const Expression[] negatives, bool full, ref uint itemCount)
{
if (!original || !instantiated || original.loc !is instantiated.loc)
return null;
OutBuffer buf;
if (full)
itemCount = visualizeFull(original, instantiated, negatives, buf);
else
itemCount = visualizeShort(original, instantiated, negatives, buf);
return buf.extractChars();
}
private uint visualizeFull(Expression original, Expression instantiated,
const Expression[] negatives, ref OutBuffer buf)
{
// tree-like structure; traverse and format simultaneously
uint count;
uint indent;
static void printOr(uint indent, ref OutBuffer buf)
{
buf.reserve(indent * 4 + 8);
foreach (i; 0 .. indent)
buf.writestring(" ");
buf.writestring(" or:\n");
}
// returns true if satisfied
bool impl(Expression orig, Expression e, bool inverted, bool orOperand, bool unreached)
{
EXP op = orig.op;
// lower all 'not' to the bottom
// !(A && B) -> !A || !B
// !(A || B) -> !A && !B
if (inverted)
{
if (op == EXP.andAnd)
op = EXP.orOr;
else if (op == EXP.orOr)
op = EXP.andAnd;
}
if (op == EXP.not)
{
NotExp no = cast(NotExp)orig;
NotExp ne = cast(NotExp)e;
assert(ne);
return impl(no.e1, ne.e1, !inverted, orOperand, unreached);
}
else if (op == EXP.andAnd)
{
BinExp bo = cast(BinExp)orig;
BinExp be = cast(BinExp)e;
assert(be);
const r1 = impl(bo.e1, be.e1, inverted, false, unreached);
const r2 = impl(bo.e2, be.e2, inverted, false, unreached || !r1);
return r1 && r2;
}
else if (op == EXP.orOr)
{
if (!orOperand) // do not indent A || B || C twice
indent++;
BinExp bo = cast(BinExp)orig;
BinExp be = cast(BinExp)e;
assert(be);
const r1 = impl(bo.e1, be.e1, inverted, true, unreached);
printOr(indent, buf);
const r2 = impl(bo.e2, be.e2, inverted, true, unreached);
if (!orOperand)
indent--;
return r1 || r2;
}
else if (op == EXP.question)
{
CondExp co = cast(CondExp)orig;
CondExp ce = cast(CondExp)e;
assert(ce);
if (!inverted)
{
// rewrite (A ? B : C) as (A && B || !A && C)
if (!orOperand)
indent++;
const r1 = impl(co.econd, ce.econd, inverted, false, unreached);
const r2 = impl(co.e1, ce.e1, inverted, false, unreached || !r1);
printOr(indent, buf);
const r3 = impl(co.econd, ce.econd, !inverted, false, unreached);
const r4 = impl(co.e2, ce.e2, inverted, false, unreached || !r3);
if (!orOperand)
indent--;
return r1 && r2 || r3 && r4;
}
else
{
// rewrite !(A ? B : C) as (!A || !B) && (A || !C)
if (!orOperand)
indent++;
const r1 = impl(co.econd, ce.econd, inverted, false, unreached);
printOr(indent, buf);
const r2 = impl(co.e1, ce.e1, inverted, false, unreached);
const r12 = r1 || r2;
const r3 = impl(co.econd, ce.econd, !inverted, false, unreached || !r12);
printOr(indent, buf);
const r4 = impl(co.e2, ce.e2, inverted, false, unreached || !r12);
if (!orOperand)
indent--;
return (r1 || r2) && (r3 || r4);
}
}
else // 'primitive' expression
{
buf.reserve(indent * 4 + 4);
foreach (i; 0 .. indent)
buf.writestring(" ");
// find its value; it may be not computed, if there was a short circuit,
// but we handle this case with `unreached` flag
bool value = true;
if (!unreached)
{
foreach (fe; negatives)
{
if (fe is e)
{
value = false;
break;
}
}
}
// write the marks first
const satisfied = inverted ? !value : value;
if (!satisfied && !unreached)
buf.writestring(" > ");
else if (unreached)
buf.writestring(" - ");
else
buf.writestring(" ");
// then the expression itself
if (inverted)
buf.writeByte('!');
buf.writestring(orig.toChars);
buf.writenl();
count++;
return satisfied;
}
}
impl(original, instantiated, false, true, false);
return count;
}
private uint visualizeShort(Expression original, Expression instantiated,
const Expression[] negatives, ref OutBuffer buf)
{
// simple list; somewhat similar to long version, so no comments
// one difference is that it needs to hold items to display in a stack
static struct Item
{
Expression orig;
bool inverted;
}
Array!Item stack;
bool impl(Expression orig, Expression e, bool inverted)
{
EXP op = orig.op;
if (inverted)
{
if (op == EXP.andAnd)
op = EXP.orOr;
else if (op == EXP.orOr)
op = EXP.andAnd;
}
if (op == EXP.not)
{
NotExp no = cast(NotExp)orig;
NotExp ne = cast(NotExp)e;
assert(ne);
return impl(no.e1, ne.e1, !inverted);
}
else if (op == EXP.andAnd)
{
BinExp bo = cast(BinExp)orig;
BinExp be = cast(BinExp)e;
assert(be);
bool r = impl(bo.e1, be.e1, inverted);
r = r && impl(bo.e2, be.e2, inverted);
return r;
}
else if (op == EXP.orOr)
{
BinExp bo = cast(BinExp)orig;
BinExp be = cast(BinExp)e;
assert(be);
const lbefore = stack.length;
bool r = impl(bo.e1, be.e1, inverted);
r = r || impl(bo.e2, be.e2, inverted);
if (r)
stack.setDim(lbefore); // purge added positive items
return r;
}
else if (op == EXP.question)
{
CondExp co = cast(CondExp)orig;
CondExp ce = cast(CondExp)e;
assert(ce);
if (!inverted)
{
const lbefore = stack.length;
bool a = impl(co.econd, ce.econd, inverted);
a = a && impl(co.e1, ce.e1, inverted);
bool b;
if (!a)
{
b = impl(co.econd, ce.econd, !inverted);
b = b && impl(co.e2, ce.e2, inverted);
}
const r = a || b;
if (r)
stack.setDim(lbefore);
return r;
}
else
{
bool a;
{
const lbefore = stack.length;
a = impl(co.econd, ce.econd, inverted);
a = a || impl(co.e1, ce.e1, inverted);
if (a)
stack.setDim(lbefore);
}
bool b;
if (a)
{
const lbefore = stack.length;
b = impl(co.econd, ce.econd, !inverted);
b = b || impl(co.e2, ce.e2, inverted);
if (b)
stack.setDim(lbefore);
}
return a && b;
}
}
else // 'primitive' expression
{
bool value = true;
foreach (fe; negatives)
{
if (fe is e)
{
value = false;
break;
}
}
const satisfied = inverted ? !value : value;
if (!satisfied)
stack.push(Item(orig, inverted));
return satisfied;
}
}
impl(original, instantiated, false);
foreach (i; 0 .. stack.length)
{
// write the expression only
buf.writestring(" ");
if (stack[i].inverted)
buf.writeByte('!');
buf.writestring(stack[i].orig.toChars);
// here with no trailing newline
if (i + 1 < stack.length)
buf.writenl();
}
return cast(uint)stack.length;
}
|
D
|
/Users/gaishimin/Documents/GitHub/Eureka/.build/x86_64-apple-macosx/debug/Eureka.build/Rows/Common/FieldRow.swift.o : /Users/gaishimin/Documents/GitHub/Eureka/Source/Validations/RuleURL.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Validations/RuleRequired.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Validations/RuleRange.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/CellType.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/RowControllerType.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/RowType.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/SelectableRowType.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/InlineRowType.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/PresenterRowType.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/Core.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Validations/RuleClosure.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Validations/RuleLength.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Validations/RuleEmail.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/Cell.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/Form.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/Validation.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/Section.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/SelectableSection.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Validations/RuleRegExp.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Controllers/SelectorAlertController.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Controllers/SelectorViewController.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Controllers/MultipleSelectorViewController.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Common/DecimalFormatter.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Common/Protocols.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/RowProtocols.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/SwipeActions.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/Helpers.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/Operators.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/ButtonRowWithPresent.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/HeaderFooterView.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/NavigationAccessoryView.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/Row.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/TextAreaRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/SegmentedRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Common/FieldRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Common/DateInlineFieldRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Common/DateFieldRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/DateInlineRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/PickerInlineRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/BaseRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/DateRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/SwitchRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/PushRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/CheckRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/SelectableRows/ListCheckRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/LabelRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/ButtonRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Validations/RuleEqualsToRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/SliderRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/PickerRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/DoublePickerRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/TriplePickerRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/DatePickerRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/StepperRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Common/SelectorRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/MultipleSelectorRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Common/GenericMultipleSelectorRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/PopoverSelectorRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/FieldsRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Common/OptionsRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Common/AlertOptionsRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/ActionSheetRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/AlertRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/PickerInputRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/DoublePickerInputRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/TriplePickerInputRow.swift /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/XPC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/IOKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_timeval32.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/hashtable2.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Math64.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_timeval64.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ucontext64.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet6/in6.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/AuthorizationDB.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/usb/USB.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFUUID.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUUID.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QD.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOBSD.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSXMLDTD.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/AIFF.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecACL.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ColorSync.framework/Headers/ColorSyncCMM.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPlugInCOM.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/pwr_mgt/IOPM.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/Headers/ImageIO.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATS.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/alloca.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOBDMedia.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOCDMedia.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IODVDMedia.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOMedia.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/net/if_media.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Headers/MDSchema.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/mds_schema.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/fasttrap_isa.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/fasttrap_isa.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/sdt_isa.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/sdt_isa.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFData.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSData.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IONetworkData.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/data.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Headers/Metadata.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSMetadata.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageMetadata.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecProtocolMetadata.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/quota.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTTextTab.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/stab.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/unpcb.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netdb.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/timeb.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/sbp2/IOFireWireSBP2Lib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/usb/IOUSBLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/avc/IOFireWireAVCLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hidsystem/IOHIDLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/pwr_mgt/IOPMLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/ata/ATASMARTLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/firewire/IOFireWireLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IONetworkLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/scsi/SCSITaskLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/stream/IOStreamLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/audio/IOAudioLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/graphics/IOGraphicsLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdlib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_stdlib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/ranlib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/glob.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/usb/USBSpec.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_timespec.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/OSAtomic.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/objc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ColorSync.framework/Headers/ColorSync.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/objc-sync.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/sync.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_sync.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_o_sync.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_o_dsync.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/reloc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/malloc/malloc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/malloc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/malloc/_malloc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/proc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ipc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/rpc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/rpc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/rpc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/xpc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/filedesc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/exc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSThread.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread/pthread.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/objc-load.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLDownload.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecureDownload.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread/sched.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hidsystem/IOHIDShared.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IODataQueueShared.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/stream/IOStreamShared.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/graphics/IOFramebufferShared.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ucred.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/OSAtomicDeprecated.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/ColorSyncDeprecated.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/OSSpinLockDeprecated.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSOpenDeprecated.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSInfoDeprecated.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_ctermid.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/uuid/uuid.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/gethostuuid.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/dyld.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/vcmd.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScriptCommand.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/kmod.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Pasteboard.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/bsm/audit_record.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/unistd.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/unistd.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pwd.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/i2c/IOI2CInterface.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IONetworkInterface.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/graphics/IOGraphicsInterface.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IOEthernetInterface.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_interface.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLProtectionSpace.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/trace.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDDevice.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ColorSync.framework/Headers/ColorSyncDevice.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOBDBlockStorageDevice.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOCDBlockStorageDevice.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IODVDBlockStorageDevice.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOBlockStorageDevice.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/scsi/IOSCSIMultimediaCommandsDevice.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSOrderedCollectionDifference.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/once.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageSource.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGEventSource.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/source.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/resource.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayFade.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecCode.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecStaticCode.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MixedMode.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSXMLDTDNode.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFXMLNode.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSXMLNode.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/ATSUnicode.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATSUI.framework/Headers/ATSUnicode.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFTree.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/AVLTree.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/rbtree.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFPage.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGImage.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOStorage.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSHTTPCookieStorage.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/ThreadLocalStorage.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLCredentialStorage.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/IconStorage.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOMessage.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFHTTPMessage.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPortMessage.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/message.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/message.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSRange.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSOrderedCollectionChange.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLAuthenticationChallenge.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLCache.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCache.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSHTTPCookie.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFLocale.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSLocale.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/locale.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_locale.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_xlocale.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSHashTable.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSMapTable.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFOperatorTable.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_purgable.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_posix_vdisable.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/hashtable.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFileHandle.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBundle.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOCFBundle.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSBundle.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/file.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/clonefile.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ColorSync.framework/Headers/ColorSyncProfile.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/profile.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/profile.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/copyfile.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmapple.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTParagraphStyle.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/utsname.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFrame.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOAppleLabelScheme.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOCDPartitionScheme.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOGUIDPartitionScheme.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOPartitionScheme.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOApplePartitionScheme.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOFDiskPartitionScheme.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOFilterScheme.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/time.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/time.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/time.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_time.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_time.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/NSObjCRuntime.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/objc-runtime.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/runtime.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/utime.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTLine.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/graphics/IOGraphicsEngine.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_os_inline.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSQuarantine.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFTimeZone.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSTimeZone.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/HIShape.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/pipe.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/UTType.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ctype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_ctype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_ctype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/wctype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_wctype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_wctype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/__wctype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/__wctype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/runetype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/emmtype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmtype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/StringCompare.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Headers/PMCore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/KeychainCore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/BackupCore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/IconsCore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Headers/PrintCore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/SecurityCore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/semaphore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/semaphore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/semaphore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/semaphore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUbiquitousKeyValueStore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSMethodSignature.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDBase.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ImageIO.framework/Headers/ImageIOBase.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/CSIdentityBase.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/base.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/base.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/os/base.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/oidsbase.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/readpassphrase.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLResponse.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDate.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDate.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCalendarDate.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPredicate.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCompoundPredicate.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSComparisonPredicate.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecCertificate.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTRunDelegate.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/thread_state.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/thread_state.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDLibObsolete.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/CipherSuite.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDirectPalette.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/net/route.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDQueue.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/OSAtomicQueue.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSNotificationQueue.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/queue.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/queue.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDValue.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSValue.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXValue.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/time_value.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOCFSerialize.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOCFUnserialize.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_page_size.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fd_setsize.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fd_def.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/SwiftStddef.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/net/if.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/conf.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_offsetof.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/buf.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/msgbuf.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/mbuf.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/sbuf.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBag.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/fp_reg.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/InternetConfig.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmconfig.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mig.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/oidsalg.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGShading.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSKeyValueCoding.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScriptKeyValueCoding.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/compact_unwind_encoding.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Debugging.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSExtensionRequestHandling.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATSUI.framework/Headers/ATSUnicodeFlattening.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/CodeSigning.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFString.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAttributedString.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAttributedString.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXTextAttributedString.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_string.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/secure/_string.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_symbol_aliasing.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjectScripting.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/AssertionReporting.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/NumberFormatting.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSKeyValueObserving.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/syslog.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/syslog.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/msg.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/fmtmsg.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDebug.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/OSDebug.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/debug.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach_debug/mach_debug.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEMach.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/launch.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/firewire/IOFireWireLibIsoch.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/arch.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecKeychainSearch.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecPolicySearch.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecIdentitySearch.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/search.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/fnmatch.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/dispatch.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/thread_switch.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/FixMath.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSIndexPath.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/KeyPath.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/math.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/tgmath.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/kauth.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmaci.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmcli.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmdli.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/objc-api.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmapi.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmkrapi.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmcspi.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/emmspi.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmspi.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmkrspi.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmtpi.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/port_obj.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IONetworkStack.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_sigaltstack.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSLock.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOSharedLock.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDistributedLock.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/os/lock.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/lock.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Block.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/block.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/clock.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/scsi/SCSITask.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSTask.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecTask.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserScriptTask.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/task.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_task.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/DiskArbitration.framework/Headers/DADisk.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/disk.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLCredential.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecSharedCredential.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDecimal.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/signal.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/signal.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/signal.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/signal.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/AvailabilityInternal.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplayMetal.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_timeval.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDateInterval.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/acl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/net/if_dl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Headers/MDLabel.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEDataModel.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/dyld_kernel.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGWindowLevel.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/util.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/syscall.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ncurses_dll.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/poll.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/poll.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSNull.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_null.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/Protocol.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLProtocol.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/SwiftStdbool.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/OSCacheControl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecAccessControl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/kern_control.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread/pthread_impl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/oidscrl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/unctrl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/eisl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ioctl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/sysctl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/fcntl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/fcntl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFStream.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFFTPStream.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFHTTPStream.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSStream.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFSocketStream.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContentStream.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayStream.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/param.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/param.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/param.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/_param.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_param.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_param.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/vm_param.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/vm_param.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_param.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/vmparam.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/vmparam.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ndbm.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/LowMem.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/sem.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/posix_sem.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Headers/MDItem.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecItem.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecKeychainItem.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSExtensionItem.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_nl_item.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/System.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/shm.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/posix_shm.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ioccom.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ttycom.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/Random.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecRandom.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ColorSync.framework/Headers/ColorSyncTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecReadTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecTransformReadTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecDecodeTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecEncodeTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGAffineTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAffineTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecCustomTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecEncryptTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecDigestTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecSignVerifyTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/bsm/libbsm.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssm.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IONetworkMedium.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/vm.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_vm.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPlugIn.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOCFPlugIn.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/ps/IOUPSPlugIn.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDDevicePlugIn.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/boolean.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/boolean.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/boolean.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Endian.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/endian.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/endian.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_endian.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/mman.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dlfcn.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libgen.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSOpen.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet/in.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/domain.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/sys_domain.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/TextEncodingPlugin.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/AuthorizationPlugin.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/shared_region.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_region.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFileVersion.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/DiskArbitration.framework/Headers/DASession.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGSession.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLSession.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/AuthSession.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSExpression.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSRegularExpression.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSNotification.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFUserNotification.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecTrustedApplication.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFHTTPAuthentication.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSInvocation.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/WSMethodInvocation.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageDestination.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSOperation.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGRemoteOperation.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/DiskArbitration.framework/Headers/DiskArbitration.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayConfiguration.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTRubyAnnotation.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSJSONSerialization.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DriverSynchronization.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Authorization.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDTransaction.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFontCollection.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSXPCConnection.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLConnection.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSConnection.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/connection.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFunction.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSException.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/objc-exception.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/exception.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/exception.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/exception.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScriptCommandDescription.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSClassDescription.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScriptClassDescription.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/gmon.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/CSCommon.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/TextCommon.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/firewire/IOFireWireFamilyCommon.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/secure/_common.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPattern.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOReturn.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/OSReturn.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/kern_return.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/kern_return.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/kern_return.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/un.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTRun.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread/spawn.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/spawn.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/spawn.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSInfo.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MultiprocessingInfo.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTGlyphInfo.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorConversionInfo.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSProcessInfo.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/proc_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach_debug/ipc_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/thread_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach_debug/page_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach_debug/zone_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach_debug/hash_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/task_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach_debug/vm_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach_debug/lockgroup_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/processor_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/processor_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/processor_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/host_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/langinfo.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_langinfo.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/io.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/aio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/aio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/stdio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_stdio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/secure/_stdio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/sockio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/filio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/cpio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/uio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/errno.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/errno.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fd_zero.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/objc-auto.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBinaryHeap.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_map.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hidsystem/ev_keymap.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/bootstrap.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/swap.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet/tcp.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/fp.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/setjmp.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/utmp.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFRunLoop.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSRunLoop.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/workloop.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/grp.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/group.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/wordexp.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCalendar.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCalendar.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_char.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/wchar.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_wchar.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/tar.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/net/if_var.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/resourcevar.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/signalvar.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/socketvar.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/ndr.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNumber.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDecimalNumber.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/loader.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataProvider.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSItemProvider.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Finder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecAsn1Coder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCoder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPortCoder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/CMSDecoder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/CMSEncoder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFByteOrder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSByteOrder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/i386/OSByteOrder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/OSByteOrder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/i386/_OSByteOrder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/_OSByteOrder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/byte_order.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/architecture/byte_order.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDManager.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUndoManager.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAppleEventManager.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFontManager.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/kext/KextManager.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSLinguisticTagger.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSProtocolChecker.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/WSProtocolHandler.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScriptCoercionHandler.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IONetworkController.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IOEthernetController.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSBackgroundActivityScheduler.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Timer.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSTimer.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSValueTransformer.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataConsumer.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFScanner.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScanner.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFileWrapper.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFXMLParser.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSXMLParser.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/user.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hidsystem/IOHIDParameter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNotificationCenter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDistributedNotificationCenter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFilePresenter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/DiskArbitration.framework/Headers/DADissenter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPSConverter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/UnicodeConverter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/TextEncodingConverter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Headers/MDImporter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSRelativeDateTimeFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDateFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSLengthFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDateIntervalFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNumberFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSNumberFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSMassFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPersonNameComponentsFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDateComponentsFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSMeasurementFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSByteCountFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSListFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSEnergyFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFramesetter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTTypesetter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSArchiver.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSKeyedArchiver.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOBlockStorageDriver.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hidsystem/event_status_driver.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPortNameServer.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSSpellServer.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitServer.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/Power.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGLayer.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStringTokenizer.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/dir.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fd_clr.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_behavior.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColor.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFError.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGError.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLError.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSError.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXError.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/error.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_error.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/processor.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFileCoordinator.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURLEnumerator.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBitVector.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSGarbageCollector.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFFileDescriptor.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFontDescriptor.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSSortDescriptor.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/err.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmerr.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/hfs/hfs_unistr.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/attr.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/oidsattr.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/xattr.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecCertificateOIDs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/RuntimeStubs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOStorageCardCharacteristics.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOStorageDeviceCharacteristics.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOFireWireStorageCharacteristics.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOStorageProtocolCharacteristics.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOStorageControllerCharacteristics.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_statistics.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetDiagnostics.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/PLStringFuncs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Threads.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/oids.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/mds.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScriptStandardSuiteCommands.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/HIServices.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/OSServices.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LaunchServices.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/TranslationServices.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DriverServices.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetServices.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSNetServices.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/DictionaryServices.framework/Headers/DictionaryServices.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPreferences.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/ps/IOPowerSources.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Resources.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/IntlResources.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/scsi/SCSICommandOperationCodes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/dyld_images.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFUtilities.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/UnicodeUtilities.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPathUtilities.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDProperties.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageProperties.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MacLocales.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDUsageTables.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/times.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/HFSVolumes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSDefines.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTDefines.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/ata/IOATAStorageDefines.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/audio/IOAudioDefines.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecAsn1Types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOBDTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOCDTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hidsystem/IOHIDTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IODVDTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Headers/PMPrintAETypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/OSTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/WSTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/SFNTTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/SFNTTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/MacTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/graphics/IOGraphicsInterfaceTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDDeviceTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATSUI.framework/Headers/ATSUnicodeTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSHFSFileTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/UTCoreTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/graphics/IOAccelTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecProtocolTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEUserTermTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/audio/IOAudioTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/graphics/IOGraphicsTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGEventTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSLayoutTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/SFNTLayoutTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/SFNTLayoutTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/std_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/device/device_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/net/if_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach_debug/mach_debug_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/clock_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/kernel_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/nl_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/vm_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/vm_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/exception_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_voucher_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/memory_object_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/inttypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_inttypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Aliases.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/curses.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Processes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecAsn1Templates.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSMetadataAttributes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTStringAttributes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_attributes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/scsi/SCSICmds_REQUEST_SENSE_Defs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/pwr_mgt/IOPMLibDefs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetworkDefs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/x509defs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/statvfs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/AuthorizationTags.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xattr_flags.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/eflags.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/strings.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/secure/_strings.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecTrustSettings.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATSUI.framework/Headers/ATSUnicodeGlyphs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/paths.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread_spis.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/SpeechSynthesis.framework/Headers/SpeechSynthesis.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKAnalysis.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/LangAnalysis.framework/Headers/LanguageAnalysis.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/LangAnalysis.framework/Headers/LangAnalysis.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/TargetConditionals.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/UTCUtils.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/OSUtils.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DateTimeUtils.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/ToolUtils.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/TextUtils.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_syscalls.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSDataShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/LibcShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/UnicodeShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSLocaleShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/RuntimeShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSTimeZoneShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/CFHashingShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSIndexPathShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/FoundationShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/CoreFoundationShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSCalendarShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSCoderShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSFileManagerShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSUndoManagerShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSKeyedArchiverShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSErrorShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/CFCharacterSetShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSCharacterSetShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSIndexSetShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/XPCOverlayShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/ObjectiveCOverlayShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/LibcOverlayShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/DispatchOverlayShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/FoundationOverlayShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/CoreFoundationOverlayShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSDictionaryShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/ldsyms.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Icons.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/certextensions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Collections.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPointerFunctions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/usb/AppleUSBDefinitions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Headers/PMDefinitions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/scsi/SCSICmds_MODE_Definitions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/scsi/SCSICmds_REPORT_LUNS_Definitions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/scsi/SCSICmds_INQUIRY_Definitions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/scsi/SCSICmds_READ_CAPACITY_Definitions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/scsi/SCSICommandDefinitions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/usb/IOUSBHostFamilyDefinitions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSXMLNodeOptions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecProtocolOptions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/termios.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/termios.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread/qos.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/qos.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ConditionalMacros.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/AssertMacros.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/AvailabilityMacros.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_traps.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ifaddrs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Folders.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScriptObjectSpecifiers.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEHelpers.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Headers/PMErrors.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MacErrors.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetworkErrors.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/FoundationErrors.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFontManagerErrors.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mig_errors.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/objc-class.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURLAccess.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOCFURLAccess.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecAccess.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/UniversalAccess.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATSUI.framework/Headers/ATSUnicodeDirectAccess.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSProgress.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/serial/ioss.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IONetworkStats.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IOEthernetStats.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEObjects.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/GlobalObjects.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/_structs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/_structs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFontTraits.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/limits.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/limits.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/limits.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/_limits.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_limits.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/syslimits.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sysexits.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserDefaults.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ttydefaults.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXConstants.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXRoleConstants.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXAttributeConstants.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXValueConstants.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXNotificationConstants.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXActionConstants.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CodeFragments.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Components.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPersonNameComponents.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/FSEvents.framework/Headers/FSEvents.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AppleEvents.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Fonts.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/appleapiopts.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/thread_special_ports.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/task_special_ports.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/host_special_ports.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScriptWhoseTests.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/avc/IOFireWireAVCConsts.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/thread_status.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/thread_status.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/thread_status.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDKeys.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/pwr_mgt/IOPMKeys.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/ps/IOPSKeys.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDDeviceKeys.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDEventServiceKeys.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/serial/IOSerialKeys.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Headers/PMPrintSettingsKeys.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitKeys.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_int32_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_int32_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_uint32_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ino64_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_int64_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_int64_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_uint64_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_int16_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_int16_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_uint16_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_int8_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_int8_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_uint8_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_filesec_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_iovec_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_id_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fsobj_id_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_gid_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_pid_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fsid_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_uid_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_guid_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_uuid_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_cond_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_once_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_mode_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_time_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_rune_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ct_rune_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_wctype_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_mbstate_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_size_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_blksize_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_rsize_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ssize_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ptrdiff_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_off_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_clock_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_rwlock_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_nlink_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_socklen_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ino_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_errno_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_wchar_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_in_addr_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_caddr_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_intptr_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_uintptr_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_attr_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_condattr_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_rwlockattr_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_mutexattr_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_useconds_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_suseconds_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_wctrans_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_sigset_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_blkcnt_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fsblkcnt_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fsfilcnt_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_wint_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_mach_port_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_in_port_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_dev_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_intmax_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_uintmax_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_mutex_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_key_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_key_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_sa_family_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/fat.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/PEFBinaryFormat.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/hfs/hfs_format.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/float.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/stat.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/dkstat.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/thread_act.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/acct.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/Object.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFObject.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/NSObject.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEPackObject.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecProtocolObject.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/HeapObject.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDistantObject.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/object.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/os/object.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/select.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_select.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/graphics/IOAccelSurfaceConnect.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/graphics/IOAccelClientConnect.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/task_inspect.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/getsect.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/sdt.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/sdt.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/sdt.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFSet.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSSet.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSOrderedSet.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCharacterSet.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCharacterSet.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSIndexSet.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/Target.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFSocket.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/socket.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/arpa/inet.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fd_set.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/lock_set.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_seek_set.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/processor_set.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fd_isset.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SearchKit.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/wait.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/bsm/audit.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ulimit.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUnit.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_init.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_inherit.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Gestalt.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSTextCheckingResult.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_s_ifmt.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGradient.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOBDMediaBSDClient.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOCDMediaBSDClient.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IODVDMediaBSDClient.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOMediaBSDClient.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IODataQueueClient.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IONetworkUserClient.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDElement.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXUIElement.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSXMLElement.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecRequirement.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSMeasurement.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDocument.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKDocument.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSXMLDocument.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dirent.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/dirent.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGEvent.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hidsystem/IOLLEvent.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/event.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_int.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/SwiftStdint.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdint.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/endpoint.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFont.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFont.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/RefCount.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/mount.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/hfs/hfs_mount.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/reboot.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/host_reboot.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_prot.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Script.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAppleScript.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/getopt.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/oidscert.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/assert.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPort.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFMessagePort.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFMachPort.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_short.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/port.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/device/device_port.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_port.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/FoundationShimSupport.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFProxySupport.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecureTransport.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/netport.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecImportExport.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLRequest.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SharedFileList.framework/Headers/SharedFileList.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SharedFileList.framework/Headers/LSSharedFileList.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPropertyList.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_va_list.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/nlist.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFHost.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSHost.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecCodeHost.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_host.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/kdebug_signpost.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecTrust.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStringEncodingExt.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/Headers/CoreText.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContext.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSExtensionContext.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScriptExecutionContext.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBitmapContext.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/_mcontext.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_mcontext.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ucontext.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ucontext.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ev.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/net/net_kev.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/clock_priv.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/host_priv.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/fenv.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/utfconv.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/iconv.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGWindow.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ftw.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/regex.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_regex.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_regex.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/complex.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/utmpx.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/lctx.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFArray.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFArray.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPointerArray.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecPolicy.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/policy.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/sync_policy.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/thread_policy.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/task_policy.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecKey.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/notify.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/host_notify.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSOrthography.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/clock_reply.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fd_copy.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSummary.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/LangAnalysis.framework/Headers/Dictionary.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDictionary.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/monetary.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_monetary.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Headers/MDQuery.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/CSIdentityQuery.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DiskSpaceRecovery.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MacMemory.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSGeometry.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AERegistry.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScriptSuiteRegistry.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Availability.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/availability.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/os/availability.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_posix_availability.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/Visibility.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Accessibility.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/FoundationLegacySwiftCompatibility.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/CSIdentityAuthority.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFFileSecurity.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/host_security.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/CSIdentity.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecIdentity.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserActivity.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/activity.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/tty.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSProxy.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/module.map /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/module.map /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/module.map /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/module.map /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libxml2/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/simd/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ffi/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/CommonCrypto/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ColorSync.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/DiskArbitration.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libxslt/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libexslt/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/tidy/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/gaishimin/Documents/GitHub/Eureka/.build/x86_64-apple-macosx/debug/Eureka.build/Rows/Common/FieldRow~partial.swiftmodule : /Users/gaishimin/Documents/GitHub/Eureka/Source/Validations/RuleURL.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Validations/RuleRequired.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Validations/RuleRange.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/CellType.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/RowControllerType.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/RowType.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/SelectableRowType.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/InlineRowType.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/PresenterRowType.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/Core.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Validations/RuleClosure.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Validations/RuleLength.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Validations/RuleEmail.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/Cell.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/Form.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/Validation.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/Section.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/SelectableSection.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Validations/RuleRegExp.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Controllers/SelectorAlertController.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Controllers/SelectorViewController.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Controllers/MultipleSelectorViewController.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Common/DecimalFormatter.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Common/Protocols.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/RowProtocols.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/SwipeActions.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/Helpers.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/Operators.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/ButtonRowWithPresent.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/HeaderFooterView.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/NavigationAccessoryView.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/Row.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/TextAreaRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/SegmentedRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Common/FieldRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Common/DateInlineFieldRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Common/DateFieldRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/DateInlineRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/PickerInlineRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/BaseRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/DateRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/SwitchRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/PushRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/CheckRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/SelectableRows/ListCheckRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/LabelRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/ButtonRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Validations/RuleEqualsToRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/SliderRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/PickerRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/DoublePickerRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/TriplePickerRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/DatePickerRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/StepperRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Common/SelectorRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/MultipleSelectorRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Common/GenericMultipleSelectorRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/PopoverSelectorRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/FieldsRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Common/OptionsRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Common/AlertOptionsRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/ActionSheetRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/AlertRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/PickerInputRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/DoublePickerInputRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/TriplePickerInputRow.swift /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/XPC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/IOKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_timeval32.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/hashtable2.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Math64.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_timeval64.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ucontext64.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet6/in6.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/AuthorizationDB.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/usb/USB.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFUUID.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUUID.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QD.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOBSD.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSXMLDTD.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/AIFF.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecACL.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ColorSync.framework/Headers/ColorSyncCMM.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPlugInCOM.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/pwr_mgt/IOPM.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/Headers/ImageIO.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATS.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/alloca.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOBDMedia.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOCDMedia.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IODVDMedia.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOMedia.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/net/if_media.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Headers/MDSchema.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/mds_schema.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/fasttrap_isa.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/fasttrap_isa.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/sdt_isa.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/sdt_isa.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFData.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSData.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IONetworkData.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/data.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Headers/Metadata.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSMetadata.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageMetadata.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecProtocolMetadata.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/quota.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTTextTab.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/stab.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/unpcb.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netdb.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/timeb.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/sbp2/IOFireWireSBP2Lib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/usb/IOUSBLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/avc/IOFireWireAVCLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hidsystem/IOHIDLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/pwr_mgt/IOPMLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/ata/ATASMARTLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/firewire/IOFireWireLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IONetworkLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/scsi/SCSITaskLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/stream/IOStreamLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/audio/IOAudioLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/graphics/IOGraphicsLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdlib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_stdlib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/ranlib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/glob.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/usb/USBSpec.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_timespec.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/OSAtomic.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/objc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ColorSync.framework/Headers/ColorSync.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/objc-sync.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/sync.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_sync.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_o_sync.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_o_dsync.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/reloc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/malloc/malloc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/malloc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/malloc/_malloc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/proc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ipc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/rpc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/rpc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/rpc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/xpc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/filedesc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/exc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSThread.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread/pthread.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/objc-load.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLDownload.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecureDownload.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread/sched.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hidsystem/IOHIDShared.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IODataQueueShared.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/stream/IOStreamShared.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/graphics/IOFramebufferShared.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ucred.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/OSAtomicDeprecated.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/ColorSyncDeprecated.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/OSSpinLockDeprecated.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSOpenDeprecated.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSInfoDeprecated.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_ctermid.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/uuid/uuid.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/gethostuuid.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/dyld.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/vcmd.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScriptCommand.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/kmod.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Pasteboard.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/bsm/audit_record.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/unistd.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/unistd.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pwd.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/i2c/IOI2CInterface.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IONetworkInterface.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/graphics/IOGraphicsInterface.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IOEthernetInterface.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_interface.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLProtectionSpace.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/trace.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDDevice.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ColorSync.framework/Headers/ColorSyncDevice.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOBDBlockStorageDevice.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOCDBlockStorageDevice.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IODVDBlockStorageDevice.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOBlockStorageDevice.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/scsi/IOSCSIMultimediaCommandsDevice.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSOrderedCollectionDifference.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/once.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageSource.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGEventSource.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/source.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/resource.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayFade.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecCode.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecStaticCode.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MixedMode.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSXMLDTDNode.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFXMLNode.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSXMLNode.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/ATSUnicode.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATSUI.framework/Headers/ATSUnicode.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFTree.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/AVLTree.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/rbtree.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFPage.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGImage.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOStorage.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSHTTPCookieStorage.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/ThreadLocalStorage.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLCredentialStorage.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/IconStorage.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOMessage.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFHTTPMessage.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPortMessage.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/message.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/message.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSRange.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSOrderedCollectionChange.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLAuthenticationChallenge.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLCache.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCache.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSHTTPCookie.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFLocale.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSLocale.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/locale.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_locale.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_xlocale.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSHashTable.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSMapTable.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFOperatorTable.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_purgable.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_posix_vdisable.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/hashtable.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFileHandle.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBundle.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOCFBundle.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSBundle.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/file.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/clonefile.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ColorSync.framework/Headers/ColorSyncProfile.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/profile.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/profile.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/copyfile.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmapple.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTParagraphStyle.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/utsname.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFrame.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOAppleLabelScheme.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOCDPartitionScheme.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOGUIDPartitionScheme.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOPartitionScheme.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOApplePartitionScheme.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOFDiskPartitionScheme.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOFilterScheme.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/time.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/time.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/time.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_time.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_time.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/NSObjCRuntime.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/objc-runtime.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/runtime.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/utime.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTLine.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/graphics/IOGraphicsEngine.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_os_inline.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSQuarantine.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFTimeZone.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSTimeZone.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/HIShape.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/pipe.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/UTType.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ctype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_ctype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_ctype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/wctype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_wctype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_wctype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/__wctype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/__wctype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/runetype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/emmtype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmtype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/StringCompare.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Headers/PMCore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/KeychainCore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/BackupCore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/IconsCore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Headers/PrintCore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/SecurityCore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/semaphore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/semaphore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/semaphore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/semaphore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUbiquitousKeyValueStore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSMethodSignature.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDBase.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ImageIO.framework/Headers/ImageIOBase.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/CSIdentityBase.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/base.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/base.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/os/base.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/oidsbase.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/readpassphrase.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLResponse.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDate.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDate.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCalendarDate.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPredicate.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCompoundPredicate.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSComparisonPredicate.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecCertificate.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTRunDelegate.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/thread_state.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/thread_state.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDLibObsolete.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/CipherSuite.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDirectPalette.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/net/route.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDQueue.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/OSAtomicQueue.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSNotificationQueue.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/queue.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/queue.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDValue.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSValue.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXValue.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/time_value.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOCFSerialize.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOCFUnserialize.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_page_size.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fd_setsize.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fd_def.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/SwiftStddef.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/net/if.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/conf.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_offsetof.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/buf.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/msgbuf.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/mbuf.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/sbuf.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBag.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/fp_reg.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/InternetConfig.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmconfig.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mig.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/oidsalg.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGShading.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSKeyValueCoding.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScriptKeyValueCoding.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/compact_unwind_encoding.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Debugging.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSExtensionRequestHandling.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATSUI.framework/Headers/ATSUnicodeFlattening.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/CodeSigning.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFString.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAttributedString.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAttributedString.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXTextAttributedString.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_string.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/secure/_string.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_symbol_aliasing.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjectScripting.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/AssertionReporting.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/NumberFormatting.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSKeyValueObserving.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/syslog.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/syslog.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/msg.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/fmtmsg.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDebug.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/OSDebug.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/debug.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach_debug/mach_debug.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEMach.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/launch.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/firewire/IOFireWireLibIsoch.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/arch.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecKeychainSearch.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecPolicySearch.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecIdentitySearch.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/search.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/fnmatch.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/dispatch.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/thread_switch.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/FixMath.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSIndexPath.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/KeyPath.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/math.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/tgmath.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/kauth.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmaci.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmcli.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmdli.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/objc-api.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmapi.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmkrapi.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmcspi.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/emmspi.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmspi.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmkrspi.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmtpi.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/port_obj.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IONetworkStack.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_sigaltstack.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSLock.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOSharedLock.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDistributedLock.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/os/lock.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/lock.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Block.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/block.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/clock.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/scsi/SCSITask.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSTask.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecTask.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserScriptTask.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/task.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_task.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/DiskArbitration.framework/Headers/DADisk.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/disk.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLCredential.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecSharedCredential.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDecimal.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/signal.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/signal.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/signal.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/signal.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/AvailabilityInternal.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplayMetal.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_timeval.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDateInterval.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/acl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/net/if_dl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Headers/MDLabel.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEDataModel.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/dyld_kernel.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGWindowLevel.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/util.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/syscall.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ncurses_dll.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/poll.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/poll.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSNull.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_null.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/Protocol.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLProtocol.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/SwiftStdbool.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/OSCacheControl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecAccessControl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/kern_control.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread/pthread_impl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/oidscrl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/unctrl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/eisl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ioctl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/sysctl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/fcntl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/fcntl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFStream.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFFTPStream.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFHTTPStream.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSStream.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFSocketStream.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContentStream.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayStream.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/param.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/param.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/param.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/_param.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_param.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_param.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/vm_param.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/vm_param.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_param.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/vmparam.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/vmparam.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ndbm.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/LowMem.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/sem.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/posix_sem.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Headers/MDItem.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecItem.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecKeychainItem.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSExtensionItem.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_nl_item.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/System.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/shm.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/posix_shm.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ioccom.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ttycom.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/Random.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecRandom.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ColorSync.framework/Headers/ColorSyncTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecReadTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecTransformReadTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecDecodeTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecEncodeTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGAffineTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAffineTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecCustomTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecEncryptTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecDigestTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecSignVerifyTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/bsm/libbsm.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssm.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IONetworkMedium.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/vm.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_vm.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPlugIn.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOCFPlugIn.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/ps/IOUPSPlugIn.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDDevicePlugIn.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/boolean.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/boolean.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/boolean.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Endian.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/endian.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/endian.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_endian.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/mman.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dlfcn.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libgen.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSOpen.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet/in.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/domain.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/sys_domain.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/TextEncodingPlugin.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/AuthorizationPlugin.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/shared_region.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_region.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFileVersion.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/DiskArbitration.framework/Headers/DASession.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGSession.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLSession.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/AuthSession.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSExpression.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSRegularExpression.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSNotification.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFUserNotification.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecTrustedApplication.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFHTTPAuthentication.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSInvocation.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/WSMethodInvocation.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageDestination.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSOperation.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGRemoteOperation.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/DiskArbitration.framework/Headers/DiskArbitration.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayConfiguration.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTRubyAnnotation.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSJSONSerialization.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DriverSynchronization.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Authorization.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDTransaction.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFontCollection.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSXPCConnection.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLConnection.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSConnection.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/connection.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFunction.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSException.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/objc-exception.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/exception.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/exception.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/exception.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScriptCommandDescription.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSClassDescription.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScriptClassDescription.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/gmon.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/CSCommon.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/TextCommon.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/firewire/IOFireWireFamilyCommon.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/secure/_common.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPattern.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOReturn.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/OSReturn.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/kern_return.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/kern_return.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/kern_return.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/un.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTRun.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread/spawn.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/spawn.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/spawn.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSInfo.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MultiprocessingInfo.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTGlyphInfo.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorConversionInfo.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSProcessInfo.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/proc_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach_debug/ipc_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/thread_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach_debug/page_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach_debug/zone_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach_debug/hash_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/task_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach_debug/vm_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach_debug/lockgroup_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/processor_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/processor_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/processor_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/host_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/langinfo.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_langinfo.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/io.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/aio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/aio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/stdio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_stdio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/secure/_stdio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/sockio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/filio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/cpio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/uio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/errno.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/errno.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fd_zero.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/objc-auto.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBinaryHeap.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_map.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hidsystem/ev_keymap.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/bootstrap.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/swap.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet/tcp.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/fp.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/setjmp.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/utmp.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFRunLoop.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSRunLoop.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/workloop.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/grp.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/group.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/wordexp.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCalendar.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCalendar.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_char.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/wchar.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_wchar.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/tar.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/net/if_var.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/resourcevar.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/signalvar.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/socketvar.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/ndr.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNumber.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDecimalNumber.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/loader.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataProvider.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSItemProvider.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Finder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecAsn1Coder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCoder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPortCoder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/CMSDecoder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/CMSEncoder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFByteOrder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSByteOrder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/i386/OSByteOrder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/OSByteOrder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/i386/_OSByteOrder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/_OSByteOrder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/byte_order.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/architecture/byte_order.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDManager.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUndoManager.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAppleEventManager.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFontManager.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/kext/KextManager.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSLinguisticTagger.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSProtocolChecker.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/WSProtocolHandler.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScriptCoercionHandler.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IONetworkController.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IOEthernetController.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSBackgroundActivityScheduler.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Timer.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSTimer.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSValueTransformer.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataConsumer.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFScanner.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScanner.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFileWrapper.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFXMLParser.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSXMLParser.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/user.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hidsystem/IOHIDParameter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNotificationCenter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDistributedNotificationCenter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFilePresenter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/DiskArbitration.framework/Headers/DADissenter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPSConverter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/UnicodeConverter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/TextEncodingConverter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Headers/MDImporter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSRelativeDateTimeFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDateFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSLengthFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDateIntervalFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNumberFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSNumberFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSMassFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPersonNameComponentsFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDateComponentsFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSMeasurementFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSByteCountFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSListFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSEnergyFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFramesetter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTTypesetter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSArchiver.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSKeyedArchiver.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOBlockStorageDriver.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hidsystem/event_status_driver.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPortNameServer.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSSpellServer.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitServer.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/Power.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGLayer.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStringTokenizer.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/dir.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fd_clr.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_behavior.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColor.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFError.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGError.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLError.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSError.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXError.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/error.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_error.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/processor.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFileCoordinator.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURLEnumerator.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBitVector.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSGarbageCollector.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFFileDescriptor.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFontDescriptor.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSSortDescriptor.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/err.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmerr.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/hfs/hfs_unistr.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/attr.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/oidsattr.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/xattr.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecCertificateOIDs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/RuntimeStubs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOStorageCardCharacteristics.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOStorageDeviceCharacteristics.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOFireWireStorageCharacteristics.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOStorageProtocolCharacteristics.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOStorageControllerCharacteristics.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_statistics.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetDiagnostics.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/PLStringFuncs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Threads.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/oids.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/mds.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScriptStandardSuiteCommands.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/HIServices.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/OSServices.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LaunchServices.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/TranslationServices.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DriverServices.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetServices.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSNetServices.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/DictionaryServices.framework/Headers/DictionaryServices.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPreferences.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/ps/IOPowerSources.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Resources.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/IntlResources.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/scsi/SCSICommandOperationCodes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/dyld_images.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFUtilities.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/UnicodeUtilities.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPathUtilities.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDProperties.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageProperties.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MacLocales.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDUsageTables.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/times.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/HFSVolumes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSDefines.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTDefines.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/ata/IOATAStorageDefines.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/audio/IOAudioDefines.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecAsn1Types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOBDTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOCDTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hidsystem/IOHIDTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IODVDTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Headers/PMPrintAETypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/OSTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/WSTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/SFNTTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/SFNTTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/MacTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/graphics/IOGraphicsInterfaceTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDDeviceTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATSUI.framework/Headers/ATSUnicodeTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSHFSFileTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/UTCoreTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/graphics/IOAccelTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecProtocolTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEUserTermTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/audio/IOAudioTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/graphics/IOGraphicsTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGEventTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSLayoutTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/SFNTLayoutTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/SFNTLayoutTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/std_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/device/device_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/net/if_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach_debug/mach_debug_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/clock_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/kernel_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/nl_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/vm_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/vm_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/exception_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_voucher_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/memory_object_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/inttypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_inttypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Aliases.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/curses.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Processes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecAsn1Templates.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSMetadataAttributes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTStringAttributes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_attributes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/scsi/SCSICmds_REQUEST_SENSE_Defs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/pwr_mgt/IOPMLibDefs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetworkDefs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/x509defs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/statvfs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/AuthorizationTags.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xattr_flags.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/eflags.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/strings.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/secure/_strings.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecTrustSettings.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATSUI.framework/Headers/ATSUnicodeGlyphs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/paths.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread_spis.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/SpeechSynthesis.framework/Headers/SpeechSynthesis.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKAnalysis.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/LangAnalysis.framework/Headers/LanguageAnalysis.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/LangAnalysis.framework/Headers/LangAnalysis.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/TargetConditionals.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/UTCUtils.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/OSUtils.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DateTimeUtils.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/ToolUtils.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/TextUtils.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_syscalls.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSDataShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/LibcShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/UnicodeShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSLocaleShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/RuntimeShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSTimeZoneShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/CFHashingShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSIndexPathShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/FoundationShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/CoreFoundationShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSCalendarShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSCoderShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSFileManagerShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSUndoManagerShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSKeyedArchiverShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSErrorShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/CFCharacterSetShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSCharacterSetShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSIndexSetShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/XPCOverlayShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/ObjectiveCOverlayShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/LibcOverlayShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/DispatchOverlayShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/FoundationOverlayShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/CoreFoundationOverlayShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSDictionaryShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/ldsyms.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Icons.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/certextensions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Collections.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPointerFunctions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/usb/AppleUSBDefinitions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Headers/PMDefinitions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/scsi/SCSICmds_MODE_Definitions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/scsi/SCSICmds_REPORT_LUNS_Definitions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/scsi/SCSICmds_INQUIRY_Definitions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/scsi/SCSICmds_READ_CAPACITY_Definitions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/scsi/SCSICommandDefinitions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/usb/IOUSBHostFamilyDefinitions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSXMLNodeOptions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecProtocolOptions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/termios.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/termios.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread/qos.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/qos.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ConditionalMacros.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/AssertMacros.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/AvailabilityMacros.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_traps.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ifaddrs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Folders.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScriptObjectSpecifiers.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEHelpers.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Headers/PMErrors.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MacErrors.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetworkErrors.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/FoundationErrors.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFontManagerErrors.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mig_errors.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/objc-class.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURLAccess.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOCFURLAccess.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecAccess.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/UniversalAccess.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATSUI.framework/Headers/ATSUnicodeDirectAccess.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSProgress.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/serial/ioss.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IONetworkStats.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IOEthernetStats.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEObjects.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/GlobalObjects.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/_structs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/_structs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFontTraits.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/limits.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/limits.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/limits.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/_limits.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_limits.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/syslimits.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sysexits.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserDefaults.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ttydefaults.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXConstants.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXRoleConstants.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXAttributeConstants.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXValueConstants.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXNotificationConstants.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXActionConstants.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CodeFragments.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Components.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPersonNameComponents.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/FSEvents.framework/Headers/FSEvents.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AppleEvents.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Fonts.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/appleapiopts.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/thread_special_ports.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/task_special_ports.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/host_special_ports.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScriptWhoseTests.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/avc/IOFireWireAVCConsts.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/thread_status.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/thread_status.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/thread_status.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDKeys.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/pwr_mgt/IOPMKeys.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/ps/IOPSKeys.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDDeviceKeys.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDEventServiceKeys.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/serial/IOSerialKeys.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Headers/PMPrintSettingsKeys.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitKeys.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_int32_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_int32_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_uint32_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ino64_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_int64_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_int64_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_uint64_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_int16_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_int16_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_uint16_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_int8_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_int8_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_uint8_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_filesec_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_iovec_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_id_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fsobj_id_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_gid_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_pid_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fsid_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_uid_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_guid_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_uuid_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_cond_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_once_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_mode_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_time_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_rune_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ct_rune_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_wctype_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_mbstate_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_size_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_blksize_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_rsize_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ssize_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ptrdiff_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_off_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_clock_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_rwlock_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_nlink_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_socklen_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ino_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_errno_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_wchar_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_in_addr_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_caddr_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_intptr_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_uintptr_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_attr_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_condattr_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_rwlockattr_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_mutexattr_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_useconds_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_suseconds_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_wctrans_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_sigset_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_blkcnt_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fsblkcnt_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fsfilcnt_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_wint_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_mach_port_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_in_port_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_dev_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_intmax_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_uintmax_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_mutex_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_key_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_key_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_sa_family_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/fat.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/PEFBinaryFormat.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/hfs/hfs_format.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/float.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/stat.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/dkstat.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/thread_act.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/acct.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/Object.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFObject.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/NSObject.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEPackObject.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecProtocolObject.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/HeapObject.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDistantObject.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/object.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/os/object.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/select.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_select.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/graphics/IOAccelSurfaceConnect.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/graphics/IOAccelClientConnect.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/task_inspect.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/getsect.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/sdt.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/sdt.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/sdt.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFSet.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSSet.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSOrderedSet.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCharacterSet.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCharacterSet.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSIndexSet.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/Target.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFSocket.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/socket.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/arpa/inet.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fd_set.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/lock_set.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_seek_set.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/processor_set.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fd_isset.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SearchKit.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/wait.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/bsm/audit.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ulimit.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUnit.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_init.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_inherit.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Gestalt.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSTextCheckingResult.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_s_ifmt.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGradient.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOBDMediaBSDClient.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOCDMediaBSDClient.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IODVDMediaBSDClient.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOMediaBSDClient.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IODataQueueClient.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IONetworkUserClient.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDElement.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXUIElement.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSXMLElement.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecRequirement.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSMeasurement.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDocument.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKDocument.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSXMLDocument.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dirent.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/dirent.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGEvent.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hidsystem/IOLLEvent.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/event.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_int.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/SwiftStdint.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdint.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/endpoint.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFont.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFont.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/RefCount.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/mount.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/hfs/hfs_mount.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/reboot.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/host_reboot.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_prot.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Script.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAppleScript.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/getopt.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/oidscert.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/assert.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPort.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFMessagePort.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFMachPort.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_short.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/port.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/device/device_port.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_port.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/FoundationShimSupport.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFProxySupport.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecureTransport.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/netport.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecImportExport.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLRequest.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SharedFileList.framework/Headers/SharedFileList.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SharedFileList.framework/Headers/LSSharedFileList.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPropertyList.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_va_list.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/nlist.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFHost.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSHost.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecCodeHost.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_host.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/kdebug_signpost.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecTrust.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStringEncodingExt.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/Headers/CoreText.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContext.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSExtensionContext.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScriptExecutionContext.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBitmapContext.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/_mcontext.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_mcontext.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ucontext.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ucontext.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ev.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/net/net_kev.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/clock_priv.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/host_priv.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/fenv.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/utfconv.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/iconv.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGWindow.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ftw.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/regex.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_regex.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_regex.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/complex.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/utmpx.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/lctx.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFArray.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFArray.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPointerArray.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecPolicy.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/policy.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/sync_policy.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/thread_policy.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/task_policy.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecKey.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/notify.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/host_notify.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSOrthography.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/clock_reply.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fd_copy.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSummary.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/LangAnalysis.framework/Headers/Dictionary.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDictionary.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/monetary.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_monetary.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Headers/MDQuery.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/CSIdentityQuery.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DiskSpaceRecovery.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MacMemory.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSGeometry.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AERegistry.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScriptSuiteRegistry.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Availability.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/availability.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/os/availability.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_posix_availability.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/Visibility.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Accessibility.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/FoundationLegacySwiftCompatibility.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/CSIdentityAuthority.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFFileSecurity.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/host_security.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/CSIdentity.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecIdentity.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserActivity.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/activity.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/tty.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSProxy.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/module.map /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/module.map /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/module.map /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/module.map /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libxml2/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/simd/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ffi/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/CommonCrypto/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ColorSync.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/DiskArbitration.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libxslt/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libexslt/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/tidy/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/gaishimin/Documents/GitHub/Eureka/.build/x86_64-apple-macosx/debug/Eureka.build/Rows/Common/FieldRow~partial.swiftdoc : /Users/gaishimin/Documents/GitHub/Eureka/Source/Validations/RuleURL.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Validations/RuleRequired.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Validations/RuleRange.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/CellType.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/RowControllerType.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/RowType.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/SelectableRowType.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/InlineRowType.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/PresenterRowType.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/Core.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Validations/RuleClosure.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Validations/RuleLength.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Validations/RuleEmail.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/Cell.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/Form.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/Validation.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/Section.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/SelectableSection.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Validations/RuleRegExp.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Controllers/SelectorAlertController.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Controllers/SelectorViewController.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Controllers/MultipleSelectorViewController.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Common/DecimalFormatter.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Common/Protocols.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/RowProtocols.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/SwipeActions.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/Helpers.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/Operators.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/ButtonRowWithPresent.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/HeaderFooterView.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/NavigationAccessoryView.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/Row.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/TextAreaRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/SegmentedRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Common/FieldRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Common/DateInlineFieldRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Common/DateFieldRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/DateInlineRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/PickerInlineRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Core/BaseRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/DateRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/SwitchRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/PushRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/CheckRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/SelectableRows/ListCheckRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/LabelRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/ButtonRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Validations/RuleEqualsToRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/SliderRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/PickerRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/DoublePickerRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/TriplePickerRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/DatePickerRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/StepperRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Common/SelectorRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/MultipleSelectorRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Common/GenericMultipleSelectorRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/PopoverSelectorRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/FieldsRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Common/OptionsRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/Common/AlertOptionsRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/ActionSheetRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/AlertRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/PickerInputRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/DoublePickerInputRow.swift /Users/gaishimin/Documents/GitHub/Eureka/Source/Rows/TriplePickerInputRow.swift /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/XPC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/ObjectiveC.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Dispatch.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Darwin.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Foundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreFoundation.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/CoreGraphics.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/Swift.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/IOKit.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/SwiftOnoneSupport.swiftmodule/x86_64.swiftinterface /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/XPC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/IOKit.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-macos.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_timeval32.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/hashtable2.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Math64.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_timeval64.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ucontext64.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet6/in6.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/AuthorizationDB.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/usb/USB.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFUUID.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUUID.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QD.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOBSD.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSXMLDTD.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AE.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/AIFF.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecACL.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURL.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ColorSync.framework/Headers/ColorSyncCMM.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPlugInCOM.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/pwr_mgt/IOPM.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/Headers/ImageIO.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATS.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/alloca.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOBDMedia.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOCDMedia.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IODVDMedia.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOMedia.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/net/if_media.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Headers/MDSchema.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/mds_schema.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/fasttrap_isa.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/fasttrap_isa.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/sdt_isa.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/sdt_isa.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFData.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSData.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IONetworkData.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/data.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Headers/Metadata.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSMetadata.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageMetadata.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecProtocolMetadata.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/quota.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTTextTab.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/stab.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/unpcb.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netdb.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/timeb.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/sbp2/IOFireWireSBP2Lib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/usb/IOUSBLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/avc/IOFireWireAVCLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hidsystem/IOHIDLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/pwr_mgt/IOPMLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/ata/ATASMARTLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/firewire/IOFireWireLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IONetworkLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/scsi/SCSITaskLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/stream/IOStreamLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/audio/IOAudioLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/graphics/IOGraphicsLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitLib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdlib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_stdlib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/ranlib.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/glob.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/usb/USBSpec.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_timespec.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/OSAtomic.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/objc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ColorSync.framework/Headers/ColorSync.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/objc-sync.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/sync.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_sync.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_o_sync.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_o_dsync.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/reloc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/malloc/malloc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/malloc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/malloc/_malloc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/proc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ipc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/rpc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/rpc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/rpc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/xpc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/filedesc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/exc.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSThread.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread/pthread.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/objc-load.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLDownload.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecureDownload.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread/sched.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hidsystem/IOHIDShared.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IODataQueueShared.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/stream/IOStreamShared.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/graphics/IOFramebufferShared.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ucred.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/OSAtomicDeprecated.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/ColorSyncDeprecated.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/OSSpinLockDeprecated.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSOpenDeprecated.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSInfoDeprecated.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_ctermid.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/uuid/uuid.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/gethostuuid.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/dyld.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/vcmd.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScriptCommand.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/kmod.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Pasteboard.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/bsm/audit_record.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/unistd.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/unistd.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pwd.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/i2c/IOI2CInterface.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IONetworkInterface.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/graphics/IOGraphicsInterface.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IOEthernetInterface.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_interface.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLProtectionSpace.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/trace.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDDevice.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ColorSync.framework/Headers/ColorSyncDevice.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOBDBlockStorageDevice.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOCDBlockStorageDevice.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IODVDBlockStorageDevice.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOBlockStorageDevice.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/scsi/IOSCSIMultimediaCommandsDevice.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSOrderedCollectionDifference.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/once.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageSource.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGEventSource.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/source.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/resource.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayFade.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecCode.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecStaticCode.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MixedMode.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSXMLDTDNode.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFXMLNode.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSXMLNode.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/ATSUnicode.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATSUI.framework/Headers/ATSUnicode.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFTree.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/AVLTree.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/rbtree.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFPage.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGImage.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOStorage.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSHTTPCookieStorage.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/ThreadLocalStorage.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLCredentialStorage.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/IconStorage.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOMessage.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFHTTPMessage.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPortMessage.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/message.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/message.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSRange.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSOrderedCollectionChange.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLAuthenticationChallenge.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLCache.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCache.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSHTTPCookie.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFLocale.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSLocale.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/locale.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_locale.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_xlocale.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSHashTable.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSMapTable.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFOperatorTable.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_purgable.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_posix_vdisable.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/hashtable.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLHandle.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFileHandle.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBundle.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOCFBundle.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSBundle.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/file.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/clonefile.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ColorSync.framework/Headers/ColorSyncProfile.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/profile.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/profile.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/copyfile.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmapple.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTParagraphStyle.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/utsname.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFrame.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOAppleLabelScheme.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOCDPartitionScheme.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOGUIDPartitionScheme.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOPartitionScheme.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOApplePartitionScheme.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOFDiskPartitionScheme.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOFilterScheme.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/time.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/time.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/time.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_time.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_time.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/NSObjCRuntime.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/objc-runtime.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/runtime.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/utime.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTLine.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/graphics/IOGraphicsEngine.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_os_inline.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSQuarantine.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSZone.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFTimeZone.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSTimeZone.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/HIShape.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/pipe.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/UTType.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ctype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_ctype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_ctype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/wctype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_wctype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_wctype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/__wctype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/__wctype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/runetype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/emmtype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmtype.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/StringCompare.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Headers/PMCore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/KeychainCore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CarbonCore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/BackupCore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/IconsCore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Headers/PrintCore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/SecurityCore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/semaphore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/semaphore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/semaphore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/semaphore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUbiquitousKeyValueStore.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSMethodSignature.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDBase.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBase.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ImageIO.framework/Headers/ImageIOBase.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ColorSync.framework/Headers/ColorSyncBase.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/CSIdentityBase.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/base.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/base.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/os/base.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/oidsbase.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/readpassphrase.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLResponse.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDate.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDate.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCalendarDate.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPredicate.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCompoundPredicate.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSComparisonPredicate.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecCertificate.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTRunDelegate.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/thread_state.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/thread_state.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDLibObsolete.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/CipherSuite.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDirectPalette.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/net/route.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDQueue.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/OSAtomicQueue.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSNotificationQueue.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/queue.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/queue.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDValue.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSValue.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXValue.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/time_value.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOCFSerialize.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOCFUnserialize.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_page_size.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fd_setsize.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fd_def.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/SwiftStddef.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/net/if.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/conf.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_offsetof.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/buf.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/msgbuf.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/mbuf.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/sbuf.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBag.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/fp_reg.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/InternetConfig.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmconfig.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mig.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/oidsalg.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGShading.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSKeyValueCoding.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScriptKeyValueCoding.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/compact_unwind_encoding.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Debugging.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSExtensionRequestHandling.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATSUI.framework/Headers/ATSUnicodeFlattening.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/CodeSigning.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFString.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFString.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAttributedString.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAttributedString.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXTextAttributedString.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/string.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_string.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/secure/_string.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_symbol_aliasing.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Multiprocessing.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObjectScripting.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/AssertionReporting.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/NumberFormatting.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSKeyValueObserving.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/syslog.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/syslog.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/msg.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/fmtmsg.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDebug.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/OSDebug.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/debug.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach_debug/mach_debug.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEMach.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/launch.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/firewire/IOFireWireLibIsoch.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/arch.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSearch.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecKeychainSearch.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecPolicySearch.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecIdentitySearch.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/search.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/fnmatch.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/dispatch.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/thread_switch.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/FixMath.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPath.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSIndexPath.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/KeyPath.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/math.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/tgmath.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/kauth.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmaci.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmcli.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmdli.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/objc-api.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmapi.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmkrapi.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmcspi.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/emmspi.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmspi.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmkrspi.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmtpi.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/port_obj.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IONetworkStack.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_sigaltstack.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSLock.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOSharedLock.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDistributedLock.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/os/lock.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/lock.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Block.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/block.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/clock.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/scsi/SCSITask.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSTask.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecTask.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserScriptTask.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/task.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_task.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/DiskArbitration.framework/Headers/DADisk.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/disk.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLCredential.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecSharedCredential.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDecimal.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/signal.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/signal.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/signal.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/signal.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/AvailabilityInternal.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplayMetal.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_timeval.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDateInterval.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/acl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/net/if_dl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Headers/MDLabel.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEDataModel.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/dyld_kernel.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGWindowLevel.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/util.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/syscall.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ncurses_dll.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/poll.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/poll.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSNull.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_null.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/Protocol.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLProtocol.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAutoreleasePool.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/SwiftStdbool.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/OSCacheControl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecAccessControl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/kern_control.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread/pthread_impl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/oidscrl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/unctrl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/eisl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ioctl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/sysctl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/fcntl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/fcntl.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStream.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFStream.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFFTPStream.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFHTTPStream.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSStream.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFSocketStream.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContentStream.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayStream.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/param.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/param.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/param.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/_param.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_param.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_param.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/vm_param.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/vm_param.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_param.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/vmparam.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/vmparam.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ndbm.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/LowMem.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/sem.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/posix_sem.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Headers/MDItem.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecItem.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecKeychainItem.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSExtensionItem.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_nl_item.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/System.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/shm.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/posix_shm.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ioccom.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ttycom.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/Random.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecRandom.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ColorSync.framework/Headers/ColorSyncTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecReadTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecTransformReadTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecDecodeTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecEncodeTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGAffineTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAffineTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecCustomTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecEncryptTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecDigestTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecSignVerifyTransform.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/bsm/libbsm.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssm.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IONetworkMedium.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/vm.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_vm.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPlugIn.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOCFPlugIn.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/ps/IOUPSPlugIn.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDDevicePlugIn.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/boolean.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/boolean.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/boolean.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Endian.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/endian.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/endian.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_endian.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/mman.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dlfcn.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libgen.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSOpen.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet/in.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecKeychain.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/domain.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/sys_domain.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/TextEncodingPlugin.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/AuthorizationPlugin.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/shared_region.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_region.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFileVersion.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/DiskArbitration.framework/Headers/DASession.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGSession.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLSession.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/AuthSession.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSExpression.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSRegularExpression.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSNotification.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/OSMessageNotification.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFUserNotification.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserNotification.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecTrustedApplication.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFHTTPAuthentication.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSInvocation.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/WSMethodInvocation.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CoreFoundation.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageDestination.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSOperation.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGRemoteOperation.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/DiskArbitration.framework/Headers/DiskArbitration.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayConfiguration.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTRubyAnnotation.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSJSONSerialization.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DriverSynchronization.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Authorization.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDTransaction.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFontCollection.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSXPCConnection.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLConnection.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSConnection.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/connection.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFunction.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSException.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/objc-exception.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/exception.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/exception.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/exception.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScriptCommandDescription.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSClassDescription.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScriptClassDescription.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/gmon.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/CSCommon.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/TextCommon.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/firewire/IOFireWireFamilyCommon.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/secure/_common.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPattern.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOReturn.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/OSReturn.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/kern_return.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/kern_return.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/kern_return.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/un.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTRun.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread/spawn.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/spawn.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/spawn.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LSInfo.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MultiprocessingInfo.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTGlyphInfo.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorConversionInfo.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSProcessInfo.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/proc_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach_debug/ipc_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/thread_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach_debug/page_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach_debug/zone_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach_debug/hash_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/task_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach_debug/vm_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach_debug/lockgroup_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/processor_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/processor_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/processor_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/host_info.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/langinfo.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_langinfo.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/io.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/aio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/aio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/stdio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_stdio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/secure/_stdio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/sockio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/filio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/cpio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/uio.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/errno.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/errno.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fd_zero.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/objc-auto.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBinaryHeap.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_map.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hidsystem/ev_keymap.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/bootstrap.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/swap.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/netinet/tcp.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/fp.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/setjmp.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/utmp.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFRunLoop.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSRunLoop.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/workloop.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/grp.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/group.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/wordexp.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCalendar.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCalendar.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_char.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/wchar.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_wchar.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/tar.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/net/if_var.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/resourcevar.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/signalvar.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/socketvar.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/ndr.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNumber.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDecimalNumber.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/loader.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataProvider.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSItemProvider.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Finder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecAsn1Coder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCoder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPortCoder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/CMSDecoder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/CMSEncoder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFByteOrder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSByteOrder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/i386/OSByteOrder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/OSByteOrder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/i386/_OSByteOrder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/_OSByteOrder.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/byte_order.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/architecture/byte_order.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDManager.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUndoManager.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAppleEventManager.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFontManager.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/kext/KextManager.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSLinguisticTagger.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSProtocolChecker.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/WSProtocolHandler.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScriptCoercionHandler.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IONetworkController.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IOEthernetController.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSBackgroundActivityScheduler.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Timer.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSTimer.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSValueTransformer.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDataConsumer.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFScanner.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScanner.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFileWrapper.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFXMLParser.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSXMLParser.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/user.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hidsystem/IOHIDParameter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNotificationCenter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDistributedNotificationCenter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFilePresenter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/DiskArbitration.framework/Headers/DADissenter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPSConverter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/UnicodeConverter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/TextEncodingConverter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Headers/MDImporter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSRelativeDateTimeFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSISO8601DateFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDateFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDateFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSLengthFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDateIntervalFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFNumberFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSNumberFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSMassFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPersonNameComponentsFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDateComponentsFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSMeasurementFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSByteCountFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSListFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSEnergyFormatter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFramesetter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTTypesetter.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSArchiver.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSKeyedArchiver.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOBlockStorageDriver.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hidsystem/event_status_driver.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPortNameServer.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSSpellServer.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitServer.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/Power.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGLayer.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStringTokenizer.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/dir.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fd_clr.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_behavior.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColor.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFError.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGError.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLError.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSError.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXError.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/error.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_error.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/processor.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFileCoordinator.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURLEnumerator.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSEnumerator.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBitVector.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSGarbageCollector.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFFileDescriptor.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAppleEventDescriptor.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFontDescriptor.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSSortDescriptor.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/err.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/cssmerr.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/hfs/hfs_unistr.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/attr.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/oidsattr.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/xattr.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecCertificateOIDs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/RuntimeStubs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOStorageCardCharacteristics.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOStorageDeviceCharacteristics.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOFireWireStorageCharacteristics.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOStorageProtocolCharacteristics.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOStorageControllerCharacteristics.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_statistics.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetDiagnostics.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/PLStringFuncs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Threads.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/oids.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/mds.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScriptStandardSuiteCommands.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/HIServices.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/OSServices.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Headers/CoreServices.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/LaunchServices.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/TranslationServices.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DriverServices.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetServices.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSNetServices.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/DictionaryServices.framework/Headers/DictionaryServices.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPreferences.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/ps/IOPowerSources.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Resources.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/IntlResources.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/scsi/SCSICommandOperationCodes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/dyld_images.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFUtilities.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/UnicodeUtilities.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPathUtilities.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDProperties.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ImageIO.framework/Headers/CGImageProperties.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MacLocales.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDUsageTables.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Files.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/times.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/HFSVolumes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSDefines.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTDefines.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/ata/IOATAStorageDefines.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/audio/IOAudioDefines.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecAsn1Types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOBDTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOCDTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hidsystem/IOHIDTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IODVDTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Headers/PMPrintAETypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libkern/OSTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/WSTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/SFNTTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/SFNTTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/MacTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/graphics/IOGraphicsInterfaceTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDDeviceTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATSUI.framework/Headers/ATSUnicodeTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSHFSFileTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Headers/UTCoreTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/graphics/IOAccelTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecProtocolTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEUserTermTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/audio/IOAudioTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/graphics/IOGraphicsTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGEventTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSLayoutTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/SFNTLayoutTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/SFNTLayoutTypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/std_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/device/device_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/net/if_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach_debug/mach_debug_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/clock_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/kernel_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/nl_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/vm_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/vm_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/exception_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_voucher_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/memory_object_types.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/inttypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_inttypes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Aliases.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/curses.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Processes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecAsn1Templates.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSMetadataAttributes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTStringAttributes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_attributes.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/scsi/SCSICmds_REQUEST_SENSE_Defs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/pwr_mgt/IOPMLibDefs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetworkDefs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/x509defs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/statvfs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/AuthorizationTags.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xattr_flags.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/eflags.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/strings.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/secure/_strings.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecTrustSettings.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATSUI.framework/Headers/ATSUnicodeGlyphs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/paths.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread_spis.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/SpeechSynthesis.framework/Headers/SpeechSynthesis.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKAnalysis.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/LangAnalysis.framework/Headers/LanguageAnalysis.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/LangAnalysis.framework/Headers/LangAnalysis.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/TargetConditionals.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/UTCUtils.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/OSUtils.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DateTimeUtils.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/ToolUtils.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/TextUtils.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_syscalls.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSDataShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/LibcShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/UnicodeShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSLocaleShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/RuntimeShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSTimeZoneShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/CFHashingShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSIndexPathShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/FoundationShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/CoreFoundationShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSCalendarShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSCoderShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSFileManagerShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSUndoManagerShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSKeyedArchiverShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSErrorShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/CFCharacterSetShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSCharacterSetShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSIndexSetShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/XPCOverlayShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/ObjectiveCOverlayShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/LibcOverlayShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/DispatchOverlayShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/FoundationOverlayShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/CoreFoundationOverlayShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/NSDictionaryShims.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/ldsyms.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Icons.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/certextensions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Collections.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPointerFunctions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/usb/AppleUSBDefinitions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Headers/PMDefinitions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/scsi/SCSICmds_MODE_Definitions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/scsi/SCSICmds_REPORT_LUNS_Definitions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/scsi/SCSICmds_INQUIRY_Definitions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/scsi/SCSICmds_READ_CAPACITY_Definitions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/scsi/SCSICommandDefinitions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/usb/IOUSBHostFamilyDefinitions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSXMLNodeOptions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecProtocolOptions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MachineExceptions.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/termios.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/termios.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/pthread/qos.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/qos.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ConditionalMacros.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/AssertMacros.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/AvailabilityMacros.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_traps.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ifaddrs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Folders.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScriptObjectSpecifiers.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEHelpers.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Headers/PMErrors.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MacErrors.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetworkErrors.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/FoundationErrors.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFontManagerErrors.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mig_errors.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/objc-class.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURLAccess.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOCFURLAccess.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecAccess.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/UniversalAccess.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATSUI.framework/Headers/ATSUnicodeDirectAccess.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSProgress.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/serial/ioss.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IONetworkStats.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IOEthernetStats.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEObjects.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/GlobalObjects.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/_structs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/_structs.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFontTraits.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/limits.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/limits.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/limits.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/_limits.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_limits.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/syslimits.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sysexits.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserDefaults.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ttydefaults.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXConstants.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXRoleConstants.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXAttributeConstants.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXValueConstants.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXNotificationConstants.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXActionConstants.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/CodeFragments.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Components.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPersonNameComponents.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/FSEvents.framework/Headers/FSEvents.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AppleEvents.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Fonts.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/appleapiopts.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/thread_special_ports.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/task_special_ports.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/host_special_ports.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScriptWhoseTests.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/avc/IOFireWireAVCConsts.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/i386/thread_status.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/thread_status.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/thread_status.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDKeys.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/pwr_mgt/IOPMKeys.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/ps/IOPSKeys.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDDeviceKeys.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDEventServiceKeys.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/serial/IOSerialKeys.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/PrintCore.framework/Headers/PMPrintSettingsKeys.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IOKitKeys.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_int32_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_int32_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_uint32_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ino64_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_int64_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_int64_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_uint64_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_int16_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_int16_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_uint16_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_int8_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_int8_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_uint8_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_filesec_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_iovec_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_id_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fsobj_id_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_gid_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_pid_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fsid_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_uid_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_guid_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_uuid_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_cond_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_once_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_mode_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_time_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_rune_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ct_rune_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_wctype_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_mbstate_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_size_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_blksize_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_rsize_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ssize_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ptrdiff_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_off_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_clock_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_rwlock_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_nlink_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_socklen_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ino_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_errno_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_wchar_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_in_addr_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_caddr_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_intptr_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_uintptr_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_attr_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_condattr_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_rwlockattr_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_mutexattr_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_useconds_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_suseconds_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_wctrans_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_sigset_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_blkcnt_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fsblkcnt_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fsfilcnt_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_wint_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_mach_port_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_in_port_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_dev_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_intmax_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_types/_uintmax_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_mutex_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_key_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_pthread/_pthread_key_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_sa_family_t.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/fat.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/PEFBinaryFormat.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/hfs/hfs_format.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/float.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/stat.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/dkstat.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/thread_act.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/acct.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/Object.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFObject.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/NSObject.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AEPackObject.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecProtocolObject.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/HeapObject.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDistantObject.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/object.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/os/object.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/select.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_select.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/graphics/IOAccelSurfaceConnect.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/graphics/IOAccelClientConnect.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/task_inspect.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/getsect.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/machine/sdt.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/sdt.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/sdt.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFSet.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSSet.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSOrderedSet.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFCharacterSet.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSCharacterSet.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSIndexSet.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/Target.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFSocket.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/socket.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/arpa/inet.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fd_set.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/lock_set.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_seek_set.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/processor_set.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fd_isset.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SearchKit.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/wait.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/bsm/audit.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ulimit.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUnit.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_init.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_inherit.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Gestalt.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSTextCheckingResult.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_s_ifmt.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGradient.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOBDMediaBSDClient.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOCDMediaBSDClient.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IODVDMediaBSDClient.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/storage/IOMediaBSDClient.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/IODataQueueClient.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/network/IONetworkUserClient.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hid/IOHIDElement.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/AXUIElement.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSXMLElement.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecRequirement.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSMeasurement.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDocument.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKDocument.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSXMLDocument.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dirent.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/dirent.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGEvent.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/Headers/hidsystem/IOLLEvent.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/event.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_int.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/SwiftStdint.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/stdint.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/endpoint.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGFont.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFont.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/RefCount.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/mount.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/hfs/hfs_mount.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/reboot.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/host_reboot.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/vm_prot.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/Script.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSAppleScript.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/getopt.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/oidscert.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/assert.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPort.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFMessagePort.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFMachPort.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_u_short.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/port.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/device/device_port.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_port.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/FoundationShimSupport.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFProxySupport.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecureTransport.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/netport.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecImportExport.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLRequest.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SharedFileList.framework/Headers/SharedFileList.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SharedFileList.framework/Headers/LSSharedFileList.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFPropertyList.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPropertyList.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_va_list.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/nlist.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFHost.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSHost.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecCodeHost.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/mach_host.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/kdebug_signpost.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecTrust.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFStringEncodingExt.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/Headers/CoreText.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFContext.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGContext.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSExtensionContext.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScriptExecutionContext.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGBitmapContext.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/i386/_mcontext.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/machine/_mcontext.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ucontext.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_ucontext.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/ev.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/net/net_kev.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/clock_priv.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/host_priv.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/fenv.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/utfconv.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/iconv.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGWindow.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ftw.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKIndex.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/regex.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/_regex.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_regex.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/complex.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/utmpx.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/lctx.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGDirectDisplay.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFArray.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFArray.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSArray.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPointerArray.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecPolicy.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/policy.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/sync_policy.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/thread_policy.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/task_policy.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecKey.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/notify.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/host_notify.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSOrthography.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/clock_reply.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_fd_copy.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/SearchKit.framework/Headers/SKSummary.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/LangAnalysis.framework/Headers/Dictionary.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFDictionary.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGPDFDictionary.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSDictionary.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/monetary.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xlocale/_monetary.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/Metadata.framework/Headers/MDQuery.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/CSIdentityQuery.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/DiskSpaceRecovery.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framework/Headers/MacMemory.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSGeometry.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/AE.framework/Headers/AERegistry.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSScriptSuiteRegistry.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Availability.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFAvailability.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/availability.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/os/availability.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/_posix_availability.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/Visibility.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/HIServices.framework/Headers/Accessibility.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/FoundationLegacySwiftCompatibility.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/CSIdentityAuthority.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFFileSecurity.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach/host_security.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Frameworks/OSServices.framework/Headers/CSIdentity.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/SecIdentity.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSUserActivity.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/activity.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/sys/tty.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSProxy.h /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/IOKit.framework/module.map /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/mach-o/module.map /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/module.map /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/module.map /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libxml2/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/simd/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/dispatch/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/ffi/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/CommonCrypto/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIO.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ColorSync.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CFNetwork.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreFoundation.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/DiskArbitration.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreServices.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/CoreText.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/lib/swift/shims/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libxslt/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/libexslt/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/tidy/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
D
|
<?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_23_BeT-5775817133.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</availablePage>
</pageList>
<sashModel currentSelection="//@sashModel/@windows.0/@children.0">
<windows>
<children xsi:type="di:TabFolder">
<children>
<emfPageIdentifier href="VAR_23_BeT-5775817133.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</children>
</children>
</windows>
</sashModel>
</di:SashWindowsMngr>
|
D
|
/Users/hyungsukkang/terra/terra-contracts/exchange/target/rls/debug/build/schemars-4fc7875dc1824b53/build_script_build-4fc7875dc1824b53: /Users/hyungsukkang/.cargo/registry/src/github.com-1ecc6299db9ec823/schemars-0.7.6/build.rs
/Users/hyungsukkang/terra/terra-contracts/exchange/target/rls/debug/build/schemars-4fc7875dc1824b53/build_script_build-4fc7875dc1824b53.d: /Users/hyungsukkang/.cargo/registry/src/github.com-1ecc6299db9ec823/schemars-0.7.6/build.rs
/Users/hyungsukkang/.cargo/registry/src/github.com-1ecc6299db9ec823/schemars-0.7.6/build.rs:
|
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 <[email protected]>
*******************************************************************************/
module dwt.widgets.Shell;
import dwt.DWT;
import dwt.DWTException;
import dwt.events.ShellListener;
import dwt.graphics.Cursor;
import dwt.graphics.GC;
import dwt.graphics.Point;
import dwt.graphics.Rectangle;
import dwt.graphics.Region;
import dwt.internal.win32.OS;
import dwt.widgets.Composite;
import dwt.widgets.Decorations;
import dwt.widgets.Control;
import dwt.widgets.Menu;
import dwt.widgets.ToolTip;
import dwt.widgets.Display;
import dwt.widgets.TypedListener;
import dwt.widgets.Event;
import dwt.dwthelper.utils;
/**
* Instances of this class represent the "windows"
* which the desktop or "window manager" is managing.
* Instances that do not have a parent (that is, they
* are built using the constructor, which takes a
* <code>Display</code> as the argument) are described
* as <em>top level</em> shells. Instances that do have
* a parent are described as <em>secondary</em> or
* <em>dialog</em> shells.
* <p>
* Instances are always displayed in one of the maximized,
* minimized or normal states:
* <ul>
* <li>
* When an instance is marked as <em>maximized</em>, the
* window manager will typically resize it to fill the
* entire visible area of the display, and the instance
* is usually put in a state where it can not be resized
* (even if it has style <code>RESIZE</code>) until it is
* no longer maximized.
* </li><li>
* When an instance is in the <em>normal</em> state (neither
* maximized or minimized), its appearance is controlled by
* the style constants which were specified when it was created
* and the restrictions of the window manager (see below).
* </li><li>
* When an instance has been marked as <em>minimized</em>,
* its contents (client area) will usually not be visible,
* and depending on the window manager, it may be
* "iconified" (that is, replaced on the desktop by a small
* simplified representation of itself), relocated to a
* distinguished area of the screen, or hidden. Combinations
* of these changes are also possible.
* </li>
* </ul>
* </p><p>
* The <em>modality</em> of an instance may be specified using
* style bits. The modality style bits are used to determine
* whether input is blocked for other shells on the display.
* The <code>PRIMARY_MODAL</code> style allows an instance to block
* input to its parent. The <code>APPLICATION_MODAL</code> style
* allows an instance to block input to every other shell in the
* display. The <code>SYSTEM_MODAL</code> style allows an instance
* to block input to all shells, including shells belonging to
* different applications.
* </p><p>
* Note: The styles supported by this class are treated
* as <em>HINT</em>s, since the window manager for the
* desktop on which the instance is visible has ultimate
* control over the appearance and behavior of decorations
* and modality. For example, some window managers only
* support resizable windows and will always assume the
* RESIZE style, even if it is not set. In addition, if a
* modality style is not supported, it is "upgraded" to a
* more restrictive modality style that is supported. For
* example, if <code>PRIMARY_MODAL</code> is not supported,
* it would be upgraded to <code>APPLICATION_MODAL</code>.
* A modality style may also be "downgraded" to a less
* restrictive style. For example, most operating systems
* no longer support <code>SYSTEM_MODAL</code> because
* it can freeze up the desktop, so this is typically
* downgraded to <code>APPLICATION_MODAL</code>.
* <dl>
* <dt><b>Styles:</b></dt>
* <dd>BORDER, CLOSE, MIN, MAX, NO_TRIM, RESIZE, TITLE, ON_TOP, TOOL</dd>
* <dd>APPLICATION_MODAL, MODELESS, PRIMARY_MODAL, SYSTEM_MODAL</dd>
* <dt><b>Events:</b></dt>
* <dd>Activate, Close, Deactivate, Deiconify, Iconify</dd>
* </dl>
* Class <code>DWT</code> provides two "convenience constants"
* for the most commonly required style combinations:
* <dl>
* <dt><code>SHELL_TRIM</code></dt>
* <dd>
* the result of combining the constants which are required
* to produce a typical application top level shell: (that
* is, <code>CLOSE | TITLE | MIN | MAX | RESIZE</code>)
* </dd>
* <dt><code>DIALOG_TRIM</code></dt>
* <dd>
* the result of combining the constants which are required
* to produce a typical application dialog shell: (that
* is, <code>TITLE | CLOSE | BORDER</code>)
* </dd>
* </dl>
* </p>
* <p>
* Note: Only one of the styles APPLICATION_MODAL, MODELESS,
* PRIMARY_MODAL and SYSTEM_MODAL may be specified.
* </p><p>
* IMPORTANT: This class is not intended to be subclassed.
* </p>
*
* @see Decorations
* @see DWT
* @see <a href="http://www.eclipse.org/swt/snippets/#shell">Shell snippets</a>
* @see <a href="http://www.eclipse.org/swt/examples.php">DWT Example: ControlExample</a>
* @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
*/
public class Shell : Decorations {
alias Decorations.setBounds setBounds;
alias Decorations.setParent setParent;
alias Decorations.setToolTipText setToolTipText;
Menu activeMenu;
ToolTip [] toolTips;
HIMC hIMC;
HWND hwndMDIClient_;
TCHAR* lpstrTip;
HANDLE toolTipHandle_;
HANDLE balloonTipHandle_;
int minWidth = DWT.DEFAULT, minHeight = DWT.DEFAULT;
HBRUSH [] brushes;
bool showWithParent, fullScreen, wasMaximized;
String toolTitle, balloonTitle;
HICON toolIcon;
HICON balloonIcon;
WNDPROC windowProc_;
Control lastActive;
static if( OS.IsWinCE ){
SHACTIVATEINFO psai;
}
static /+const+/ WNDPROC ToolTipProc;
static /+const+/ WNDPROC DialogProc;
static if( OS.IsWinCE ){
static const TCHAR[] DialogClass = "Dialog\0"w;
}
else{
static const TCHAR[] DialogClass = "#32770\0"w;
}
const static int [] SYSTEM_COLORS = [
OS.COLOR_BTNFACE,
OS.COLOR_WINDOW,
OS.COLOR_BTNTEXT,
OS.COLOR_WINDOWTEXT,
OS.COLOR_HIGHLIGHT,
OS.COLOR_SCROLLBAR,
];
final static int BRUSHES_SIZE = 32;
private static bool static_this_completed = false;
private static void static_this() {
if( static_this_completed ){
return;
}
synchronized {
if( static_this_completed ){
return;
}
WNDCLASS lpWndClass;
OS.GetClassInfo (null, DialogClass.ptr, &lpWndClass);
DialogProc = lpWndClass.lpfnWndProc;
static_this_completed = true;
}
}
/**
* Constructs a new instance of this class. This is equivalent
* to calling <code>Shell((Display) null)</code>.
*
* @exception DWTException <ul>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li>
* <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li>
* </ul>
*/
public this () {
this (cast(Display) null);
}
/**
* Constructs a new instance of this class given only the style
* value describing its behavior and appearance. This is equivalent
* to calling <code>Shell((Display) null, style)</code>.
* <p>
* The style value is either one of the style constants defined in
* class <code>DWT</code> which is applicable to instances of this
* class, or must be built by <em>bitwise OR</em>'ing together
* (that is, using the <code>int</code> "|" operator) two or more
* of those <code>DWT</code> style constants. The class description
* lists the style constants that are applicable to the class.
* Style bits are also inherited from superclasses.
* </p>
*
* @param style the style of control to construct
*
* @exception DWTException <ul>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li>
* <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li>
* </ul>
*
* @see DWT#BORDER
* @see DWT#CLOSE
* @see DWT#MIN
* @see DWT#MAX
* @see DWT#RESIZE
* @see DWT#TITLE
* @see DWT#NO_TRIM
* @see DWT#SHELL_TRIM
* @see DWT#DIALOG_TRIM
* @see DWT#MODELESS
* @see DWT#PRIMARY_MODAL
* @see DWT#APPLICATION_MODAL
* @see DWT#SYSTEM_MODAL
*/
public this (int style) {
this (cast(Display) null, style);
}
/**
* Constructs a new instance of this class given only the display
* to create it on. It is created with style <code>DWT.SHELL_TRIM</code>.
* <p>
* Note: Currently, null can be passed in for the display argument.
* This has the effect of creating the shell on the currently active
* display if there is one. If there is no current display, the
* shell is created on a "default" display. <b>Passing in null as
* the display argument is not considered to be good coding style,
* and may not be supported in a future release of DWT.</b>
* </p>
*
* @param display the display to create the shell on
*
* @exception DWTException <ul>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li>
* <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li>
* </ul>
*/
public this (Display display) {
this (display, OS.IsWinCE ? DWT.NONE : DWT.SHELL_TRIM);
}
/**
* Constructs a new instance of this class given the display
* to create it on and a style value describing its behavior
* and appearance.
* <p>
* The style value is either one of the style constants defined in
* class <code>DWT</code> which is applicable to instances of this
* class, or must be built by <em>bitwise OR</em>'ing together
* (that is, using the <code>int</code> "|" operator) two or more
* of those <code>DWT</code> style constants. The class description
* lists the style constants that are applicable to the class.
* Style bits are also inherited from superclasses.
* </p><p>
* Note: Currently, null can be passed in for the display argument.
* This has the effect of creating the shell on the currently active
* display if there is one. If there is no current display, the
* shell is created on a "default" display. <b>Passing in null as
* the display argument is not considered to be good coding style,
* and may not be supported in a future release of DWT.</b>
* </p>
*
* @param display the display to create the shell on
* @param style the style of control to construct
*
* @exception DWTException <ul>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li>
* <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li>
* </ul>
*
* @see DWT#BORDER
* @see DWT#CLOSE
* @see DWT#MIN
* @see DWT#MAX
* @see DWT#RESIZE
* @see DWT#TITLE
* @see DWT#NO_TRIM
* @see DWT#SHELL_TRIM
* @see DWT#DIALOG_TRIM
* @see DWT#MODELESS
* @see DWT#PRIMARY_MODAL
* @see DWT#APPLICATION_MODAL
* @see DWT#SYSTEM_MODAL
*/
public this (Display display, int style) {
this (display, null, style, null, false);
}
this (Display display, Shell parent, int style, HWND handle, bool embedded) {
static_this();
super ();
checkSubclass ();
if (display is null) display = Display.getCurrent ();
if (display is null) display = Display.getDefault ();
if (!display.isValidThread ()) {
error (DWT.ERROR_THREAD_INVALID_ACCESS);
}
if (parent !is null && parent.isDisposed ()) {
error (DWT.ERROR_INVALID_ARGUMENT);
}
this.style = checkStyle (style);
this.parent = parent;
this.display = display;
this.handle = handle;
if (handle !is null && !embedded) {
state |= FOREIGN_HANDLE;
}
createWidget ();
}
/**
* Constructs a new instance of this class given only its
* parent. It is created with style <code>DWT.DIALOG_TRIM</code>.
* <p>
* Note: Currently, null can be passed in for the parent.
* This has the effect of creating the shell on the currently active
* display if there is one. If there is no current display, the
* shell is created on a "default" display. <b>Passing in null as
* the parent is not considered to be good coding style,
* and may not be supported in a future release of DWT.</b>
* </p>
*
* @param parent a shell which will be the parent of the new instance
*
* @exception IllegalArgumentException <ul>
* <li>ERROR_INVALID_ARGUMENT - if the parent is disposed</li>
* </ul>
* @exception DWTException <ul>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li>
* <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li>
* </ul>
*/
public this (Shell parent) {
this (parent, OS.IsWinCE ? DWT.NONE : DWT.DIALOG_TRIM);
}
/**
* Constructs a new instance of this class given its parent
* and a style value describing its behavior and appearance.
* <p>
* The style value is either one of the style constants defined in
* class <code>DWT</code> which is applicable to instances of this
* class, or must be built by <em>bitwise OR</em>'ing together
* (that is, using the <code>int</code> "|" operator) two or more
* of those <code>DWT</code> style constants. The class description
* lists the style constants that are applicable to the class.
* Style bits are also inherited from superclasses.
* </p><p>
* Note: Currently, null can be passed in for the parent.
* This has the effect of creating the shell on the currently active
* display if there is one. If there is no current display, the
* shell is created on a "default" display. <b>Passing in null as
* the parent is not considered to be good coding style,
* and may not be supported in a future release of DWT.</b>
* </p>
*
* @param parent a shell which will be the parent of the new instance
* @param style the style of control to construct
*
* @exception IllegalArgumentException <ul>
* <li>ERROR_INVALID_ARGUMENT - if the parent is disposed</li>
* </ul>
* @exception DWTException <ul>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the parent</li>
* <li>ERROR_INVALID_SUBCLASS - if this class is not an allowed subclass</li>
* </ul>
*
* @see DWT#BORDER
* @see DWT#CLOSE
* @see DWT#MIN
* @see DWT#MAX
* @see DWT#RESIZE
* @see DWT#TITLE
* @see DWT#NO_TRIM
* @see DWT#SHELL_TRIM
* @see DWT#DIALOG_TRIM
* @see DWT#ON_TOP
* @see DWT#TOOL
* @see DWT#MODELESS
* @see DWT#PRIMARY_MODAL
* @see DWT#APPLICATION_MODAL
* @see DWT#SYSTEM_MODAL
*/
public this (Shell parent, int style) {
this (parent !is null ? parent.display : null, parent, style, null, false);
}
/**
* Invokes platform specific functionality to allocate a new shell
* that is embedded.
* <p>
* <b>IMPORTANT:</b> This method is <em>not</em> part of the public
* API for <code>Shell</code>. It is marked public only so that it
* can be shared within the packages provided by DWT. It is not
* available on all platforms, and should never be called from
* application code.
* </p>
*
* @param display the display for the shell
* @param handle the handle for the shell
* @return a new shell object containing the specified display and handle
*/
public static Shell win32_new (Display display, HWND handle) {
return new Shell (display, null, DWT.NO_TRIM, handle, true);
}
/**
* Invokes platform specific functionality to allocate a new shell
* that is not embedded.
* <p>
* <b>IMPORTANT:</b> This method is <em>not</em> part of the public
* API for <code>Shell</code>. It is marked public only so that it
* can be shared within the packages provided by DWT. It is not
* available on all platforms, and should never be called from
* application code.
* </p>
*
* @param display the display for the shell
* @param handle the handle for the shell
* @return a new shell object containing the specified display and handle
*
* @since 3.3
*/
public static Shell internal_new (Display display, HWND handle) {
return new Shell (display, null, DWT.NO_TRIM, handle, false);
}
static int checkStyle (int style) {
style = Decorations.checkStyle (style);
style &= ~DWT.TRANSPARENT;
int mask = DWT.SYSTEM_MODAL | DWT.APPLICATION_MODAL | DWT.PRIMARY_MODAL;
int bits = style & ~mask;
if ((style & DWT.SYSTEM_MODAL) !is 0) return bits | DWT.SYSTEM_MODAL;
if ((style & DWT.APPLICATION_MODAL) !is 0) return bits | DWT.APPLICATION_MODAL;
if ((style & DWT.PRIMARY_MODAL) !is 0) return bits | DWT.PRIMARY_MODAL;
return bits;
}
/**
* Adds the listener to the collection of listeners who will
* be notified when operations are performed on the receiver,
* by sending the listener one of the messages defined in the
* <code>ShellListener</code> interface.
*
* @param listener the listener which should be notified
*
* @exception IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if the listener is null</li>
* </ul>
* @exception DWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
* @see ShellListener
* @see #removeShellListener
*/
public void addShellListener (ShellListener listener) {
checkWidget ();
if (listener is null) error (DWT.ERROR_NULL_ARGUMENT);
TypedListener typedListener = new TypedListener (listener);
addListener (DWT.Close,typedListener);
addListener (DWT.Iconify,typedListener);
addListener (DWT.Deiconify,typedListener);
addListener (DWT.Activate, typedListener);
addListener (DWT.Deactivate, typedListener);
}
HANDLE balloonTipHandle () {
if (balloonTipHandle_ is null) createBalloonTipHandle ();
return balloonTipHandle_;
}
override int callWindowProc (HWND hwnd, int msg, int wParam, int lParam) {
if (handle is null) return 0;
if (hwnd is toolTipHandle_ || hwnd is balloonTipHandle_) {
return OS.CallWindowProc (ToolTipProc, hwnd, msg, wParam, lParam);
}
if (hwndMDIClient_ !is null) {
return OS.DefFrameProc (hwnd, hwndMDIClient_, msg, wParam, lParam);
}
if (windowProc_ !is null) {
return OS.CallWindowProc (windowProc_, hwnd, msg, wParam, lParam);
}
if ((style & DWT.TOOL) !is 0) {
int trim = DWT.TITLE | DWT.CLOSE | DWT.MIN | DWT.MAX | DWT.BORDER | DWT.RESIZE;
if ((style & trim) is 0) return OS.DefWindowProc (hwnd, msg, wParam, lParam);
}
if (parent !is null) {
switch (msg) {
case OS.WM_KILLFOCUS:
case OS.WM_SETFOCUS:
return OS.DefWindowProc (hwnd, msg, wParam, lParam);
default:
}
return OS.CallWindowProc (DialogProc, hwnd, msg, wParam, lParam);
}
return OS.DefWindowProc (hwnd, msg, wParam, lParam);
}
/**
* Requests that the window manager close the receiver in
* the same way it would be closed when the user clicks on
* the "close box" or performs some other platform specific
* key or mouse combination that indicates the window
* should be removed.
*
* @exception DWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
* @see DWT#Close
* @see #dispose
*/
public void close () {
checkWidget ();
closeWidget ();
}
void createBalloonTipHandle () {
balloonTipHandle_ = OS.CreateWindowEx (
0,
OS.TOOLTIPS_CLASS.ptr,
null,
OS.TTS_ALWAYSTIP | OS.TTS_NOPREFIX | OS.TTS_BALLOON,
OS.CW_USEDEFAULT, 0, OS.CW_USEDEFAULT, 0,
handle,
null,
OS.GetModuleHandle (null),
null);
if (balloonTipHandle_ is null) error (DWT.ERROR_NO_HANDLES);
if (ToolTipProc is null) {
ToolTipProc = cast(WNDPROC) OS.GetWindowLongPtr (balloonTipHandle_, OS.GWLP_WNDPROC);
}
/*
* Feature in Windows. Despite the fact that the
* tool tip text contains \r\n, the tooltip will
* not honour the new line unless TTM_SETMAXTIPWIDTH
* is set. The fix is to set TTM_SETMAXTIPWIDTH to
* a large value.
*/
OS.SendMessage (balloonTipHandle_, OS.TTM_SETMAXTIPWIDTH, 0, 0x7FFF);
display.addControl (balloonTipHandle_, this);
OS.SetWindowLongPtr (balloonTipHandle_, OS.GWLP_WNDPROC, display.windowProc);
}
override void createHandle () {
bool embedded = handle !is null && (state & FOREIGN_HANDLE) is 0;
/*
* On Windows 98 and NT, setting a window to be the
* top most window using HWND_TOPMOST can result in a
* parent dialog shell being moved behind its parent
* if the dialog has a sibling that is currently on top
* This only occurs using SetWindowPos (), not when the
* handle is created.
*/
/*
* The following code is intentionally commented.
*/
// if ((style & DWT.ON_TOP) !is 0) display.lockActiveWindow = true;
if (handle is null || embedded) {
super.createHandle ();
} else {
state |= CANVAS;
if ((style & (DWT.H_SCROLL | DWT.V_SCROLL)) is 0) {
state |= THEME_BACKGROUND;
}
windowProc_ = cast(WNDPROC) OS.GetWindowLong (handle, OS.GWL_WNDPROC);
}
/*
* The following code is intentionally commented.
*/
// if ((style & DWT.ON_TOP) !is 0) display.lockActiveWindow = false;
if (!embedded) {
int bits = OS.GetWindowLong (handle, OS.GWL_STYLE);
bits &= ~(OS.WS_OVERLAPPED | OS.WS_CAPTION);
static if (!OS.IsWinCE) bits |= OS.WS_POPUP;
if ((style & DWT.TITLE) !is 0) bits |= OS.WS_CAPTION;
if ((style & DWT.NO_TRIM) is 0) {
if ((style & (DWT.BORDER | DWT.RESIZE)) is 0) bits |= OS.WS_BORDER;
}
/*
* Bug in Windows. When the WS_CAPTION bits are cleared using
* SetWindowLong(), Windows does not resize the client area of
* the window to get rid of the caption until the first resize.
* The fix is to use SetWindowPos() with SWP_DRAWFRAME to force
* the frame to be redrawn and resized.
*/
OS.SetWindowLong (handle, OS.GWL_STYLE, bits);
int flags = OS.SWP_DRAWFRAME | OS.SWP_NOMOVE | OS.SWP_NOSIZE | OS.SWP_NOZORDER | OS.SWP_NOACTIVATE;
SetWindowPos (handle, null, 0, 0, 0, 0, flags);
static if (OS.IsWinCE) _setMaximized (true);
static if (OS.IsPPC) {
psai = new SHACTIVATEINFO ();
psai.cbSize = SHACTIVATEINFO.sizeof;
}
}
if (OS.IsDBLocale) {
hIMC = OS.ImmCreateContext ();
if (hIMC !is null) OS.ImmAssociateContext (handle, hIMC);
}
}
void createToolTip (ToolTip toolTip) {
int id = 0;
if (toolTips is null) toolTips = new ToolTip [4];
while (id < toolTips.length && toolTips [id] !is null) id++;
if (id is toolTips.length) {
ToolTip [] newToolTips = new ToolTip [toolTips.length + 4];
System.arraycopy (toolTips, 0, newToolTips, 0, toolTips.length);
toolTips = newToolTips;
}
toolTips [id] = toolTip;
toolTip.id = id + Display.ID_START;
static if (OS.IsWinCE) return;
TOOLINFO lpti;
lpti.cbSize = OS.TOOLINFO_sizeof;
lpti.hwnd = handle;
lpti.uId = toolTip.id;
lpti.uFlags = OS.TTF_TRACK;
lpti.lpszText = OS.LPSTR_TEXTCALLBACK;
OS.SendMessage (toolTip.hwndToolTip (), OS.TTM_ADDTOOL, 0, &lpti);
}
void createToolTipHandle () {
toolTipHandle_ = OS.CreateWindowEx (
0,
OS.TOOLTIPS_CLASS.ptr,
null,
OS.TTS_ALWAYSTIP | OS.TTS_NOPREFIX,
OS.CW_USEDEFAULT, 0, OS.CW_USEDEFAULT, 0,
handle,
null,
OS.GetModuleHandle (null),
null);
if (toolTipHandle_ is null) error (DWT.ERROR_NO_HANDLES);
if (ToolTipProc is null) {
ToolTipProc = cast(WNDPROC) OS.GetWindowLongPtr (toolTipHandle_, OS.GWLP_WNDPROC);
}
/*
* Feature in Windows. Despite the fact that the
* tool tip text contains \r\n, the tooltip will
* not honour the new line unless TTM_SETMAXTIPWIDTH
* is set. The fix is to set TTM_SETMAXTIPWIDTH to
* a large value.
*/
OS.SendMessage (toolTipHandle_, OS.TTM_SETMAXTIPWIDTH, 0, 0x7FFF);
display.addControl (toolTipHandle_, this);
OS.SetWindowLongPtr (toolTipHandle_, OS.GWLP_WNDPROC, display.windowProc);
}
override void deregister () {
super.deregister ();
if (toolTipHandle_ !is null) display.removeControl (toolTipHandle_);
if (balloonTipHandle_ !is null) display.removeControl (balloonTipHandle_);
}
void destroyToolTip (ToolTip toolTip) {
if (toolTips is null) return;
toolTips [toolTip.id - Display.ID_START] = null;
static if (OS.IsWinCE) return;
if (balloonTipHandle_ !is null) {
TOOLINFO lpti;
lpti.cbSize = OS.TOOLINFO_sizeof;
lpti.uId = toolTip.id;
lpti.hwnd = handle;
OS.SendMessage (balloonTipHandle_, OS.TTM_DELTOOL, 0, &lpti);
}
toolTip.id = -1;
}
override void destroyWidget () {
fixActiveShell ();
super.destroyWidget ();
}
override public void dispose () {
/*
* This code is intentionally commented. On some
* platforms, the owner window is repainted right
* away when a dialog window exits. This behavior
* is currently unspecified.
*/
// /*
// * Note: It is valid to attempt to dispose a widget
// * more than once. If this happens, fail silently.
// */
// if (!isValidWidget ()) return;
// if (!isValidThread ()) error (DWT.ERROR_THREAD_INVALID_ACCESS);
// Display oldDisplay = display;
super.dispose ();
// widget is disposed at this point
// if (oldDisplay !is null) oldDisplay.update ();
}
override void enableWidget (bool enabled) {
if (enabled) {
state &= ~DISABLED;
} else {
state |= DISABLED;
}
if (Display.TrimEnabled) {
if (isActive ()) setItemEnabled (OS.SC_CLOSE, enabled);
} else {
OS.EnableWindow (handle, enabled);
}
}
override HBRUSH findBrush (int value, int lbStyle) {
if (lbStyle is OS.BS_SOLID) {
for (int i=0; i<SYSTEM_COLORS.length; i++) {
if (value is OS.GetSysColor (SYSTEM_COLORS [i])) {
return OS.GetSysColorBrush (SYSTEM_COLORS [i]);
}
}
}
if (brushes is null) brushes = new HBRUSH [BRUSHES_SIZE];
LOGBRUSH logBrush;
for (int i=0; i<brushes.length; i++) {
HBRUSH hBrush = brushes [i];
if (hBrush is null) break;
OS.GetObject (hBrush, LOGBRUSH.sizeof, &logBrush);
switch (logBrush.lbStyle) {
case OS.BS_SOLID:
if (lbStyle is OS.BS_SOLID) {
if (logBrush.lbColor is value) return hBrush;
}
break;
case OS.BS_PATTERN:
if (lbStyle is OS.BS_PATTERN) {
if (logBrush.lbHatch is value) return hBrush;
}
break;
default:
}
}
int length_ = brushes.length;
HBRUSH hBrush = brushes [--length_];
if (hBrush !is null) OS.DeleteObject (hBrush);
System.arraycopy (brushes, 0, brushes, 1, length_);
switch (lbStyle) {
case OS.BS_SOLID:
hBrush = OS.CreateSolidBrush (value);
break;
case OS.BS_PATTERN:
hBrush = OS.CreatePatternBrush ( cast(HBITMAP) value);
break;
default:
}
return brushes [0] = hBrush;
}
override Control findBackgroundControl () {
return background !is -1 || backgroundImage !is null ? this : null;
}
override Cursor findCursor () {
return cursor;
}
override Control findThemeControl () {
return null;
}
ToolTip findToolTip (int id) {
if (toolTips is null) return null;
id = id - Display.ID_START;
return 0 <= id && id < toolTips.length ? toolTips [id] : null;
}
void fixActiveShell () {
/*
* Feature in Windows. When the active shell is disposed
* or hidden, Windows normally makes the parent shell active
* and assigns focus. This does not happen when the parent
* shell is disabled. Instead, Windows assigns focus to the
* next shell on the desktop (possibly a shell in another
* application). The fix is to activate the disabled parent
* shell before disposing or hiding the active shell.
*/
auto hwndParent = OS.GetParent (handle);
if (hwndParent !is null && handle is OS.GetActiveWindow ()) {
if (!OS.IsWindowEnabled (hwndParent) && OS.IsWindowVisible (hwndParent)) {
OS.SetActiveWindow (hwndParent);
}
}
}
void fixShell (Shell newShell, Control control) {
if (this is newShell) return;
if (control is lastActive) setActiveControl (null);
String toolTipText = control.toolTipText_;
if (toolTipText !is null) {
control.setToolTipText (this, null);
control.setToolTipText (newShell, toolTipText);
}
}
void fixToolTip () {
/*
* Bug in Windows. On XP, when a tooltip is
* hidden due to a time out or mouse press,
* the tooltip remains active although no
* longer visible and won't show again until
* another tooltip becomes active. If there
* is only one tooltip in the window, it will
* never show again. The fix is to remove the
* current tooltip and add it again every time
* the mouse leaves the control.
*/
if (OS.COMCTL32_MAJOR >= 6) {
if (toolTipHandle_ is null) return;
TOOLINFO lpti;
lpti.cbSize = OS.TOOLINFO_sizeof;
if (OS.SendMessage (toolTipHandle_, OS.TTM_GETCURRENTTOOL, 0, &lpti) !is 0) {
if ((lpti.uFlags & OS.TTF_IDISHWND) !is 0) {
OS.SendMessage (toolTipHandle_, OS.TTM_DELTOOL, 0, &lpti);
OS.SendMessage (toolTipHandle_, OS.TTM_ADDTOOL, 0, &lpti);
}
}
}
}
/**
* If the receiver is visible, moves it to the top of the
* drawing order for the display on which it was created
* (so that all other shells on that display, which are not
* the receiver's children will be drawn behind it) and forces
* the window manager to make the shell active.
*
* @exception DWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
* @since 2.0
* @see Control#moveAbove
* @see Control#setFocus
* @see Control#setVisible
* @see Display#getActiveShell
* @see Decorations#setDefaultButton(Button)
* @see Shell#open
* @see Shell#setActive
*/
public void forceActive () {
checkWidget ();
if(!isVisible()) return;
OS.SetForegroundWindow (handle);
}
override void forceResize () {
/* Do nothing */
}
/**
* Returns the receiver's alpha value. The alpha value
* is between 0 (transparent) and 255 (opaque).
*
* @return the alpha value
*
* @exception DWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
* @since 3.4
*/
public int getAlpha () {
checkWidget ();
if (!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (5, 1)) {
ubyte [1] pbAlpha;
if (OS.GetLayeredWindowAttributes (handle, null, pbAlpha.ptr, null)) {
return pbAlpha [0] & 0xFF;
}
}
return 0xFF;
}
override public Rectangle getBounds () {
checkWidget ();
static if (!OS.IsWinCE) {
if (OS.IsIconic (handle)) return super.getBounds ();
}
RECT rect;
OS.GetWindowRect (handle, &rect);
int width = rect.right - rect.left;
int height = rect.bottom - rect.top;
return new Rectangle (rect.left, rect.top, width, height);
}
ToolTip getCurrentToolTip () {
if (toolTipHandle_ !is null) {
ToolTip tip = getCurrentToolTip (toolTipHandle_);
if (tip !is null) return tip;
}
if (balloonTipHandle_ !is null) {
ToolTip tip = getCurrentToolTip (balloonTipHandle_);
if (tip !is null) return tip;
}
return null;
}
ToolTip getCurrentToolTip (HWND hwndToolTip) {
if (hwndToolTip is null) return null;
if (OS.SendMessage (hwndToolTip, OS.TTM_GETCURRENTTOOL, 0, 0) !is 0) {
TOOLINFO lpti;
lpti.cbSize = OS.TOOLINFO_sizeof;
if (OS.SendMessage (hwndToolTip, OS.TTM_GETCURRENTTOOL, 0, &lpti) !is 0) {
if ((lpti.uFlags & OS.TTF_IDISHWND) is 0) return findToolTip (lpti.uId);
}
}
return null;
}
override public bool getEnabled () {
checkWidget ();
return (state & DISABLED) is 0;
}
/**
* Returns <code>true</code> if the receiver is currently
* in fullscreen state, and false otherwise.
* <p>
*
* @return the fullscreen state
*
* @exception DWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
* @since 3.4
*/
public bool getFullScreen () {
checkWidget();
return fullScreen;
}
/**
* Returns the receiver's input method editor mode. This
* will be the result of bitwise OR'ing together one or
* more of the following constants defined in class
* <code>DWT</code>:
* <code>NONE</code>, <code>ROMAN</code>, <code>DBCS</code>,
* <code>PHONETIC</code>, <code>NATIVE</code>, <code>ALPHA</code>.
*
* @return the IME mode
*
* @exception DWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
* @see DWT
*/
public int getImeInputMode () {
checkWidget ();
if (!OS.IsDBLocale) return 0;
auto hIMC = OS.ImmGetContext (handle);
uint lpfdwConversion, lpfdwSentence;
bool open = cast(bool) OS.ImmGetOpenStatus (hIMC);
if (open) open = cast(bool) OS.ImmGetConversionStatus (hIMC, &lpfdwConversion, &lpfdwSentence);
OS.ImmReleaseContext (handle, hIMC);
if (!open) return DWT.NONE;
int result = 0;
if ((lpfdwConversion & OS.IME_CMODE_ROMAN) !is 0) result |= DWT.ROMAN;
if ((lpfdwConversion & OS.IME_CMODE_FULLSHAPE) !is 0) result |= DWT.DBCS;
if ((lpfdwConversion & OS.IME_CMODE_KATAKANA) !is 0) return result | DWT.PHONETIC;
if ((lpfdwConversion & OS.IME_CMODE_NATIVE) !is 0) return result | DWT.NATIVE;
return result | DWT.ALPHA;
}
override public Point getLocation () {
checkWidget ();
static if (!OS.IsWinCE) {
if (OS.IsIconic (handle)) {
return super.getLocation ();
}
}
RECT rect;
OS.GetWindowRect (handle, &rect);
return new Point (rect.left, rect.top);
}
public bool getMaximized () {
checkWidget ();
return !fullScreen && super.getMaximized ();
}
/**
* Returns a point describing the minimum receiver's size. The
* x coordinate of the result is the minimum width of the receiver.
* The y coordinate of the result is the minimum height of the
* receiver.
*
* @return the receiver's size
*
* @exception DWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
* @since 3.1
*/
public Point getMinimumSize () {
checkWidget ();
int width = Math.max (0, minWidth);
int trim = DWT.TITLE | DWT.CLOSE | DWT.MIN | DWT.MAX;
if ((style & DWT.NO_TRIM) is 0 && (style & trim) !is 0) {
width = Math.max (width, OS.GetSystemMetrics (OS.SM_CXMINTRACK));
}
int height = Math.max (0, minHeight);
if ((style & DWT.NO_TRIM) is 0 && (style & trim) !is 0) {
if ((style & DWT.RESIZE) !is 0) {
height = Math.max (height, OS.GetSystemMetrics (OS.SM_CYMINTRACK));
} else {
RECT rect;
int bits1 = OS.GetWindowLong (handle, OS.GWL_STYLE);
int bits2 = OS.GetWindowLong (handle, OS.GWL_EXSTYLE);
OS.AdjustWindowRectEx (&rect, bits1, false, bits2);
height = Math.max (height, rect.bottom - rect.top);
}
}
return new Point (width, height);
}
/**
* Returns the region that defines the shape of the shell,
* or null if the shell has the default shape.
*
* @return the region that defines the shape of the shell (or null)
*
* @exception DWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
* @since 3.0
*
*/
public Region getRegion () {
/* This method is needed for the @since 3.0 Javadoc */
checkWidget ();
return region;
}
override public Shell getShell () {
checkWidget ();
return this;
}
override public Point getSize () {
checkWidget ();
static if (!OS.IsWinCE) {
if (OS.IsIconic (handle)) return super.getSize ();
}
RECT rect;
OS.GetWindowRect (handle, &rect);
int width = rect.right - rect.left;
int height = rect.bottom - rect.top;
return new Point (width, height);
}
/**
* Returns an array containing all shells which are
* descendants of the receiver.
* <p>
* @return the dialog shells
*
* @exception DWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*/
public Shell [] getShells () {
checkWidget ();
int count = 0;
Shell [] shells = display.getShells ();
for (int i=0; i<shells.length; i++) {
Control shell = shells [i];
do {
shell = shell.parent;
} while (shell !is null && shell !is this);
if (shell is this) count++;
}
int index = 0;
Shell [] result = new Shell [count];
for (int i=0; i<shells.length; i++) {
Control shell = shells [i];
do {
shell = shell.parent;
} while (shell !is null && shell !is this);
if (shell is this) {
result [index++] = shells [i];
}
}
return result;
}
override Composite findDeferredControl () {
return layoutCount > 0 ? this : null;
}
override public bool isEnabled () {
checkWidget ();
return getEnabled ();
}
override public bool isVisible () {
checkWidget ();
return getVisible ();
}
HWND hwndMDIClient () {
if (hwndMDIClient_ is null) {
int widgetStyle = OS.MDIS_ALLCHILDSTYLES | OS.WS_CHILD | OS.WS_CLIPCHILDREN | OS.WS_CLIPSIBLINGS;
hwndMDIClient_ = OS.CreateWindowEx (
0,
StrToTCHARz("MDICLIENT"),
null,
widgetStyle,
0, 0, 0, 0,
handle,
null,
OS.GetModuleHandle (null),
new CREATESTRUCT ());
// OS.ShowWindow (hwndMDIClient_, OS.SW_SHOW);
}
return hwndMDIClient_;
}
/**
* Moves the receiver to the top of the drawing order for
* the display on which it was created (so that all other
* shells on that display, which are not the receiver's
* children will be drawn behind it), marks it visible,
* sets the focus and asks the window manager to make the
* shell active.
*
* @exception DWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
* @see Control#moveAbove
* @see Control#setFocus
* @see Control#setVisible
* @see Display#getActiveShell
* @see Decorations#setDefaultButton(Button)
* @see Shell#setActive
* @see Shell#forceActive
*/
public void open () {
checkWidget ();
STARTUPINFO* lpStartUpInfo = Display.lpStartupInfo;
if (lpStartUpInfo is null || (lpStartUpInfo.dwFlags & OS.STARTF_USESHOWWINDOW) is 0) {
bringToTop ();
if (isDisposed ()) return;
}
/*
* Feature on WinCE PPC. A new application becomes
* the foreground application only if it has at least
* one visible window before the event loop is started.
* The workaround is to explicitly force the shell to
* be the foreground window.
*/
static if (OS.IsWinCE) OS.SetForegroundWindow (handle);
OS.SendMessage (handle, OS.WM_CHANGEUISTATE, OS.UIS_INITIALIZE, 0);
setVisible (true);
if (isDisposed ()) return;
/*
* Bug in Windows XP. Despite the fact that an icon has been
* set for a window, the task bar displays the wrong icon the
* first time the window is made visible with ShowWindow() after
* a call to BringToTop(), when a long time elapses between the
* ShowWindow() and the time the event queue is read. The icon
* in the window trimming is correct but the one in the task
* bar does not get updated. The fix is to call PeekMessage()
* with the flag PM_NOREMOVE and PM_QS_SENDMESSAGE to respond
* to a cross thread WM_GETICON.
*
* NOTE: This allows other cross thread messages to be delivered,
* most notably WM_ACTIVATE.
*/
MSG msg;
int flags = OS.PM_NOREMOVE | OS.PM_NOYIELD | OS.PM_QS_SENDMESSAGE;
OS.PeekMessage (&msg, null, 0, 0, flags);
if (!restoreFocus () && !traverseGroup (true)) setFocus ();
}
public bool print (GC gc) {
checkWidget ();
if (gc is null) error (DWT.ERROR_NULL_ARGUMENT);
if (gc.isDisposed ()) error (DWT.ERROR_INVALID_ARGUMENT);
return false;
}
override void register () {
super.register ();
if (toolTipHandle_ !is null) display.addControl (toolTipHandle_, this);
if (balloonTipHandle_ !is null) display.addControl (balloonTipHandle_, this);
}
void releaseBrushes () {
if (brushes !is null) {
for (int i=0; i<brushes.length; i++) {
if (brushes [i] !is null) OS.DeleteObject (brushes [i]);
}
}
brushes = null;
}
override void releaseChildren (bool destroy) {
Shell [] shells = getShells ();
for (int i=0; i<shells.length; i++) {
Shell shell = shells [i];
if (shell !is null && !shell.isDisposed ()) {
shell.release (false);
}
}
if (toolTips !is null) {
for (int i=0; i<toolTips.length; i++) {
ToolTip toolTip = toolTips [i];
if (toolTip !is null && !toolTip.isDisposed ()) {
toolTip.release (false);
}
}
}
toolTips = null;
super.releaseChildren (destroy);
}
override void releaseHandle () {
super.releaseHandle ();
hwndMDIClient_ = null;
}
override void releaseParent () {
/* Do nothing */
}
override void releaseWidget () {
super.releaseWidget ();
releaseBrushes ();
activeMenu = null;
display.clearModal (this);
if (lpstrTip !is null) {
auto hHeap = OS.GetProcessHeap ();
OS.HeapFree (hHeap, 0, lpstrTip);
}
lpstrTip = null;
toolTipHandle_ = balloonTipHandle_ = null;
if (OS.IsDBLocale) {
if (hIMC !is null) OS.ImmDestroyContext (hIMC);
}
lastActive = null;
toolTitle = balloonTitle = null;
}
override void removeMenu (Menu menu) {
super.removeMenu (menu);
if (menu is activeMenu) activeMenu = null;
}
/**
* Removes the listener from the collection of listeners who will
* be notified when operations are performed on the receiver.
*
* @param listener the listener which should no longer be notified
*
* @exception IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if the listener is null</li>
* </ul>
* @exception DWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
* @see ShellListener
* @see #addShellListener
*/
public void removeShellListener (ShellListener listener) {
checkWidget ();
if (listener is null) error (DWT.ERROR_NULL_ARGUMENT);
if (eventTable is null) return;
eventTable.unhook (DWT.Close, listener);
eventTable.unhook (DWT.Iconify,listener);
eventTable.unhook (DWT.Deiconify,listener);
eventTable.unhook (DWT.Activate, listener);
eventTable.unhook (DWT.Deactivate, listener);
}
LRESULT selectPalette (HPALETTE hPalette) {
auto hDC = OS.GetDC (handle);
auto hOld = OS.SelectPalette (hDC, hPalette, false);
int result = OS.RealizePalette (hDC);
if (result > 0) {
OS.InvalidateRect (handle, null, true);
} else {
OS.SelectPalette (hDC, hOld, true);
OS.RealizePalette (hDC);
}
OS.ReleaseDC (handle, hDC);
return (result > 0) ? LRESULT.ONE : LRESULT.ZERO;
}
bool sendKeyEvent (int type, int msg, int /*long*/ wParam, int /*long*/ lParam, Event event) {
if (!isEnabled () || !isActive ()) return false;
return super.sendKeyEvent (type, msg, wParam, lParam, event);
}
/**
* If the receiver is visible, moves it to the top of the
* drawing order for the display on which it was created
* (so that all other shells on that display, which are not
* the receiver's children will be drawn behind it) and asks
* the window manager to make the shell active
*
* @exception DWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
* @since 2.0
* @see Control#moveAbove
* @see Control#setFocus
* @see Control#setVisible
* @see Display#getActiveShell
* @see Decorations#setDefaultButton(Button)
* @see Shell#open
* @see Shell#setActive
*/
public void setActive () {
checkWidget ();
if (!isVisible ()) return;
bringToTop ();
// widget could be disposed at this point
}
void setActiveControl (Control control) {
if (control !is null && control.isDisposed ()) control = null;
if (lastActive !is null && lastActive.isDisposed ()) lastActive = null;
if (lastActive is control) return;
/*
* Compute the list of controls to be activated and
* deactivated by finding the first common parent
* control.
*/
Control [] activate = (control is null) ? new Control [0] : control.getPath ();
Control [] deactivate = (lastActive is null) ? new Control [0] : lastActive.getPath ();
lastActive = control;
int index = 0, length = Math.min (activate.length, deactivate.length);
while (index < length) {
if (activate [index] !is deactivate [index]) break;
index++;
}
/*
* It is possible (but unlikely), that application
* code could have destroyed some of the widgets. If
* this happens, keep processing those widgets that
* are not disposed.
*/
for (int i=deactivate.length-1; i>=index; --i) {
if (!deactivate [i].isDisposed ()) {
deactivate [i].sendEvent (DWT.Deactivate);
}
}
for (int i=activate.length-1; i>=index; --i) {
if (!activate [i].isDisposed ()) {
activate [i].sendEvent (DWT.Activate);
}
}
}
/**
* Sets the receiver's alpha value which must be
* between 0 (transparent) and 255 (opaque).
* <p>
* This operation requires the operating system's advanced
* widgets subsystem which may not be available on some
* platforms.
* </p>
* @param alpha the alpha value
*
* @exception DWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
* @since 3.4
*/
public void setAlpha (int alpha) {
checkWidget ();
if (!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (5, 1)) {
alpha &= 0xFF;
int bits = OS.GetWindowLong (handle, OS.GWL_EXSTYLE);
if (alpha is 0xFF) {
OS.SetWindowLong (handle, OS.GWL_EXSTYLE, bits & ~OS.WS_EX_LAYERED);
int flags = OS.RDW_ERASE | OS.RDW_INVALIDATE | OS.RDW_FRAME | OS.RDW_ALLCHILDREN;
OS.RedrawWindow (handle, null, null, flags);
} else {
OS.SetWindowLong (handle, OS.GWL_EXSTYLE, bits | OS.WS_EX_LAYERED);
OS.SetLayeredWindowAttributes (handle, 0, cast(byte)alpha, OS.LWA_ALPHA);
}
}
}
override void setBounds (int x, int y, int width, int height, int flags, bool defer) {
if (fullScreen) setFullScreen (false);
/*
* Bug in Windows. When a window has alpha and
* SetWindowPos() is called with SWP_DRAWFRAME,
* the contents of the window are copied rather
* than allowing the windows underneath to draw.
* This causes pixel corruption. The fix is to
* clear the SWP_DRAWFRAME bits.
*/
int bits = OS.GetWindowLong (handle, OS.GWL_EXSTYLE);
if ((bits & OS.WS_EX_LAYERED) !is 0) {
flags &= ~OS.SWP_DRAWFRAME;
}
super.setBounds (x, y, width, height, flags, false);
}
override public void setEnabled (bool enabled) {
checkWidget ();
if (((state & DISABLED) is 0) is enabled) return;
super.setEnabled (enabled);
if (enabled && handle is OS.GetActiveWindow ()) {
if (!restoreFocus ()) traverseGroup (true);
}
}
/**
* Sets the full screen state of the receiver.
* If the argument is <code>true</code> causes the receiver
* to switch to the full screen state, and if the argument is
* <code>false</code> and the receiver was previously switched
* into full screen state, causes the receiver to switch back
* to either the maximmized or normal states.
* <p>
* Note: The result of intermixing calls to <code>setFullScreen(true)</code>,
* <code>setMaximized(true)</code> and <code>setMinimized(true)</code> will
* vary by platform. Typically, the behavior will match the platform user's
* expectations, but not always. This should be avoided if possible.
* </p>
*
* @param fullScreen the new fullscreen state
*
* @exception DWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
* @since 3.4
*/
public void setFullScreen (bool fullScreen) {
checkWidget();
if (this.fullScreen is fullScreen) return;
int stateFlags = fullScreen ? OS.SW_SHOWMAXIMIZED : OS.SW_RESTORE;
int styleFlags = OS.GetWindowLong (handle, OS.GWL_STYLE);
int mask = DWT.TITLE | DWT.CLOSE | DWT.MIN | DWT.MAX;
if ((style & mask) !is 0) {
if (fullScreen) {
styleFlags = styleFlags & ~OS.WS_CAPTION;
} else {
styleFlags = styleFlags | OS.WS_CAPTION;
}
}
if (fullScreen) wasMaximized = getMaximized ();
bool visible = isVisible ();
OS.SetWindowLong (handle, OS.GWL_STYLE, styleFlags);
if (wasMaximized) {
OS.ShowWindow (handle, OS.SW_HIDE);
stateFlags = OS.SW_SHOWMAXIMIZED;
}
if (visible) OS.ShowWindow (handle, stateFlags);
OS.UpdateWindow (handle);
this.fullScreen = fullScreen;
}
/**
* Sets the input method editor mode to the argument which
* should be the result of bitwise OR'ing together one or more
* of the following constants defined in class <code>DWT</code>:
* <code>NONE</code>, <code>ROMAN</code>, <code>DBCS</code>,
* <code>PHONETIC</code>, <code>NATIVE</code>, <code>ALPHA</code>.
*
* @param mode the new IME mode
*
* @exception DWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
* @see DWT
*/
public void setImeInputMode (int mode) {
checkWidget ();
if (!OS.IsDBLocale) return;
bool imeOn = mode !is DWT.NONE;
auto hIMC = OS.ImmGetContext (handle);
OS.ImmSetOpenStatus (hIMC, imeOn);
if (imeOn) {
uint lpfdwConversion, lpfdwSentence;
if (OS.ImmGetConversionStatus (hIMC, &lpfdwConversion, &lpfdwSentence)) {
int newBits = 0;
int oldBits = OS.IME_CMODE_NATIVE | OS.IME_CMODE_KATAKANA;
if ((mode & DWT.PHONETIC) !is 0) {
newBits = OS.IME_CMODE_KATAKANA | OS.IME_CMODE_NATIVE;
oldBits = 0;
} else {
if ((mode & DWT.NATIVE) !is 0) {
newBits = OS.IME_CMODE_NATIVE;
oldBits = OS.IME_CMODE_KATAKANA;
}
}
if ((mode & (DWT.DBCS | DWT.NATIVE)) !is 0) {
newBits |= OS.IME_CMODE_FULLSHAPE;
} else {
oldBits |= OS.IME_CMODE_FULLSHAPE;
}
if ((mode & DWT.ROMAN) !is 0) {
newBits |= OS.IME_CMODE_ROMAN;
} else {
oldBits |= OS.IME_CMODE_ROMAN;
}
lpfdwConversion |= newBits;
lpfdwConversion &= ~oldBits;
OS.ImmSetConversionStatus (hIMC, lpfdwConversion, lpfdwSentence);
}
}
OS.ImmReleaseContext (handle, hIMC);
}
/**
* Sets the receiver's minimum size to the size specified by the arguments.
* If the new minimum size is larger than the current size of the receiver,
* the receiver is resized to the new minimum size.
*
* @param width the new minimum width for the receiver
* @param height the new minimum height for the receiver
*
* @exception DWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
* @since 3.1
*/
public void setMinimumSize (int width, int height) {
checkWidget ();
int widthLimit = 0, heightLimit = 0;
int trim = DWT.TITLE | DWT.CLOSE | DWT.MIN | DWT.MAX;
if ((style & DWT.NO_TRIM) is 0 && (style & trim) !is 0) {
widthLimit = OS.GetSystemMetrics (OS.SM_CXMINTRACK);
if ((style & DWT.RESIZE) !is 0) {
heightLimit = OS.GetSystemMetrics (OS.SM_CYMINTRACK);
} else {
RECT rect;
int bits1 = OS.GetWindowLong (handle, OS.GWL_STYLE);
int bits2 = OS.GetWindowLong (handle, OS.GWL_EXSTYLE);
OS.AdjustWindowRectEx (&rect, bits1, false, bits2);
heightLimit = rect.bottom - rect.top;
}
}
minWidth = Math.max (widthLimit, width);
minHeight = Math.max (heightLimit, height);
Point size = getSize ();
int newWidth = Math.max (size.x, minWidth);
int newHeight = Math.max (size.y, minHeight);
if (minWidth <= widthLimit) minWidth = DWT.DEFAULT;
if (minHeight <= heightLimit) minHeight = DWT.DEFAULT;
if (newWidth !is size.x || newHeight !is size.y) setSize (newWidth, newHeight);
}
/**
* Sets the receiver's minimum size to the size specified by the argument.
* If the new minimum size is larger than the current size of the receiver,
* the receiver is resized to the new minimum size.
*
* @param size the new minimum size for the receiver
*
* @exception IllegalArgumentException <ul>
* <li>ERROR_NULL_ARGUMENT - if the point is null</li>
* </ul>
* @exception DWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
* @since 3.1
*/
public void setMinimumSize (Point size) {
checkWidget ();
if (size is null) error (DWT.ERROR_NULL_ARGUMENT);
setMinimumSize (size.x, size.y);
}
void setItemEnabled (int cmd, bool enabled) {
auto hMenu = OS.GetSystemMenu (handle, false);
if (hMenu is null) return;
int flags = OS.MF_ENABLED;
if (!enabled) flags = OS.MF_DISABLED | OS.MF_GRAYED;
OS.EnableMenuItem (hMenu, cmd, OS.MF_BYCOMMAND | flags);
}
override void setParent () {
/* Do nothing. Not necessary for Shells */
}
/**
* Sets the shape of the shell to the region specified
* by the argument. When the argument is null, the
* default shape of the shell is restored. The shell
* must be created with the style DWT.NO_TRIM in order
* to specify a region.
*
* @param region the region that defines the shape of the shell (or null)
*
* @exception IllegalArgumentException <ul>
* <li>ERROR_INVALID_ARGUMENT - if the region has been disposed</li>
* </ul>
* @exception DWTException <ul>
* <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
* <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
* </ul>
*
* @since 3.0
*
*/
public void setRegion (Region region) {
checkWidget ();
if ((style & DWT.NO_TRIM) is 0) return;
super.setRegion (region);
}
void setToolTipText (HWND hwnd, String text) {
static if (OS.IsWinCE) return;
TOOLINFO lpti;
lpti.cbSize = OS.TOOLINFO_sizeof;
lpti.hwnd = handle;
lpti.uId = cast(uint) hwnd;
auto hwndToolTip = toolTipHandle ();
if (text is null) {
OS.SendMessage (hwndToolTip, OS.TTM_DELTOOL, 0, cast(int)&lpti);
} else {
if (OS.SendMessage (hwndToolTip, OS.TTM_GETTOOLINFO, 0, cast(int)&lpti) !is 0) {
OS.SendMessage (hwndToolTip, OS.TTM_UPDATE, 0, 0);
} else {
lpti.uFlags = OS.TTF_IDISHWND | OS.TTF_SUBCLASS;
lpti.lpszText = OS.LPSTR_TEXTCALLBACK;
OS.SendMessage (hwndToolTip, OS.TTM_ADDTOOL, 0, cast(int)&lpti);
}
}
}
void setToolTipText (NMTTDISPINFO* lpnmtdi, CHAR [] buffer) {
/*
* Ensure that the current position of the mouse
* is inside the client area of the shell. This
* prevents tool tips from popping up over the
* shell trimmings.
*/
if (!hasCursor ()) return;
auto hHeap = OS.GetProcessHeap ();
if (lpstrTip !is null) OS.HeapFree (hHeap, 0, lpstrTip);
int byteCount = buffer.length;
lpstrTip = cast(TCHAR*)OS.HeapAlloc (hHeap, OS.HEAP_ZERO_MEMORY, byteCount);
OS.MoveMemory (lpstrTip, buffer.ptr, byteCount);
lpnmtdi.lpszText = lpstrTip;
}
void setToolTipText (NMTTDISPINFO* lpnmtdi, WCHAR [] buffer) {
/*
* Ensure that the current position of the mouse
* is inside the client area of the shell. This
* prevents tool tips from popping up over the
* shell trimmings.
*/
if (!hasCursor ()) return;
auto hHeap = OS.GetProcessHeap ();
if (lpstrTip !is null) OS.HeapFree (hHeap, 0, lpstrTip);
int byteCount = buffer.length * 2;
lpstrTip = cast(TCHAR*)OS.HeapAlloc (hHeap, OS.HEAP_ZERO_MEMORY, byteCount);
OS.MoveMemory (lpstrTip, buffer.ptr, byteCount);
lpnmtdi.lpszText = lpstrTip;
}
void setToolTipTitle (HWND hwndToolTip, String text, HICON icon) {
/*
* Bug in Windows. For some reason, when TTM_SETTITLE
* is used to set the title of a tool tip, Windows leaks
* GDI objects. This happens even when TTM_SETTITLE is
* called with TTI_NONE and NULL. The documentation
* states that Windows copies the icon and that the
* programmer must free the copy but does not provide
* API to get the icon. For example, when TTM_SETTITLE
* is called with ICON_ERROR, when TTM_GETTITLE is used
* to query the title and the icon, the uTitleBitmap
* field in the TTGETTITLE struct is zero. The fix
* is to remember these values, only set them when then
* change and leak less.
*
* NOTE: This only happens on Vista.
*/
if (hwndToolTip !is toolTipHandle_ && hwndToolTip !is balloonTipHandle_) {
return;
}
if (hwndToolTip is toolTipHandle_) {
if (text is toolTitle || (toolTitle !is null && toolTitle.equals (text) )) {
if (icon is toolIcon) return;
}
toolTitle = text;
toolIcon = icon;
} else {
if (hwndToolTip is balloonTipHandle_) {
if (text is balloonTitle || (balloonTitle !is null && balloonTitle.equals (text))) {
if (icon is toolIcon) return;
}
balloonTitle = text;
balloonIcon = icon;
}
}
if (text !is null) {
static if( OS.IsUnicode ){
TCHAR* pszTitle = StrToTCHARz( text);
}
else {
TCHAR* pszTitle = StrToTCHARz( text, getCodePage ());
}
OS.SendMessage (hwndToolTip, OS.TTM_SETTITLE, icon, cast(int)pszTitle);
} else {
OS.SendMessage (hwndToolTip, OS.TTM_SETTITLE, 0, 0);
}
}
override public void setVisible (bool visible) {
checkWidget ();
/*
* Feature in Windows. When ShowWindow() is called used to hide
* a window, Windows attempts to give focus to the parent. If the
* parent is disabled by EnableWindow(), focus is assigned to
* another windows on the desktop. This means that if you hide
* a modal window before the parent is enabled, the parent will
* not come to the front. The fix is to change the modal state
* before hiding or showing a window so that this does not occur.
*/
int mask = DWT.PRIMARY_MODAL | DWT.APPLICATION_MODAL | DWT.SYSTEM_MODAL;
if ((style & mask) !is 0) {
if (visible) {
display.setModalShell (this);
if ((style & (DWT.APPLICATION_MODAL | DWT.SYSTEM_MODAL)) !is 0) {
display.setModalDialog (null);
}
Control control = display._getFocusControl ();
if (control !is null && !control.isActive ()) {
bringToTop ();
if (isDisposed ()) return;
}
auto hwndShell = OS.GetActiveWindow ();
if (hwndShell is null) {
if (parent !is null) hwndShell = parent.handle;
}
if (hwndShell !is null) {
OS.SendMessage (hwndShell, OS.WM_CANCELMODE, 0, 0);
}
OS.ReleaseCapture ();
} else {
display.clearModal (this);
}
} else {
updateModal ();
}
/*
* Bug in Windows. Calling ShowOwnedPopups() to hide the
* child windows of a hidden window causes the application
* to be deactivated. The fix is to call ShowOwnedPopups()
* to hide children before hiding the parent.
*/
if (showWithParent && !visible) {
static if (!OS.IsWinCE) OS.ShowOwnedPopups (handle, false);
}
if (!visible) fixActiveShell ();
super.setVisible (visible);
if (isDisposed ()) return;
if (showWithParent !is visible) {
showWithParent = visible;
if (visible) {
static if (!OS.IsWinCE) OS.ShowOwnedPopups (handle, true);
}
}
/* Make the splash screen appear in the task bar */
if (visible) {
if (parent !is null && (parent.state & FOREIGN_HANDLE) !is 0) {
auto hwndParent = parent.handle;
int style = OS.GetWindowLong (hwndParent, OS.GWL_EXSTYLE);
if ((style & OS.WS_EX_TOOLWINDOW) !is 0) {
OS.SetWindowLong (hwndParent, OS.GWL_EXSTYLE, style & ~OS.WS_EX_TOOLWINDOW);
/*
* Bug in Windows. The window does not show in the task bar when
* WS_EX_TOOLWINDOW is removed after the window has already been shown.
* The fix is to hide and shown the shell.
*/
OS.ShowWindow (hwndParent, OS.SW_HIDE);
OS.ShowWindow (hwndParent, OS.SW_RESTORE);
}
}
}
}
override void subclass () {
super.subclass ();
if (ToolTipProc !is null) {
int /*long*/ newProc = display.windowProc;
if (toolTipHandle_ !is null) {
OS.SetWindowLongPtr (toolTipHandle_, OS.GWLP_WNDPROC, newProc);
}
if (balloonTipHandle_ !is null) {
OS.SetWindowLongPtr (balloonTipHandle_, OS.GWLP_WNDPROC, newProc);
}
}
}
HANDLE toolTipHandle () {
if (toolTipHandle_ is null) createToolTipHandle ();
return toolTipHandle_;
}
override bool translateAccelerator (MSG* msg) {
if (!isEnabled () || !isActive ()) return false;
if (menuBar !is null && !menuBar.isEnabled ()) return false;
return translateMDIAccelerator (msg) || translateMenuAccelerator (msg);
}
override bool traverseEscape () {
if (parent is null) return false;
if (!isVisible () || !isEnabled ()) return false;
close ();
return true;
}
override void unsubclass () {
super.unsubclass ();
if (ToolTipProc !is null) {
if (toolTipHandle_ !is null) {
OS.SetWindowLongPtr (toolTipHandle_, OS.GWLP_WNDPROC, cast(int)ToolTipProc);
}
if (toolTipHandle_ !is null) {
OS.SetWindowLongPtr (toolTipHandle_, OS.GWLP_WNDPROC, cast(int)ToolTipProc);
}
}
}
void updateModal () {
if (Display.TrimEnabled) {
setItemEnabled (OS.SC_CLOSE, isActive ());
} else {
OS.EnableWindow (handle, isActive ());
}
}
override CREATESTRUCT* widgetCreateStruct () {
return null;
}
override HWND widgetParent () {
if (handle !is null) return handle;
return parent !is null ? parent.handle : null;
}
override int widgetExtStyle () {
int bits = super.widgetExtStyle () & ~OS.WS_EX_MDICHILD;
if ((style & DWT.TOOL) !is 0) bits |= OS.WS_EX_TOOLWINDOW;
/*
* Feature in Windows. When a window that does not have a parent
* is created, it is automatically added to the Windows Task Bar,
* even when it has no title. The fix is to use WS_EX_TOOLWINDOW
* which does not cause the window to appear in the Task Bar.
*/
static if (!OS.IsWinCE) {
if (parent is null) {
if ((style & DWT.ON_TOP) !is 0) {
int trim = DWT.TITLE | DWT.CLOSE | DWT.MIN | DWT.MAX;
if ((style & DWT.NO_TRIM) !is 0 || (style & trim) is 0) {
bits |= OS.WS_EX_TOOLWINDOW;
}
}
}
}
/*
* Bug in Windows 98 and NT. Creating a window with the
* WS_EX_TOPMOST extended style can result in a dialog shell
* being moved behind its parent. The exact case where this
* happens is a shell with two dialog shell children where
* each dialog child has another hidden dialog child with
* the WS_EX_TOPMOST extended style. Clicking on either of
* the visible dialogs causes them to become active but move
* to the back, behind the parent shell. The fix is to
* disallow the WS_EX_TOPMOST extended style on Windows 98
* and NT.
*/
if (parent !is null) {
if (OS.IsWin95) return bits;
if (OS.WIN32_VERSION < OS.VERSION (4, 10)) {
return bits;
}
}
if ((style & DWT.ON_TOP) !is 0) bits |= OS.WS_EX_TOPMOST;
return bits;
}
override String windowClass () {
static if (OS.IsSP) return DialogClass;
if ((style & DWT.TOOL) !is 0) {
int trim = DWT.TITLE | DWT.CLOSE | DWT.MIN | DWT.MAX | DWT.BORDER | DWT.RESIZE;
if ((style & trim) is 0) return TCHARsToStr( display.windowShadowClass );
}
return parent !is null ? TCHARzToStr(DialogClass.ptr) : super.windowClass ();
}
override int windowProc () {
if (windowProc_ !is null) return cast(int) windowProc_;
static if (OS.IsSP) return cast(int) DialogProc;
if ((style & DWT.TOOL) !is 0) {
int trim = DWT.TITLE | DWT.CLOSE | DWT.MIN | DWT.MAX | DWT.BORDER | DWT.RESIZE;
if ((style & trim) is 0) return super.windowProc ();
}
return parent !is null ? cast(int) DialogProc : super.windowProc ();
}
override int windowProc (HWND hwnd, int msg, int wParam, int lParam) {
if (handle is null) return 0;
if (hwnd is toolTipHandle_ || hwnd is balloonTipHandle_) {
switch (msg) {
case OS.WM_TIMER: {
if (wParam !is ToolTip.TIMER_ID) break;
ToolTip tip = getCurrentToolTip (hwnd);
if (tip !is null && tip.autoHide) {
tip.setVisible (false);
}
break;
}
case OS.WM_LBUTTONDOWN: {
ToolTip tip = getCurrentToolTip (hwnd);
if (tip !is null) {
tip.setVisible (false);
tip.postEvent (DWT.Selection);
}
break;
}
default:
}
return callWindowProc (hwnd, msg, wParam, lParam);
}
return super.windowProc (hwnd, msg, wParam, lParam);
}
override int widgetStyle () {
int bits = super.widgetStyle ();
if (handle !is null) return bits | OS.WS_CHILD;
bits &= ~OS.WS_CHILD;
/*
* Feature in WinCE. Calling CreateWindowEx () with WS_OVERLAPPED
* and a parent window causes the new window to become a WS_CHILD of
* the parent instead of a dialog child. The fix is to use WS_POPUP
* for a window with a parent.
*
* Feature in WinCE PPC. A window without a parent with WS_POPUP
* always shows on top of the Pocket PC 'Today Screen'. The fix
* is to not set WS_POPUP for a window without a parent on WinCE
* devices.
*
* NOTE: WS_POPUP causes CreateWindowEx () to ignore CW_USEDEFAULT
* and causes the default window location and size to be zero.
*/
static if (OS.IsWinCE) {
if (OS.IsSP) return bits | OS.WS_POPUP;
return parent is null ? bits : bits | OS.WS_POPUP;
}
/*
* Use WS_OVERLAPPED for all windows, either dialog or top level
* so that CreateWindowEx () will respect CW_USEDEFAULT and set
* the default window location and size.
*
* NOTE: When a WS_OVERLAPPED window is created, Windows gives
* the new window WS_CAPTION style bits. These two constants are
* as follows:
*
* WS_OVERLAPPED = 0
* WS_CAPTION = WS_BORDER | WS_DLGFRAME
*
*/
return bits | OS.WS_OVERLAPPED | OS.WS_CAPTION;
}
override LRESULT WM_ACTIVATE (int wParam, int lParam) {
static if (OS.IsPPC) {
/*
* Note: this does not work when we get WM_ACTIVATE prior
* to adding a listener.
*/
if (hooks (DWT.HardKeyDown) || hooks (DWT.HardKeyUp)) {
int fActive = OS.LOWORD (wParam);
int /*long*/ hwnd = fActive !is 0 ? handle : 0;
for (int bVk=OS.VK_APP1; bVk<=OS.VK_APP6; bVk++) {
OS.SHSetAppKeyWndAssoc (cast(byte) bVk, hwnd);
}
}
/* Restore SIP state when window is activated */
if (OS.LOWORD (wParam) !is 0) {
OS.SHSipPreference (handle, psai.fSipUp is 0 ? OS.SIP_DOWN : OS.SIP_UP);
}
}
/*
* Bug in Windows XP. When a Shell is deactivated, the
* IME composition window does not go away. This causes
* repaint issues. The fix is to commit the composition
* string.
*/
if (OS.WIN32_VERSION >= OS.VERSION (5, 1)) {
if (OS.LOWORD (wParam) is 0 && OS.IsDBLocale && hIMC !is null) {
if (OS.ImmGetOpenStatus (hIMC)) {
OS.ImmNotifyIME (hIMC, OS.NI_COMPOSITIONSTR, OS.CPS_COMPLETE, 0);
}
}
}
/* Process WM_ACTIVATE */
LRESULT result = super.WM_ACTIVATE (wParam, lParam);
if (OS.LOWORD (wParam) is 0) {
if (lParam is 0 || (cast(HANDLE)lParam !is toolTipHandle_ && cast(HANDLE)lParam !is balloonTipHandle_)) {
ToolTip tip = getCurrentToolTip ();
if (tip !is null) tip.setVisible (false);
}
}
return parent !is null ? LRESULT.ZERO : result;
}
override LRESULT WM_COMMAND (int wParam, int lParam) {
static if (OS.IsPPC) {
/*
* Note in WinCE PPC: Close the Shell when the "Done Button" has
* been pressed. lParam is either 0 (PocketPC 2002) or the handle
* to the Shell (PocketPC).
*/
int loWord = OS.LOWORD (wParam);
if (loWord is OS.IDOK && (lParam is 0 || lParam is handle)) {
OS.PostMessage (handle, OS.WM_CLOSE, 0, 0);
return LRESULT.ZERO;
}
}
/*
* Feature in Windows. On PPC, the menu is not actually an HMENU.
* By observation, it is a tool bar that is configured to look like
* a menu. Therefore, when the PPC menu sends WM_COMMAND messages,
* lParam is not zero because the WM_COMMAND was not sent from a menu.
* Sub menu item events originate from the menu bar. Top menu items
* events originate from a tool bar. The fix is to detect the source
* of the WM_COMMAND and set lParam to zero to pretend that the message
* came from a real Windows menu, not a tool bar.
*/
static if (OS.IsPPC || OS.IsSP) {
if (menuBar !is null) {
auto hwndCB = menuBar.hwndCB;
if (lParam !is 0 && hwndCB !is null) {
if (lParam is hwndCB) {
return super.WM_COMMAND (wParam, 0);
} else {
int /*long*/ hwndChild = OS.GetWindow (hwndCB, OS.GW_CHILD);
if (lParam is hwndChild) return super.WM_COMMAND (wParam, 0);
}
}
}
}
return super.WM_COMMAND (wParam, lParam);
}
override LRESULT WM_DESTROY (int wParam, int lParam) {
LRESULT result = super.WM_DESTROY (wParam, lParam);
/*
* When the shell is a WS_CHILD window of a non-DWT
* window, the destroy code does not get called because
* the non-DWT window does not call dispose (). Instead,
* the destroy code is called here in WM_DESTROY.
*/
int bits = OS.GetWindowLong (handle, OS.GWL_STYLE);
if ((bits & OS.WS_CHILD) !is 0) {
releaseParent ();
release (false);
}
return result;
}
override LRESULT WM_ERASEBKGND (int wParam, int lParam) {
LRESULT result = super.WM_ERASEBKGND (wParam, lParam);
if (result !is null) return result;
/*
* Feature in Windows. When a shell is resized by dragging
* the resize handles, Windows temporarily fills in black
* rectangles where the new contents of the shell should
* draw. The fix is to always draw the background of shells.
*
* NOTE: This only happens on Vista.
*/
if (!OS.IsWinCE && OS.WIN32_VERSION >= OS.VERSION (6, 0)) {
drawBackground (cast(HDC)wParam);
return LRESULT.ONE;
}
return result;
}
override LRESULT WM_ENTERIDLE (int wParam, int lParam) {
LRESULT result = super.WM_ENTERIDLE (wParam, lParam);
if (result !is null) return result;
if (display.runMessages) {
if (display.runAsyncMessages (false)) display.wakeThread ();
}
return result;
}
override LRESULT WM_GETMINMAXINFO (int wParam, int lParam) {
LRESULT result = super.WM_GETMINMAXINFO (wParam, lParam);
if (result !is null) return result;
if (minWidth !is DWT.DEFAULT || minHeight !is DWT.DEFAULT) {
MINMAXINFO* info = cast(MINMAXINFO*)lParam;
//OS.MoveMemory (info, lParam, MINMAXINFO.sizeof);
if (minWidth !is DWT.DEFAULT) info.ptMinTrackSize.x = minWidth;
if (minHeight !is DWT.DEFAULT) info.ptMinTrackSize.y = minHeight;
//OS.MoveMemory (lParam, info, MINMAXINFO.sizeof);
return LRESULT.ZERO;
}
return result;
}
override LRESULT WM_MOUSEACTIVATE (int wParam, int lParam) {
LRESULT result = super.WM_MOUSEACTIVATE (wParam, lParam);
if (result !is null) return result;
/*
* Check for WM_MOUSEACTIVATE when an MDI shell is active
* and stop the normal shell activation but allow the mouse
* down to be delivered.
*/
int hittest = cast(short) OS.LOWORD (lParam);
switch (hittest) {
case OS.HTERROR:
case OS.HTTRANSPARENT:
case OS.HTNOWHERE:
break;
default: {
Control control = display._getFocusControl ();
if (control !is null) {
Decorations decorations = control.menuShell ();
if (decorations.getShell () is this && decorations !is this) {
display.ignoreRestoreFocus = true;
display.lastHittest = hittest;
display.lastHittestControl = null;
if (hittest is OS.HTMENU || hittest is OS.HTSYSMENU) {
display.lastHittestControl = control;
return null;
}
if (OS.IsWin95 && hittest is OS.HTCAPTION) {
display.lastHittestControl = control;
}
return new LRESULT (OS.MA_NOACTIVATE);
}
}
}
}
if (hittest is OS.HTMENU) return null;
/*
* Get the current location of the cursor,
* not the location of the cursor when the
* WM_MOUSEACTIVATE was generated. This is
* strictly incorrect but is necessary in
* order to support Activate and Deactivate
* events for embedded widgets that have
* their own event loop. In that case, the
* cursor location reported by GetMessagePos()
* is the one for our event loop, not the
* embedded widget's event loop.
*/
POINT pt;
if (!OS.GetCursorPos (&pt)) {
int pos = OS.GetMessagePos ();
OS.POINTSTOPOINT (pt, pos);
}
auto hwnd = OS.WindowFromPoint (pt);
if (hwnd is null) return null;
Control control = display.findControl (hwnd);
/*
* When a shell is created with DWT.ON_TOP and DWT.NO_FOCUS,
* do not activate the shell when the user clicks on the
* the client area or on the border or a control within the
* shell that does not take focus.
*/
if (control !is null && (control.state & CANVAS) !is 0) {
if ((control.style & DWT.NO_FOCUS) !is 0) {
int bits = DWT.ON_TOP | DWT.NO_FOCUS;
if ((style & bits) is bits) {
if (hittest is OS.HTBORDER || hittest is OS.HTCLIENT) {
return new LRESULT (OS.MA_NOACTIVATE);
}
}
}
}
int /*long*/ code = callWindowProc (handle, OS.WM_MOUSEACTIVATE, wParam, lParam);
setActiveControl (control);
return new LRESULT (code);
}
override LRESULT WM_MOVE (int wParam, int lParam) {
LRESULT result = super.WM_MOVE (wParam, lParam);
if (result !is null) return result;
ToolTip tip = getCurrentToolTip ();
if (tip !is null) tip.setVisible (false);
return result;
}
override LRESULT WM_NCHITTEST (int wParam, int lParam) {
if (!OS.IsWindowEnabled (handle)) return null;
if (!isEnabled () || !isActive ()) {
if (!Display.TrimEnabled) return new LRESULT (OS.HTNOWHERE);
int /*long*/ hittest = callWindowProc (handle, OS.WM_NCHITTEST, wParam, lParam);
if (hittest is OS.HTCLIENT || hittest is OS.HTMENU) hittest = OS.HTBORDER;
return new LRESULT (hittest);
}
if (menuBar !is null && !menuBar.getEnabled ()) {
int /*long*/ hittest = callWindowProc (handle, OS.WM_NCHITTEST, wParam, lParam);
if (hittest is OS.HTMENU) hittest = OS.HTBORDER;
return new LRESULT (hittest);
}
return null;
}
override LRESULT WM_NCLBUTTONDOWN (int wParam, int lParam) {
LRESULT result = super.WM_NCLBUTTONDOWN (wParam, lParam);
if (result !is null) return result;
/*
* When the normal activation was interrupted in WM_MOUSEACTIVATE
* because the active shell was an MDI shell, set the active window
* to the top level shell but lock the active window and stop focus
* changes. This allows the user to interact the top level shell
* in the normal manner.
*/
if (!display.ignoreRestoreFocus) return result;
Display display = this.display;
HWND hwndActive;
bool fixActive = OS.IsWin95 && display.lastHittest is OS.HTCAPTION;
if (fixActive) hwndActive = OS.SetActiveWindow (handle);
display.lockActiveWindow = true;
int /*long*/ code = callWindowProc (handle, OS.WM_NCLBUTTONDOWN, wParam, lParam);
display.lockActiveWindow = false;
if (fixActive) OS.SetActiveWindow (hwndActive);
Control focusControl = display.lastHittestControl;
if (focusControl !is null && !focusControl.isDisposed ()) {
focusControl.setFocus ();
}
display.lastHittestControl = null;
display.ignoreRestoreFocus = false;
return new LRESULT (code);
}
override LRESULT WM_PALETTECHANGED (int wParam, int lParam) {
if ( cast(HANDLE)wParam !is handle) {
auto hPalette = display.hPalette;
if (hPalette !is null) return selectPalette (hPalette);
}
return super.WM_PALETTECHANGED (wParam, lParam);
}
override LRESULT WM_QUERYNEWPALETTE (int wParam, int lParam) {
auto hPalette = display.hPalette;
if (hPalette !is null) return selectPalette (hPalette);
return super.WM_QUERYNEWPALETTE (wParam, lParam);
}
override LRESULT WM_SETCURSOR (int wParam, int lParam) {
/*
* Feature in Windows. When the shell is disabled
* by a Windows standard dialog (like a MessageBox
* or FileDialog), clicking in the shell does not
* bring the shell or the dialog to the front. The
* fix is to detect this case and bring the shell
* forward.
*/
int msg = OS.HIWORD (lParam);
if (msg is OS.WM_LBUTTONDOWN) {
if (!Display.TrimEnabled) {
Shell modalShell = display.getModalShell ();
if (modalShell !is null && !isActive ()) {
auto hwndModal = modalShell.handle;
if (OS.IsWindowEnabled (hwndModal)) {
OS.SetActiveWindow (hwndModal);
}
}
}
if (!OS.IsWindowEnabled (handle)) {
static if (!OS.IsWinCE) {
auto hwndPopup = OS.GetLastActivePopup (handle);
if (hwndPopup !is null && hwndPopup !is handle) {
if (display.getControl (hwndPopup) is null) {
if (OS.IsWindowEnabled (hwndPopup)) {
OS.SetActiveWindow (hwndPopup);
}
}
}
}
}
}
/*
* When the shell that contains a cursor is disabled,
* WM_SETCURSOR is called with HTERROR. Normally,
* when a control is disabled, the parent will get
* mouse and cursor events. In the case of a disabled
* shell, there is no enabled parent. In order to
* show the cursor when a shell is disabled, it is
* necessary to override WM_SETCURSOR when called
* with HTERROR to set the cursor but only when the
* mouse is in the client area of the shell.
*/
int hitTest = cast(short) OS.LOWORD (lParam);
if (hitTest is OS.HTERROR) {
if (!getEnabled ()) {
Control control = display.getControl (cast(HANDLE)wParam);
if (control is this && cursor !is null) {
POINT pt;
int pos = OS.GetMessagePos ();
OS.POINTSTOPOINT (pt, pos);
OS.ScreenToClient (handle, &pt);
RECT rect;
OS.GetClientRect (handle, &rect);
if (OS.PtInRect (&rect, pt)) {
OS.SetCursor (cursor.handle);
switch (msg) {
case OS.WM_LBUTTONDOWN:
case OS.WM_RBUTTONDOWN:
case OS.WM_MBUTTONDOWN:
case OS.WM_XBUTTONDOWN:
OS.MessageBeep (OS.MB_OK);
default:
}
return LRESULT.ONE;
}
}
}
}
return super.WM_SETCURSOR (wParam, lParam);
}
override LRESULT WM_SETTINGCHANGE (int wParam, int lParam) {
LRESULT result = super.WM_SETTINGCHANGE (wParam, lParam);
if (result !is null) return result;
static if (OS.IsPPC) {
if (wParam is OS.SPI_SETSIPINFO) {
/*
* The SIP is in a new state. Cache its new value.
* Resize the Shell if it has the style DWT.RESIZE.
* Note that SHHandleWMSettingChange resizes the
* Shell and also updates the cached state.
*/
if ((style & DWT.RESIZE) !is 0) {
OS.SHHandleWMSettingChange (handle, wParam, lParam, psai);
return LRESULT.ZERO;
} else {
SIPINFO pSipInfo;
pSipInfo.cbSize = SIPINFO.sizeof;
OS.SipGetInfo (&pSipInfo);
psai.fSipUp = pSipInfo.fdwFlags & OS.SIPF_ON;
}
}
}
return result;
}
override LRESULT WM_SHOWWINDOW (int wParam, int lParam) {
LRESULT result = super.WM_SHOWWINDOW (wParam, lParam);
if (result !is null) return result;
/*
* Bug in Windows. If the shell is hidden while the parent
* is iconic, Windows shows the shell when the parent is
* deiconified. This does not happen if the shell is hidden
* while the parent is not an icon. The fix is to track
* visible state for the shell and refuse to show the shell
* when the parent is shown.
*/
if (lParam is OS.SW_PARENTOPENING) {
Control control = this;
while (control !is null) {
Shell shell = control.getShell ();
if (!shell.showWithParent) return LRESULT.ZERO;
control = control.parent;
}
}
return result;
}
override LRESULT WM_SYSCOMMAND (int wParam, int lParam) {
LRESULT result = super.WM_SYSCOMMAND (wParam, lParam);
if (result !is null) return result;
/*
* Feature in Windows. When the last visible window in
* a process minimized, Windows swaps out the memory for
* the process. The assumption is that the user can no
* longer interact with the window, so the memory can be
* released to other applications. However, for programs
* that use a lot of memory, swapping the memory back in
* can take a long time, sometimes minutes. The fix is
* to intercept WM_SYSCOMMAND looking for SC_MINIMIZE
* and use ShowWindow() with SW_SHOWMINIMIZED to minimize
* the window, rather than running the default window proc.
*
* NOTE: The default window proc activates the next
* top-level window in the Z-order while ShowWindow()
* with SW_SHOWMINIMIZED does not. There is no fix for
* this at this time.
*/
if (OS.IsWinNT) {
int cmd = wParam & 0xFFF0;
switch (cmd) {
case OS.SC_MINIMIZE:
long memory = RuntimeTotalMemory ();
if (memory >= 32 * 1024 * 1024) {
OS.ShowWindow (handle, OS.SW_SHOWMINIMIZED);
return LRESULT.ZERO;
}
default:
}
}
return result;
}
override LRESULT WM_WINDOWPOSCHANGING (int wParam, int lParam) {
LRESULT result = super.WM_WINDOWPOSCHANGING (wParam,lParam);
if (result !is null) return result;
auto lpwp = cast(WINDOWPOS*)lParam;
//OS.MoveMemory (lpwp, lParam, WINDOWPOS.sizeof);
if ((lpwp.flags & OS.SWP_NOSIZE) is 0) {
lpwp.cx = Math.max (lpwp.cx, minWidth);
int trim = DWT.TITLE | DWT.CLOSE | DWT.MIN | DWT.MAX;
if ((style & DWT.NO_TRIM) is 0 && (style & trim) !is 0) {
lpwp.cx = Math.max (lpwp.cx, OS.GetSystemMetrics (OS.SM_CXMINTRACK));
}
lpwp.cy = Math.max (lpwp.cy, minHeight);
if ((style & DWT.NO_TRIM) is 0 && (style & trim) !is 0) {
if ((style & DWT.RESIZE) !is 0) {
lpwp.cy = Math.max (lpwp.cy, OS.GetSystemMetrics (OS.SM_CYMINTRACK));
} else {
RECT rect;
int bits1 = OS.GetWindowLong (handle, OS.GWL_STYLE);
int bits2 = OS.GetWindowLong (handle, OS.GWL_EXSTYLE);
OS.AdjustWindowRectEx (&rect, bits1, false, bits2);
lpwp.cy = Math.max (lpwp.cy, rect.bottom - rect.top);
}
}
//OS.MoveMemory (lParam, lpwp, WINDOWPOS.sizeof);
}
return result;
}
}
|
D
|
import std.stdio;
import dplug.dsp.fft;
void main()
{
//initialize(int windowSize, int fftSize, int analysisPeriod, WindowDesc windowDesc, bool zeroPhaseWindowing)
FFTAnalyzer!float fft;
fft.initialize(1024, 2048, 512, WindowDesc(WindowType.HANN), true);
}
|
D
|
module com.thoughtworks.xstream.annotations;
public import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
public import com.thoughtworks.xstream.annotations.XStreamConverter;
public import com.thoughtworks.xstream.annotations.XStreamImplicit;
|
D
|
/*******************************************************************************
Produce request class.
copyright:
Copyright (c) 2011-2017 dunnhumby Germany GmbH. All rights reserved
License:
Boost Software License Version 1.0. See LICENSE.txt for details.
*******************************************************************************/
module dmqnode.request.ProduceRequest;
import dmqnode.request.model.IDmqRequestResources;
import dmqnode.storage.model.StorageEngine;
import Protocol = dmqproto.node.request.Produce;
import swarm.common.request.helper.LoopCeder;
import ocean.core.Verify;
/*******************************************************************************
Produce request
*******************************************************************************/
public scope class ProduceRequest : Protocol.Produce
{
import dmqnode.storage.model.StorageChannels: IChannel;
/***************************************************************************
Set upon starting valid Produce request, reused when pushing records
for that request (so that it won't be fetched for each record)
***************************************************************************/
private IChannel storage_channel;
/***************************************************************************
Shared resource acquirer
***************************************************************************/
private IDmqRequestResources resources;
/***************************************************************************
Constructor
Params:
reader = FiberSelectReader instance to use for read requests
writer = FiberSelectWriter instance to use for write requests
resources = shared resources which might be required by the request
***************************************************************************/
public this ( FiberSelectReader reader, FiberSelectWriter writer,
IDmqRequestResources resources )
{
super(reader, writer, resources);
this.resources = resources;
this.storage_channel = null;
}
/***************************************************************************
Ensures that requested channel exists or can be created
Params:
channel_name = name of channel to be prepared
Return:
`true` if it is possible to proceed with Produce request
***************************************************************************/
override protected bool prepareChannel ( cstring channel_name )
{
this.storage_channel = this.resources.storage_channels.getCreate(
*this.resources.channel_buffer);
return this.storage_channel !is null;
}
/***************************************************************************
Pushes a received record to the queue.
Params:
channel_name = name of channel to push to
value = record value to push
***************************************************************************/
override protected void pushRecord ( cstring channel_name, cstring value )
{
verify(this.storage_channel !is null);
foreach (subscriber; this.storage_channel)
subscriber.push(value);
this.resources.loop_ceder.handleCeding();
}
}
|
D
|
/***********************************************************************\
* winnls.d *
* *
* Windows API header module *
* *
* Translated from MinGW Windows headers *
* by Stewart Gordon *
* *
* Placed into public domain *
\***********************************************************************/
module win32.winnls;
version(Windows):
pragma(lib, "kernel32");
private import win32.basetsd, win32.w32api, win32.winbase, win32.windef;
alias DWORD LCTYPE, CALTYPE, CALID, LGRPID, GEOID, GEOTYPE, GEOCLASS;
const size_t
MAX_DEFAULTCHAR = 2,
MAX_LEADBYTES = 12;
const LCTYPE
LOCALE_USE_CP_ACP = 0x40000000,
LOCALE_RETURN_NUMBER = 0x20000000;
enum : LCTYPE {
LOCALE_ILANGUAGE = 1,
LOCALE_SLANGUAGE,
LOCALE_SABBREVLANGNAME,
LOCALE_SNATIVELANGNAME,
LOCALE_ICOUNTRY,
LOCALE_SCOUNTRY,
LOCALE_SABBREVCTRYNAME,
LOCALE_SNATIVECTRYNAME,
LOCALE_IDEFAULTLANGUAGE,
LOCALE_IDEFAULTCOUNTRY,
LOCALE_IDEFAULTCODEPAGE,
LOCALE_SLIST,
LOCALE_IMEASURE,
LOCALE_SDECIMAL,
LOCALE_STHOUSAND,
LOCALE_SGROUPING,
LOCALE_IDIGITS,
LOCALE_ILZERO,
LOCALE_SNATIVEDIGITS,
LOCALE_SCURRENCY,
LOCALE_SINTLSYMBOL,
LOCALE_SMONDECIMALSEP,
LOCALE_SMONTHOUSANDSEP,
LOCALE_SMONGROUPING,
LOCALE_ICURRDIGITS,
LOCALE_IINTLCURRDIGITS,
LOCALE_ICURRENCY,
LOCALE_INEGCURR,
LOCALE_SDATE,
LOCALE_STIME,
LOCALE_SSHORTDATE,
LOCALE_SLONGDATE,
LOCALE_IDATE,
LOCALE_ILDATE,
LOCALE_ITIME,
LOCALE_ICENTURY,
LOCALE_ITLZERO,
LOCALE_IDAYLZERO,
LOCALE_IMONLZERO,
LOCALE_S1159,
LOCALE_S2359,
LOCALE_SDAYNAME1,
LOCALE_SDAYNAME2,
LOCALE_SDAYNAME3,
LOCALE_SDAYNAME4,
LOCALE_SDAYNAME5,
LOCALE_SDAYNAME6,
LOCALE_SDAYNAME7,
LOCALE_SABBREVDAYNAME1,
LOCALE_SABBREVDAYNAME2,
LOCALE_SABBREVDAYNAME3,
LOCALE_SABBREVDAYNAME4,
LOCALE_SABBREVDAYNAME5,
LOCALE_SABBREVDAYNAME6,
LOCALE_SABBREVDAYNAME7,
LOCALE_SMONTHNAME1,
LOCALE_SMONTHNAME2,
LOCALE_SMONTHNAME3,
LOCALE_SMONTHNAME4,
LOCALE_SMONTHNAME5,
LOCALE_SMONTHNAME6,
LOCALE_SMONTHNAME7,
LOCALE_SMONTHNAME8,
LOCALE_SMONTHNAME9,
LOCALE_SMONTHNAME10,
LOCALE_SMONTHNAME11,
LOCALE_SMONTHNAME12,
LOCALE_SABBREVMONTHNAME1,
LOCALE_SABBREVMONTHNAME2,
LOCALE_SABBREVMONTHNAME3,
LOCALE_SABBREVMONTHNAME4,
LOCALE_SABBREVMONTHNAME5,
LOCALE_SABBREVMONTHNAME6,
LOCALE_SABBREVMONTHNAME7,
LOCALE_SABBREVMONTHNAME8,
LOCALE_SABBREVMONTHNAME9,
LOCALE_SABBREVMONTHNAME10,
LOCALE_SABBREVMONTHNAME11,
LOCALE_SABBREVMONTHNAME12,
LOCALE_SPOSITIVESIGN,
LOCALE_SNEGATIVESIGN,
LOCALE_IPOSSIGNPOSN,
LOCALE_INEGSIGNPOSN,
LOCALE_IPOSSYMPRECEDES,
LOCALE_IPOSSEPBYSPACE,
LOCALE_INEGSYMPRECEDES,
LOCALE_INEGSEPBYSPACE,
LOCALE_FONTSIGNATURE,
LOCALE_SISO639LANGNAME,
LOCALE_SISO3166CTRYNAME, // = 90
LOCALE_SENGLANGUAGE = 0x1001,
LOCALE_SENGCOUNTRY = 0x1002,
LOCALE_IDEFAULTANSICODEPAGE = 0x1004,
LOCALE_INEGNUMBER = 0x1010,
LOCALE_STIMEFORMAT = 0x1003,
LOCALE_ITIMEMARKPOSN = 0x1005,
LOCALE_ICALENDARTYPE = 0x1009,
LOCALE_IOPTIONALCALENDAR = 0x100B,
LOCALE_IFIRSTDAYOFWEEK = 0x100C,
LOCALE_IFIRSTWEEKOFYEAR = 0x100D,
LOCALE_SMONTHNAME13 = 0x100E,
LOCALE_SABBREVMONTHNAME13 = 0x100F
}
enum : LCID {
LOCALE_USER_DEFAULT = 0x400,
LOCALE_SYSTEM_DEFAULT = 0x800
}
const DWORD
NORM_IGNORECASE = 1,
NORM_IGNORENONSPACE = 2,
NORM_IGNORESYMBOLS = 4,
SORT_STRINGSORT = 0x01000,
NORM_IGNOREKANATYPE = 0x10000,
NORM_IGNOREWIDTH = 0x20000;
const DWORD
LCMAP_LOWERCASE = 0x00000100,
LCMAP_UPPERCASE = 0x00000200,
LCMAP_SORTKEY = 0x00000400,
LCMAP_BYTEREV = 0x00000800,
LCMAP_HIRAGANA = 0x00100000,
LCMAP_KATAKANA = 0x00200000,
LCMAP_HALFWIDTH = 0x00400000,
LCMAP_FULLWIDTH = 0x00800000,
LCMAP_LINGUISTIC_CASING = 0x01000000,
LCMAP_SIMPLIFIED_CHINESE = 0x02000000,
LCMAP_TRADITIONAL_CHINESE = 0x04000000;
const CALID ENUM_ALL_CALENDARS = -1;
const DWORD
DATE_SHORTDATE = 1,
DATE_LONGDATE = 2,
DATE_USE_ALT_CALENDAR = 4,
LOCALE_NOUSEROVERRIDE = 0x80000000;
enum : DWORD {
CP_INSTALLED = 1,
CP_SUPPORTED
}
enum : DWORD {
LCID_INSTALLED = 1,
LCID_SUPPORTED = 2,
LCID_ALTERNATE_SORTS = 4
}
const DWORD
MAP_FOLDCZONE = 16,
MAP_PRECOMPOSED = 32,
MAP_COMPOSITE = 64,
MAP_FOLDDIGITS = 128;
enum : UINT {
CP_ACP,
CP_OEMCP,
CP_MACCP,
CP_THREAD_ACP, // = 3
CP_SYMBOL = 42,
CP_UTF7 = 65000,
CP_UTF8 = 65001
}
enum : DWORD {
CT_CTYPE1 = 1,
CT_CTYPE2 = 2,
CT_CTYPE3 = 4
}
const WORD
C1_UPPER = 1,
C1_LOWER = 2,
C1_DIGIT = 4,
C1_SPACE = 8,
C1_PUNCT = 16,
C1_CNTRL = 32,
C1_BLANK = 64,
C1_XDIGIT = 128,
C1_ALPHA = 256;
enum : WORD {
C2_NOTAPPLICABLE,
C2_LEFTTORIGHT,
C2_RIGHTTOLEFT,
C2_EUROPENUMBER,
C2_EUROPESEPARATOR,
C2_EUROPETERMINATOR,
C2_ARABICNUMBER,
C2_COMMONSEPARATOR,
C2_BLOCKSEPARATOR,
C2_SEGMENTSEPARATOR,
C2_WHITESPACE,
C2_OTHERNEUTRAL // = 11
}
const WORD
C3_NOTAPPLICABLE = 0,
C3_NONSPACING = 1,
C3_DIACRITIC = 2,
C3_VOWELMARK = 4,
C3_SYMBOL = 8,
C3_KATAKANA = 0x0010,
C3_HIRAGANA = 0x0020,
C3_HALFWIDTH = 0x0040,
C3_FULLWIDTH = 0x0080,
C3_IDEOGRAPH = 0x0100,
C3_KASHIDA = 0x0200,
C3_LEXICAL = 0x0400,
C3_ALPHA = 0x8000;
const DWORD
TIME_NOMINUTESORSECONDS = 1,
TIME_NOSECONDS = 2,
TIME_NOTIMEMARKER = 4,
TIME_FORCE24HOURFORMAT = 8;
const DWORD
MB_PRECOMPOSED = 1,
MB_COMPOSITE = 2,
MB_USEGLYPHCHARS = 4,
MB_ERR_INVALID_CHARS = 8;
const DWORD
WC_DISCARDNS = 16,
WC_SEPCHARS = 32,
WC_DEFAULTCHAR = 64,
WC_COMPOSITECHECK = 512;
enum : LONG {
CTRY_DEFAULT = 0,
CTRY_DOMINICAN_REPUBLIC = 1,
CTRY_PUERTO_RICO = 1,
CTRY_CARIBBEAN = 1,
CTRY_JAMAICA = 1,
CTRY_UNITED_STATES = 1,
CTRY_TRINIDAD_Y_TOBAGO = 1,
CTRY_CANADA = 2,
CTRY_RUSSIA = 7,
CTRY_UZBEKISTAN = 7,
CTRY_KAZAKSTAN = 7,
CTRY_TATARSTAN = 7,
CTRY_EGYPT = 20,
CTRY_SOUTH_AFRICA = 27,
CTRY_GREECE = 30,
CTRY_NETHERLANDS = 31,
CTRY_BELGIUM = 32,
CTRY_FRANCE = 33,
CTRY_MONACO = 33,
CTRY_SPAIN = 34,
CTRY_HUNGARY = 36,
CTRY_ITALY = 39,
CTRY_ROMANIA = 40,
CTRY_SWITZERLAND = 41,
CTRY_LIECHTENSTEIN = 41,
CTRY_AUSTRIA = 43,
CTRY_UNITED_KINGDOM = 44,
CTRY_DENMARK = 45,
CTRY_SWEDEN = 46,
CTRY_NORWAY = 47,
CTRY_POLAND = 48,
CTRY_GERMANY = 49,
CTRY_PERU = 51,
CTRY_MEXICO = 52,
CTRY_ARGENTINA = 54,
CTRY_BRAZIL = 55,
CTRY_CHILE = 56,
CTRY_COLOMBIA = 57,
CTRY_VENEZUELA = 58,
CTRY_MALAYSIA = 60,
CTRY_AUSTRALIA = 61,
CTRY_INDONESIA = 62,
CTRY_PHILIPPINES = 63,
CTRY_NEW_ZEALAND = 64,
CTRY_SINGAPORE = 65,
CTRY_THAILAND = 66,
CTRY_JAPAN = 81,
CTRY_SOUTH_KOREA = 82,
CTRY_VIET_NAM = 84,
CTRY_PRCHINA = 86,
CTRY_TURKEY = 90,
CTRY_INDIA = 91,
CTRY_PAKISTAN = 92,
CTRY_MOROCCO = 212,
CTRY_ALGERIA = 213,
CTRY_TUNISIA = 216,
CTRY_LIBYA = 218,
CTRY_KENYA = 254,
CTRY_ZIMBABWE = 263,
CTRY_FAEROE_ISLANDS = 298,
CTRY_PORTUGAL = 351,
CTRY_LUXEMBOURG = 352,
CTRY_IRELAND = 353,
CTRY_ICELAND = 354,
CTRY_ALBANIA = 355,
CTRY_FINLAND = 358,
CTRY_BULGARIA = 359,
CTRY_LITHUANIA = 370,
CTRY_LATVIA = 371,
CTRY_ESTONIA = 372,
CTRY_ARMENIA = 374,
CTRY_BELARUS = 375,
CTRY_UKRAINE = 380,
CTRY_SERBIA = 381,
CTRY_CROATIA = 385,
CTRY_SLOVENIA = 386,
CTRY_MACEDONIA = 389,
CTRY_CZECH = 420,
CTRY_SLOVAK = 421,
CTRY_BELIZE = 501,
CTRY_GUATEMALA = 502,
CTRY_EL_SALVADOR = 503,
CTRY_HONDURAS = 504,
CTRY_NICARAGUA = 505,
CTRY_COSTA_RICA = 506,
CTRY_PANAMA = 507,
CTRY_BOLIVIA = 591,
CTRY_ECUADOR = 593,
CTRY_PARAGUAY = 595,
CTRY_URUGUAY = 598,
CTRY_BRUNEI_DARUSSALAM = 673,
CTRY_HONG_KONG = 852,
CTRY_MACAU = 853,
CTRY_TAIWAN = 886,
CTRY_MALDIVES = 960,
CTRY_LEBANON = 961,
CTRY_JORDAN = 962,
CTRY_SYRIA = 963,
CTRY_IRAQ = 964,
CTRY_KUWAIT = 965,
CTRY_SAUDI_ARABIA = 966,
CTRY_YEMEN = 967,
CTRY_OMAN = 968,
CTRY_UAE = 971,
CTRY_ISRAEL = 972,
CTRY_BAHRAIN = 973,
CTRY_QATAR = 974,
CTRY_MONGOLIA = 976,
CTRY_IRAN = 981,
CTRY_AZERBAIJAN = 994,
CTRY_GEORGIA = 995,
CTRY_KYRGYZSTAN = 996
}
enum : CALTYPE {
CAL_ICALINTVALUE = 1,
CAL_SCALNAME,
CAL_IYEAROFFSETRANGE,
CAL_SERASTRING,
CAL_SSHORTDATE,
CAL_SLONGDATE,
CAL_SDAYNAME1,
CAL_SDAYNAME2,
CAL_SDAYNAME3,
CAL_SDAYNAME4,
CAL_SDAYNAME5,
CAL_SDAYNAME6,
CAL_SDAYNAME7,
CAL_SABBREVDAYNAME1,
CAL_SABBREVDAYNAME2,
CAL_SABBREVDAYNAME3,
CAL_SABBREVDAYNAME4,
CAL_SABBREVDAYNAME5,
CAL_SABBREVDAYNAME6,
CAL_SABBREVDAYNAME7,
CAL_SMONTHNAME1,
CAL_SMONTHNAME2,
CAL_SMONTHNAME3,
CAL_SMONTHNAME4,
CAL_SMONTHNAME5,
CAL_SMONTHNAME6,
CAL_SMONTHNAME7,
CAL_SMONTHNAME8,
CAL_SMONTHNAME9,
CAL_SMONTHNAME10,
CAL_SMONTHNAME11,
CAL_SMONTHNAME12,
CAL_SMONTHNAME13,
CAL_SABBREVMONTHNAME1,
CAL_SABBREVMONTHNAME2,
CAL_SABBREVMONTHNAME3,
CAL_SABBREVMONTHNAME4,
CAL_SABBREVMONTHNAME5,
CAL_SABBREVMONTHNAME6,
CAL_SABBREVMONTHNAME7,
CAL_SABBREVMONTHNAME8,
CAL_SABBREVMONTHNAME9,
CAL_SABBREVMONTHNAME10,
CAL_SABBREVMONTHNAME11,
CAL_SABBREVMONTHNAME12,
CAL_SABBREVMONTHNAME13 // = 46
}
enum : CALTYPE {
CAL_GREGORIAN = 1,
CAL_GREGORIAN_US,
CAL_JAPAN,
CAL_TAIWAN,
CAL_KOREA,
CAL_HIJRI,
CAL_THAI,
CAL_HEBREW,
CAL_GREGORIAN_ME_FRENCH,
CAL_GREGORIAN_ARABIC,
CAL_GREGORIAN_XLIT_ENGLISH,
CAL_GREGORIAN_XLIT_FRENCH // = 12
}
enum : int {
CSTR_LESS_THAN = 1,
CSTR_EQUAL,
CSTR_GREATER_THAN
}
enum : DWORD {
LGRPID_INSTALLED = 1,
LGRPID_SUPPORTED
}
enum : LGRPID {
LGRPID_WESTERN_EUROPE = 1,
LGRPID_CENTRAL_EUROPE,
LGRPID_BALTIC,
LGRPID_GREEK,
LGRPID_CYRILLIC,
LGRPID_TURKISH,
LGRPID_JAPANESE,
LGRPID_KOREAN,
LGRPID_TRADITIONAL_CHINESE,
LGRPID_SIMPLIFIED_CHINESE,
LGRPID_THAI,
LGRPID_HEBREW,
LGRPID_ARABIC,
LGRPID_VIETNAMESE,
LGRPID_INDIC,
LGRPID_GEORGIAN,
LGRPID_ARMENIAN // = 17
}
static if (_WIN32_WINNT >= 0x500) {
enum : LCTYPE {
LOCALE_SYEARMONTH = 0x1006,
LOCALE_SENGCURRNAME = 0x1007,
LOCALE_SNATIVECURRNAME = 0x1008,
LOCALE_IDEFAULTEBCDICCODEPAGE = 0x1012,
LOCALE_SSORTNAME = 0x1013,
LOCALE_IDIGITSUBSTITUTION = 0x1014,
LOCALE_IPAPERSIZE = 0x100A
}
const DWORD
DATE_YEARMONTH = 8,
DATE_LTRREADING = 16,
DATE_RTLREADING = 32;
const DWORD MAP_EXPAND_LIGATURES = 0x2000;
const DWORD WC_NO_BEST_FIT_CHARS = 1024;
enum : CALTYPE {
CAL_SYEARMONTH = 47,
CAL_ITWODIGITYEARMAX = 48,
CAL_NOUSEROVERRIDE = LOCALE_NOUSEROVERRIDE,
CAL_RETURN_NUMBER = LOCALE_RETURN_NUMBER,
CAL_USE_CP_ACP = LOCALE_USE_CP_ACP
}
} // (_WIN32_WINNT >= 0x500)
extern (Windows) {
alias BOOL function(LPSTR) CALINFO_ENUMPROCA;
alias BOOL function(LPWSTR) CALINFO_ENUMPROCW;
alias BOOL function(LPSTR, CALID) CALINFO_ENUMPROCEXA;
alias BOOL function(LPWSTR, CALID) CALINFO_ENUMPROCEXW;
alias BOOL function(LGRPID, LPSTR, LPSTR, DWORD, LONG_PTR)
LANGUAGEGROUP_ENUMPROCA;
alias BOOL function(LGRPID, LPWSTR, LPWSTR, DWORD, LONG_PTR)
LANGUAGEGROUP_ENUMPROCW;
alias BOOL function(LGRPID, LCID, LPSTR, LONG_PTR)
LANGGROUPLOCALE_ENUMPROCA;
alias BOOL function(LGRPID, LCID, LPWSTR, LONG_PTR)
LANGGROUPLOCALE_ENUMPROCW;
alias BOOL function(LPWSTR, LONG_PTR) UILANGUAGE_ENUMPROCW;
alias BOOL function(LPSTR, LONG_PTR) UILANGUAGE_ENUMPROCA;
alias BOOL function(LPSTR) LOCALE_ENUMPROCA;
alias BOOL function(LPWSTR) LOCALE_ENUMPROCW;
alias BOOL function(LPSTR) CODEPAGE_ENUMPROCA;
alias BOOL function(LPWSTR) CODEPAGE_ENUMPROCW;
alias BOOL function(LPSTR) DATEFMT_ENUMPROCA;
alias BOOL function(LPWSTR) DATEFMT_ENUMPROCW;
alias BOOL function(LPSTR, CALID) DATEFMT_ENUMPROCEXA;
alias BOOL function(LPWSTR, CALID) DATEFMT_ENUMPROCEXW;
alias BOOL function(LPSTR) TIMEFMT_ENUMPROCA;
alias BOOL function(LPWSTR) TIMEFMT_ENUMPROCW;
alias BOOL function(GEOID) GEO_ENUMPROC;
}
enum NLS_FUNCTION {
COMPARE_STRING = 0x0001
}
enum SYSGEOCLASS {
GEOCLASS_NATION = 16,
GEOCLASS_REGION = 14
}
enum SYSGEOTYPE {
GEO_NATION = 0x0001,
GEO_LATITUDE = 0x0002,
GEO_LONGITUDE = 0x0003,
GEO_ISO2 = 0x0004,
GEO_ISO3 = 0x0005,
GEO_RFC1766 = 0x0006,
GEO_LCID = 0x0007,
GEO_FRIENDLYNAME = 0x0008,
GEO_OFFICIALNAME = 0x0009,
GEO_TIMEZONES = 0x000a,
GEO_OFFICIALLANGUAGES = 0x000a
}
struct CPINFO {
UINT MaxCharSize;
BYTE[MAX_DEFAULTCHAR] DefaultChar;
BYTE[MAX_LEADBYTES] LeadByte;
}
alias CPINFO* LPCPINFO;
struct CPINFOEXA {
UINT MaxCharSize;
BYTE[MAX_DEFAULTCHAR] DefaultChar;
BYTE[MAX_LEADBYTES] LeadByte;
WCHAR UnicodeDefaultChar;
UINT CodePage;
CHAR[MAX_PATH] CodePageName;
}
alias CPINFOEXA* LPCPINFOEXA;
struct CPINFOEXW {
UINT MaxCharSize;
BYTE[MAX_DEFAULTCHAR] DefaultChar;
BYTE[MAX_LEADBYTES] LeadByte;
WCHAR UnicodeDefaultChar;
UINT CodePage;
WCHAR[MAX_PATH] CodePageName;
}
alias CPINFOEXW* LPCPINFOEXW;
struct CURRENCYFMTA {
UINT NumDigits;
UINT LeadingZero;
UINT Grouping;
LPSTR lpDecimalSep;
LPSTR lpThousandSep;
UINT NegativeOrder;
UINT PositiveOrder;
LPSTR lpCurrencySymbol;
}
alias CURRENCYFMTA* LPCURRENCYFMTA;
struct CURRENCYFMTW {
UINT NumDigits;
UINT LeadingZero;
UINT Grouping;
LPWSTR lpDecimalSep;
LPWSTR lpThousandSep;
UINT NegativeOrder;
UINT PositiveOrder;
LPWSTR lpCurrencySymbol;
}
alias CURRENCYFMTW* LPCURRENCYFMTW;
struct NLSVERSIONINFO {
DWORD dwNLSVersionInfoSize;
DWORD dwNLSVersion;
DWORD dwDefinedVersion;
}
alias NLSVERSIONINFO* LPNLSVERSIONINFO;
struct NUMBERFMTA {
UINT NumDigits;
UINT LeadingZero;
UINT Grouping;
LPSTR lpDecimalSep;
LPSTR lpThousandSep;
UINT NegativeOrder;
}
alias NUMBERFMTA* LPNUMBERFMTA;
struct NUMBERFMTW {
UINT NumDigits;
UINT LeadingZero;
UINT Grouping;
LPWSTR lpDecimalSep;
LPWSTR lpThousandSep;
UINT NegativeOrder;
}
alias NUMBERFMTW* LPNUMBERFMTW;
extern (Windows) {
int CompareStringA(LCID, DWORD, LPCSTR, int, LPCSTR, int);
int CompareStringW(LCID, DWORD, LPCWSTR, int, LPCWSTR, int);
LCID ConvertDefaultLocale(LCID);
BOOL EnumCalendarInfoA(CALINFO_ENUMPROCA, LCID, CALID, CALTYPE);
BOOL EnumCalendarInfoW(CALINFO_ENUMPROCW, LCID, CALID, CALTYPE);
BOOL EnumDateFormatsA(DATEFMT_ENUMPROCA, LCID, DWORD);
BOOL EnumDateFormatsW(DATEFMT_ENUMPROCW, LCID, DWORD);
BOOL EnumSystemCodePagesA(CODEPAGE_ENUMPROCA, DWORD);
BOOL EnumSystemCodePagesW(CODEPAGE_ENUMPROCW, DWORD);
BOOL EnumSystemGeoID(GEOCLASS, GEOID, GEO_ENUMPROC);
BOOL EnumSystemLocalesA(LOCALE_ENUMPROCA, DWORD);
BOOL EnumSystemLocalesW(LOCALE_ENUMPROCW, DWORD);
BOOL EnumTimeFormatsA(TIMEFMT_ENUMPROCA, LCID, DWORD);
BOOL EnumTimeFormatsW(TIMEFMT_ENUMPROCW, LCID, DWORD);
int FoldStringA(DWORD, LPCSTR, int, LPSTR, int);
int FoldStringW(DWORD, LPCWSTR, int, LPWSTR, int);
UINT GetACP();
int GetCalendarInfoA(LCID, CALID, CALTYPE, LPSTR, int, LPDWORD);
int GetCalendarInfoW(LCID, CALID, CALTYPE, LPWSTR, int, LPDWORD);
BOOL GetCPInfo(UINT, LPCPINFO);
BOOL GetCPInfoExA(UINT, DWORD, LPCPINFOEXA);
BOOL GetCPInfoExW(UINT, DWORD, LPCPINFOEXW);
int GetCurrencyFormatA(LCID, DWORD, LPCSTR, const(CURRENCYFMTA)*, LPSTR, int);
int GetCurrencyFormatW(LCID, DWORD, LPCWSTR, const(CURRENCYFMTW)*, LPWSTR,
int);
int GetDateFormatA(LCID, DWORD, const(SYSTEMTIME)*, LPCSTR, LPSTR, int);
int GetDateFormatW(LCID, DWORD, const(SYSTEMTIME)*, LPCWSTR, LPWSTR, int);
int GetGeoInfoA(GEOID, GEOTYPE, LPSTR, int, LANGID);
int GetGeoInfoW(GEOID, GEOTYPE, LPWSTR, int, LANGID);
int GetLocaleInfoA(LCID, LCTYPE, LPSTR, int);
int GetLocaleInfoW(LCID, LCTYPE, LPWSTR, int);
BOOL GetNLSVersion(NLS_FUNCTION, LCID, LPNLSVERSIONINFO);
int GetNumberFormatA(LCID, DWORD, LPCSTR, const(NUMBERFMTA)*, LPSTR, int);
int GetNumberFormatW(LCID, DWORD, LPCWSTR, const(NUMBERFMTW)*, LPWSTR, int);
UINT GetOEMCP();
BOOL GetStringTypeA(LCID, DWORD, LPCSTR, int, LPWORD);
BOOL GetStringTypeW(DWORD, LPCWSTR, int, LPWORD);
BOOL GetStringTypeExA(LCID, DWORD, LPCSTR, int, LPWORD);
BOOL GetStringTypeExW(LCID, DWORD, LPCWSTR, int, LPWORD);
LANGID GetSystemDefaultLangID();
LCID GetSystemDefaultLCID();
LCID GetThreadLocale();
int GetTimeFormatA(LCID, DWORD, const(SYSTEMTIME)*, LPCSTR, LPSTR, int);
int GetTimeFormatW(LCID, DWORD, const(SYSTEMTIME)*, LPCWSTR, LPWSTR, int);
LANGID GetUserDefaultLangID();
LCID GetUserDefaultLCID();
GEOID GetUserGeoID(GEOCLASS);
BOOL IsDBCSLeadByte(BYTE);
BOOL IsDBCSLeadByteEx(UINT, BYTE);
BOOL IsNLSDefinedString(NLS_FUNCTION, DWORD, LPNLSVERSIONINFO, LPCWSTR,
int);
BOOL IsValidCodePage(UINT);
BOOL IsValidLocale(LCID, DWORD);
int LCMapStringA(LCID, DWORD, LPCSTR, int, LPSTR, int);
int LCMapStringW(LCID, DWORD, LPCWSTR, int, LPWSTR, int);
int MultiByteToWideChar(UINT, DWORD, LPCSTR, int, LPWSTR, int);
int SetCalendarInfoA(LCID, CALID, CALTYPE, LPCSTR);
int SetCalendarInfoW(LCID, CALID, CALTYPE, LPCWSTR);
BOOL SetLocaleInfoA(LCID, LCTYPE, LPCSTR);
BOOL SetLocaleInfoW(LCID, LCTYPE, LPCWSTR);
BOOL SetThreadLocale(LCID);
BOOL SetUserGeoID(GEOID);
int WideCharToMultiByte(UINT, DWORD, LPCWSTR, int, LPSTR, int, LPCSTR,
LPBOOL);
static if (_WIN32_WINNT >= 0x410) {
BOOL EnumCalendarInfoExA(CALINFO_ENUMPROCEXA, LCID, CALID, CALTYPE);
BOOL EnumCalendarInfoExW(CALINFO_ENUMPROCEXW, LCID, CALID, CALTYPE);
BOOL EnumDateFormatsExA(DATEFMT_ENUMPROCEXA, LCID, DWORD);
BOOL EnumDateFormatsExW(DATEFMT_ENUMPROCEXW, LCID, DWORD);
BOOL IsValidLanguageGroup(LGRPID, DWORD);
}
static if (_WIN32_WINNT >= 0x500) {
LANGID GetSystemDefaultUILanguage();
LANGID GetUserDefaultUILanguage();
BOOL EnumSystemLanguageGroupsA(LANGUAGEGROUP_ENUMPROCA, DWORD,
LONG_PTR);
BOOL EnumSystemLanguageGroupsW(LANGUAGEGROUP_ENUMPROCW, DWORD,
LONG_PTR);
BOOL EnumLanguageGroupLocalesA(LANGGROUPLOCALE_ENUMPROCA, LGRPID,
DWORD, LONG_PTR);
BOOL EnumLanguageGroupLocalesW(LANGGROUPLOCALE_ENUMPROCW, LGRPID,
DWORD, LONG_PTR);
BOOL EnumUILanguagesA(UILANGUAGE_ENUMPROCA, DWORD, LONG_PTR);
BOOL EnumUILanguagesW(UILANGUAGE_ENUMPROCW, DWORD, LONG_PTR);
}
}
version (Unicode) {
alias CALINFO_ENUMPROCW CALINFO_ENUMPROC;
alias CALINFO_ENUMPROCEXW CALINFO_ENUMPROCEX;
alias LOCALE_ENUMPROCW LOCALE_ENUMPROC;
alias CODEPAGE_ENUMPROCW CODEPAGE_ENUMPROC;
alias DATEFMT_ENUMPROCW DATEFMT_ENUMPROC;
alias DATEFMT_ENUMPROCEXW DATEFMT_ENUMPROCEX;
alias TIMEFMT_ENUMPROCW TIMEFMT_ENUMPROC;
alias LANGUAGEGROUP_ENUMPROCW LANGUAGEGROUP_ENUMPROC;
alias LANGGROUPLOCALE_ENUMPROCW LANGGROUPLOCALE_ENUMPROC;
alias UILANGUAGE_ENUMPROCW UILANGUAGE_ENUMPROC;
alias CPINFOEXW CPINFOEX;
alias LPCPINFOEXW LPCPINFOEX;
alias CURRENCYFMTW CURRENCYFMT;
alias LPCURRENCYFMTW LPCURRENCYFMT;
alias NUMBERFMTW NUMBERFMT;
alias LPNUMBERFMTW LPNUMBERFMT;
alias CompareStringW CompareString;
alias EnumCalendarInfoW EnumCalendarInfo;
alias EnumSystemCodePagesW EnumSystemCodePages;
alias EnumSystemLocalesW EnumSystemLocales;
alias EnumTimeFormatsW EnumTimeFormats;
alias FoldStringW FoldString;
alias GetCalendarInfoW GetCalendarInfo;
alias GetCPInfoExW GetCPInfoEx;
alias GetCurrencyFormatW GetCurrencyFormat;
alias GetDateFormatW GetDateFormat;
alias GetGeoInfoW GetGeoInfo;
alias GetLocaleInfoW GetLocaleInfo;
alias GetNumberFormatW GetNumberFormat;
alias GetStringTypeExW GetStringTypeEx;
alias GetTimeFormatW GetTimeFormat;
alias LCMapStringW LCMapString;
alias SetCalendarInfoW SetCalendarInfo;
alias SetLocaleInfoW SetLocaleInfo;
static if (_WIN32_WINNT >= 0x410) {
alias EnumCalendarInfoExW EnumCalendarInfoEx;
alias EnumDateFormatsExW EnumDateFormatsEx;
}
static if (_WIN32_WINNT >= 0x500) {
alias EnumSystemLanguageGroupsW EnumSystemLanguageGroups;
alias EnumLanguageGroupLocalesW EnumLanguageGroupLocales;
alias EnumUILanguagesW EnumUILanguages;
}
} else {
alias CALINFO_ENUMPROCA CALINFO_ENUMPROC;
alias CALINFO_ENUMPROCEXA CALINFO_ENUMPROCEX;
alias LOCALE_ENUMPROCA LOCALE_ENUMPROC;
alias CODEPAGE_ENUMPROCA CODEPAGE_ENUMPROC;
alias DATEFMT_ENUMPROCA DATEFMT_ENUMPROC;
alias DATEFMT_ENUMPROCEXA DATEFMT_ENUMPROCEX;
alias TIMEFMT_ENUMPROCA TIMEFMT_ENUMPROC;
alias LANGUAGEGROUP_ENUMPROCA LANGUAGEGROUP_ENUMPROC;
alias LANGGROUPLOCALE_ENUMPROCA LANGGROUPLOCALE_ENUMPROC;
alias UILANGUAGE_ENUMPROCA UILANGUAGE_ENUMPROC;
alias CPINFOEXA CPINFOEX;
alias LPCPINFOEXA LPCPINFOEX;
alias CURRENCYFMTA CURRENCYFMT;
alias LPCURRENCYFMTA LPCURRENCYFMT;
alias NUMBERFMTA NUMBERFMT;
alias LPNUMBERFMTA LPNUMBERFMT;
alias CompareStringA CompareString;
alias EnumCalendarInfoA EnumCalendarInfo;
alias EnumSystemCodePagesA EnumSystemCodePages;
alias EnumSystemLocalesA EnumSystemLocales;
alias EnumTimeFormatsA EnumTimeFormats;
alias FoldStringA FoldString;
alias GetCalendarInfoA GetCalendarInfo;
alias GetCPInfoExA GetCPInfoEx;
alias GetCurrencyFormatA GetCurrencyFormat;
alias GetDateFormatA GetDateFormat;
alias GetGeoInfoA GetGeoInfo;
alias GetLocaleInfoA GetLocaleInfo;
alias GetNumberFormatA GetNumberFormat;
alias GetStringTypeExA GetStringTypeEx;
alias GetTimeFormatA GetTimeFormat;
alias LCMapStringA LCMapString;
alias SetCalendarInfoA SetCalendarInfo;
alias SetLocaleInfoA SetLocaleInfo;
static if (_WIN32_WINNT >= 0x410) {
alias EnumCalendarInfoExA EnumCalendarInfoEx;
alias EnumDateFormatsExA EnumDateFormatsEx;
}
static if (_WIN32_WINNT >= 0x500) {
alias EnumSystemLanguageGroupsA EnumSystemLanguageGroups;
alias EnumLanguageGroupLocalesA EnumLanguageGroupLocales;
alias EnumUILanguagesA EnumUILanguages;
}
}
|
D
|
/private/tmp/day13/day13/target/debug/deps/day13-32c4e35be0b654bf: src/main.rs
/private/tmp/day13/day13/target/debug/deps/day13-32c4e35be0b654bf.d: src/main.rs
src/main.rs:
|
D
|
/** Functions related to the solving of nonlinear equations, i.e. finding
roots of nonlinear functions.
Authors: Lars Tandle Kyllingstad
Copyright: Copyright (c) 2009-2010, Lars T. Kyllingstad. All rights reserved.
License: Boost License 1.0
*/
module scid.nonlinear;
import std.algorithm;
import std.functional;
import std.math;
import std.range;
import std.traits;
import std.typecons;
import scid.core.fortran;
import scid.core.memory;
import scid.core.traits;
import scid.ports.minpack.hybrd;
import scid.ports.napack.quasi;
import scid.calculus;
import scid.exception;
//import scid.types;
import scid.util;
version (unittest) { import scid.core.testing; }
/** Searches for a root of N functions of N variables using a variant
of the Powell Hybrid Method (the HYBRD routine from MINPACK).
Params:
f = The set of equations, given as a function, delegate or
functor that takes an array of length N as input and
returns an array of length N. If the function has
an additional array input parameter this will be
assumed to be a buffer for the output value.
guess = A starting point for the algorithm. The closer this
guess is to the true root, the greater chance that the
algorithm converges.
epsRel = Success criterion: The algorithm stops when
the relative error between two consecutive iterations
is at most epsRel.
maxFuncEvals = (optional) The maximum number of function evaluations.
If maxFuncEvals<1, it is set to 200*(N+1).
buffer = (optional) A buffer of length at least N, for the return value.
Example:
The Rosenbrock function is a commonly used test problem for
optimisation algorithms. It has a global minimum at (1,1) that is hard
to locate numerically because it lies in a long, narrow valley.
Instead of using an optimisation algorithm, let us try to locate
the minimum by finding the root of the Rosenbrock function's
gradient.
---
// The Rosenbrock function is defined as
// f(x,y) = (1-x)^2 + 100 (y-x^2)^2.
// Thus, its gradient is:
real[] dRosenbrock(real[] v, real[] buf)
{
auto x = v[0], y = v[1];
buf[0] = -2*(1-x) - 400*x*(y-x*x);
buf[1] = 200 * (y-x*x);
return buf;
}
real[] guess = [ 2.0, 2.0 ];
auto root = findRoot(&dRosenbrock, guess, 0.0L);
writeln(root); // Prints "1 1". Yay!
---
*/
Real[] findRoot (Real, Func)
(scope Func f, Real[] guess, Real epsRel, int maxFuncEvals = 0,
Real[] buffer=null)
in
{
assert (guess.length > 0, "findRoot: empty guess vector given");
}
body
{
mixin (newFrame);
static assert (isFloatingPoint!Real,
"findRoot: Not a floating-point type: "~T.stringof);
static assert (isVectorField!(Func, Real),
"findRoot: Invalid function type ("~Func.stringof~"), or "
~"function type doesn't match parameter type ("~Real.stringof~")");
// Wrap the user-supplied function.
void fcn(size_t m, Real* x, Real* fvec, ref int iflag)
{
static if (isBufferVectorField!(Func, Real))
{
// When the function takes a buffer, we check that it
// actually uses it.
auto fTest = f(x[0 .. m], fvec[0 .. m]);
assert (fTest.ptr == fvec);
}
else
{
auto fTest = f(x[0 .. m]);
}
assert (fTest.length == m, "findRoot: The number of "
~"equations must be equal to the number of variables");
};
immutable int n = toInt(guess.length);
immutable int wslen = (n*(3*n + 15))/2;
if (maxFuncEvals < 1) maxFuncEvals = 200*(n+1);
// Copy the guessed vector into the buffer.
buffer.length = n;
buffer[] = guess[];
// There are a lot of parameters to the hybrd function, and we set them
// in the "correct" order and use the "correct" names.
Real* x = buffer.ptr;
Real* fvec = cast(Real*) TempAlloc.malloc(wslen);
alias epsRel xtol;
alias maxFuncEvals maxfev;
size_t ml_mu = n-1;
Real epsfcn = 0.0;
Real* diag = fvec + n; diag[0 .. n] = 1.0;
int mode = 2;
enum Real factor = 100.0;
int nprint = 0;
int info = 0;
uint nfev;
Real* fjac = diag + n;
alias n ldfjac;
Real* r = fjac + ldfjac*n;
size_t lr = (n*(n+1))/2;
Real* qtf = r + lr;
Real* wa1 = qtf + n;
Real* wa2 = wa1 + n;
Real* wa3 = wa2 + n;
Real* wa4 = wa3 + n;
// Phew! Call hybrd() now.
hybrd!(Real, typeof(&fcn))(&fcn, n, x, fvec, xtol, maxfev, ml_mu, ml_mu,
epsfcn, diag, mode, factor, nprint, info, nfev, fjac, ldfjac, r, lr,
qtf, wa1, wa2, wa3, wa4);
switch (info)
{
case 1: // Success!
return x[0 .. n];
case 0:
throw new NumericsException(NE.InvalidInput);
case 2:
throw new NumericsException(NE.Limit);
case 3:
throw new NumericsException(NE.Accuracy);
case 4:
case 5:
throw new NumericsException(NE.Convergence);
default:
throw new NumericsException;
}
}
unittest
{
real[] dRosenbrock(real[] v, real[] fx=null)
{
assert (v.length == 2 && fx.length == 2);
auto x = v[0], y = v[1];
fx[0] = -2*(1-x) - 400*x*(y-x*x);
fx[1] = 200 * (y - x*x);
return fx;
}
real[] guess = [ 2.0, 2.0 ];
auto root = findRoot(&dRosenbrock, guess, 0.0L);
check (approxEqual(root, [1.0L, 1.0L].dup, 1e-6));
}
/** Find a root of the function f.
This function first calls $(LINK2 #bracketRoot,bracketRoot) to
obtain an interval inside which there must be a root, and then calls
$(LINK2 http://www.digitalmars.com/d/2.0/phobos/std_numeric.html#findRoot,std.numeric.findRoot())
to pin down the location of the root.
The parameters x0, scale, xMin, and xMax are just passed on to
$(LINK2 #bracketRoot,bracketRoot), and they are described in detail
in its documentation. In brief, x0 should be an estimate of the
root's location, while scale should be a characteristic scale for
the function, i.e. a distance over which the function changes
significantly. [xMin,xMax] is the interval inside which the algorithm
is allowed to search.
You may specify the desired (minimum) number of digits of precision
in the answer. If this is left out, the algorithm will attempt
to achieve full machine precision.
*/
T findRoot(F, T)(scope F f, T x0, T scale, T xMin, T xMax, int precision)
if (isUnaryFunction!(F, T) && isFloatingPoint!T)
{
return findRootImpl(f, x0, scale, xMin, xMax,
(T a, T b) { return matchDigits(a, b, precision); });
}
/// ditto
T findRoot(F, T)(scope F f, T x0, T scale, int precision)
if (isUnaryFunction!(F, T) && isFloatingPoint!T)
{
return findRoot(f, x0, scale, -T.infinity, T.infinity, precision);
}
/// ditto
T findRoot(F, T)
(scope F f, T x0, T scale, T xMin = -T.infinity, T xMax = T.infinity)
if (isUnaryFunction!(F, T) && isFloatingPoint!T)
{
return findRootImpl(f, x0, scale, xMin, xMax,
(T a, T b) { return false; });
}
// Implementation of findRoot()
private T findRootImpl(F, T)
(
scope F f,
T x0, T scale,
T xMin, T xMax,
scope bool delegate(T, T) tolerance
)
if (isUnaryFunction!(F, T) && isFloatingPoint!T)
{
auto bracket = bracketRoot(f, x0, scale, xMin, xMax);
if (bracket.y1 == 0) return bracket.x1;
if (bracket.y2 == 0) return bracket.x2;
// std.numeric.findRoot() only takes a delegate
static if (is (F == delegate))
auto dg = f;
else static if (isFunctionPointer!F)
auto dg = toDelegate(f);
else static if (isFunctor!F)
scope ReturnType!F delegate(ParameterTypeTuple!F) dg = &f.opCall;
return std.numeric.findRoot(dg,
bracket.x1, bracket.x2,
bracket.y1, bracket.y2,
tolerance
)[0];
}
unittest
{
real f(real x) { return log(x); }
immutable inaccurateRoot =
findRoot(&f, 0.5L, 1.0L, real.epsilon, real.infinity, 2);
check(matchDigits(inaccurateRoot, 1.0, 2));
check(!matchDigits(inaccurateRoot, 1.0, 10));
immutable accurateRoot =
findRoot(&f, 0.5L, 1.0L, real.epsilon, real.infinity);
check(accurateRoot == 1.0);
}
unittest
{
// Function
static real f(real x) { return x; }
check(findRoot(&f, 1.0L, 1.0L) == 0.0L);
}
unittest
{
// Functor
struct Functor { real opCall(real x) { return x^^3; } }
Functor g;
check(findRoot(g, 1.0L, 1.0L) == 0.0L);
}
/** Bracket a root of the function f.
If a function f(x) is continuous on an interval [x1,x2],
and f(x1) and f(x2) have opposite sign, we know the function
must pass through zero somewhere in the interval.
The points x1 and x2 are then said to 'bracket' the
root. This is usually the first step in locating the root
of a function.
If this function succeeds, it returns a RootBracket containing
the points x1 and x2, together with the function values f(x1)
and f(x2). If it fails, an exception is thrown.
Note that this library considers the points to be bracketing
a root also if the root is located exactly at x1 and/or x2,
i.e. if f(x1)=0 and/or f(x2)=0.
Details:
This function will start by evaluating f(x) in the points
x0 and x0+scale and see if those
points bracket a root of the given function. If not, the interval
is expanded geometrically (i.e. the distance between the points
is multiplied by a constant factor), always in the direction where
f(x) is smallest, until the points bracket a root.
You may optionally specify a limiting interval [xMin, xMax], and the
algorithm will never search outside it. This is useful,
for instance, for functions that are only defined for certain
values of x. If you do specify such an interval, the
initial point x0 must lie inside it.
It is usually worthwhile analysing the behaviour of the function
in order to find appropriate values for x0 and scale.
The closer x0 is to the actual root, the fewer steps (i.e. the
fewer evaluations of f) this algorithm will require to succeed.
If scale is too large, and the function has several roots,
there is a chance that it will just step across both roots
and not find any of them. On the other hand, if it is too small,
it may again cause the algorithm to take more steps than would
otherwise be necessary.
*/
RootBracket!(T, ReturnType!F) bracketRoot(F, T)
(
scope F f,
in T x0, in T scale,
in T xMin = -T.infinity, in T xMax = T.infinity,
)
if (isFloatingPoint!T && isUnaryFunction!(F, T))
in
{
assert (scale != 0, "scale must be nonzero");
assert (xMin < xMax, "xMin must be smaller than xMax");
assert (xMin <= x0 && x0 <= xMax, "x0 must be in the interval [xMin,xMax]");
}
body
{
alias typeof(return) B;
enum expandFactor = 1.6;
// Function that searches upwards from xMin
B upwards(real x, real fx, real dx)
{
immutable fxMin = f(xMin);
for (;;)
{
if (fxMin * fx <= 0) return B(xMin, x, fxMin, fx);
enforceNE(x != xMax, "Unable to bracket root");
dx *= expandFactor;
x = min(x + dx, xMax);
fx = f(x);
}
assert(0);
}
// Function that searches downwards from xMax
B downwards(real x, real fx, real dx)
{
immutable fxMax = f(xMax);
for (;;)
{
if (fxMax * fx <= 0) return B(x, xMax, fx, fxMax);
enforceNE(x != xMin, "Unable to bracket root");
dx *= expandFactor;
x = max(x - dx, xMin);
fx = f(x);
}
assert(0);
}
// These are the initial points
real x1 = x0;
real x2 = x0 + scale;
// If x0 is either endpoint of the allowed interval, or if x2
// falls outside the interval, search only in one direction.
if (x1 == xMin || x2 <= xMin)
{
immutable x = min(x1 + abs(scale), xMax);
return upwards(x, f(x), abs(scale));
}
if (x1 == xMax || x2 >= xMax)
{
immutable x = max(x1 - abs(scale), xMin);
return downwards(x, f(x), abs(scale));
}
// Both x1 and x2 fall inside [xMin, xMax], so we use bidirectional search
if (x1 > x2) swap(x1, x2);
real fx1 = f(x1);
real fx2 = f(x2);
for (;;)
{
// Check whether interval brackets a root
if (fx1 * fx2 <= 0) return B(x1, x2, fx1, fx2);
// Expand interval in the direction where f(x) is closest to zero.
if (fabs(fx1) < fabs(fx2))
{
x1 += expandFactor * (x1 - x2);
if (x1 <= xMin) return upwards(x2, fx2, x2-x1);
fx1 = f(x1);
}
else
{
x2 += expandFactor * (x2 - x1);
if (x2 >= xMax) return downwards(x1, fx1, x2-x1);
fx2 = f(x2);
}
}
assert(0);
}
unittest
{
real f(real x) { return 1 - x; }
auto b = bracketRoot(&f, -100.0L, 1.0L);
check (b.contains(1));
}
unittest
{
real f(real x) { return log(x); }
auto b = bracketRoot(&f, 2*real.epsilon, 0.1L, real.epsilon, real.infinity);
check (b.contains(1));
}
/** A set of points that bracket a root of some function. */
struct RootBracket(X, Y)
{
/// Two points that bracket a root.
X x1;
X x2; /// ditto
/// The function value at x1 and x2, respectively
Y y1;
Y y2; /// ditto
version(unittest) private bool contains(X point)
{
if (x1 <= x2) return (point >= x1 && point <= x2);
else return (point >= x2 && point <= x1);
}
}
/** Uses bracketRoots() to divide the interval [a,b] into subintervals
and check which ones bracket roots. Then, findRoot() is applied
to each bracketing interval, and an array containing the roots
is returned.
A buffer of length at least nIntervals+1, for storing the roots,
may optionally be provided.
*/
T[] findRoots(T, Func)(scope Func f, T a, T b, uint nIntervals,
T[] buffer=null)
{
mixin(scid.core.memory.newFrame);
// Find bracketing subintervals.
auto bracketBuffer =
newStack!(RootBracket!(T, ReturnType!Func))(nIntervals+1);
auto intervals =
bracketRoots!(T,Func)(f, a, b, nIntervals, bracketBuffer);
// Find all the bracketed roots.
buffer.length = intervals.length;
foreach (i, iv; intervals)
{
// Check if a root is located at the "lower" endpoint.
if (iv.y1 == 0) buffer[i] = iv.x1;
// If not, call findRoot() to locate the root.
// Note that if it is located at the "higher" end point it will
// be caught in the next iteration.
else if (iv.y2 != 0) buffer[i] =
std.numeric.findRoot(f, iv.x1, iv.x2, iv.y1, iv.y2,
(T a, T b) { return false; })[0];
}
return buffer;
}
unittest
{
real f(real x)
{
return (2+x) * (1+x) * x * (1-x) * (2-x);
}
auto r = findRoots(&f, -2.0L, 2.0L, 15);
check (r.length == 5);
check (approxEqual(r, [-2.0, -1.0, 0.0, 1.0, 2.0], real.epsilon));
}
/** Divides the interval [a,b] into the given number of equal-sized
subintervals,
checks whether any of the subintervals bracket a root, and returns
the ones that do, together with the function values at those points.
A buffer of length at least nIntervals+1, for storing the brackets, may
optionally be provided. If not, one will be allocated.
*/
RootBracket!(T, ReturnType!Func)[] bracketRoots(T, Func)
(scope Func f, T a, T b, uint nIntervals,
RootBracket!(T, ReturnType!Func)[] buffer = null)
{
static assert (is (typeof(buffer) == typeof(return)));
alias ElementType!(typeof(return)) B;
buffer.length = nIntervals+1;
int numBrackets = 0;
auto lo = a;
auto flo = f(lo);
immutable step = (b - a)/nIntervals;
foreach (i; 0 .. nIntervals)
{
immutable hi = (i < nIntervals - 1 ? lo + step : b);
immutable fhi = f(hi);
if (flo == 0 || flo * fhi < 0)
{
B br;
br.x1 = lo; br.y1 = flo;
br.x2 = hi; br.y2 = fhi;
buffer[numBrackets] = br;
++numBrackets;
}
lo = hi;
flo = fhi;
}
// Check for a root in the endpoint as well.
if (flo == 0)
{
B br;
br.x1 = lo; br.y1 = flo;
br.x2 = lo; br.y2 = flo;
buffer[numBrackets] = br;
++numBrackets;
}
buffer.length = numBrackets;
return buffer;
}
unittest
{
real f(real x)
{
return (2+x) * (1+x) * x * (1-x) * (2-x);
}
auto b = bracketRoots(&f, -2.0L, 2.0L, 15);
check(b.length == 5);
foreach (i; b)
{
check(i.y1 == f(i.x1));
check(i.y2 == f(i.x2));
}
check(b[0].x1 == -2);
check(b[1].contains(-1));
check(b[2].contains(0));
check(b[3].contains(1));
check(b[4].x1 == 2);
}
/* Given a function f and a starting point x1, this routine searches
along the x-axis in the positive (scale>0) or negative (scale<0)
direction until it reaches a point x2 where f(x2) has an opposite
sign from f(x1).
If such a point is found, a RootBracket containing the two
points x1 and x2, as well as the function values in those points,
is returned. If not, an exception is thrown.
If the function is exactly zero in one of the endpoints, a
RootBracket starting and ending at that point is returned.
On the first iteration, x2 = x1+scale. Hence, scale should be a
characteristic scale for the function (i.e. a scale over which the
function changes significantly). Thereafter, the interval is expanded
geometrically by multiplying scale by a constant factor for each iteration.
*/
RootBracket!(T, ReturnType!F) bracketFrom(F, T)
(scope F f, T x1, T scale, int maxIterations=40)
{
return bracketFrom(f, x1, f(x1), scale, maxIterations);
}
// ditto
RootBracket!(T, ReturnType!F) bracketFrom(F, T, R)
(scope F f, T x1, R fx1, T scale, int maxIterations=40)
if (is(ReturnType!F : R))
in
{
assert (scale != 0, "scale must be nonzero");
assert (maxIterations > 0, "maxIterations must be positive");
}
body
{
enum expandFactor = 1.6;
real step = scale;
foreach (i; 0 .. maxIterations)
{
immutable x2 = x1 + step;
immutable fx2 = f(x2);
if (fx1 * fx2 <= 0) return typeof(return)(x1, x2, fx1, fx2);
step *= expandFactor;
}
enforceNE(false, NE.Limit);
assert(0);
}
unittest
{
real f(real x) { return x^^2 - 100; }
auto bracket = bracketFrom(&f, 0.0L, 1.0L);
check(bracket.x1 == 0);
check(f(bracket.x1) == bracket.y1);
check(f(bracket.x2) == bracket.y2);
check(bracket.x2 > 10);
check(bracket.y2 > 0);
}
enum HandleNaN : bool { yes = true, no = false }
/* This function does essentially the same as bracketFrom(), except that
it expands the interval in $(I both) directions until it brackets a root.
Unlike bracketFrom(), this function can optionally handle NaNs, in
the way that if the function returns a NaN at either endpoint the routine
stops searching in that direction. Instead it tries to locate the point
where the function starts returning NaN, and uses that as one endpoint
while continuing the search in the other direction using bracketFrom().
This feature is disabled by default. Pass HandleNaN.yes as the last
argument to enable it.
*/
RootBracket!(T, ReturnType!Func) bracketOut(T, Func)
(scope Func f, T x1, T scale, int maxIterations = 40,
HandleNaN handleNaN = HandleNaN.no)
in
{
assert (scale != 0, "scale must be nonzero");
assert (maxIterations > 0, "maxIterations must be positive");
}
body
{
enum expandFactor = 1.6;
real x2 = x1 + scale;
real fx1 = f(x1);
real fx2 = f(x2);
foreach (i; 0 .. maxIterations)
{
// Check whether interval brackets a root
if (fx1 * fx2 <= 0) return typeof(return)(x1, x2, fx1, fx2);
// Check for NaN
if (handleNaN)
{
if (isNaN(fx1))
{
auto n = findNaN(f, x2, x1, fx2, scale*1e-6f);
return bracketFrom(f, n.xValid, x2-n.xValid, maxIterations-i);
}
else if (isNaN(fx2))
{
auto n = findNaN(f, x1, x2, fx1, scale*1e-6f);
return bracketFrom(f, n.xValid, x1-n.xValid, maxIterations-i);
}
}
// Expand interval in the direction where f(x) is closest to zero.
if (fabs(fx1) < fabs(fx2))
{
x1 += expandFactor * (x1 - x2);
fx1 = f(x1);
}
else
{
x2 += expandFactor * (x2 - x1);
fx2 = f(x2);
}
}
enforceNE(false, NE.Limit);
assert(0);
}
unittest
{
real f(real x) { return x^^3; }
auto bracket = bracketOut(&f, 1.0L, 0.1L);
check(f(bracket.x1) == bracket.y1);
check(f(bracket.x2) == bracket.y2);
check(bracket.y1 * bracket.y2 <= 0);
check(bracket.contains(0));
bracket = bracketOut(&f, -1.0L, -0.1L);
check(f(bracket.x1) == bracket.y1);
check(f(bracket.x2) == bracket.y2);
check(bracket.y1 * bracket.y2 <= 0);
check(bracket.contains(0));
}
unittest
{
// Check the handleNaN feature
real f(real x) { return x <= 0 ? real.nan : sin(x); }
auto bracket = bracketOut(&f, 0.001L, 0.001L, 40, HandleNaN.yes);
check(bracket.x1 > 0);
check(f(bracket.x1) == bracket.y1);
check(f(bracket.x2) == bracket.y2);
check(bracket.y1 * bracket.y2 <= 0);
check(bracket.contains(PI/2));
check(isNaN(f(bracket.x1-0.000001)));
}
/** Use bisection to find the point where the given predicate goes from
returning false to returning true.
Params:
f = The function.
predicate = The predicate, which must take a point and
the function value at that point and return
a boolean.
xTrue = A point where the predicate is true.
xFalse = A point where the predicate is false.
fTrue = (optional) The value of f at xTrue.
fFalse = (optional) The value of f at xFalse.
xTolerance = Success: When the absolute distance between
xTrue and xFalse is less than this number,
the function returns.
maxIterations = Failure: When the algorithm has failed to
produce a result after maxIterations bisections,
an exception is thrown.
Returns:
A tuple containing values named xTrue, xFalse, fTrue, and fFalse, which
satisfy
---
f(xTrue) == fTrue
f(xFalse) == fFalse
predicate(xTrue, fTrue) == true
predicate(xFalse, fFalse) == false
abs(xTrue-xFalse) <= xTolerance
---
Example:
---
// Find a root by bisection
auto r = bisect(
(real x) { return x^^3; },
(real x, real fx) { return fx < 0; },
-1.0L, 1.5L, 1e-10L
);
// Let's check if we got the right answer.
enum root = 0.0L;
assert (abs(r.xTrue - root) <= 1e-10);
assert (abs(r.xFalse - root) <= 1e-10);
assert (r.fTrue < 0);
assert (r.fFalse >= 0);
assert (abs(r.xTrue - r.xFalse) <= 1e-10);
assert (r.xNaN < 0);
assert (abs(r.xValid - r.xNan) <= 1e-6);
---
*/
Tuple!(T, "xTrue", T, "xFalse", R, "fTrue", R, "fFalse")
bisect(F, T, R = ReturnType!F)
(scope F f, bool delegate(T, R) predicate, T xTrue, T xFalse,
T xTolerance, int maxIterations=40)
{
return bisect(f, predicate, xTrue, xFalse, f(xTrue), f(xFalse),
xTolerance, maxIterations);
}
/// ditto
Tuple!(T, "xTrue", T, "xFalse", R, "fTrue", R, "fFalse")
bisect(F, T, R = ReturnType!F)
(scope F f, bool delegate(T, R) predicate, T xTrue, T xFalse,
R fTrue, R fFalse, T xTolerance, int maxIterations=40)
if (isFloatingPoint!T && isFloatingPoint!R)
in
{
assert (predicate(xTrue, fTrue) == true, "Predicate is false at xTrue");
assert (predicate(xFalse, fFalse) == false, "Predicate is true at xFalse");
assert (xTolerance > 0, "xTolerance must be positive");
}
body
{
foreach (i; 0 .. maxIterations)
{
if (fabs(xTrue-xFalse) <= xTolerance)
return typeof(return)(xTrue, xFalse, fTrue, fFalse);
immutable xMid = (xTrue + xFalse) / 2;
immutable fMid = f(xMid);
if (predicate(xMid, fMid))
{
xTrue = xMid;
fTrue = fMid;
}
else
{
xFalse = xMid;
fFalse = fMid;
}
}
enforceNE(false, NE.Limit);
assert(0);
}
unittest
{
auto r = bisect(
(real x) { return x^^3; },
(real x, real fx) { return fx < 0; },
-1.0L, 1.5L, 1e-10L
);
enum root = 0.0L;
check(abs(r.xTrue - root) <= 1e-10);
check(abs(r.xFalse - root) <= 1e-10);
check(r.fTrue == r.xTrue^^3);
check(r.fFalse == r.xFalse^^3);
check(r.fTrue < 0);
check(r.fFalse >= 0);
check(abs(r.xTrue - r.xFalse) <= 1e-10);
}
/* Use bisection to find the point where a function starts returning NaN.
This function has been superseded (and is now implemented in terms of)
the more general bisect(). It may be removed in the future.
Params:
f = The function.
xValid = A point where the function is known to
return a valid result.
xNaN = A point where the function is known to
return NaN.
fValid = (optional) The value of f at xValid.
xTolerance = Success: When the absolute distance between
xValid and xNaN is less than this number,
the function returns.
maxIterations = Failure: When the algorithm has failed to
produce a result after maxIterations bisections,
an exception is thrown.
Returns:
A tuple containing the values of xValid, xNaN, and fValid, where
xValid and xNaN now satisfy the success criterion
---
abs(xValid-xNaN) <= xTolerance
---
Example:
---
auto r = findNaN(&log, 1.0, -1.0, 1e-6);
assert (r.xValid >= 0);
assert (r.xNaN < 0);
assert (abs(r.xValid - r.xNan) <= 1e-6);
---
*/
Tuple!(T, "xValid", T, "xNaN", ReturnType!Func, "fValid") findNaN(Func, T)
(scope Func f, T xValid, T xNaN, T xTolerance, int maxIterations=40)
in
{
assert (isNaN(f(xNaN)), "f(xNaN) is not NaN");
}
body
{
auto fValid = f(xValid);
return findNaN(f, xValid, xNaN, fValid, xTolerance, maxIterations);
}
// ditto
Tuple!(T, "xValid", T, "xNaN", R, "fValid") findNaN(Func, T, R)
(scope Func f, T xValid, T xNaN, R fValid, T xTolerance, int maxIterations=40)
if (isUnaryFunction!(Func, R, T) && isFloatingPoint!R)
in
{
assert (!isNaN(fValid), "fValid is NaN");
assert (isNaN(f(xNaN)), "f(xNaN) is not NaN");
assert (xTolerance > 0, "xTolerance must be positive");
}
body
{
auto b = bisect(
f,
(T x, R fx) { return isNaN(fx); },
xNaN, xValid, R.nan, fValid,
xTolerance, maxIterations);
return typeof(return)(b.xFalse, b.xTrue, b.fFalse);
}
unittest
{
auto r = findNaN(&log, 1.0, -1.0, 1e-6);
check (!isNaN(r.fValid));
check (log(r.xValid) == r.fValid);
check (r.xValid >= 0);
check (r.xNaN < 0);
check (abs(r.xValid-r.xNaN) <= 1e-6);
}
|
D
|
// *************************************************************************
// EXIT
// *************************************************************************
INSTANCE DIA_SLD_7_EXIT(C_INFO)
{
nr = 999;
condition = DIA_SLD_7_EXIT_Condition;
information = DIA_SLD_7_EXIT_Info;
permanent = TRUE;
description = DIALOG_ENDE;
};
FUNC INT DIA_SLD_7_EXIT_Condition()
{
return TRUE;
};
FUNC VOID DIA_SLD_7_EXIT_Info()
{
AI_StopProcessInfos (self);
};
// *************************************************************************
// JOIN
// *************************************************************************
INSTANCE DIA_SLD_7_JOIN(C_INFO)
{
nr = 4;
condition = DIA_SLD_7_JOIN_Condition;
information = DIA_SLD_7_JOIN_Info;
permanent = TRUE;
description = "Rád bych se k vám pâidal!";
};
FUNC INT DIA_SLD_7_JOIN_Condition()
{
if (other.guild == GIL_NONE)
{
return TRUE;
};
};
FUNC VOID DIA_SLD_7_JOIN_Info()
{
AI_Output (other, self, "DIA_SLD_7_JOIN_15_00"); //Rád bych se k vám pâidal!
if (MIS_Torlof_BengarMilizKlatschen == LOG_SUCCESS)
{
AI_Output (self, other, "DIA_SLD_7_JOIN_07_01"); //Slyšel jsem, žes to nandal domobranę. Nękdo jako ty se nám tu může jen hodit!
}
else if (MIS_Torlof_HolPachtVonSekob == LOG_SUCCESS)
{
AI_Output (self, other, "DIA_SLD_7_JOIN_07_02"); //Nedokážu si pâedstavit, co je na vybírání daní od nękolika farmáâů tak složitého, ale když si to Onar pâeje, já nebudu proti.
}
else
{
AI_Output (self, other, "DIA_SLD_7_JOIN_07_03"); //Ty? Hned jak tę Torlof podrobí zkoušce, budeš hotovej, ty bimbasi!
};
};
// *************************************************************************
// PEOPLE
// *************************************************************************
INSTANCE DIA_SLD_7_PEOPLE(C_INFO)
{
nr = 3;
condition = DIA_SLD_7_PEOPLE_Condition;
information = DIA_SLD_7_PEOPLE_Info;
permanent = TRUE;
description = "Kdo tady tomu velí?";
};
FUNC INT DIA_SLD_7_PEOPLE_Condition()
{
return TRUE;
};
FUNC VOID DIA_SLD_7_PEOPLE_Info()
{
AI_Output (other, self, "DIA_SLD_7_PEOPLE_15_00"); //Kdo tady tomu velí?
AI_Output (self, other, "DIA_SLD_7_PEOPLE_07_01"); //Lee je náš šéf. Torlof je jeho pravá ruka. Vętšina lidí ho poslouchá, protože jim velel ještę v kolonii.
AI_Output (self, other, "DIA_SLD_7_PEOPLE_07_02"); //A pak je tu Sylvio. Pâišel z hor potom, co sem dorazil Lee.
AI_Output (self, other, "DIA_SLD_7_PEOPLE_07_03"); //On se svými lidmi pâedstavuje jen malou skupinku žoldnéâů - a dęlají jen samé problémy. Jedou na vlastní pęst.
AI_Output (self, other, "DIA_SLD_7_PEOPLE_07_04"); //A Sylvio je mizernej zkurvysyn - dej si na nęj bacha.
};
// *************************************************************************
// LOCATION
// *************************************************************************
INSTANCE DIA_SLD_7_LOCATION(C_INFO)
{
nr = 2;
condition = DIA_SLD_7_LOCATION_Condition;
information = DIA_SLD_7_LOCATION_Info;
permanent = TRUE;
description = "Âekni mi nęco o farmę.";
};
FUNC INT DIA_SLD_7_LOCATION_Condition()
{
return TRUE;
};
FUNC VOID DIA_SLD_7_LOCATION_Info()
{
AI_Output (other, self, "DIA_SLD_7_LOCATION_15_00"); //Âekni mi nęco o farmę.
AI_Output (self, other, "DIA_SLD_7_LOCATION_07_01"); //Onar si nás najal, abychom bránili jeho majetek.
if (other.guild != GIL_SLD)
&& (other.guild != GIL_DJG)
{
AI_Output (self, other, "DIA_SLD_7_LOCATION_07_02"); //Tak si radęj poâádnę rozmysli, než budeš chtít nęco ukrást nebo napadnout farmáâe. Jinak si to budeš muset nejdâív vyâíkat s námi.
};
};
// *************************************************************************
// NEWS
// *************************************************************************
INSTANCE DIA_SLD_7_STANDARD(C_INFO)
{
nr = 1;
condition = DIA_SLD_7_STANDARD_Condition;
information = DIA_SLD_7_STANDARD_Info;
permanent = TRUE;
description = "Co je nového?";
};
func INT DIA_SLD_7_STANDARD_Condition()
{
return TRUE;
};
FUNC VOID DIA_SLD_7_STANDARD_Info()
{
AI_Output (other, self, "DIA_SLD_7_STANDARD_15_00"); //Co je nového?
if (Kapitel <= 2)
{
if (EnterOW_Kapitel2 == FALSE)
{
if (other.guild == GIL_SLD)
{
AI_Output (self,other,"DIA_SLD_7_STANDARD_07_01"); //Od tý doby, co ses k nám pâidal, je tu klid - žádná domobrana.
}
else
{
AI_Output (self,other,"DIA_SLD_7_STANDARD_07_02"); //Nic moc, alespoŕ tady. Ale zeptej se ve męstę, mám dojem, že jim došel dlabanec. (smích)
};
}
else
{
if (other.guild == GIL_SLD)
{
AI_Output (self,other,"DIA_SLD_7_STANDARD_07_03"); //Draci v Hornickém údolí! Nechtęl bych teë být v kůži paladinů.
AI_Output (self,other,"DIA_SLD_7_STANDARD_07_04"); //Hádám, že král lordu Hagenovi asi nakope zadek, když se mu kvůli drakům vrátí s prázdnejma rukama.
}
else
{
AI_Output (self,other,"DIA_SLD_7_STANDARD_07_05"); //Tvoji paladinové si nevędí s draky rady? Takoví kašpaâi - boj je práce pro opravdové chlapy.
};
};
};
if (Kapitel == 3)
{
if (MIS_RescueBennet == LOG_SUCCESS)
{
if (hero.guild == GIL_SLD)
|| (hero.guild == GIL_DJG)
{
AI_Output (self,other,"DIA_SLD_7_STANDARD_07_06"); //V té vęci s Bennetem ses zachoval víc než férovę. Sylvio se teë může vzteknout. Nejradši by vrazil do męsta a rozmlátil to tam na kousky.
AI_Output (self,other,"DIA_SLD_7_STANDARD_07_07"); //Vždycky chtęl Leeho zatlačit do kouta, a Bennet se mu výbornę hodil.
}
else
{
AI_Output (self,other,"DIA_SLD_7_STANDARD_07_08"); //Nevím, proč jsi pomohl Bennetovi, ale vęâ mi, že pro męsto je to tak lepší.
};
}
else
{
if (hero.guild == GIL_SLD)
|| (hero.guild == GIL_DJG)
{
AI_Output (self,other,"DIA_SLD_7_STANDARD_07_09"); //Ta vęc s Bennetem je smůla. Možná jsme pâece jen męli Sylvia poslechnout a napadnout męsto.
}
else
{
AI_Output (self,other,"DIA_SLD_7_STANDARD_07_10"); //Co máš v plánu s Bennetem? Jasnę, já to vlastnę radši ani nechci vędęt. Už brzy ti dojde, k čemu to povede.
};
};
};
if (Kapitel == 4)
{
if (hero.guild == GIL_DJG)
{
AI_Output (self,other,"DIA_SLD_7_STANDARD_07_11"); //Męl jsem dojem, žes męl taky namíâeno do údolí. Společnę se Sylviem.
AI_Output (self,other,"DIA_SLD_7_STANDARD_07_12"); //Nikdo z nás nechce ani pomyslet na to, že by Sylvio zůstal v údolí. Nikdy!
}
else
{
AI_Output (self,other,"DIA_SLD_7_STANDARD_07_13"); //To je od tebe docela odvaha, ukázat se tady úplnę sám.
AI_Output (self,other,"DIA_SLD_7_STANDARD_07_14"); //Ale dokud se nebudeš pokoušet vybírat žádné danę, je mi to jedno.
};
};
if (Kapitel >= 5)
{
AI_Output (self,other,"DIA_SLD_7_STANDARD_07_15"); //Hochu, už to nemůžu dýl vydržet. Ovce, pastviny a stromy. Chci se odsud dostat.
};
};
// *************************************************************************
// -------------------------------------------------------------------------
FUNC VOID B_AssignAmbientInfos_SLD_7 (var c_NPC slf)
{
DIA_SLD_7_EXIT.npc = Hlp_GetInstanceID(slf);
DIA_SLD_7_JOIN.npc = Hlp_GetInstanceID(slf);
DIA_SLD_7_PEOPLE.npc = Hlp_GetInstanceID(slf);
DIA_SLD_7_LOCATION.npc = Hlp_GetInstanceID(slf);
DIA_SLD_7_STANDARD.npc = Hlp_GetInstanceID(slf);
};
|
D
|
/Users/joseLucas/Documents/Libraries/JLChatViewController/Example/build/Pods.build/Debug-iphonesimulator/JLChatViewController.build/Objects-normal/x86_64/JLChatMessageCell.o : /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLBundleController.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLChatAppearence.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLChatImageView.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLChatLoadingView.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLChatMessageCell.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLChatTableView.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLChatTextView.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLChatToolBar.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLChatViewController.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLCustomTextView.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLFile.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLFileIndicatorView.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLImageMessageCell.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLMessage.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLTextMessageCell.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/joseLucas/Documents/Libraries/JLChatViewController/Example/Pods/Target\ Support\ Files/JLChatViewController/JLChatViewController-umbrella.h /Users/joseLucas/Documents/Libraries/JLChatViewController/Example/build/Pods.build/Debug-iphonesimulator/JLChatViewController.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/joseLucas/Documents/Libraries/JLChatViewController/Example/build/Pods.build/Debug-iphonesimulator/JLChatViewController.build/Objects-normal/x86_64/JLChatMessageCell~partial.swiftmodule : /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLBundleController.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLChatAppearence.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLChatImageView.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLChatLoadingView.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLChatMessageCell.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLChatTableView.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLChatTextView.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLChatToolBar.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLChatViewController.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLCustomTextView.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLFile.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLFileIndicatorView.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLImageMessageCell.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLMessage.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLTextMessageCell.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/joseLucas/Documents/Libraries/JLChatViewController/Example/Pods/Target\ Support\ Files/JLChatViewController/JLChatViewController-umbrella.h /Users/joseLucas/Documents/Libraries/JLChatViewController/Example/build/Pods.build/Debug-iphonesimulator/JLChatViewController.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/joseLucas/Documents/Libraries/JLChatViewController/Example/build/Pods.build/Debug-iphonesimulator/JLChatViewController.build/Objects-normal/x86_64/JLChatMessageCell~partial.swiftdoc : /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLBundleController.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLChatAppearence.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLChatImageView.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLChatLoadingView.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLChatMessageCell.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLChatTableView.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLChatTextView.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLChatToolBar.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLChatViewController.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLCustomTextView.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLFile.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLFileIndicatorView.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLImageMessageCell.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLMessage.swift /Users/joseLucas/Documents/Libraries/JLChatViewController/Classes/JLTextMessageCell.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/joseLucas/Documents/Libraries/JLChatViewController/Example/Pods/Target\ Support\ Files/JLChatViewController/JLChatViewController-umbrella.h /Users/joseLucas/Documents/Libraries/JLChatViewController/Example/build/Pods.build/Debug-iphonesimulator/JLChatViewController.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
|
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (http://www.swig.org).
* Version 3.0.0
*
* Do not make changes to this file unless you know what you are doing--modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
module vtkGeoSphereTransform;
static import vtkd_im;
static import core.stdc.config;
static import std.conv;
static import std.string;
static import std.conv;
static import std.string;
static import vtkObjectBase;
static import SWIGTYPE_p_float;
static import SWIGTYPE_p_double;
static import SWIGTYPE_p_a_3__float;
static import SWIGTYPE_p_a_3__double;
static import vtkAbstractTransform;
class vtkGeoSphereTransform : vtkAbstractTransform.vtkAbstractTransform {
private void* swigCPtr;
public this(void* cObject, bool ownCObject) {
super(vtkd_im.vtkGeoSphereTransform_Upcast(cObject), ownCObject);
swigCPtr = cObject;
}
public static void* swigGetCPtr(vtkGeoSphereTransform obj) {
return (obj is null) ? null : obj.swigCPtr;
}
mixin vtkd_im.SwigOperatorDefinitions;
public override void dispose() {
synchronized(this) {
if (swigCPtr !is null) {
if (swigCMemOwn) {
swigCMemOwn = false;
throw new object.Exception("C++ destructor does not have public access");
}
swigCPtr = null;
super.dispose();
}
}
}
public static vtkGeoSphereTransform New() {
void* cPtr = vtkd_im.vtkGeoSphereTransform_New();
vtkGeoSphereTransform ret = (cPtr is null) ? null : new vtkGeoSphereTransform(cPtr, false);
return ret;
}
public static int IsTypeOf(string type) {
auto ret = vtkd_im.vtkGeoSphereTransform_IsTypeOf((type ? std.string.toStringz(type) : null));
return ret;
}
public static vtkGeoSphereTransform SafeDownCast(vtkObjectBase.vtkObjectBase o) {
void* cPtr = vtkd_im.vtkGeoSphereTransform_SafeDownCast(vtkObjectBase.vtkObjectBase.swigGetCPtr(o));
vtkGeoSphereTransform ret = (cPtr is null) ? null : new vtkGeoSphereTransform(cPtr, false);
return ret;
}
public vtkGeoSphereTransform NewInstance() const {
void* cPtr = vtkd_im.vtkGeoSphereTransform_NewInstance(cast(void*)swigCPtr);
vtkGeoSphereTransform ret = (cPtr is null) ? null : new vtkGeoSphereTransform(cPtr, false);
return ret;
}
alias vtkAbstractTransform.vtkAbstractTransform.NewInstance NewInstance;
public override void InternalTransformPoint(SWIGTYPE_p_float.SWIGTYPE_p_float arg0, SWIGTYPE_p_float.SWIGTYPE_p_float arg1) {
vtkd_im.vtkGeoSphereTransform_InternalTransformPoint__SWIG_0(cast(void*)swigCPtr, SWIGTYPE_p_float.SWIGTYPE_p_float.swigGetCPtr(arg0), SWIGTYPE_p_float.SWIGTYPE_p_float.swigGetCPtr(arg1));
}
public override void InternalTransformPoint(SWIGTYPE_p_double.SWIGTYPE_p_double arg0, SWIGTYPE_p_double.SWIGTYPE_p_double arg1) {
vtkd_im.vtkGeoSphereTransform_InternalTransformPoint__SWIG_1(cast(void*)swigCPtr, SWIGTYPE_p_double.SWIGTYPE_p_double.swigGetCPtr(arg0), SWIGTYPE_p_double.SWIGTYPE_p_double.swigGetCPtr(arg1));
}
public override void InternalTransformDerivative(SWIGTYPE_p_float.SWIGTYPE_p_float arg0, SWIGTYPE_p_float.SWIGTYPE_p_float arg1, SWIGTYPE_p_a_3__float.SWIGTYPE_p_a_3__float derivative) {
vtkd_im.vtkGeoSphereTransform_InternalTransformDerivative__SWIG_0(cast(void*)swigCPtr, SWIGTYPE_p_float.SWIGTYPE_p_float.swigGetCPtr(arg0), SWIGTYPE_p_float.SWIGTYPE_p_float.swigGetCPtr(arg1), SWIGTYPE_p_a_3__float.SWIGTYPE_p_a_3__float.swigGetCPtr(derivative));
}
public override void InternalTransformDerivative(SWIGTYPE_p_double.SWIGTYPE_p_double arg0, SWIGTYPE_p_double.SWIGTYPE_p_double arg1, SWIGTYPE_p_a_3__double.SWIGTYPE_p_a_3__double derivative) {
vtkd_im.vtkGeoSphereTransform_InternalTransformDerivative__SWIG_1(cast(void*)swigCPtr, SWIGTYPE_p_double.SWIGTYPE_p_double.swigGetCPtr(arg0), SWIGTYPE_p_double.SWIGTYPE_p_double.swigGetCPtr(arg1), SWIGTYPE_p_a_3__double.SWIGTYPE_p_a_3__double.swigGetCPtr(derivative));
}
public void SetToRectangular(bool _arg) {
vtkd_im.vtkGeoSphereTransform_SetToRectangular(cast(void*)swigCPtr, _arg);
}
public bool GetToRectangular() {
bool ret = vtkd_im.vtkGeoSphereTransform_GetToRectangular(cast(void*)swigCPtr) ? true : false;
return ret;
}
public void ToRectangularOn() {
vtkd_im.vtkGeoSphereTransform_ToRectangularOn(cast(void*)swigCPtr);
}
public void ToRectangularOff() {
vtkd_im.vtkGeoSphereTransform_ToRectangularOff(cast(void*)swigCPtr);
}
public void SetBaseAltitude(double _arg) {
vtkd_im.vtkGeoSphereTransform_SetBaseAltitude(cast(void*)swigCPtr, _arg);
}
public double GetBaseAltitude() {
auto ret = vtkd_im.vtkGeoSphereTransform_GetBaseAltitude(cast(void*)swigCPtr);
return ret;
}
}
|
D
|
module hio.tls;
public import hio.tls.common;
public import hio.tls.tls_impl;
|
D
|
module test.xcore;
import std.outbuffer;
import std.conv: to;
import capstone;
import test.utils;
enum XCORE_CODE = cast(ubyte[])"\xfe\x0f\xfe\x17\x13\x17\xc6\xfe\xec\x17\x97\xf8\xec\x4f\x1f\xfd\xec\x37\x07\xf2\x45\x5b\xf9\xfa\x02\x06\x1b\x10\x09\xfd\xec\xa7";
enum platforms = [
Platform(Arch.xcore, Mode.bigEndian, XCORE_CODE, "XCore"),
];
void writeDetail(ref OutBuffer buf, in XCoreInstruction instr){
auto xcore = instr.detail; // = instr.detail.archSpecific;
if(xcore.operands.length > 0)
buf.writefln("\top_count: %d", xcore.operands.length);
foreach(i, operand; xcore.operands){
final switch(operand.type){
case XCoreOpType.invalid:
break;
case XCoreOpType.reg:
buf.writefln("\t\toperands[%d].type: REG = %s", i, operand.reg.name);
break;
case XCoreOpType.imm:
buf.writefln("\t\toperands[%d].type: IMM = 0x%x", i, operand.imm);
break;
case XCoreOpType.mem:
buf.writefln("\t\toperands[%d].type: MEM", i);
if (operand.mem.base.id != XCoreRegisterId.invalid)
buf.writefln("\t\t\toperands[%d].mem.base: REG = %s", i, operand.mem.base.name);
if (operand.mem.index.id != XCoreRegisterId.invalid)
buf.writefln("\t\t\toperands[%u].mem.index: REG = %s", i, operand.mem.index.name);
if (operand.mem.disp != 0)
buf.writefln("\t\t\toperands[%d].mem.disp: 0x%x", i, operand.mem.disp);
if (operand.mem.direct != 1)
buf.writefln("\t\t\toperands[%u].mem.direct: -1", i);
break;
}
}
buf.writefln("");
}
unittest{
auto buf = new OutBuffer;
foreach(platform; platforms) {
assert(platform.arch == Arch.xcore);
auto cs = new CapstoneXCore(ModeFlags(platform.mode));
cs.detail = true;
buf.writefln("****************");
buf.writefln("Platform: %s", platform.comment);
buf.writefln("Code:%s", platform.code.bytesToHex);
auto res = cs.disasm(platform.code, 0x1000);
if(res.length > 0){
buf.writefln("Disasm:");
foreach(instr; res){
buf.writefln("0x%x:\t%s\t%s", instr.address, instr.mnemonic, instr.opStr);
buf.writeDetail(instr);
}
buf.writefln("0x%x:", res[$-1].address + res[$-1].bytes.length);
}else{
buf.writefln("ERROR: Failed to disasm given code!");
}
buf.writefln("");
}
const expected = import("xcore.expected");
const actual = buf.toString;
assert(expected == actual, expectationMismatch(expected, actual));
}
|
D
|
/Users/zhaoxingchen/Desktop/abc/Mattth/Mattth/MathFlow/Build/Intermediates.noindex/MathFlow.build/Debug/MathFlow.build/Objects-normal/x86_64/MathShot.o : /Users/zhaoxingchen/Desktop/abc/Mattth/Mattth/AppDelegate.swift /Users/zhaoxingchen/Desktop/abc/Mattth/Mattth/ContentViewController.swift /Users/zhaoxingchen/Desktop/abc/Mattth/Mattth/process.swift /Users/zhaoxingchen/Desktop/abc/Mattth/Mattth/MathShot.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/XPC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreData.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/QuartzCore.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/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/AppKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.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/AppKit.framework/Headers/AppKit.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/zhaoxingchen/Desktop/abc/Mattth/Mattth/MathFlow/Build/Intermediates.noindex/MathFlow.build/Debug/MathFlow.build/Objects-normal/x86_64/MathShot~partial.swiftmodule : /Users/zhaoxingchen/Desktop/abc/Mattth/Mattth/AppDelegate.swift /Users/zhaoxingchen/Desktop/abc/Mattth/Mattth/ContentViewController.swift /Users/zhaoxingchen/Desktop/abc/Mattth/Mattth/process.swift /Users/zhaoxingchen/Desktop/abc/Mattth/Mattth/MathShot.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/XPC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreData.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/QuartzCore.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/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/AppKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.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/AppKit.framework/Headers/AppKit.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/zhaoxingchen/Desktop/abc/Mattth/Mattth/MathFlow/Build/Intermediates.noindex/MathFlow.build/Debug/MathFlow.build/Objects-normal/x86_64/MathShot~partial.swiftdoc : /Users/zhaoxingchen/Desktop/abc/Mattth/Mattth/AppDelegate.swift /Users/zhaoxingchen/Desktop/abc/Mattth/Mattth/ContentViewController.swift /Users/zhaoxingchen/Desktop/abc/Mattth/Mattth/process.swift /Users/zhaoxingchen/Desktop/abc/Mattth/Mattth/MathShot.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/XPC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreData.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/QuartzCore.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/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/AppKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/xpc/XPC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreData.framework/Headers/CoreData.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.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/AppKit.framework/Headers/AppKit.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
|
// B_ClearRoomRefuseTalk
// JP: Ist notwendig, damit die Nsc auf Ansprechen reagieren, aber nicht in ihren normalen Talk verfallen
func void B_ClearRoomRefuseTalk ()
{
B_Say (self, other, "$GETOUTOFHERE");
AI_StopProcessInfos (self);
};
func void ZS_ClearRoom ()
{
PrintDebugNpc (PD_ZS_FRAME, "ZS_ClearRoom" );
Npc_PercEnable (self, PERC_ASSESSDAMAGE , ZS_ReactToDamage );
Npc_PercEnable (self, PERC_ASSESSMAGIC , B_AssessMagic );
Npc_PercEnable (self, PERC_ASSESSENTERROOM , B_ClearRoomEnterRoom);
Npc_PercEnable (self, PERC_ASSESSUSEMOB , B_ClearRoomUseMob );
//Npc_PercEnable (self, PERC_ASSESSFIGHTSOUND , B_AssessFightSound );
Npc_PercEnable (self, PERC_MOVENPC , B_StopGotoHero );
Npc_PercEnable (self, PERC_ASSESSTALK , B_ClearRoomRefuseTalk);
C_ZSInit();
B_WhirlAround (self, other);
B_PointAndShout (self, other, "$HEYYOU");
AI_SetWalkmode (self, NPC_RUN);
Npc_SetTarget (self, other);
self.aivar[AIV_PLAYERISINROOM] = TRUE;
};
func int ZS_ClearRoom_Loop ()
{
PrintDebugNpc (PD_ZS_LOOP, "ZS_ClearRoom_Loop" );
Npc_GetTarget (self);
//-------- SC hat mittlerweile den Raum verlassen --------
var int portalguild;
portalguild = Wld_GetPlayerPortalGuild();
PrintGuild (PD_ZS_CHECK, portalguild);
if (portalguild == GIL_NONE)
|| (Wld_GetGuildAttitude(self.guild, portalguild) != ATT_FRIENDLY)
|| (Npc_GetAttitude(self,other) == ATT_FRIENDLY)
{
B_FullStop (self);
AI_ContinueRoutine(self);
self.aivar[AIV_PLAYERISINROOM] = FALSE;
return LOOP_END;
};
//-------- NSC hat den SC erreicht ! --------
if (Npc_GetDistToNpc(self, other) < PERC_DIST_DIALOG
&& Npc_CanSeeNpc (self, other) )
{
B_FullStop (self);
return LOOP_END;
};
AI_GotoNpc (self, other);
AI_Wait (self, 0.5);
return LOOP_CONTINUE;
};
func void ZS_ClearRoom_End ()
{
PrintDebugNpc (PD_ZS_FRAME, "ZS_ClearRoom_End" );
AI_TurnToNpc (self, other);
if (C_AmIStronger (self, other))
{
PrintDebugNpc (PD_ZS_CHECK, "...Nsc ist stärker!");
B_Say (self, other, "$GETOUTOFHERE");
AI_Wait (self, 3);
AI_StartState (self, ZS_ClearRoomWait, 0, "");
}
else
{
PrintDebugNpc (PD_ZS_CHECK, "...Nsc ist schwächer!");
B_Say (self, other, "$GETOUTORICALLGUARDS");
AI_Wait (self, 3);
AI_StartState (self, ZS_ClearRoomWait, 0, "");
};
// JP: Hier noch mal warten, bevor in ZS_ClearRoomWait die Waffe gezogen wird und eine weitere Warnung ausgesprochen wird
};
func void ZS_ClearRoomWait ()
{
PrintDebugNpc (PD_ZS_FRAME, "ZS_ClearRoomWait" );
Npc_PercEnable (self, PERC_ASSESSDAMAGE , ZS_ReactToDamage );
Npc_PercEnable (self, PERC_ASSESSMAGIC , B_AssessMagic );
Npc_PercEnable (self, PERC_ASSESSENTERROOM , B_ClearRoomEnterRoom);
Npc_PercEnable (self, PERC_ASSESSUSEMOB , B_ClearRoomUseMob );
Npc_PercEnable (self, PERC_ASSESSFIGHTSOUND , B_AssessFightSound );
Npc_PercEnable (self, PERC_ASSESSTALK , B_ClearRoomRefuseTalk);
C_ZSInit();
B_DrawWeapon (self, other);
// JP: Hier iszt jetzt auch ein Warnen und Steigern System vorgesehen, aber Alex wollte erstmal altes Svm benutzt haben
// !!! Fixme
B_Say (self, other, "$GETOUTOFHERE");
};
func void ZS_ClearRoomWait_Loop ()
{
/*
if (other.aivar[AIV_DIDWAITTOCLEARROOM] == 1)
{
other.aivar[AIV_DIDWAITTOCLEARROOM] = 0;
AI_ContinueRoutine ( self);
};
*/
PrintDebugNpc (PD_ZS_LOOP, "ZS_ClearRoomWait_Loop" );
B_SmartTurnToNpc (self, other);
if (Wld_GetPlayerPortalGuild () == GIL_NONE)
|| (Npc_GetAttitude(self, other) == ATT_FRIENDLY)
{
if (C_AmIStronger(self,other))
{
AI_TurnToNpc(self, other);
B_Say (self, other, "$WISEMOVE");
};
self.aivar[AIV_PLAYERISINROOM] = FALSE;
AI_ContinueRoutine(self);
};
AI_Wait (self, 1);
};
func void ZS_ClearRoomWait_End ()
{
PrintDebugNpc (PD_ZS_FRAME, "ZS_ClearRoomWait_End" );
};
func void B_ClearRoomEnterRoom()
{
PrintDebugNpc (PD_ZS_FRAME, "B_ClearRoomEnterRoom" );
B_FullStop ( self);
if (Npc_CanSeeNpc(self,other))
{
PrintDebugNpc (PD_ZS_CHECK, "...NSC kann SC sehen!");
if (Wld_GetPlayerPortalGuild () == GIL_NONE )
{
PrintDebugNpc (PD_ZS_CHECK, "...SC nicht mehr im Raum!");
if (C_AmIStronger(self,other))
{
AI_TurnToNpc(self, other);
B_Say (self, other, "$WISEMOVE");
};
self.aivar[AIV_PLAYERISINROOM] = FALSE;
AI_ContinueRoutine(self);
};
}
// JP: Nsc´s die den Spieler den Raum nicht verlassen sehen sagen zwar nichts, aber brechen
// trotzdem den ZS_ClearRoom ab, damit sie nicht bis zum entsprechenden Raum laufen um dann
// erst da festzustellen, der Spieler ist ja gar nicht mehr im Raum
else
{
PrintDebugNpc (PD_ZS_CHECK, "...SC nicht mehr im Raum!, kann es aber nicht sehen");
if (Wld_GetPlayerPortalGuild () == GIL_NONE )
{
self.aivar[AIV_PLAYERISINROOM] = FALSE;
AI_ContinueRoutine(self);
};
};
};
func void B_ClearRoomUseMob()
{
PrintDebugNpc (PD_ZS_FRAME, "B_ClearRoomUseMob");
if Npc_IsDetectedMobOwnedByNpc(other, self)
|| Npc_IsDetectedMobOwnedByGuild(other, self.guild)
// Damit sich Wachen etc einmischen, wenn der Spieler an einer Kiste in einer Hütte rumfummelt
|| (Wld_GetGuildAttitude (self.guild, B_GetMobGuild (other))== ATT_FRIENDLY)
{
PrintDebugNpc (PD_ZS_CHECK, "...MOB gehört NSC oder seiner Gilde!");
B_FullStop (self);
Npc_PercDisable (self, PERC_ASSESSUSEMOB);
// JP: An Kisten in Hütten gehen wird als Diebstahl bewertet und erfordert deshalb Attitüdenänderung und Variablenänderung
B_GuildAssignTheft ();
if (C_AmIStronger(self,other))
{
B_Say (self, other, "$DIRTYTHIEF");
B_AttackQuick ( self, other);
}
else
{
AI_StartState (self, ZS_CallGuardsOnEnterRoom, 0, "");
};
};
};
|
D
|
void main() {
auto N = ri;
auto K = ri;
ulong res = 1;
foreach(i; 0..N) res = (res * 2 < res + K ? res * 2 : res + K);
writeln(res);
}
// ===================================
import std.stdio;
import std.string;
import std.functional;
import std.algorithm;
import std.range;
import std.traits;
import std.math;
import std.container;
import std.bigint;
import std.numeric;
import std.conv;
import std.typecons;
import std.uni;
import std.ascii;
import std.bitmanip;
import core.bitop;
T readAs(T)() if (isBasicType!T) {
return readln.chomp.to!T;
}
T readAs(T)() if (isArray!T) {
return readln.split.to!T;
}
T[][] readMatrix(T)(uint height, uint width) if (!isSomeChar!T) {
auto res = new T[][](height, width);
foreach(i; 0..height) {
res[i] = readAs!(T[]);
}
return res;
}
T[][] readMatrix(T)(uint height, uint width) if (isSomeChar!T) {
auto res = new T[][](height, width);
foreach(i; 0..height) {
auto s = rs;
foreach(j; 0..width) res[i][j] = s[j].to!T;
}
return res;
}
int ri() {
return readAs!int;
}
double rd() {
return readAs!double;
}
string rs() {
return readln.chomp;
}
|
D
|
/home/liyun/clink/zkp_test/ckb-zkp/target/debug/deps/serde-14a3ce52e552dee3.rmeta: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/lib.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/macros.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/integer128.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/de/mod.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/de/value.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/de/ignored_any.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/de/impls.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/de/utf8.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/ser/mod.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/ser/fmt.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/ser/impls.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/ser/impossible.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/private/mod.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/private/de.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/private/ser.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/private/size_hint.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/private/doc.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/de/seed.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/std_error.rs
/home/liyun/clink/zkp_test/ckb-zkp/target/debug/deps/serde-14a3ce52e552dee3.d: /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/lib.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/macros.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/integer128.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/de/mod.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/de/value.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/de/ignored_any.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/de/impls.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/de/utf8.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/ser/mod.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/ser/fmt.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/ser/impls.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/ser/impossible.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/private/mod.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/private/de.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/private/ser.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/private/size_hint.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/private/doc.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/de/seed.rs /home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/std_error.rs
/home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/lib.rs:
/home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/macros.rs:
/home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/integer128.rs:
/home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/de/mod.rs:
/home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/de/value.rs:
/home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/de/ignored_any.rs:
/home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/de/impls.rs:
/home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/de/utf8.rs:
/home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/ser/mod.rs:
/home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/ser/fmt.rs:
/home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/ser/impls.rs:
/home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/ser/impossible.rs:
/home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/private/mod.rs:
/home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/private/de.rs:
/home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/private/ser.rs:
/home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/private/size_hint.rs:
/home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/private/doc.rs:
/home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/de/seed.rs:
/home/liyun/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/serde-1.0.125/src/std_error.rs:
|
D
|
// llmath.d
// Copyright (C) 1993-2009 by Digital Mars, http://www.digitalmars.com
// All Rights Reserved
// Автор Walter Bright
// Compiler runtime support for 64 bit longs
export extern (C):
/***************************************
* Unsigned long divide.
* Input:
* [EDX,EAX],[ECX,EBX]
* Output:
* [EDX,EAX] = [EDX,EAX] / [ECX,EBX]
* [ECX,EBX] = [EDX,EAX] % [ECX,EBX]
*/
void __ULDIV__()
{
asm
{
naked ;
test ECX,ECX ;
jz uldiv ;
// if ECX > EDX, then quotient is 0 and remainder is [EDX,EAX]
cmp ECX,EDX ;
ja quo0 ;
test ECX,ECX ;
js Lleft ;
/* We have n>d, and know that n/d will fit in 32 bits.
* d will be left justified if we shift it left s bits.
* [d1,d0] <<= s
* [n2,n1,n0] = [n1,n0] << s
*
* Use one divide, by this reasoning:
* ([n2,n1]<<32 + n0)/(d1<<32 + d0)
* becomes:
* ([n2,n1]<<32)/(d1<<32 + d0) + n0/(d1<<32 + d0)
* The second divide is always 0.
* Ignore the d0 in the first divide, which will yield a quotient
* that might be too high by 1 (because d1 is left justified).
* We can tell if it's too big if:
* q*[d1,d0] > [n2,n1,n0]
* which is:
* q*[d1,d0] > [[q*[d1,0]+q%[d1,0],n1,n0]
* If we subtract q*[d1,0] from both sides, we get:
* q*d0 > [[n2,n1]%d1,n0]
* So if it is too big by one, reduce q by one to q'=q-one.
* Compute remainder as:
* r = ([n1,n0] - q'*[d1,d0]) >> s
* Again, we can subtract q*[d1,0]:
* r = ([n1,n0] - q*[d1,0] - (q'*[d1,d0] - q*[d1,0])) >> s
* r = ([[n2,n1]%d1,n0] + (q*[d1,0] - (q - one)*[d1,d0])) >> s
* r = ([[n2,n1]%d1,n0] + (q*[d1,0] - [d1 *(q-one),d0*(1-q)])) >> s
* r = ([[n2,n1]%d1,n0] + [d1 *one,d0*(one-q)])) >> s
*/
push EBP ;
push ESI ;
push EDI ;
mov ESI,EDX ;
mov EDI,EAX ;
mov EBP,ECX ;
bsr EAX,ECX ; // EAX is now 30..0
xor EAX,0x1F ; // EAX is now 1..31
mov CH,AL ;
neg EAX ;
add EAX,32 ;
mov CL,AL ;
mov EAX,EBX ;
shr EAX,CL ;
xchg CH,CL ;
shl EBP,CL ;
or EBP,EAX ;
shl EBX,CL ;
mov EDX,ESI ;
xchg CH,CL ;
shr EDX,CL ;
mov EAX,EDI ;
shr EAX,CL ;
xchg CH,CL ;
shl EDI,CL ;
shl ESI,CL ;
or EAX,ESI ;
div EBP ;
push EBP ;
mov EBP,EAX ;
mov ESI,EDX ;
mul EBX ;
cmp EDX,ESI ;
ja L1 ;
jb L2 ;
cmp EAX,EDI ;
jbe L2 ;
L1: dec EBP ;
sub EAX,EBX ;
sbb EDX,0[ESP] ;
L2:
add ESP,4 ;
sub EDI,EAX ;
sbb ESI,EDX ;
mov EAX,ESI ;
xchg CH,CL ;
shl EAX,CL ;
xchg CH,CL ;
shr EDI,CL ;
or EDI,EAX ;
shr ESI,CL ;
mov EBX,EDI ;
mov ECX,ESI ;
mov EAX,EBP ;
xor EDX,EDX ;
pop EDI ;
pop ESI ;
pop EBP ;
ret ;
uldiv: test EDX,EDX ;
jnz D3 ;
// Both high words are 0, we can use the DIV instruction
div EBX ;
mov EBX,EDX ;
mov EDX,ECX ; // EDX = ECX = 0
ret ;
even ;
D3: // Divide [EDX,EAX] by EBX
mov ECX,EAX ;
mov EAX,EDX ;
xor EDX,EDX ;
div EBX ;
xchg ECX,EAX ;
div EBX ;
// ECX,EAX = результат
// EDX = remainder
mov EBX,EDX ;
mov EDX,ECX ;
xor ECX,ECX ;
ret ;
quo0: // Quotient is 0
// Remainder is [EDX,EAX]
mov EBX,EAX ;
mov ECX,EDX ;
xor EAX,EAX ;
xor EDX,EDX ;
ret ;
Lleft: // The quotient is 0 or 1 and EDX >= ECX
cmp EDX,ECX ;
ja quo1 ; // [EDX,EAX] > [ECX,EBX]
// EDX == ECX
cmp EAX,EBX ;
jb quo0 ;
quo1: // Quotient is 1
// Remainder is [EDX,EAX] - [ECX,EBX]
sub EAX,EBX ;
sbb EDX,ECX ;
mov EBX,EAX ;
mov ECX,EDX ;
mov EAX,1 ;
xor EDX,EDX ;
ret ;
}
}
/***************************************
* Signed long divide.
* Input:
* [EDX,EAX],[ECX,EBX]
* Output:
* [EDX,EAX] = [EDX,EAX] / [ECX,EBX]
* [ECX,EBX] = [EDX,EAX] % [ECX,EBX]
* ESI,EDI destroyed
*/
void __LDIV__()
{
asm
{
naked ;
test EDX,EDX ; // [EDX,EAX] negative?
jns L10 ; // no
//neg64 EDX,EAX ; // [EDX,EAX] = -[EDX,EAX]
neg EDX ;
neg EAX ;
sbb EDX,0 ;
test ECX,ECX ; // [ECX,EBX] negative?
jns L11 ; // no
//neg64 ECX,EBX ;
neg ECX ;
neg EBX ;
sbb ECX,0 ;
call __ULDIV__ ;
//neg64 ECX,EBX ; // remainder same sign as dividend
neg ECX ;
neg EBX ;
sbb ECX,0 ;
ret ;
L11: call __ULDIV__ ;
//neg64 ECX,EBX ; // remainder same sign as dividend
neg ECX ;
neg EBX ;
sbb ECX,0 ;
//neg64 EDX,EAX ; // quotient is negative
neg EDX ;
neg EAX ;
sbb EDX,0 ;
ret ;
L10: test ECX,ECX ; // [ECX,EBX] negative?
jns L12 ; // no (all is positive)
//neg64 ECX,EBX ;
neg ECX ;
neg EBX ;
sbb ECX,0 ;
call __ULDIV__ ;
//neg64 EDX,EAX ; // quotient is negative
neg EDX ;
neg EAX ;
sbb EDX,0 ;
ret ;
L12: jmp __ULDIV__ ;
}
}
/***************************************
* Compare [EDX,EAX] with [ECX,EBX]
* Signed
* Returns результат in flags
*/
void __LCMP__()
{
asm
{
naked ;
cmp EDX,ECX ;
jne C1 ;
push EDX ;
xor EDX,EDX ;
cmp EAX,EBX ;
jz C2 ;
ja C3 ;
dec EDX ;
pop EDX ;
ret ;
C3: inc EDX ;
C2: pop EDX ;
C1: ret ;
}
}
// Convert ulong to real
private real adjust = cast(real)0x800_0000_0000_0000 * 0x10;
real __U64_LDBL()
{
version (OSX)
{
asm
{ naked ;
push EDX ;
push EAX ;
and dword ptr 4[ESP], 0x7FFFFFFF ;
fild qword ptr [ESP] ;
test EDX,EDX ;
jns L1 ;
push 0x0000403e ;
push 0x80000000 ;
push 0 ;
fld real ptr [ESP] ; // adjust
add ESP,12 ;
faddp ST(1), ST ;
L1: ;
add ESP, 8 ;
ret ;
}
}
else
{
asm
{ naked ;
push EDX ;
push EAX ;
and dword ptr 4[ESP], 0x7FFFFFFF ;
fild qword ptr [ESP] ;
test EDX,EDX ;
jns L1 ;
fld real ptr adjust ;
faddp ST(1), ST ;
L1: ;
add ESP, 8 ;
ret ;
}
}
}
// Same as __U64_LDBL, but return результат as double in [EDX,EAX]
ulong __ULLNGDBL()
{
asm
{ naked ;
call __U64_LDBL ;
sub ESP,8 ;
fstp double ptr [ESP] ;
pop EAX ;
pop EDX ;
ret ;
}
}
// Convert double to ulong
private short roundTo0 = 0xFBF;
ulong __DBLULLNG()
{
// BUG: should хэндл NAN's and overflows
version (OSX)
{
asm
{ naked ;
push 0xFBF ; // roundTo0
push 0x0000403e ;
push 0x80000000 ;
push 0 ; // adjust
push EDX ;
push EAX ;
fld double ptr [ESP] ;
sub ESP,8 ;
fld real ptr 16[ESP] ; // adjust
fcomp ;
fstsw AX ;
fstcw 8[ESP] ;
fldcw 28[ESP] ; // roundTo0
sahf ;
jae L1 ;
fld real ptr 16[ESP] ; // adjust
fsubp ST(1), ST ;
fistp qword ptr [ESP] ;
pop EAX ;
pop EDX ;
fldcw [ESP] ;
add ESP,24 ;
add EDX,0x8000_0000 ;
ret ;
L1: ;
fistp qword ptr [ESP] ;
pop EAX ;
pop EDX ;
fldcw [ESP] ;
add ESP,24 ;
ret ;
}
}
else
{
asm
{ naked ;
push EDX ;
push EAX ;
fld double ptr [ESP] ;
sub ESP,8 ;
fld real ptr adjust ;
fcomp ;
fstsw AX ;
fstcw 8[ESP] ;
fldcw roundTo0 ;
sahf ;
jae L1 ;
fld real ptr adjust ;
fsubp ST(1), ST ;
fistp qword ptr [ESP] ;
pop EAX ;
pop EDX ;
fldcw [ESP] ;
add ESP,8 ;
add EDX,0x8000_0000 ;
ret ;
L1: ;
fistp qword ptr [ESP] ;
pop EAX ;
pop EDX ;
fldcw [ESP] ;
add ESP,8 ;
ret ;
}
}
}
// Convert double in ST0 to uint
uint __DBLULNG()
{
// BUG: should хэндл NAN's and overflows
version (OSX)
{
asm
{ naked ;
push 0xFBF ; // roundTo0
sub ESP,12 ;
fstcw 8[ESP] ;
fldcw 12[ESP] ; // roundTo0
fistp qword ptr [ESP] ;
fldcw 8[ESP] ;
pop EAX ;
add ESP,12 ;
ret ;
}
}
else
{
asm
{ naked ;
sub ESP,16 ;
fstcw 8[ESP] ;
fldcw roundTo0 ;
fistp qword ptr [ESP] ;
fldcw 8[ESP] ;
pop EAX ;
add ESP,12 ;
ret ;
}
}
}
// Convert real in ST0 to ulong
ulong __LDBLULLNG();/*
{
version (OSX)
{
asm
{ naked ;
push 0xFBF ; // roundTo0
push 0x0000403e ;
push 0x80000000 ;
push 0 ; // adjust
sub ESP,16 ;
fld real ptr 16[ESP] ; // adjust
fcomp ;
fstsw AX ;
fstcw 8[ESP] ;
fldcw 28[ESP] ; // roundTo0
sahf ;
jae L1 ;
fld real ptr 16[ESP] ; // adjust
fsubp ST(1), ST ;
fistp qword ptr [ESP] ;
pop EAX ;
pop EDX ;
fldcw [ESP] ;
add ESP,24 ;
add EDX,0x8000_0000 ;
ret ;
L1: ;
fistp qword ptr [ESP] ;
pop EAX ;
pop EDX ;
fldcw [ESP] ;
add ESP,24 ;
ret ;
}
}
else
{
asm
{ naked ;
sub ESP,16 ;
fld real ptr adjust ;
fcomp ;
fstsw AX ;
fstcw 8[ESP] ;
fldcw roundTo0 ;
sahf ;
jae L1 ;
fld real ptr adjust ;
fsubp ST(1), ST ;
fistp qword ptr [ESP] ;
pop EAX ;
pop EDX ;
fldcw [ESP] ;
add ESP,8 ;
add EDX,0x8000_0000 ;
ret ;
L1: ;
fistp qword ptr [ESP] ;
pop EAX ;
pop EDX ;
fldcw [ESP] ;
add ESP,8 ;
ret ;
}
}
}
*/
|
D
|
module mach.sdl.haptic.mixins;
private:
import derelict.sdl2.sdl;
public:
template HapticEffectMixinAttribute(T){
import derelict.sdl2.sdl;
static if(is(T == SDL_HapticConstant)) enum HapticEffectMixinAttribute = `constant`;
else static if(is(T == SDL_HapticPeriodic)) enum HapticEffectMixinAttribute = `periodic`;
else static if(is(T == SDL_HapticCondition)) enum HapticEffectMixinAttribute = `condition`;
else static if(is(T == SDL_HapticRamp)) enum HapticEffectMixinAttribute = `ramp`;
else static if(is(T == SDL_HapticLeftRight)) enum HapticEffectMixinAttribute = `leftright`;
else static if(is(T == SDL_HapticCustom)) enum HapticEffectMixinAttribute = `custom`;
else static assert(false, "Unrecognized SDL_HapticEffect type.");
}
template HapticEffectMixin(T){
mixin HapticEffectMixin!(T, HapticEffectMixinAttribute!T);
}
template HapticEffectMixin(T, string attribute){
import derelict.sdl2.sdl;
import mach.sdl.haptic.effecttype : HapticEffectType;
alias Button = ushort;
alias Interval = ushort;
alias Length = uint;
static enum Length Infinite = SDL_HAPTIC_INFINITY;
static enum Length MaxLength = 32767;
SDL_HapticEffect effect;
@property auto effectdata() const{
mixin(`return cast(T) this.effect.` ~ attribute ~ `;`);
}
/// Get the duration of the effect in milliseconds.
@property Length length() const{
return this.effectdata.length;
}
/// Set the duration of the effect in milliseconds.
@property void length(Length length) in{
// https://wiki.libsdl.org/SDL_HapticEffect#Remarks
assert(
(
// Must either be infinite, or less than or equal to 32767
(length >= 0 && length <= MaxLength) ||
// Ramp effects don't support infinite duration
(length == Infinite && this.effectdata.type !is HapticEffectType.Ramp)
),
"Invalid length for this effect type."
);
}body{
this.effectdata.length = length;
}
}
/// For every effect but SDL_HapticLeftRight, inexplicably.
template CommonHapticEffectMixin(){
alias Delay = typeof(this.effectdata.delay);
/// Get the delay before starting the effect in milliseconds.
@property auto delay() const{
return this.effectdata.delay;
}
/// Set the delay before starting the effect in milliseconds.
@property void delay(in Delay delay){
this.effectdata.delay = delay;
}
/// Get the button which triggers the effect.
/// Button triggers may not be supported on all devices.
/// It is advised not to use them if possible.
/// Buttons start at index 1 instead of index 0 like the joystick.
/// https://wiki.libsdl.org/SDL_HapticEffect#Remarks
@property Button button() const{
return this.effectdata.button;
}
/// Set the button which triggers the effect.
@property void button(Button button){
this.effectdata.button = button;
}
/// Get the minimum number of milliseconds between consecutive triggerings
/// of this effect.
@property Interval interval() const{
return this.effectdata.interval;
}
/// Set the minimum number of milliseconds between consecutive triggerings
/// of this effect.
@property void interval(Interval interval){
this.effectdata.interval = interval;
}
}
/// For effects with envelope information.
template EnvelopeHapticEffectMixin(){
alias AttackLength = ushort;
alias AttackLevel = ushort;
alias FadeLength = ushort;
alias FadeLevel = ushort;
/// Get duration of the fade in, in milliseconds.
@property AttackLength attacklength() const{
return this.effectdata.attack_length;
}
/// Set duration of the fade in, in milliseconds.
@property void attacklength(AttackLength attacklength){
this.effectdata.attack_length = attacklength;
}
/// Get the level at the start of the fade-in.
@property AttackLevel attacklevel() const{
return this.effectdata.attack_level;
}
/// Set the level at the start of the fade-in.
@property void attacklevel(AttackLevel attacklevel){
this.effectdata.attack_level = attacklevel;
}
/// Get the duration of the fade out, in milliseconds.
@property FadeLength fadelength() const{
return this.effectdata.fade_length;
}
/// Set the duration of the fade out, in milliseconds.
@property void fadelength(FadeLength fadelength){
this.effectdata.fade_length = fadelength;
}
/// Get the level at the end of the fade-out.
@property FadeLevel fadelevel() const{
return this.effectdata.fade_level;
}
/// Set the level at the end of the fade-out.
@property void fadelevel(FadeLevel fadelevel){
this.effectdata.fade_level = fadelevel;
}
}
/// For effects with direction information.
template DirectionHapticEffectMixin(){
import mach.sdl.haptic.direction : HapticDirection;
@property HapticDirection direction() const{
return HapticDirection(this.effectdata.direction);
}
@property void direction(HapticDirection direction){
this.direction(direction.dir);
}
@property void direction(SDL_HapticDirection direction){
this.effectdata.direction = direction;
}
}
string NormalizedHapticPropertyMixin(string property)(){
return NormalizedHapticPropertyMixin!(property, property)();
}
string NormalizedHapticPropertyMixin(string property, string attribute)(){
const type = "T" ~ property;
return `
alias ` ~ type ~ ` = typeof(this.effectdata.` ~ attribute ~ `);
@property auto ` ~ property ~ `raw() const{
return this.effectdata.` ~ attribute ~ `;
}
@property void ` ~ property ~ `raw(` ~ type ~ ` value){
this.effectdata.` ~ attribute ~ ` = value;
}
@property real ` ~ property ~ `() const{
return this.` ~ property ~ `raw.normalizescalar;
}
@property void ` ~ property ~ `(real value){
this.` ~ property ~ `raw = value.denormalizescalar!(` ~ type ~ `);
}
`;
}
string AngularHapticPropertyMixin(string property)(){
return AngularHapticPropertyMixin!(property, property)();
}
string AngularHapticPropertyMixin(string property, string attribute)(){
const type = "T" ~ property;
return `
import mach.sdl.haptic.hdegrees;
alias ` ~ type ~ ` = typeof(this.effectdata.` ~ attribute ~ `);
@property auto ` ~ property ~ `raw() const{
return this.effectdata.` ~ attribute ~ `;
}
@property void ` ~ property ~ `raw(` ~ type ~ ` value){
this.effectdata.` ~ attribute ~ ` = value;
}
@property real ` ~ property ~ `deg() const{
return this.` ~ property ~ `raw.hdegtodeg;
}
@property void ` ~ property ~ `deg(real degrees){
this.` ~ property ~ `raw = degrees.degtohdeg!(` ~ type ~ `);
}
@property real ` ~ property ~ `rad() const{
return this.` ~ property ~ `raw.hdegtorad;
}
@property void ` ~ property ~ `rad(real radians){
this.` ~ property ~ `raw = radians.radtohdeg!(` ~ type ~ `);
}
`;
}
|
D
|
/*******************************************************************************
Pop request protocol.
Copyright:
Copyright (c) 2016-2017 dunnhumby Germany GmbH. All rights reserved.
License:
Boost Software License Version 1.0. See LICENSE.txt for details.
*******************************************************************************/
module dmqproto.node.neo.request.Pop;
import dmqproto.node.neo.request.core.RequestHandler;
/*******************************************************************************
v0 Pop request protocol.
*******************************************************************************/
public abstract class PopProtocol_v1: RequestHandler
{
import dmqproto.common.Pop;
import dmqproto.common.RequestCodes;
import dmqproto.node.neo.request.core.IRequestResources;
import swarm.neo.node.RequestOnConn;
import swarm.neo.request.Command;
import ocean.meta.types.Qualifiers;
/// Request name for stats tracking. Required by ConnectionHandler.
static immutable string name = "pop";
/// Request code / version. Required by ConnectionHandler.
static immutable Command command = Command(RequestCode.Pop, 1);
/// Flag indicating whether timing stats should be gathered for requests of
/// this type.
static immutable bool timing = false;
/// Flag indicating whether this request type is scheduled for removal. (If
/// true, clients will be warned.)
static immutable bool scheduled_for_removal = false;
/***************************************************************************
Request handler.
Params:
connection = connection to client
resources = request resources acquirer
msg_payload = initial message read from client to begin the request
(the request code and version are assumed to be extracted)
***************************************************************************/
override protected void handle ( RequestOnConn connection,
IRequestResources resources, const(void)[] msg_payload )
{
cstring channel_name;
this.ed.message_parser.parseBody(msg_payload, channel_name);
bool subscribed;
if (this.prepareChannel(resources, channel_name, subscribed))
{
auto value = resources.getVoidBuffer();
if ( this.getNextValue(*value) )
{
this.ed.send(
( this.ed.Payload payload )
{
payload.addCopy(RequestStatusCode.Popped);
payload.addArray(*value);
}
);
}
else
{
this.ed.send(
( this.ed.Payload payload )
{
payload.addCopy(RequestStatusCode.Empty);
}
);
}
}
else
{
this.ed.send(
( this.ed.Payload payload )
{
payload.addCopy(
subscribed
? RequestStatusCode.Subscribed
:RequestStatusCode.Error
);
}
);
}
}
/***************************************************************************
Performs any logic needed to pop from the channel of the given name.
Params:
resources = request resources
channel_name = channel to pop from
subscribed = `true` if the return value is `false` because the
channel has subscribers so it is not possible to pop from it
Returns:
`true` if the channel may be used
***************************************************************************/
abstract protected bool prepareChannel ( IRequestResources resources,
cstring channel_name, out bool subscribed );
/***************************************************************************
Pop the next value from the channel, if available.
Params:
value = buffer to write the value into
Returns:
`true` if there was a value in the channel, false if the channel is
empty
***************************************************************************/
abstract protected bool getNextValue ( ref void[] value );
}
|
D
|
/**
WinRT driver implementation
Copyright: © 2012-2013 Sönke Ludwig
Authors: Sönke Ludwig
License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
*/
module vibe.core.drivers.winrt;
version(VibeWinrtDriver)
{
import vibe.core.driver;
import vibe.inet.url;
import deimos.winrt.windows.applicationmodel.core;
import deimos.winrt.windows.ui.core;
import deimos.winrt._;
import deimos.winrt.roapi;
import winrtd.comsupport;
import winrtd.roapi;
import core.atomic;
import core.time;
shared static this()
{
comCheck(RoInitialize(RO_INIT_TYPE.MULTITHREADED), "RoInitialize");
}
shared static ~this()
{
RoUninitialize();
}
class WinRTEventDriver : EventDriver {
private {
DriverCore m_core;
bool m_exit = false;
}
this(DriverCore core)
{
m_core = core;
}
version (HostWinRTDesktop) {
import vibe.internal.win32;
private DWORD m_tid;
int runEventLoop()
{
m_exit = false;
while( !m_exit && haveEvents() )
runEventLoopOnce();
return 0;
}
int runEventLoopOnce()
{
doProcessEvents(INFINITE);
m_core.notifyIdle();
return 0;
}
bool processEvents()
{
return doProcessEvents(0);
}
bool doProcessEvents(uint timeout)
{
waitForEvents(timeout);
assert(m_tid == GetCurrentThreadId());
MSG msg;
while( PeekMessageW(&msg, null, 0, 0, PM_REMOVE) ){
if( msg.message == WM_QUIT ) return false;
TranslateMessage(&msg);
DispatchMessageW(&msg);
}
return true;
}
private bool haveEvents()
{
version(VibePartialAutoExit)
return !m_fileWriters.byKey.empty || !m_socketHandlers.byKey.empty;
else return true;
}
private void waitForEvents(uint timeout)
{
auto ret = MsgWaitForMultipleObjectsEx(/*cast(DWORD)m_registeredEvents.length, m_registeredEvents.ptr*/0, null, timeout, QS_ALLEVENTS, MWMO_ALERTABLE|MWMO_INPUTAVAILABLE);
}
} else {
int runEventLoop()
{
processEventsInternal(CoreProcessEventsOption.ProcessUntilQuit);
return 0;
}
int runEventLoopOnce()
{
processEventsInternal(CoreProcessEventsOption.ProcessOneAndAllPending);
return 0;
}
bool processEvents()
{
return processEventsInternal(CoreProcessEventsOption.ProcessAllIfPresent);
}
bool processEventsInternal(CoreProcessEventsOption mode)
{
ComPtr!ICoreWindowStatic windowStatic;
auto windowClassName= HStringReference("Windows.UI.Core.CoreWindow");
comCheck(GetActivationFactory(windowClassName, windowStatic._target), "ICoreWindowStatic");
ComPtr!ICoreWindow window;
comCheck(windowStatic.GetForCurrentThread(window._target), "GetWindowForCurrentThread");
ComPtr!ICoreDispatcher dispatcher;
comCheck(window.Dispatcher(dispatcher._target), "Dispatcher");
comCheck(dispatcher.ProcessEvents(mode), "ProcessEvents");
bool vis;
comCheck(window.Visible(&vis));
return vis;
}
}
void exitEventLoop()
{
ComPtr!ICoreWindowStatic windowStatic;
auto windowClassName = HStringReference("Windows.UI.Core.CoreWindow");
comCheck(GetActivationFactory(windowClassName, windowStatic._target), "ICoreWindowStatic");
ComPtr!ICoreWindow window;
comCheck(windowStatic.GetForCurrentThread(window._target), "GetWindowForCurrentThread");
comCheck(window.Close(), "window.Close");
}
FileStream openFile(Path path, FileMode mode)
{
//return new WinRTFileStream(path, mode);
import vibe.core.drivers.threadedfile;
return new ThreadedFileStream(path, mode);
}
DirectoryWatcher watchDirectory(Path path, bool recursive)
{
assert(false);
}
NetworkAddress resolveHost(string host, ushort family, bool no_dns)
{
assert(false);
}
WinRTTCPConnection connectTCP(string host, ushort port)
{
assert(false);
}
TCPListener listenTCP(ushort port, void delegate(TCPConnection conn) conn_callback, string bind_address, TCPListenOptions options)
{
assert(false);
}
UDPConnection listenUDP(ushort port, string bind_address = "0.0.0.0")
{
assert(false);
}
WinRTManualEvent createManualEvent()
{
return new WinRTManualEvent(this);
}
WinRTTimer createTimer(void delegate() callback)
{
return new WinRTTimer(this, callback);
}
}
class WinRTManualEvent : ManualEvent {
private {
WinRTEventDriver m_driver;
shared(int) m_emitCount;
Task[] m_waiters;
}
this(WinRTEventDriver driver)
{
m_driver = driver;
}
@property int emitCount() const { return m_emitCount; }
void emit()
{
atomicOp!"+="(m_emitCount, 1);
auto wtrs = m_waiters;
m_waiters = null;
foreach (t; wtrs)
m_driver.m_core.resumeTask(t);
}
void wait()
{
wait(this.emitCount);
}
int wait(int reference_emit_count)
{
m_waiters ~= Task.getThis();
int rc;
while ((rc = this.emitCount) == reference_emit_count) m_driver.m_core.yieldForEvent();
return rc;
}
int wait(Duration timeout, int reference_emit_count)
{
assert(false);
}
}
class WinRTTimer : Timer {
private {
WinRTEventDriver m_driver;
void delegate() m_callback;
bool m_pending;
bool m_periodic;
}
this(WinRTEventDriver driver, void delegate() callback)
{
m_driver = driver;
m_callback = callback;
}
@property bool pending() { return m_pending; }
void rearm(Duration dur, bool periodic = false)
{
if( m_pending ) stop();
m_periodic = periodic;
//SetTimer(m_hwnd, id, seconds.total!"msecs"(), &timerProc);
}
void stop()
{
assert(m_pending);
//KillTimer(m_driver.m_hwnd, cast(size_t)cast(void*)this);
}
void wait()
{
while( m_pending )
m_driver.m_core.yieldForEvent();
}
}
class WinRTFileStream : FileStream {
this(Path path, FileMode mode)
{
assert(false);
}
void close()
{
}
@property Path path() const { assert(false); }
@property ulong size()
const {
assert(false);
}
@property bool readable()
const {
assert(false);
}
@property bool writable()
const {
assert(false);
}
void seek(ulong offset)
{
}
ulong tell()
{
assert(false);
}
@property bool empty() { assert(false); }
@property ulong leastSize() { assert(false); }
@property bool dataAvailableForRead() { assert(false); }
const(ubyte)[] peek() { assert(false); }
void read(ubyte[] dst)
{
}
void write(in ubyte[] bytes, bool do_flush = true)
{
}
void flush()
{
}
void finalize()
{
}
void write(InputStream stream, ulong nbytes = 0, bool do_flush = true)
{
writeDefault(stream, nbytes, do_flush);
}
}
class WinRTTCPConnection : TCPConnection {
private {
bool m_tcpNoDelay;
Duration m_readTimeout;
}
@property void tcpNoDelay(bool enabled)
{
m_tcpNoDelay = enabled;
assert(false);
}
@property bool tcpNoDelay() const { return m_tcpNoDelay; }
@property void readTimeout(Duration v){
m_readTimeout = v;
assert(false);
}
@property Duration readTimeout() const { return m_readTimeout; }
void close()
{
}
@property bool connected()
const {
assert(false);
}
@property string peerAddress()
const {
assert(false);
}
bool waitForData(Duration timeout)
{
assert(false);
}
@property bool empty() { assert(false); }
@property ulong leastSize() { assert(false); }
@property bool dataAvailableForRead() { assert(false); }
const(ubyte)[] peek() { assert(false); }
void read(ubyte[] dst)
{
}
void write(in ubyte[] bytes, bool do_flush = true)
{
}
void flush()
{
}
void finalize()
{
}
void write(InputStream stream, ulong nbytes = 0, bool do_flush = true)
{
writeDefault(stream, nbytes, do_flush);
}
}
} // version(VibeWinrtDriver)
|
D
|
/*************************************************************************\
|* *|
|* $$\ $$$$$$\ $$$$$$\ *|
|* $$ | $$ __$$\ $$ __$$\ *|
|* $$ | $$$$$$\ $$ / \__| $$$$$$\ \__/ $$ | *|
|* $$ | $$ __$$\ $$ |$$$$\ $$ __$$\ $$$$$$ | *|
|* $$ | $$$$$$$$ |$$ |\_$$ |$$ / $$ | $$ ____/ *|
|* $$ | $$ ____|$$ | $$ |$$ | $$ | $$ | *|
|* $$$$$$$$\\$$$$$$$\ \$$$$$$ |\$$$$$$ | $$$$$$$$\ *|
|* \________|\_______| \______/ \______/ \________| *|
|* *|
|* Erweitertes Scriptpaket, aufbauend *|
|* auf Ikarus *|
|* *|
\*************************************************************************/
const string LeGo_Version = "LeGo 2.7.1";
const int LeGo_PrintS = 1<<0; // Interface.d
const int LeGo_HookEngine = 1<<1; // HookEngine.d
const int LeGo_AI_Function = 1<<2; // AI_Function.d
const int LeGo_Trialoge = 1<<3; // Trialoge.d
const int LeGo_Dialoggestures = 1<<4; // Dialoggestures.d
const int LeGo_FrameFunctions = 1<<5; // FrameFunctions.d
const int LeGo_Cursor = 1<<6; // Cursor.d
const int LeGo_Focusnames = 1<<7; // Focusnames.d
const int LeGo_Random = 1<<8; // Random.d
const int LeGo_Bloodsplats = 1<<9; // Bloodsplats.d
const int LeGo_Saves = 1<<10; // Saves.d
const int LeGo_PermMem = 1<<11; // PermMemory.d
const int LeGo_Anim8 = 1<<12; // Anim8.d
const int LeGo_View = 1<<13; // View.d
const int LeGo_Interface = 1<<14; // Interface.d
const int LeGo_Bars = 1<<15; // Bars.d
const int LeGo_Buttons = 1<<16; // Buttons.d
const int LeGo_Timer = 1<<17; // Timer.d
const int LeGo_EventHandler = 1<<18; // EventHandler.d
const int LeGo_Gamestate = 1<<19; // Gamestate.d
const int LeGo_Sprite = 1<<20; // Sprite.d
const int LeGo_Names = 1<<21; // Names.d
const int LeGo_ConsoleCommands = 1<<22; // ConsoleCommands.d
const int LeGo_Buffs = 1<<23; // Buffs.d
const int LeGo_Render = 1<<24; // Render.d
const int LeGo_Draw3D = 1<<25; // Draw3D.d
const int LeGo_All = (1<<23)-1; // Sämtliche Bibliotheken // No Experimental
//========================================
// [intern] Variablen
//========================================
const int _LeGo_Init = 0;
var int _LeGo_Loaded;
//========================================
// [intern] Abhängigkeiten bestimmen
//========================================
func void LeGo_InitFlags(var int f) {
if(f & LeGo_Bloodsplats) { f = f | LeGo_FrameFunctions | LeGo_HookEngine | LeGo_Random | LeGo_Anim8; };
if(f & LeGo_Buffs) { f = f | LeGo_FrameFunctions | LeGo_PermMem | LeGo_View; };
if(f & LeGo_Gamestate) { f = f | LeGo_EventHandler | LeGo_Saves; };
if(f & LeGo_Cursor) { f = f | LeGo_Interface | LeGo_View; };
if(f & LeGo_PrintS) { f = f | LeGo_AI_Function | LeGo_Anim8 | LeGo_Interface; };
if(f & LeGo_Anim8) { f = f | LeGo_PermMem | LeGo_FrameFunctions | LeGo_Timer; };
if(f & LeGo_Buttons) { f = f | LeGo_PermMem | LeGo_View | LeGo_FrameFunctions; };
if(f & LeGo_ConsoleCommands){ f = f | LeGo_HookEngine; };
if(f & LeGo_FrameFunctions) { f = f | LeGo_PermMem | LeGo_HookEngine | LeGo_Timer; };
if(f & LeGo_Draw3D) { f = f | LeGo_PermMem | LeGo_HookEngine; };
if(f & LeGo_Bars) { f = f | LeGo_PermMem | LeGo_View; };
if(f & LeGo_EventHandler) { f = f | LeGo_PermMem; };
if(f & LeGo_View) { f = f | LeGo_PermMem; };
if(f & LeGo_Interface) { f = f | LeGo_PermMem | LeGo_AI_Function; };
if(f & LeGo_Trialoge) { f = f | LeGo_AI_Function; };
if(f & LeGo_AI_Function) { f = f | LeGo_HookEngine; };
if(f & LeGo_Sprite) { f = f | LeGo_PermMem; };
if(f & LeGo_Names) { f = f | LeGo_PermMem; };
if(f & LeGo_PermMem) { f = f | LeGo_Saves; };
if(f & LeGo_Saves) { f = f | LeGo_HookEngine; };
_LeGo_Flags = f;
};
//========================================
// LeGo flags in human-readable format
//========================================
func string LeGo_FlagsHR(var int flags) {
var int symbOnset; symbOnset = MEM_GetSymbolIndex("LEGO_VERSION") + 1;
if ((!symbOnset) || (!(flags & (LeGo_Draw3D * 2 - 1)))) {
return "";
};
var string ret; ret = "";
repeat(i, 32); var int i;
if (flags & (1 << i)) {
var string name; name = MEM_ReadString(MEM_GetSymbolByIndex(symbOnset + i));
name = STR_SubStr(name, 5, STR_Len(name)-5); // Cut off 'LEGO_'
ret = ConcatStrings(ConcatStrings(ret, name), " ");
};
end;
return STR_Prefix(ret, STR_Len(ret)-1);
};
//========================================
// [intern] Immer
//========================================
func void LeGo_InitAlways(var int f) {
if (!_LeGo_Loaded) {
// Nur beim ersten Spielstart, sonst wird es sowieso aus dem Savegame geladen
if (f & LeGo_PermMem) {
_PM_Reset();
HandlesPointer = _HT_Create();
HandlesInstance = _HT_Create();
_PM_CreateForeachTable();
};
};
if (f & LeGo_Saves) {
if(_LeGo_IsLevelChange()) {
// During level change, LeGo_InitAlways is called twice on very first transistion!
_LeGo_LevelChangeCounter += 1;
// update gamestate status at the first call of _LeGo_IsLevelChange
// because it is only called once for consecutive level changes
if((f & LeGo_Gamestate) && (_LeGo_LevelChangeCounter == 1)) {
_Gamestate_Init(Gamestate_WorldChange);
};
};
};
if(f & LeGo_Timer) {
_Timer_Init();
_TimerGT_Init();
};
if(_LeGo_Loaded && !_LeGo_IsLevelChange()) {
// Wenn ein Spielstand geladen wird
if(f & LeGo_Saves) {
_BR_LoadGame();
};
};
if(f & LeGo_Gamestate) {
if(!_LeGo_Loaded) {
_Gamestate_Init(Gamestate_NewGame);
};
};
if(f & LeGo_Buttons) {
FF_ApplyOnce(Buttons_Do);
};
if(f & LeGo_Bloodsplats) {
FF_ApplyOnce(_Bloodsplats_Loop);
};
if(f & LeGo_Anim8) {
FF_ApplyOnceGT(_Anim8_FFLoop);
};
if(f & LeGo_Cursor) {
if (!Hlp_IsValidHandle(Cursor_Event)) {
Cursor_Event = Event_Create();
};
};
if (f & LeGo_Buffs) {
if (!Hlp_IsValidHandle(bufflist_hero)) {
Bufflist_Init();
};
};
if (f & LeGo_Names) {
if (!_LeGo_Loaded) || (!_nrTalents) {
Talent_Names = TAL_CreateTalent();
};
};
if (f & LeGo_Render) {
if (!Hlp_IsValidHandle(_render_list)) {
_render_list = new(zCList@);
};
_Render_RestorePointer();
GameState_AddListener(_Render_RestorePointer_Listener);
};
};
//========================================
// [intern] Nur bei Spielstart
//========================================
func void LeGo_InitGamestart(var int f) {
/* ACHTUNG: Es steht kein new() zur Verfügung (aber create()) */
// Fix bug in Ikarus for displaying error boxes (Ikarus 1.2 line 4660 is missing writing permission)
if(GOTHIC_BASE_VERSION == 1) {
MemoryProtectionOverride(/*0x4F55C2*/ 5199298, 1);
};
if(f & LeGo_Cursor) {
HookEngineF(sub_4D3D90_X, 5, _CURSOR_GETVAL);
};
if(f & LeGo_Random) {
r_DefaultInit();
};
if(f & LeGo_Focusnames) {
HookEngineF(oCGame__UpdateStatus, 8, _Focusnames);
};
if(f & LeGo_AI_Function) {
HookEngineF(oCNPC__EV_PlayAni, 5, _AI_FUNCTION_EVENT);
};
if(f & LeGo_FrameFunctions) {
HookEngineF(oCGame__Render, 7, _FF_HOOK);
};
if(f & LeGo_ConsoleCommands) {
HookEngineF(zCConsoleOutputOverwriteAddr, 9, _CC_HOOK);
CC_Register(CC_LeGo, "LeGo", "Show information about LeGo");
};
if(f & LeGo_Saves) {
HookEngineF(oCGame__changeLevel, 7, _LeGo_ChangeLevelHookBegin);
HookEngineF(oCGame__changeLevelEnd, 7, _LeGo_ChangeLevelHookEnd);
HookEngineF(oCSavegameManager__SetAndWriteSavegame, 5, _BW_SAVEGAME);
HookEngineF(CGameManager__Read_Savegame, 7, _BR_SetSelectedSlot);
};
if(f & LeGo_Draw3D) {
HookEngineF(zCWorld__AdvanceClock, 10, _DrawHook);
};
if(f & LeGo_Sprite) {
HookEngineF(zRND_D3D__EndFrame, 6, _Sprite_DoRender);
};
if (f & LeGo_Render) {
_Render_Init();
};
if(f & LeGo_Interface) {
Print_fixPS();
};
if(f & LeGo_Bars) {
HookEngineF(oCGame__UpdateScreenResolution, 5, _Bar_UpdateResolution);
HookEngineF(oCGame__UpdateStatus_start, 6, _Bar_Update);
};
};
//========================================
// LeGo initialisieren
//========================================
func void LeGo_Init(var int flags) {
if(!MEM_CheckVersion(1,2,0)) {
MEM_Error("LeGo benötigt mindestens Ikarus 1.2!");
return;
};
MEM_InitAll();
// In Gothic 1 LeGo_Init is called twice on new game: prevent calling LeGo_InitAlways a second time
if (_LeGo_Loaded == -1) {
_LeGo_Loaded = 1;
return;
};
MEM_Info(ConcatStrings(LeGo_Version, " wird initialisiert."));
LeGo_InitFlags(flags);
MEM_Info(ConcatStrings("Flags: ", LeGo_FlagsHR(_LeGo_Flags)));
if(!_LeGo_Init) {
LeGo_InitGamestart(_LeGo_Flags);
};
LeGo_InitAlways(_LeGo_Flags);
_LeGo_Init = 1;
// For Gothic 1 mark _LeGo_Loaded with -1 to prevent second call during new game
if (GOTHIC_BASE_VERSION == 1) && (!_LeGo_Loaded) && (!Hlp_IsValidNpc(hero)) {
_LeGo_Loaded = -1;
} else {
_LeGo_Loaded = 1;
};
MEM_Info(ConcatStrings(LeGo_Version, " wurde erfolgreich initialisiert."));
};
|
D
|
instance DIA_Nyras_Exit(C_Info)
{
npc = Nov_1303_Nyras;
nr = 999;
condition = DIA_Nyras_Exit_Condition;
information = DIA_Nyras_Exit_Info;
permanent = 1;
description = DIALOG_ENDE;
};
func int DIA_Nyras_Exit_Condition()
{
return 1;
};
func void DIA_Nyras_Exit_Info()
{
AI_StopProcessInfos(self);
};
instance DIA_Nyras_Hallo(C_Info)
{
npc = Nov_1303_Nyras;
nr = 1;
condition = DIA_Nyras_Hallo_Condition;
information = DIA_Nyras_Hallo_Info;
permanent = 0;
description = "Zdar! Jsem tady nový.";
};
func int DIA_Nyras_Hallo_Condition()
{
if(Kapitel <= 1)
{
return TRUE;
};
};
func void DIA_Nyras_Hallo_Info()
{
AI_Output(other,self,"DIA_Nyras_Hallo_15_00"); //Zdar! Jsem tady nový!
AI_Output(self,other,"DIA_Nyras_Hallo_03_01"); //Spáč s tebou, cizinče!
};
instance DIA_Nyras_Ort(C_Info)
{
npc = Nov_1303_Nyras;
nr = 1;
condition = DIA_Nyras_Ort_Condition;
information = DIA_Nyras_Ort_Info;
permanent = 0;
description = "Co mi můžeš říci o tomhle místě?";
};
func int DIA_Nyras_Ort_Condition()
{
if(Npc_KnowsInfo(hero,DIA_Nyras_Hallo) && (Kapitel <= 1))
{
return 1;
};
};
func void DIA_Nyras_Ort_Info()
{
AI_Output(other,self,"DIA_Nyras_Ort_15_00"); //Co mi můžeš říci o tomhle místě?
AI_Output(self,other,"DIA_Nyras_Ort_03_01"); //Dobrá - Guru jsou tady nejdůležitějšími lidmi. Šíří Spáčovo učení a předávají vize našich mistrů novicům.
AI_Output(self,other,"DIA_Nyras_Ort_03_02"); //On sám je pochopitelně příliš unavený, než aby to říkal každému sám.
AI_Output(self,other,"DIA_Nyras_Ort_03_03"); //Občas k nám ale promluví v chrámovém dvoře a předá nám svaté Spáčovo poslání.
Info_ClearChoices(DIA_Nyras_Ort);
Info_AddChoice(DIA_Nyras_Ort,"Povídej mi o svatém poslání velkého Spáče!",DIA_Nyras_Ort_Holy);
Info_AddChoice(DIA_Nyras_Ort,"A co říká potom?",DIA_Nyras_Ort_Casual);
};
func void DIA_Nyras_Ort_Casual()
{
AI_Output(other,self,"DIA_Nyras_Ort_Casual_15_00"); //A co říká potom?
AI_Output(self,other,"DIA_Nyras_Ort_Casual_03_01"); //Spáč určuje naší cestu. Tomu by ale nevěrci, jako jsi ty, nemohli rozumět!
Info_ClearChoices(DIA_Nyras_Ort);
};
func void DIA_Nyras_Ort_Holy()
{
AI_Output(other,self,"DIA_Nyras_Ort_Holy_15_00"); //Povídej mi o svatém poslání velkého Spáče!
AI_Output(self,other,"DIA_Nyras_Ort_Holy_03_01"); //ON nám říká, co musíme udělat, abysme opět získali svobodu.
AI_Output(self,other,"DIA_Nyras_Ort_Holy_03_02"); //Y´Berion říká, že Spáč nám ukáže cestu ihned, jakmile mu budeme schopni naslouchat.
AI_Output(self,other,"DIA_Nyras_Ort_Holy_03_03"); //Připravuje velké vzývání, ve kterém se spolu s nejlepšími novici spojí se Spáčem.
AI_Output(self,other,"DIA_Nyras_Ort_Holy_03_04"); //Cor Kalom mu pomáhá. Je to alchymista, který připravuje substance, které ho uvádějí do jakoby spánkového stavu.
AI_Output(self,other,"DIA_Nyras_Ort_Holy_03_05"); //Jedině v takovém stavu můžeš přijímat Spáčovy myšlenky - nebo ve spánku.
Info_ClearChoices(DIA_Nyras_Ort);
};
instance Nov_1303_Nyras_GREET(C_Info)
{
npc = Nov_1303_Nyras;
condition = Nov_1303_Nyras_GREET_Condition;
information = Nov_1303_Nyras_GREET_Info;
important = 1;
permanent = 0;
};
func int Nov_1303_Nyras_GREET_Condition()
{
if(YBerion_BringFocus == LOG_RUNNING)
{
return 1;
};
};
func void Nov_1303_Nyras_GREET_Info()
{
AI_Output(self,other,"Nov_1303_Nyras_GREET_Info_03_00"); //Zmiz! Tady nemáš co dělat!
};
instance Nov_1303_Nyras_LEAVE(C_Info)
{
npc = Nov_1303_Nyras;
condition = Nov_1303_Nyras_LEAVE_Condition;
information = Nov_1303_Nyras_LEAVE_Info;
important = 0;
permanent = 0;
description = "Hledám ohnisko.";
};
func int Nov_1303_Nyras_LEAVE_Condition()
{
if(Npc_KnowsInfo(hero,Nov_1303_Nyras_GREET))
{
return 1;
};
};
func void Nov_1303_Nyras_LEAVE_Info()
{
AI_Output(other,self,"Nov_1303_Nyras_LEAVE_Info_15_01"); //Hledám ohnisko.
AI_Output(self,other,"Nov_1303_Nyras_LEAVE_Info_03_02"); //Bohužel jdeš příliš pozdě. Už jsem ho našel!
AI_Output(self,other,"Nov_1303_Nyras_LEAVE_Info_03_03"); //A nechám si ho pro sebe!
AI_Output(self,other,"Nov_1303_Nyras_LEAVE_Info_03_04"); //Minulou noc ke mně mluvil Spáč a prohlásil mě svým jediným nástrojem!
AI_Output(self,other,"Nov_1303_Nyras_LEAVE_Info_03_05"); //Teď sloužím jen Spáčovi. Žádnému templáři ani Guru!
AI_Output(self,other,"Nov_1303_Nyras_LEAVE_Info_03_06"); //JEEENNN JÁÁÁÁ SÁÁÁÁÁMM!!!!!!
AI_Output(self,other,"Nov_1303_Nyras_LEAVE_Info_03_07"); //ZEEEMŘŘÍÍÍ!!!!!
B_LogEntry(CH2_Focus,"Nyras se pominul. Chce získat ohnisko pro sebe a proto mě v návalu vzteku napadl.");
Npc_SetPermAttitude(self,ATT_HOSTILE);
AI_StopProcessInfos(self);
};
|
D
|
module android.java.java.nio.channels.Pipe_SourceChannel_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import2 = android.java.java.nio.channels.Selector_d_interface;
import import3 = android.java.java.nio.channels.SelectableChannel_d_interface;
import import4 = android.java.java.lang.Class_d_interface;
import import5 = android.java.java.nio.ByteBuffer_d_interface;
import import0 = android.java.java.nio.channels.spi.SelectorProvider_d_interface;
import import1 = android.java.java.nio.channels.SelectionKey_d_interface;
@JavaName("Pipe$SourceChannel")
final class Pipe_SourceChannel : IJavaObject {
static immutable string[] _d_canCastTo = [
"java/nio/channels/ReadableByteChannel",
"java/nio/channels/ScatteringByteChannel",
];
@Import int validOps();
@Import import0.SelectorProvider provider();
@Import bool isRegistered();
@Import import1.SelectionKey keyFor(import2.Selector);
@Import import1.SelectionKey register(import2.Selector, int, IJavaObject);
@Import bool isBlocking();
@Import IJavaObject blockingLock();
@Import import3.SelectableChannel configureBlocking(bool);
@Import import1.SelectionKey register(import2.Selector, int);
@Import void close();
@Import bool isOpen();
@Import import4.Class getClass();
@Import int hashCode();
@Import bool equals(IJavaObject);
@Import @JavaName("toString") string toString_();
override string toString() { return arsd.jni.javaObjectToString(this); }
@Import void notify();
@Import void notifyAll();
@Import void wait(long);
@Import void wait(long, int);
@Import void wait();
@Import int read(import5.ByteBuffer);
@Import long read(import5.ByteBuffer, int, int[]);
@Import long read(import5.ByteBuffer[]);
mixin IJavaObjectImplementation!(false);
public static immutable string _javaParameterString = "Ljava/nio/channels/Pipe$SourceChannel;";
}
|
D
|
/home/bobby/Dev/projects/rust/rust-learning-path/enum_and_pattern_matching/target/debug/deps/enum_and_pattern_matching-c006b04e0a1aff0e.rmeta: src/main.rs
/home/bobby/Dev/projects/rust/rust-learning-path/enum_and_pattern_matching/target/debug/deps/enum_and_pattern_matching-c006b04e0a1aff0e.d: src/main.rs
src/main.rs:
|
D
|
module rocl.controls.storage.inventory;
import std.meta, std.conv, std.range, std.string, std.algorithm, perfontain, ro.db, ro.conv, ro.conv.gui, ro.conv.item,
rocl, rocl.gui.misc, rocl.game, rocl.paths, rocl.status, rocl.status.helpers, rocl.network, rocl.controls,
rocl.controls.storage, rocl.controls.storage;
final class WinInventory : ItemView
{
void draw()
{
if (auto win = Window(nk, MSG_INVENTORY, nk_rect(0, 0, 350, 150)))
{
drawImpl;
}
}
protected:
override string info()
{
auto zeny = RO.status.param(SP_ZENY).value;
auto weight = RO.status.param(SP_WEIGHT).value / 100;
auto maxWeight = RO.status.param(SP_MAXWEIGHT).value / 100;
return format(`%s Z, %s: %u / %u`, price(zeny), MSG_WEIGHT, weight, maxWeight); // TODO: Ƶ
}
override Item[] items()
{
return RO.status.items.arr[];
}
override void onIconDraw(in Widget w, Item m)
{
if (w.clicked(NK_BUTTON_LEFT))
{
if (RO.gui.kafra.isActive)
{
ROnet.storePut(m.idx, m.amount);
}
else
{
m.action;
}
}
}
}
|
D
|
void main() { runSolver(); }
void problem() {
auto N = scan!int;
auto solve() {
long dl(int a) { return divisors(a).length; }
return iota(1, N).map!(ab => memoize!dl(ab) * memoize!dl(N - ab)).sum;
}
outputForAtCoder(&solve);
}
// ----------------------------------------------
import std;
string scan(){ static string[] ss; while(!ss.length) ss = readln.chomp.split; string res = ss[0]; ss.popFront; return res; }
T scan(T)(){ return scan.to!T; }
T[] scan(T)(long n){ return n.iota.map!(i => scan!T()).array; }
void deb(T ...)(T t){ debug writeln(t); }
long[] divisors(long n) { long[] ret; for (long i = 1; i * i <= n; i++) { if (n % i == 0) { ret ~= i; if (i * i != n) ret ~= n / i; } } return ret.sort.array; }
bool chmin(T)(ref T a, T b) { if (b < a) { a = b; return true; } else return false; }
bool chmax(T)(ref T a, T b) { if (b > a) { a = b; return true; } else return false; }
string charSort(alias S = "a < b")(string s) { return (cast(char[])((cast(byte[])s).sort!S.array)).to!string; }
ulong comb(ulong a, ulong b) { if (b == 0) {return 1;}else{return comb(a - 1, b - 1) * a / b;}}
string toAnswerString(R)(R r) { return r.map!"a.to!string".joiner(" ").array.to!string; }
struct ModInt(uint MD) if (MD < int.max) {ulong v;this(string v) {this(v.to!long);}this(int v) {this(long(v));}this(long v) {this.v = (v%MD+MD)%MD;}void opAssign(long t) {v = (t%MD+MD)%MD;}static auto normS(ulong x) {return (x<MD)?x:x-MD;}static auto make(ulong x) {ModInt m; m.v = x; return m;}auto opBinary(string op:"+")(ModInt r) const {return make(normS(v+r.v));}auto opBinary(string op:"-")(ModInt r) const {return make(normS(v+MD-r.v));}auto opBinary(string op:"*")(ModInt r) const {return make((ulong(v)*r.v%MD).to!ulong);}auto opBinary(string op:"^^", T)(T r) const {long x=v;long y=1;while(r){if(r%2==1)y=(y*x)%MD;x=x^^2%MD;r/=2;} return make(y);}auto opBinary(string op:"/")(ModInt r) const {return this*memoize!inv(r);}static ModInt inv(ModInt x) {return x^^(MD-2);}string toString() const {return v.to!string;}auto opOpAssign(string op)(ModInt r) {return mixin ("this=this"~op~"r");}}
alias MInt1 = ModInt!(10^^9 + 7);
alias MInt9 = ModInt!(998_244_353);
void outputForAtCoder(T)(T delegate() fn) {
static if (is(T == float) || is(T == double) || is(T == real)) "%.16f".writefln(fn());
else static if (is(T == void)) fn();
else static if (is(T == string)) fn().writeln;
else static if (isInputRange!T) {
static if (!is(string == ElementType!T) && isInputRange!(ElementType!T)) foreach(r; fn()) r.toAnswerString.writeln;
else foreach(r; fn()) r.writeln;
}
else fn().writeln;
}
void runSolver() {
static import std.datetime.stopwatch;
enum BORDER = "==================================";
debug { BORDER.writeln; while(!stdin.eof) { "<<< Process time: %s >>>".writefln(std.datetime.stopwatch.benchmark!problem(1)); BORDER.writeln; } }
else problem();
}
enum YESNO = [true: "Yes", false: "No"];
// -----------------------------------------------
long[][] basePacks(long base, long size) {
auto ret = new long[][](base^^size, size);
foreach(i; 0..base^^size) {
long x = i;
foreach(b; 0..size) {
ret[i][b] = x % base;
x /= base;
}
}
return ret;
}
|
D
|
module std.serialization.json;
import std.range : isOutputRange;
import std.serialization : BinaryOutputRange, ignoreUndefined, SerializationFormat;
// TODO: Add support for unions.
// TODO: Add support for Tuple's.
// TODO: Add support for private members.
// TODO: Provide a nice error message when trying to deserialize a member marked as nonSerialized.
final class JSONSerializationFormat : SerializationFormat
{
import std.range : isInputRange;
import std.traits : ForeachType, isAssociativeArray, isArray, KeyType, ValueType;
import std.traitsExt : constructDefault, Dequal, isClass, isStruct, isOneOf;
// // TODO: Unittest these 2 methods.
// final override ubyte[] serialize(T)(T val)
// {
// return cast(ubyte[])toJSON(val);
// }
final override T deserialize(T)(ubyte[] data)
{
return fromJSON!T(cast(string)data);
}
template isNativeSerializationSupported(T)
{
static if (is(Dequal!T == T))
{
static if (isDynamicType!T)
enum isNativeSerializationSupported = true;
else static if (isAssociativeArray!T)
enum isNativeSerializationSupported = isNativeSerializationSupported!(Dequal!(KeyType!T)) && isNativeSerializationSupported!(ValueType!T);
else static if (isArray!T)
enum isNativeSerializationSupported = isNativeSerializationSupported!(ForeachType!T);
else static if (isSerializable!T)
{
enum isNativeSerializationSupported =
isClass!T
|| isStruct!T
|| isOneOf!(T, byte, ubyte, short, ushort, int, uint, long, ulong/*, cent, ucent*/)
|| isOneOf!(T, float, double, real)
|| is(T == bool)
|| isOneOf!(T, char, wchar, dchar)
;
}
else
enum isNativeSerializationSupported = false;
}
else
{
enum isNativeSerializationSupported = false;
}
}
static struct InnerFunStuff(OR)
if (isOutputRange!(OR, ubyte[]))
{
// TODO: Why must D be a pain at times....
mixin(BaseSerializationMembers!());
/// ditto
static void serialize(T)(ref BinaryOutputRange!OR output, T val) @safe
if (isNativeSerializationSupported!T && (isClass!T || isStruct!T) && !isDynamicType!T)
{
static if (isClass!T)
{
if (!val)
{
output.put("null");
return;
}
else static if (is(T == Object))
{
output.put("{}");
return;
}
}
ensurePublicConstructor!T();
output.put('{');
size_t i = 0;
foreach (member; membersToSerialize!T)
{
import std.traitsExt : getMemberValue;
if (!shouldSerializeValue!(T, member)(val))
continue;
if (i != 0)
output.put(',');
output.put(`"` ~ getFinalMemberName!(T, member) ~ `":`);
serialize(output, getMemberValue!member(val));
i++;
}
output.put('}');
}
/// ditto
static void serialize(T)(ref BinaryOutputRange!OR output, T val) @safe
if (isNativeSerializationSupported!T && isAssociativeArray!T)
{
output.put('{');
bool first = true;
foreach (ref k, ref v; val)
{
if (!first)
output.put(',');
serialize(output, k);
output.put(':');
serialize(output, v);
first = false;
}
output.put('}');
}
/// ditto
static void serialize(T)(ref BinaryOutputRange!OR output, T val) @trusted
if (isNativeSerializationSupported!T && isDynamicType!T)
{
if (val.isTypeBoolean)
serialize(output, cast(bool)val);
else if (val.isTypeString)
serialize(output, cast(string)val);
else if (val.isTypeArray)
{
output.put('[');
for (size_t i = 0; i < cast(size_t)val.length; i++)
{
if (i != 0)
output.put(',');
serialize(output, val[i]);
}
output.put(']');
}
else if (val.isTypeObject)
{
if (!val)
output.put("null");
else
{
output.put('{');
size_t i = 0;
foreach (k, v; val)
{
if (i != 0)
output.put(',');
serialize(output, k);
output.put(':');
serialize(output, v);
i++;
}
output.put('}');
}
}
else if (val.isTypeNumeric)
{
if (val.isTypeIntegral)
serialize(output, cast(long)val);
else
serialize(output, cast(real)val);
}
else
output.put(`"<unknown>"`);
}
/// ditto
static void serialize(T)(ref BinaryOutputRange!OR output, T val) @safe
if (isNativeSerializationSupported!T && isOneOf!(T, byte, ubyte, short, ushort, int, uint, long, ulong/*, cent, ucent*/))
{
import std.performance.conv : to;
val.to!string(output);
}
// TODO: When to!string(float | double | real) becomes safe, make this safe.
/// ditto
static void serialize(T)(ref BinaryOutputRange!OR output, T val) @trusted
if (isNativeSerializationSupported!T && isOneOf!(T, float, double, real))
{
import std.string : format;
if (cast(T)cast(long)val == val)
serialize(output, cast(long)val);
else
output.put(format("%.17f", val));
}
/// ditto
static void serialize(T)(ref BinaryOutputRange!OR output, T val) @safe pure nothrow
if (isNativeSerializationSupported!T && is(T == bool))
{
output.put(val ? "true" : "false");
}
/// ditto
static void serialize(T)(ref BinaryOutputRange!OR outputRange, T val, bool writeQuotes = true) @safe
if (isNativeSerializationSupported!T && isOneOf!(T, char, wchar, dchar))
{
import std.format : formattedWrite;
if (writeQuotes)
outputRange.put('"');
switch (val)
{
case '"':
outputRange.put(`\"`);
break;
case '\\':
outputRange.put("\\\\");
break;
case '/':
outputRange.put("\\/");
break;
case '\b':
outputRange.put("\\b");
break;
case '\f':
outputRange.put("\\f");
break;
case '\n':
outputRange.put("\\n");
break;
case '\r':
outputRange.put("\\r");
break;
case '\t':
outputRange.put("\\t");
break;
case 0x20, 0x21:
case 0x23: .. case 0x2E:
case 0x30: .. case 0x5B:
case 0x5D: .. case 0x7E:
outputRange.put(cast(char)val);
break;
default:
if (val <= 0xFFFF)
formattedWrite(outputRange, "\\u%04X", cast(ushort)val);
else
// NOTE: This is non-standard behaviour, but allows us to (de)serialize dchars.
formattedWrite(outputRange, "\\x%08X", cast(uint)val);
break;
}
if (writeQuotes)
outputRange.put('"');
}
/// ditto
static void serialize(T)(ref BinaryOutputRange!OR output, T val) @safe pure
if (isNativeSerializationSupported!T && isArray!T && isOneOf!(ForeachType!T, char, wchar, dchar))
{
import std.performance.conv : to;
static bool isAscii(S)(S str) @safe pure nothrow
{
foreach (ch; str)
{
switch (ch)
{
case 0x20, 0x21:
case 0x23: .. case 0x2E:
case 0x30: .. case 0x5B:
case 0x5D: .. case 0x7E:
break;
default:
return false;
}
}
return true;
}
output.put('"');
if (isAscii(val))
output.put(to!string(val));
else
{
foreach (dchar ch; val)
{
serialize(output, ch, false);
}
}
output.put('"');
}
/// ditto
static void serialize(T)(ref BinaryOutputRange!OR output, T val) @safe
if (isNativeSerializationSupported!T && isArray!T && !isOneOf!(ForeachType!T, char, wchar, dchar))
{
output.put('[');
foreach(i, v; val)
{
if (i != 0)
output.put(',');
serialize(output, v);
}
output.put(']');
}
}
// TODO: Why must D be a pain at times....
mixin(BaseDeserializationMembers!());
// TODO: Implement the generic input range based version.
@deserializationContext private static struct JSONLexer(Range)
if (is(Range == string))
{
static struct Token
{
TokenType type = TokenType.Unknown;
string stringValue;
string toString()
{
import std.conv : to;
if (type == TokenType.String || type == TokenType.Number)
return to!string(type) ~ ": " ~ stringValue;
return to!string(type);
}
}
enum TokenType
{
Unknown = 1 << 0,
String = 1 << 1,
Number = 1 << 2,
LCurl = 1 << 3,
RCurl = 1 << 4,
LSquare = 1 << 5,
RSquare = 1 << 6,
Colon = 1 << 7,
Comma = 1 << 8,
False = 1 << 9,
True = 1 << 10,
Null = 1 << 11,
EOF = 1 << 12,
}
Range input;
Token current;
@property bool EOF() { return current.type == TokenType.EOF; }
this(Range inRange)
{
input = inRange;
// Check for UTF-8 headers.
if (input.length >= 3 && input[0..3] == x"EF BB BF")
input = input[3..$];
// TODO: Check for other UTF versions
consume();
}
void expect(TokenTypes...)() @safe
{
debug import std.conv : to;
import std.algorithm : reduce;
// This right here is the reason the token types are flags;
// it allows us to do a single direct branch, even for multiple
// possible token types.
enum expectedFlags = reduce!((a, b) => cast(ushort)a | cast(ushort)b)(0, [TokenTypes]);
if ((current.type | expectedFlags) == expectedFlags)
return;
debug
throw new Exception("Unexpected token! `" ~ to!string(current.type) ~ "`!");
else
throw new Exception("Unexpected token!"); // TODO: Make more descriptive
}
export void consume() @trusted pure
{
Restart:
if (!input.length)
{
current = Token(TokenType.EOF);
return;
}
size_t curI = 0;
while (curI < input.length)
{
switch (input[curI])
{
case ' ', '\t', '\v', '\r', '\n':
input = input[1..$];
goto Restart;
case '{':
current = Token(TokenType.LCurl);
goto Return;
case '}':
current = Token(TokenType.RCurl);
goto Return;
case '[':
current = Token(TokenType.LSquare);
goto Return;
case ']':
current = Token(TokenType.RSquare);
goto Return;
case ':':
current = Token(TokenType.Colon);
goto Return;
case ',':
current = Token(TokenType.Comma);
goto Return;
case 'F', 'f':
curI++;
if (input[curI] != 'a' && input[curI] != 'A')
goto IdentifierError;
curI++;
if (input[curI] != 'l' && input[curI] != 'L')
goto IdentifierError;
curI++;
if (input[curI] != 's' && input[curI] != 'S')
goto IdentifierError;
curI++;
if (input[curI] != 'e' && input[curI] != 'E')
goto IdentifierError;
current = Token(TokenType.False);
goto Return;
case 'T', 't':
curI++;
if (input[curI] != 'r' && input[curI] != 'R')
goto IdentifierError;
curI++;
if (input[curI] != 'u' && input[curI] != 'U')
goto IdentifierError;
curI++;
if (input[curI] != 'e' && input[curI] != 'E')
goto IdentifierError;
current = Token(TokenType.True);
goto Return;
case 'N', 'n':
curI++;
if (input[curI] != 'u' && input[curI] != 'U')
goto IdentifierError;
curI++;
if (input[curI] != 'l' && input[curI] != 'L')
goto IdentifierError;
curI++;
if (input[curI] != 'l' && input[curI] != 'L')
goto IdentifierError;
current = Token(TokenType.Null);
goto Return;
case '"':
curI++;
while (curI < input.length)
{
// TODO: Make this a switch statement for readability once DMD auto-expands small
// switch statements to if-else chains.
if (input[curI] == '\\')
{
// This loop will end if we just passed
// the end of the file, and throw an EOF
// exception for us.
curI += 2;
}
else if (input[curI] == '"')
{
current = Token(TokenType.String, input[1..curI]);
goto Return;
}
else
curI++;
}
goto EOF;
case '-', '+':
case '0': .. case '9':
curI++;
while (curI < input.length)
{
switch (input[curI])
{
case 'E', 'e', '+', '-', '.':
case '0': .. case '9':
curI++;
break;
default:
current = Token(TokenType.Number, input[0..curI]);
curI--; // Adjust for the +1 used when we return.
goto Return;
}
}
goto EOF;
default:
throw new Exception("Unknown input '" ~ input[curI] ~ "'!");
IdentifierError:
throw new Exception("Unknown identifier!");
EOF:
throw new Exception("Unexpected EOF!");
}
}
Return:
input = input[curI + 1..$];
}
}
private static C getCharacter(C)(ref string input) @safe pure
if (isOneOf!(C, char, wchar, dchar))
in
{
assert(input.length > 0);
}
body
{
import std.conv : to;
size_t readLength = 0;
dchar decoded = '\0';
if (input[0] == '\\')
{
if (input.length < 2)
throw new Exception("Unexpected EOF!");
switch (input[1])
{
case '\\':
case '/':
case '"':
decoded = input[1];
readLength += 2;
break;
case 'B', 'b':
decoded = '\b';
readLength += 2;
break;
case 'F', 'f':
decoded = '\f';
readLength += 2;
break;
case 'N', 'n':
decoded = '\n';
readLength += 2;
break;
case 'R', 'r':
decoded = '\r';
readLength += 2;
break;
case 'T', 't':
decoded = '\t';
readLength += 2;
break;
case 'U', 'u':
if (input.length < 6)
throw new Exception("Unexpected EOF!");
decoded = to!dchar(to!wchar(to!ushort(input[2..6], 16)));
readLength += 6;
break;
case 'X', 'x':
if (input.length < 10)
throw new Exception("Unexpected EOF!");
decoded = to!dchar(to!uint(input[2..10], 16));
readLength += 10;
break;
default:
// REVIEW: Should we go for spec complaince (invalid) or for the ability to handle invalid input?
version(none)
{
// Spec Compliance
throw new Exception("Unknown escape sequence!");
}
else
{
// Unknown escape sequence, so use the character
// immediately following the backslash as a literal.
decoded = input[1];
readLength += 2;
break;
}
}
}
else
{
readLength++;
decoded = input[0];
}
input = input[readLength..$];
return to!C(decoded);
}
private static T deserializeValue(T, PT)(ref PT parser) @safe
if (isNativeSerializationSupported!T && isDynamicType!T)
{
return deserializeValue!T(parser, (name, val) => val);
}
private static T deserializeValue(T, PT)(ref PT parser, T delegate(string, T) callback) @trusted
if (isNativeSerializationSupported!T && isDynamicType!T)
{
import std.performance.conv : to;
import std.performance.string : contains;
alias TokenType = PT.TokenType;
T v;
switch (parser.current.type)
{
case TokenType.LCurl:
parser.consume();
T[string] tmp;
v = tmp;
bool first = true;
if (parser.current.type != TokenType.RCurl) do
{
if (!first) // The fact we've got here means the current token MUST be a comma.
parser.consume();
parser.expect!(TokenType.String);
string fieldName = parser.current.stringValue;
parser.consume();
parser.expect!(TokenType.Colon);
parser.consume();
T tmpVal = deserializeValue!T(parser);
v[fieldName] = callback(fieldName, tmpVal);
first = false;
} while (parser.current.type == TokenType.Comma);
parser.expect!(TokenType.RCurl);
parser.consume();
break;
case TokenType.LSquare:
parser.consume();
string[] tmp;
v = tmp;
size_t i = 0;
if (parser.current.type != TokenType.RSquare) do
{
if (i != 0) // The fact we got here means that the current token MUST be a comma.
parser.consume();
v[i] = deserializeValue!T(parser);
i++;
} while (parser.current.type == TokenType.Comma);
parser.expect!(TokenType.RSquare);
parser.consume();
break;
case TokenType.Number:
if (parser.current.stringValue.contains!('.'))
v = to!real(parser.current.stringValue);
else
v = to!long(parser.current.stringValue);
parser.consume();
break;
case TokenType.String:
string strVal = parser.current.stringValue;
if (strVal.contains!('\\'))
{
dchar[] dst = new dchar[strVal.length];
size_t i;
while (strVal.length > 0)
{
dst[i] = getCharacter!dchar(strVal);
i++;
}
strVal = to!string(dst[0..i]);
}
v = strVal;
parser.consume();
break;
case TokenType.True:
parser.consume();
v = true;
break;
case TokenType.False:
parser.consume();
v = false;
break;
case TokenType.Null:
parser.consume();
v = null;
break;
default:
throw new Exception("Unknown token type!");
}
return callback("", v);
}
private static T deserializeValue(T, PT)(ref PT parser) @trusted
if (isNativeSerializationSupported!T && (isClass!T || isStruct!T) && !isDynamicType!T)
{
alias TokenType = PT.TokenType;
static void skipValue(ref PT parser)
{
switch (parser.current.type)
{
case TokenType.LCurl:
parser.consume();
bool first = true;
if (parser.current.type != TokenType.RCurl) do
{
if (!first) // The fact we've got here means the current token MUST be a comma.
parser.consume();
parser.expect!(TokenType.String);
parser.consume();
parser.expect!(TokenType.Colon);
parser.consume();
skipValue(parser);
first = false;
} while (parser.current.type == TokenType.Comma);
parser.expect!(TokenType.RCurl);
parser.consume();
break;
case TokenType.LSquare:
parser.consume();
bool first = true;
if (parser.current.type != TokenType.RSquare) do
{
if (!first) // The fact we got here means that the current token MUST be a comma.
parser.consume();
skipValue(parser);
first = false;
} while (parser.current.type == TokenType.Comma);
parser.expect!(TokenType.RSquare);
parser.consume();
break;
case TokenType.Number:
parser.consume();
break;
case TokenType.String:
parser.consume();
break;
case TokenType.True:
parser.consume();
break;
case TokenType.False:
parser.consume();
break;
case TokenType.Null:
parser.consume();
break;
default:
throw new Exception("Unknown token type!");
}
}
if (parser.current.type == TokenType.Null)
{
parser.consume();
return T.init;
}
else if (parser.current.type == TokenType.String)
{
import std.performance.string : equal;
// TODO: Support classes/structs with toString & parse methods.
if (parser.current.stringValue.equal!("null", false))
{
parser.consume();
return T.init;
}
}
ensurePublicConstructor!T();
T parsedValue = constructDefault!T();
auto serializedFields = SerializedFieldSet!T();
bool first = true;
parser.expect!(TokenType.LCurl);
parser.consume();
if (parser.current.type != TokenType.RCurl) do
{
if (!first) // The fact we've got here means the current token MUST be a comma.
parser.consume();
parser.expect!(TokenType.String);
switch (parser.current.stringValue)
{
foreach (member; membersToSerialize!T)
{
import std.traitsExt : MemberType, setMemberValue;
case getFinalMemberName!(T, member):
parser.consume();
parser.expect!(TokenType.Colon);
parser.consume();
setMemberValue!member(parsedValue, deserializeValue!(MemberType!(T, member))(parser));
serializedFields.markSerialized!(member);
goto ExitSwitch;
}
default:
static if (!hasAttribute!(T, ignoreUndefined))
{
throw new Exception("Unknown member '" ~ parser.current.stringValue ~ "'!");
}
else
{
parser.consume();
parser.expect!(TokenType.Colon);
parser.consume();
skipValue(parser);
break;
}
}
ExitSwitch:
first = false;
continue;
} while (parser.current.type == TokenType.Comma);
parser.expect!(TokenType.RCurl);
parser.consume();
serializedFields.ensureFullySerialized();
return parsedValue;
}
private static T deserializeValue(T, PT)(ref PT parser) @trusted
if (isNativeSerializationSupported!T && isOneOf!(T, char, wchar, dchar))
{
alias TokenType = PT.TokenType;
parser.expect!(TokenType.String);
string strVal = parser.current.stringValue;
T val = getCharacter!T(strVal);
assert(strVal.length == 0, "Data still remaining after parsing a character!");
parser.consume();
return val;
}
private static T deserializeValue(T, PT)(ref PT parser) @safe pure
if (isNativeSerializationSupported!T && isOneOf!(T, float, double, real))
{
alias TokenType = PT.TokenType;
import std.conv : to;
parser.expect!(TokenType.Number, TokenType.String);
T val = to!T(parser.current.stringValue);
parser.consume();
return val;
}
private static T deserializeValue(T, PT)(ref PT parser) @safe pure
if (isNativeSerializationSupported!T && isOneOf!(T, byte, ubyte, short, ushort, int, uint, long, ulong/*, cent, ucent*/))
{
alias TokenType = PT.TokenType;
import std.performance.conv : parse;
parser.expect!(TokenType.Number, TokenType.String);
T val = parse!T(parser.current.stringValue);
parser.consume();
return val;
}
private static T deserializeValue(T, PT)(ref PT parser) @safe pure
if (isNativeSerializationSupported!T && is(T == bool))
{
alias TokenType = PT.TokenType;
bool ret;
parser.expect!(TokenType.True, TokenType.False, TokenType.String);
if (parser.current.type == TokenType.String)
{
import std.performance.string : equal;
if (parser.current.stringValue.equal!("true", false))
ret = true;
else if (parser.current.stringValue.equal!("false", false))
ret = false;
else
throw new Exception("Invalid string for a boolean!");
}
else
ret = parser.current.type == TokenType.True;
parser.consume();
return ret;
}
private static T deserializeValue(T, PT)(ref PT parser) @trusted
if (isNativeSerializationSupported!T && isAssociativeArray!T)
{
pragma(msg, "Well, i'm here at least...");
alias TokenType = PT.TokenType;
bool first = true;
ValueType!T[KeyType!T] val;
parser.expect!(TokenType.LCurl);
parser.consume();
if (parser.current.type != TokenType.RCurl) do
{
if (!first) // The fact we've got here means the current token MUST be a comma.
parser.consume();
// Key types are const, so we have to remove that to get it to be nice...
auto key = cast(const)deserializeValue!(Dequal!(KeyType!T))(parser);
parser.expect!(TokenType.Colon);
parser.consume();
val[key] = deserializeValue!(ValueType!T)(parser);
first = false;
} while (parser.current.type == TokenType.Comma);
parser.expect!(TokenType.RCurl);
parser.consume();
return val;
}
private static T deserializeValue(T, PT)(ref PT parser) @trusted
if (isNativeSerializationSupported!T && isArray!T && isOneOf!(ForeachType!T, char, wchar, dchar))
{
alias TokenType = PT.TokenType;
import std.performance.string : contains;
import std.conv : to;
parser.expect!(TokenType.String);
string strVal = parser.current.stringValue;
T val;
// TODO: Account for strings that are part of a larger string, as well as strings that
// can be unescaped in-place. Also look into using alloca to allocate the required
// space on the stack for the intermediate string representation.
if (!strVal.contains!('\\'))
{
val = to!T(strVal);
}
else
{
dchar[] dst = new dchar[strVal.length];
size_t i;
while (strVal.length > 0)
{
dst[i] = getCharacter!dchar(strVal);
i++;
}
val = to!T(dst[0..i]);
}
parser.consume();
return val;
}
private static T deserializeValue(T, PT)(ref PT parser) @safe
if (isNativeSerializationSupported!T && isArray!T && !isOneOf!(ForeachType!T, char, wchar, dchar))
{
alias TokenType = PT.TokenType;
parser.expect!(TokenType.LSquare);
parser.consume();
// Due to the fact most arrays in JSON will
// be fairly small arrays, not 4-8k elements,
// just appending to an existing array is the
// fastest way to do this.
T arrVal;
bool first = true;
if (parser.current.type != TokenType.RSquare) do
{
if (!first) // The fact we got here means that the current token MUST be a comma.
parser.consume();
arrVal ~= deserializeValue!(ForeachType!T)(parser);
first = false;
} while (parser.current.type == TokenType.Comma);
parser.expect!(TokenType.RSquare);
parser.consume();
return arrVal;
}
static T fromJSON(T)(string val) @safe
{
auto parser = JSONLexer!string(val);
auto v = deserializeValue!T(parser);
assert(parser.current.type == JSONLexer!string.TokenType.EOF);
return v;
}
static T fromJSON(T)(string val, T delegate(string name, T val) callback) @safe
if (isDynamicType!T)
{
auto parser = JSONLexer!string(val);
auto v = deserializeValue!T(parser, callback);
assert(parser.current.type == JSONLexer!string.TokenType.EOF);
return v;
}
}
void toJSON(T, OR)(T val, ref OR buf) @safe
if (isOutputRange!(OR, ubyte[]))
{
auto bor = BinaryOutputRange!OR(buf);
JSONSerializationFormat.InnerFunStuff!(OR).serialize(bor, val);
buf = bor.innerRange;
}
string toJSON(T)(T val) @trusted
{
import std.performance.array : Appender;
auto ret = BinaryOutputRange!(Appender!(ubyte[]))();
ret.put(""); // This ensures everything is initialized.
JSONSerializationFormat.InnerFunStuff!(Appender!(ubyte[])).serialize(ret, val);
return cast(string)ret.data;
}
T fromJSON(T)(string val) @safe
{
return JSONSerializationFormat.fromJSON!T(val);
}
T fromJSON(T)(string val, T delegate(string name, T val) callback)
if (SerializationFormat.isDynamicType!T)
{
return JSONSerializationFormat.fromJSON!T(val, callback);
}
@safe unittest
{
import std.serialization : runSerializationTests, Test;
runSerializationTests!(string, toJSON, fromJSON, [
Test.PrivateConstructor: [`{"B":5}`],
Test.NonSerializable: [`{"B":5}`],
Test.OptionalField: [`{"B":5}`],
Test.NonSerializedField: [`{"A":3}`],
Test.SerializeAsField: [`{"A":3,"D":5}`],
Test.ByteField: [`{"A":-3}`, `{"A":"-3"}`],
Test.UByteField: [`{"A":159}`, `{"A":"159"}`],
Test.ShortField: [`{"A":-26125}`, `{"A":"-26125"}`],
Test.UShortField: [`{"A":65313}`, `{"A":"65313"}`],
Test.IntField: [`{"A":-2032534342}`, `{"A":"-2032534342"}`],
Test.UIntField: [`{"A":2520041234}`, `{"A":"2520041234"}`],
Test.LongField: [`{"A":-2305393212345134623}`, `{"A":"-2305393212345134623"}`],
Test.ULongField: [`{"A":4021352154138321354}`, `{"A":"4021352154138321354"}`],
Test.CentField: [`{"A":-23932104152349231532145324134}`, `{"A":"-23932104152349231532145324134"}`],
Test.UCentField: [`{"A":40532432168321451235829354323}`, `{"A":"40532432168321451235829354323"}`],
Test.FloatField: [`{"A":-433200}`, `{"A":"-433200"}`],
Test.DoubleField: [`{"A":3.25432e+53}`, `{"A":"3.25432e+53"}`],
Test.RealField: [`{"A":-2.13954e+104}`, `{"A":"-2.13954e+104"}`],
Test.CharField: [`{"A":"\u0005"}`],
Test.WCharField: [`{"A":"\u04DA"}`],
Test.DCharField: [`{"A":"\x0010FFFF"}`],
Test.StringField: [`{"A":"Hello!\b\"\u08A8\x0010FFFF"}`],
Test.WStringField: [`{"A":"Hello!\b\"\u08A8\x0010FFFF"}`],
Test.WCharArrayField: [`{"A":"Hello!\b\"\u08A8\x0010FFFF"}`],
Test.ConstWCharArrayField: [`{"A":"Hello!\b\"\u08A8\x0010FFFF"}`],
Test.DStringField: [`{"A":"Hello!\b\"\u08A8\x0010FFFF"}`],
Test.FalseBoolField: [`{"A":false}`, `{"A":"false"}`],
Test.TrueBoolField: [`{"A":true}`, `{"A":"true"}`, `{"A":"True"}`, `{"A":"tRUe"}`],
Test.NullObjectField: [`{"A":null}`, `{"A":"null"}`],
Test.ClassField: [`{"A":{"A":3,"D":5}}`],
Test.ClassArrayField: [`{"A":[{"A":3,"D":5},{"A":3,"D":5}]}`],
Test.IntArrayField: [`{"A":[-3,6,190]}`],
Test.StructParent: [`{"A":3}`],
Test.StructField: [`{"A":{"A":3}}`],
Test.ParsableClassField: [`{"A":"3"}`],
Test.EnumField: [`{"A":"valB"}`],
])();
}
version (none)
{
enum JSONElementType
{
unknown,
array,
boolean,
number,
object,
string,
}
final class JSONElement
{
private:
JSONElementType type = JSONElementType.unknown;
string innerValue;
union
{
JSONElement[] arrayValueCache;
JSONElement[string] objectValueCache;
}
template jsonElementTypeOf(T)
{
import std.traits : isArray, isNumeric, isSomeString;
static if (isArray!T)
enum jsonElementTypeOf = JSONElementType.array;
else static if (isNumeric!T)
enum jsonElementTypeOf = JSONElementType.number;
else static if (isSomeString!T)
enum jsonElementTypeOf = JSONElementType.string;
else static if (is(T == bool))
enum jsonElementTypeOf = JSONElementType.boolean;
else
enum jsonElementTypeOf = JSONElementType.object;
}
void ensureObject() @safe pure nothrow
{
if (type == JSONElementType.unknown)
type = JSONElementType.object;
assert(type == JSONElementType.object);
if (!objectValueCache && innerValue)
objectValueCache = fromJSON!(JSONElement[string])(innerValue);
}
void ensureArray() @safe pure nothrow
{
if (type == JSONElementType.unknown)
type = JSONElementType.array;
assert(type == JSONElementType.array);
if (!arrayValueCache && innerValue)
arrayValueCache = fromJSON!(JSONElement[])(innerValue);
}
public:
this(T val, T)()
{
innerValue = toJSON!(val);
type = jsonElementTypeOf!(T);
}
this(T)(in T val)
{
innerValue = toJSON(val);
type = jsonElementTypeOf!(T);
}
this()()
{
}
JSONElement opIndex(size_t i) @safe pure nothrow
{
ensureArray();
return arrayValueCache[i];
}
JSONElement opIndex(in string key) @safe pure nothrow
{
ensureObject();
return objectValueCache[key];
}
JSONElement opIndexAssign(T)(in T val, in string key) @safe pure nothrow
{
ensureObject();
return objectValueCache[key] = new JSONElement(val);
}
JSONElement opBinary(string op : "in")(in string key) @safe pure nothrow
{
ensureObject();
return key in objectValueCache;
}
@property T value(T)() @safe pure nothrow
{
return fromJSON!T(innerValue);
}
}
import std.range : isOutputRange;
final class JSONWriter(OutputRange)
if (isOutputRange!(OutputRange, string))
{
import std.collections : Stack;
private:
enum WriteContext
{
array,
field,
object,
}
OutputRange output;
Stack!WriteContext contextStack = new Stack!WriteContext();
// Believe it or not, we only need a single
// bool here regardless of how deep the json
// is, due to the fact that if we've written
// a value, it's no longer the first element.
bool firstElement = true;
void checkWriteComma() @safe pure nothrow
{
if (!firstElement)
output.put(",");
}
public:
this(OutputRange outputRange) @safe pure nothrow
{
output = outputRange;
}
void startObject() @safe pure nothrow
{
import std.range : put;
checkWriteComma();
output.put("{");
contextStack.push(WriteContext.object);
firstElement = true;
}
void endObject() @safe pure nothrow
{
import std.range : put;
assert(contextStack.pop() == WriteContext.object, "Tried to end an object while in a non-object context!");
output.put("}");
firstElement = false;
}
void startArray() @safe pure nothrow
{
import std.range : put;
checkWriteComma();
output.put("[");
contextStack.push(WriteContext.array);
firstElement = true;
}
void endArray() @safe pure nothrow
{
import std.range : put;
assert(contextStack.pop() == WriteContext.array, "Tried to end an array while in a non-array context!");
output.put("]");
firstElement = false;
}
void startField(string name)() @safe pure nothrow
{
import std.range : put;
checkWriteComma();
output.put(`"` ~ JSONSerializationFormat.EscapeString(name) ~ `":`);
contextStack.push(WriteContext.field);
firstElement = true;
}
void startField(in string name) @safe pure
{
import std.range : put;
checkWriteComma();
output.put(`"`);
JSONSerializationFormat.putString(output, name);
output.put(`":`);
contextStack.push(WriteContext.field);
firstElement = true;
}
void endField() @safe pure nothrow
{
assert(contextStack.pop() == WriteContext.field, "Tried to end a field while in a non-field context!");
firstElement = false;
}
void writeValue(T val, T)() @safe
{
checkWriteComma();
toJSON!(val)(output);
firstElement = false;
}
void writeValue(T)(in T val) @safe
{
checkWriteComma();
toJSON(val, output);
firstElement = false;
}
void writeField(string field, T val, T)() @safe
{
checkWriteComma();
startField!(field);
writeValue!(val);
endField();
firstElement = false;
}
void writeField(string field, T)(in T val) @safe
{
checkWriteComma();
startField!(field);
writeValue(val);
endField();
firstElement = false;
}
void writeField(T)(in string field, in T val) @safe
{
checkWriteComma();
startField(field);
writeValue(val);
endField();
firstElement = false;
}
}
@safe unittest
{
import std.range : Appender;
auto dst = Appender!string();
auto wtr = new JSONWriter!(Appender!string)(dst);
}
}
|
D
|
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
module hunt.shiro.authc.pam.AuthenticationStrategy;
import hunt.shiro.Exceptions;
import hunt.shiro.authc.AuthenticationInfo;
import hunt.shiro.authc.AuthenticationToken;
import hunt.shiro.realm.Realm;
import hunt.collection;
/**
* A {@code AuthenticationStrategy} implementation assists the {@link ModularRealmAuthenticator} during the
* log-in process in a pluggable realm (PAM) environment.
*
* <p>The {@code ModularRealmAuthenticator} will consult implementations of this interface on what to do during each
* interaction with the configured Realms. This allows a pluggable strategy of whether or not an authentication
* attempt must be successful for all realms, only 1 or more realms, no realms, etc.
*
* @see AllSuccessfulStrategy
* @see AtLeastOneSuccessfulStrategy
* @see FirstSuccessfulStrategy
*/
interface AuthenticationStrategy {
/**
* Method invoked by the ModularAuthenticator signifying that the authentication process is about to begin for the
* specified {@code token} - called before any {@code Realm} is actually invoked.
*
* <p>The {@code AuthenticationInfo} object returned from this method is essentially an empty place holder for
* aggregating account data across multiple realms. It should be populated by the strategy implementation over the
* course of authentication attempts across the multiple realms. It will be passed into the
* {@link #beforeAttempt} calls, allowing inspection of the aggregated account data up to that point in the
* multi-realm authentication, allowing any logic to be executed accordingly.
*
* @param realms the Realms that will be consulted during the authentication process for the specified token.
* @param token the Principal/Credential representation to be used during authentication for a corresponding subject.
* @return an empty AuthenticationInfo object that will populated with data from multiple realms.
* @throws AuthenticationException if the strategy implementation does not wish the Authentication attempt to execute.
*/
AuthenticationInfo beforeAllAttempts(Realm[] realms, AuthenticationToken token);
/**
* Method invoked by the ModularAuthenticator just prior to the realm being consulted for account data,
* allowing pre-authentication-attempt logic for that realm only.
*
* <p>This method returns an {@code AuthenticationInfo} object that will be used for further interaction with realms. Most
* implementations will merely return the {@code aggregate} method argument if they don't have a need to
* manipulate it.
*
* @param realm the realm that will be consulted for {@code AuthenticationInfo} for the specified {@code token}.
* @param token the {@code AuthenticationToken} submitted for the subject attempting system log-in.
* @param aggregate the aggregated AuthenticationInfo object being used across the multi-realm authentication attempt
* @return the AuthenticationInfo object that will be presented to further realms in the authentication process - returning
* the {@code aggregate} method argument is the normal case if no special action needs to be taken.
* @throws hunt.shiro.authc.AuthenticationException
* an exception thrown by the Strategy implementation if it wishes the login
* process for the associated subject (user) to stop immediately.
*/
AuthenticationInfo beforeAttempt(Realm realm, AuthenticationToken token, AuthenticationInfo aggregate);
/**
* Method invoked by the ModularAuthenticator just after the given realm has been consulted for authentication,
* allowing post-authentication-attempt logic for that realm only.
*
* <p>This method returns an {@code AuthenticationInfo} object that will be used for further interaction with realms. Most
* implementations will merge the {@code singleRealmInfo} into the {@code aggregateInfo} and
* just return the {@code aggregateInfo} for continued use throughout the authentication process.</p>
*
* @param realm the realm that was just consulted for {@code AuthenticationInfo} for the given {@code token}.
* @param token the {@code AuthenticationToken} submitted for the subject attempting system log-in.
* @param singleRealmInfo the info returned from a single realm.
* @param aggregateInfo the aggregate info representing all realms in a multi-realm environment.
* @param t the Throwable thrown by the Realm during the attempt, or {@code null} if the method returned normally.
* @return the AuthenticationInfo object that will be presented to further realms in the authentication process - returning
* the {@code aggregateAccount} method argument is the normal case if no special action needs to be taken.
* @throws AuthenticationException an exception thrown by the Strategy implementation if it wishes the login process
* for the associated subject (user) to stop immediately.
*/
AuthenticationInfo afterAttempt(Realm realm, AuthenticationToken token, AuthenticationInfo singleRealmInfo, AuthenticationInfo aggregateInfo, Throwable t);
/**
* Method invoked by the ModularAuthenticator signifying that all of its configured Realms have been consulted
* for account data, allowing post-processing after all realms have completed.
*
* <p>Returns the final AuthenticationInfo object that will be returned from the Authenticator to the authenticate() caller.
* This is most likely the aggregate AuthenticationInfo object that has been populated by many realms, but the actual return value is
* always up to the implementation.
*
* @param token the {@code AuthenticationToken} submitted for the subject attempting system log-in.
* @param aggregate the aggregate {@code AuthenticationInfo} instance populated by all realms during the log-in attempt.
* @return the final {@code AuthenticationInfo} object to return to the Authenticator.authenticate() caller.
* @throws AuthenticationException if the Strategy implementation wishes to fail the authentication attempt.
*/
AuthenticationInfo afterAllAttempts(AuthenticationToken token, AuthenticationInfo aggregate);
}
|
D
|
// Written in the D programming language.
/**
* Dates are represented in several formats. The date implementation revolves
* around a central type, d_time, from which other formats are converted to and
* from.
* Dates are calculated using the Gregorian calendar.
* References:
* $(LINK2 http://en.wikipedia.org/wiki/Gregorian_calendar, Gregorian calendar (Wikipedia))
* Macros:
* WIKI = Phobos/StdDate
*/
// Copyright (c) 1999-2008 by Digital Mars
// All Rights Reserved
// written by Walter Bright
// http://www.digitalmars.com
module std.date;
private import std.stdio;
private import std.dateparse;
import std.contracts;
/**
* d_time is a signed arithmetic type giving the time elapsed since January 1,
* 1970.
* Negative values are for dates preceding 1970. The time unit used is Ticks.
* Ticks are milliseconds or smaller intervals.
*
* The usual arithmetic operations can be performed on d_time, such as adding,
* subtracting, etc. Elapsed time in Ticks can be computed by subtracting a
* starting d_time from an ending d_time.
*/
alias long d_time;
/**
* A value for d_time that does not represent a valid time.
*/
const d_time d_time_nan = long.min;
/**
* Time broken down into its components.
*/
struct Date
{
int year = int.min; /// use int.min as "nan" year value
int month; /// 1..12
int day; /// 1..31
int hour; /// 0..23
int minute; /// 0..59
int second; /// 0..59
int ms; /// 0..999
int weekday; /// 0: not specified, 1..7: Sunday..Saturday
int tzcorrection = int.min; /// -1200..1200 correction in hours
/// Parse date out of string s[] and store it in this Date instance.
void parse(string s)
{
DateParse dp;
dp.parse(s, this);
}
}
enum
{
HoursPerDay = 24,
MinutesPerHour = 60,
msPerMinute = 60 * 1000,
msPerHour = 60 * msPerMinute,
msPerDay = 86_400_000,
TicksPerMs = 1,
TicksPerSecond = 1000, /// Will be at least 1000
TicksPerMinute = TicksPerSecond * 60,
TicksPerHour = TicksPerMinute * 60,
TicksPerDay = TicksPerHour * 24,
}
d_time LocalTZA = 0;
immutable char[] daystr = "SunMonTueWedThuFriSat";
immutable char[] monstr = "JanFebMarAprMayJunJulAugSepOctNovDec";
const int[12] mdays = [ 0,31,59,90,120,151,181,212,243,273,304,334 ];
/********************************
* Compute year and week [1..53] from t. The ISO 8601 week 1 is the first week
* of the year that includes January 4. Monday is the first day of the week.
* References:
* $(LINK2 http://en.wikipedia.org/wiki/ISO_8601, ISO 8601 (Wikipedia))
*/
void toISO8601YearWeek(d_time t, out int year, out int week)
{
year = YearFromTime(t);
int yday = Day(t) - DayFromYear(year);
int d;
int w;
int ydaybeg;
/* Determine day of week Jan 4 falls on.
* Weeks begin on a Monday.
*/
d = DayFromYear(year);
w = (d + 3/*Jan4*/ + 3) % 7;
if (w < 0)
w += 7;
/* Find yday of beginning of ISO 8601 year
*/
ydaybeg = 3/*Jan4*/ - w;
/* Check if yday is actually the last week of the previous year
*/
if (yday < ydaybeg)
{
year -= 1;
week = 53;
return;
}
/* Check if yday is actually the first week of the next year
*/
if (yday >= 362) // possible
{ int d2;
int ydaybeg2;
d2 = DayFromYear(year + 1);
w = (d2 + 3/*Jan4*/ + 3) % 7;
if (w < 0)
w += 7;
//printf("w = %d\n", w);
ydaybeg2 = 3/*Jan4*/ - w;
if (d + yday >= d2 + ydaybeg2)
{
year += 1;
week = 1;
return;
}
}
week = (yday - ydaybeg) / 7 + 1;
}
/* ***********************************
* Divide time by divisor. Always round down, even if d is negative.
*/
d_time floor(d_time d, int divisor)
{
if (d < 0)
d -= divisor - 1;
return d / divisor;
}
int dmod(d_time n, d_time d)
{ d_time r;
r = n % d;
if (r < 0)
r += d;
assert(cast(int)r == r);
return cast(int)r;
}
int HourFromTime(d_time t)
{
return dmod(floor(t, msPerHour), HoursPerDay);
}
int MinFromTime(d_time t)
{
return dmod(floor(t, msPerMinute), MinutesPerHour);
}
int SecFromTime(d_time t)
{
return dmod(floor(t, TicksPerSecond), 60);
}
int msFromTime(d_time t)
{
return dmod(t / (TicksPerSecond / 1000), 1000);
}
int TimeWithinDay(d_time t)
{
return dmod(t, msPerDay);
}
d_time toInteger(d_time n)
{
return n;
}
int Day(d_time t)
{
return cast(int)floor(t, msPerDay);
}
int LeapYear(int y)
{
return ((y & 3) == 0 &&
(y % 100 || (y % 400) == 0));
}
int DaysInYear(int y)
{
return 365 + LeapYear(y);
}
int DayFromYear(int y)
{
return cast(int) (365 * (y - 1970) +
floor((y - 1969), 4) -
floor((y - 1901), 100) +
floor((y - 1601), 400));
}
d_time TimeFromYear(int y)
{
return cast(d_time)msPerDay * DayFromYear(y);
}
/*****************************
* Calculates the year from the d_time t.
*/
int YearFromTime(d_time t)
{ int y;
if (t == d_time_nan)
return 0;
// Hazard a guess
//y = 1970 + cast(int) (t / (365.2425 * msPerDay));
// Use integer only math
y = 1970 + cast(int) (t / (3652425 * (msPerDay / 10000)));
if (TimeFromYear(y) <= t)
{
while (TimeFromYear(y + 1) <= t)
y++;
}
else
{
do
{
y--;
}
while (TimeFromYear(y) > t);
}
return y;
}
/*******************************
* Determines if d_time t is a leap year.
*
* A leap year is every 4 years except years ending in 00 that are not
* divsible by 400.
*
* Returns: !=0 if it is a leap year.
*
* References:
* $(LINK2 http://en.wikipedia.org/wiki/Leap_year, Wikipedia)
*/
int inLeapYear(d_time t)
{
return LeapYear(YearFromTime(t));
}
/*****************************
* Calculates the month from the d_time t.
*
* Returns: Integer in the range 0..11, where
* 0 represents January and 11 represents December.
*/
int MonthFromTime(d_time t)
{
int day;
int month;
int year;
year = YearFromTime(t);
day = Day(t) - DayFromYear(year);
if (day < 59)
{
if (day < 31)
{ assert(day >= 0);
month = 0;
}
else
month = 1;
}
else
{
day -= LeapYear(year);
if (day < 212)
{
if (day < 59)
month = 1;
else if (day < 90)
month = 2;
else if (day < 120)
month = 3;
else if (day < 151)
month = 4;
else if (day < 181)
month = 5;
else
month = 6;
}
else
{
if (day < 243)
month = 7;
else if (day < 273)
month = 8;
else if (day < 304)
month = 9;
else if (day < 334)
month = 10;
else if (day < 365)
month = 11;
else
assert(0);
}
}
return month;
}
/*******************************
* Compute which day in a month a d_time t is.
* Returns:
* Integer in the range 1..31
*/
int DateFromTime(d_time t)
{
int day;
int leap;
int month;
int year;
int date;
year = YearFromTime(t);
day = Day(t) - DayFromYear(year);
leap = LeapYear(year);
month = MonthFromTime(t);
switch (month)
{
case 0: date = day + 1; break;
case 1: date = day - 30; break;
case 2: date = day - 58 - leap; break;
case 3: date = day - 89 - leap; break;
case 4: date = day - 119 - leap; break;
case 5: date = day - 150 - leap; break;
case 6: date = day - 180 - leap; break;
case 7: date = day - 211 - leap; break;
case 8: date = day - 242 - leap; break;
case 9: date = day - 272 - leap; break;
case 10: date = day - 303 - leap; break;
case 11: date = day - 333 - leap; break;
default:
assert(0);
}
return date;
}
/*******************************
* Compute which day of the week a d_time t is.
* Returns:
* Integer in the range 0..6, where 0 represents Sunday
* and 6 represents Saturday.
*/
int WeekDay(d_time t)
{ int w;
w = (cast(int)Day(t) + 4) % 7;
if (w < 0)
w += 7;
return w;
}
/***********************************
* Convert from UTC to local time.
*/
d_time UTCtoLocalTime(d_time t)
{
return (t == d_time_nan)
? d_time_nan
: t + LocalTZA + DaylightSavingTA(t);
}
/***********************************
* Convert from local time to UTC.
*/
d_time LocalTimetoUTC(d_time t)
{
return (t == d_time_nan)
? d_time_nan
/* BUGZILLA 1752 says this line should be:
* : t - LocalTZA - DaylightSavingTA(t);
*/
: t - LocalTZA - DaylightSavingTA(t - LocalTZA);
}
d_time MakeTime(d_time hour, d_time min, d_time sec, d_time ms)
{
return hour * TicksPerHour +
min * TicksPerMinute +
sec * TicksPerSecond +
ms * TicksPerMs;
}
/* *****************************
* Params:
* month = 0..11
* date = day of month, 1..31
* Returns:
* number of days since start of epoch
*/
d_time MakeDay(d_time year, d_time month, d_time date)
{ d_time t;
int y;
int m;
int leap;
y = cast(int)(year + floor(month, 12));
m = dmod(month, 12);
leap = LeapYear(y);
t = TimeFromYear(y) + cast(d_time)mdays[m] * msPerDay;
if (leap && month >= 2)
t += msPerDay;
if (YearFromTime(t) != y ||
MonthFromTime(t) != m ||
DateFromTime(t) != 1)
{
return d_time_nan;
}
return Day(t) + date - 1;
}
d_time MakeDate(d_time day, d_time time)
{
if (day == d_time_nan || time == d_time_nan)
return d_time_nan;
return day * TicksPerDay + time;
}
d_time TimeClip(d_time time)
{
//printf("TimeClip(%g) = %g\n", time, toInteger(time));
return toInteger(time);
}
/***************************************
* Determine the date in the month, 1..31, of the nth
* weekday.
* Params:
* year = year
* month = month, 1..12
* weekday = day of week 0..6 representing Sunday..Saturday
* n = nth occurrence of that weekday in the month, 1..5, where
* 5 also means "the last occurrence in the month"
* Returns:
* the date in the month, 1..31, of the nth weekday
*/
int DateFromNthWeekdayOfMonth(int year, int month, int weekday, int n)
in
{
assert(1 <= month && month <= 12);
assert(0 <= weekday && weekday <= 6);
assert(1 <= n && n <= 5);
}
body
{
// Get day of the first of the month
auto x = MakeDay(year, month - 1, 1);
// Get the week day 0..6 of the first of this month
auto wd = WeekDay(MakeDate(x, 0));
// Get monthday of first occurrence of weekday in this month
auto mday = weekday - wd + 1;
if (mday < 1)
mday += 7;
// Add in number of weeks
mday += (n - 1) * 7;
// If monthday is more than the number of days in the month,
// back up to 'last' occurrence
if (mday > 28 && mday > DaysInMonth(year, month))
{ assert(n == 5);
mday -= 7;
}
return mday;
}
unittest
{
assert(DateFromNthWeekdayOfMonth(2003, 3, 0, 5) == 30);
assert(DateFromNthWeekdayOfMonth(2003, 10, 0, 5) == 26);
assert(DateFromNthWeekdayOfMonth(2004, 3, 0, 5) == 28);
assert(DateFromNthWeekdayOfMonth(2004, 10, 0, 5) == 31);
}
/**************************************
* Determine the number of days in a month, 1..31.
* Params:
* month = 1..12
*/
int DaysInMonth(int year, int month)
{
switch (month)
{
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
return 31;
case 2:
return 28 + LeapYear(year);
case 4:
case 6:
case 9:
case 11:
return 30;
default:
assert(0);
}
}
unittest
{
assert(DaysInMonth(2003, 2) == 28);
assert(DaysInMonth(2004, 2) == 29);
}
/*************************************
* Converts UTC time into a text string of the form:
* "Www Mmm dd hh:mm:ss GMT+-TZ yyyy".
* For example, "Tue Apr 02 02:04:57 GMT-0800 1996".
* If time is invalid, i.e. is d_time_nan,
* the string "Invalid date" is returned.
*
* Example:
* ------------------------------------
d_time lNow;
char[] lNowString;
// Grab the date and time relative to UTC
lNow = std.date.getUTCtime();
// Convert this into the local date and time for display.
lNowString = std.date.toString(lNow);
* ------------------------------------
*/
string toString(d_time time)
{
d_time t;
char sign;
int hr;
int mn;
int len;
d_time offset;
d_time dst;
// Years are supposed to be -285616 .. 285616, or 7 digits
// "Tue Apr 02 02:04:57 GMT-0800 1996"
char[] buffer = new char[29 + 7 + 1];
if (time == d_time_nan)
return "Invalid Date";
dst = DaylightSavingTA(time);
offset = LocalTZA + dst;
t = time + offset;
sign = '+';
if (offset < 0)
{ sign = '-';
// offset = -offset;
offset = -(LocalTZA + dst);
}
mn = cast(int)(offset / msPerMinute);
hr = mn / 60;
mn %= 60;
//printf("hr = %d, offset = %g, LocalTZA = %g, dst = %g, + = %g\n", hr, offset, LocalTZA, dst, LocalTZA + dst);
len = sprintf(buffer.ptr, "%.3s %.3s %02d %02d:%02d:%02d GMT%c%02d%02d %d",
&daystr[WeekDay(t) * 3],
&monstr[MonthFromTime(t) * 3],
DateFromTime(t),
HourFromTime(t), MinFromTime(t), SecFromTime(t),
sign, hr, mn,
cast(long)YearFromTime(t));
// Ensure no buggy buffer overflows
//printf("len = %d, buffer.length = %d\n", len, buffer.length);
assert(len < buffer.length);
buffer = buffer[0 .. len];
return assumeUnique(buffer);
}
/***********************************
* Converts t into a text string of the form: "Www, dd Mmm yyyy hh:mm:ss UTC".
* If t is invalid, "Invalid date" is returned.
*/
string toUTCString(d_time t)
{
// Years are supposed to be -285616 .. 285616, or 7 digits
// "Tue, 02 Apr 1996 02:04:57 GMT"
char[] buffer = new char[25 + 7 + 1];
int len;
if (t == d_time_nan)
return "Invalid Date";
len = sprintf(buffer.ptr, "%.3s, %02d %.3s %d %02d:%02d:%02d UTC",
&daystr[WeekDay(t) * 3], DateFromTime(t),
&monstr[MonthFromTime(t) * 3],
YearFromTime(t),
HourFromTime(t), MinFromTime(t), SecFromTime(t));
// Ensure no buggy buffer overflows
assert(len < buffer.length);
return cast(string) buffer[0 .. len];
}
/************************************
* Converts the date portion of time into a text string of the form: "Www Mmm dd
* yyyy", for example, "Tue Apr 02 1996".
* If time is invalid, "Invalid date" is returned.
*/
string toDateString(d_time time)
{
d_time t;
d_time offset;
d_time dst;
int len;
// Years are supposed to be -285616 .. 285616, or 7 digits
// "Tue Apr 02 1996"
char[] buffer = new char[29 + 7 + 1];
if (time == d_time_nan)
return "Invalid Date";
dst = DaylightSavingTA(time);
offset = LocalTZA + dst;
t = time + offset;
len = sprintf(buffer.ptr, "%.3s %.3s %02d %d",
&daystr[WeekDay(t) * 3],
&monstr[MonthFromTime(t) * 3],
DateFromTime(t),
cast(long)YearFromTime(t));
// Ensure no buggy buffer overflows
assert(len < buffer.length);
return cast(string) buffer[0 .. len];
}
/******************************************
* Converts the time portion of t into a text string of the form: "hh:mm:ss
* GMT+-TZ", for example, "02:04:57 GMT-0800".
* If t is invalid, "Invalid date" is returned.
* The input must be in UTC, and the output is in local time.
*/
string toTimeString(d_time time)
{
d_time t;
char sign;
int hr;
int mn;
int len;
d_time offset;
d_time dst;
// "02:04:57 GMT-0800"
char[] buffer = new char[17 + 1];
if (time == d_time_nan)
return "Invalid Date";
dst = DaylightSavingTA(time);
offset = LocalTZA + dst;
t = time + offset;
sign = '+';
if (offset < 0)
{ sign = '-';
// offset = -offset;
offset = -(LocalTZA + dst);
}
mn = cast(int)(offset / msPerMinute);
hr = mn / 60;
mn %= 60;
//printf("hr = %d, offset = %g, LocalTZA = %g, dst = %g, + = %g\n", hr, offset, LocalTZA, dst, LocalTZA + dst);
len = sprintf(buffer.ptr, "%02d:%02d:%02d GMT%c%02d%02d",
HourFromTime(t), MinFromTime(t), SecFromTime(t),
sign, hr, mn);
// Ensure no buggy buffer overflows
assert(len < buffer.length);
// Lop off terminating 0
return cast(string) buffer[0 .. len];
}
/******************************************
* Parses s as a textual date string, and returns it as a d_time.
* If the string is not a valid date, d_time_nan is returned.
*/
d_time parse(string s)
{
Date dp;
d_time n;
d_time day;
d_time time;
try
{
dp.parse(s);
//writefln("year = %d, month = %d, day = %d", dp.year, dp.month, dp.day);
//writefln("%02d:%02d:%02d.%03d", dp.hour, dp.minute, dp.second, dp.ms);
//writefln("weekday = %d, ampm = %d, tzcorrection = %d", dp.weekday, 1, dp.tzcorrection);
time = MakeTime(dp.hour, dp.minute, dp.second, dp.ms);
if (dp.tzcorrection == int.min)
time -= LocalTZA;
else
{
time += cast(d_time)(dp.tzcorrection / 100) * msPerHour +
cast(d_time)(dp.tzcorrection % 100) * msPerMinute;
}
day = MakeDay(dp.year, dp.month - 1, dp.day);
n = MakeDate(day,time);
n = TimeClip(n);
}
catch
{
n = d_time_nan; // erroneous date string
}
return n;
}
static this()
{
LocalTZA = getLocalTZA();
//printf("LocalTZA = %g, %g\n", LocalTZA, LocalTZA / msPerHour);
}
version (Win32)
{
private import std.c.windows.windows;
//import c.time;
/******
* Get current UTC time.
*/
d_time getUTCtime()
{
SYSTEMTIME st;
d_time n;
GetSystemTime(&st); // get time in UTC
n = SYSTEMTIME2d_time(&st, 0);
return n;
//return c.time.time(null) * TicksPerSecond;
}
static d_time FILETIME2d_time(const FILETIME *ft)
{ SYSTEMTIME st;
if (!FileTimeToSystemTime(ft, &st))
return d_time_nan;
return SYSTEMTIME2d_time(&st, 0);
}
static d_time SYSTEMTIME2d_time(const SYSTEMTIME *st, d_time t)
{
/* More info: http://delphicikk.atw.hu/listaz.php?id=2667&oldal=52
*/
d_time n;
d_time day;
d_time time;
if (st.wYear)
{
time = MakeTime(st.wHour, st.wMinute, st.wSecond, st.wMilliseconds);
day = MakeDay(st.wYear, st.wMonth - 1, st.wDay);
}
else
{ /* wYear being 0 is a flag to indicate relative time:
* wMonth is the month 1..12
* wDayOfWeek is weekday 0..6 corresponding to Sunday..Saturday
* wDay is the nth time, 1..5, that wDayOfWeek occurs
*/
auto year = YearFromTime(t);
auto mday = DateFromNthWeekdayOfMonth(year, st.wMonth, st.wDay, st.wDayOfWeek);
day = MakeDay(year, st.wMonth - 1, mday);
time = MakeTime(st.wHour, st.wMinute, 0, 0);
}
n = MakeDate(day,time);
n = TimeClip(n);
return n;
}
d_time getLocalTZA()
{
d_time t;
DWORD r;
TIME_ZONE_INFORMATION tzi = void;
/* http://msdn.microsoft.com/library/en-us/sysinfo/base/gettimezoneinformation.asp
* http://msdn2.microsoft.com/en-us/library/ms725481.aspx
*/
r = GetTimeZoneInformation(&tzi);
//printf("bias = %d\n", tzi.Bias);
//printf("standardbias = %d\n", tzi.StandardBias);
//printf("daylightbias = %d\n", tzi.DaylightBias);
switch (r)
{
case TIME_ZONE_ID_STANDARD:
t = -(tzi.Bias + tzi.StandardBias) * cast(d_time)(60 * TicksPerSecond);
break;
case TIME_ZONE_ID_DAYLIGHT:
//t = -(tzi.Bias + tzi.DaylightBias) * cast(d_time)(60 * TicksPerSecond);
//break;
case TIME_ZONE_ID_UNKNOWN:
t = -(tzi.Bias) * cast(d_time)(60 * TicksPerSecond);
break;
default:
t = 0;
break;
}
return t;
}
/*
* Get daylight savings time adjust for time dt.
*/
int DaylightSavingTA(d_time dt)
{
int t;
DWORD r;
TIME_ZONE_INFORMATION tzi = void;
d_time ts;
d_time td;
/* http://msdn.microsoft.com/library/en-us/sysinfo/base/gettimezoneinformation.asp
*/
r = GetTimeZoneInformation(&tzi);
t = 0;
switch (r)
{
case TIME_ZONE_ID_STANDARD:
case TIME_ZONE_ID_DAYLIGHT:
if (tzi.StandardDate.wMonth == 0 ||
tzi.DaylightDate.wMonth == 0)
break;
ts = SYSTEMTIME2d_time(&tzi.StandardDate, dt);
td = SYSTEMTIME2d_time(&tzi.DaylightDate, dt);
if (td <= dt && dt < ts)
{
t = -tzi.DaylightBias * (60 * TicksPerSecond);
//printf("DST is in effect, %d\n", t);
}
else
{
//printf("no DST\n");
}
break;
case TIME_ZONE_ID_UNKNOWN:
// Daylight savings time not used in this time zone
break;
default:
assert(0);
}
return t;
}
}
version (Posix)
{
private import core.sys.posix.time;
private import core.sys.posix.sys.time;
d_time getUTCtime()
{ timeval tv;
//printf("getUTCtime()\n");
if (gettimeofday(&tv, null))
{ // Some error happened - try time() instead
return time(null) * TicksPerSecond;
}
return tv.tv_sec * cast(d_time)TicksPerSecond +
(tv.tv_usec / (1000000 / cast(d_time)TicksPerSecond));
}
d_time getLocalTZA()
{
time_t t;
time(&t);
version (OSX)
{ tm result;
localtime_r(&t, &result);
return result.tm_gmtoff * TicksPerSecond;
}
else
{
localtime(&t); // this will set timezone
return -(timezone * TicksPerSecond);
}
}
/*
* Get daylight savings time adjust for time dt.
*/
int DaylightSavingTA(d_time dt)
{
tm *tmp;
time_t t;
int dst = 0;
if (dt != d_time_nan)
{
d_time seconds = dt / TicksPerSecond;
t = cast(time_t) seconds;
if (t == seconds) // if in range
{
tmp = localtime(&t);
if (tmp.tm_isdst > 0)
dst = TicksPerHour; // BUG: Assume daylight savings time is plus one hour.
}
else // out of range for system time, use our own calculation
{
/* BUG: this works for the US, but not other timezones.
*/
dt -= LocalTZA;
int year = YearFromTime(dt);
/* Compute time given year, month 1..12,
* week in month, weekday, hour
*/
d_time dstt(int year, int month, int week, int weekday, int hour)
{
auto mday = DateFromNthWeekdayOfMonth(year, month, weekday, week);
return TimeClip(MakeDate(
MakeDay(year, month - 1, mday),
MakeTime(hour, 0, 0, 0)));
}
d_time start;
d_time end;
if (year < 2007)
{ // Daylight savings time goes from 2 AM the first Sunday
// in April through 2 AM the last Sunday in October
start = dstt(year, 4, 1, 0, 2);
end = dstt(year, 10, 5, 0, 2);
}
else
{
// the second Sunday of March to
// the first Sunday in November
start = dstt(year, 3, 2, 0, 2);
end = dstt(year, 11, 1, 0, 2);
}
if (start <= dt && dt < end)
dst = TicksPerHour;
//writefln("start = %s, dt = %s, end = %s, dst = %s", start, dt, end, dst);
}
}
return dst;
}
}
/+ ====================== DOS File Time =============================== +/
/***
* Type representing the DOS file date/time format.
*/
typedef uint DosFileTime;
/************************************
* Convert from DOS file date/time to d_time.
*/
d_time toDtime(DosFileTime time)
{
uint dt = cast(uint)time;
if (dt == 0)
return d_time_nan;
int year = ((dt >> 25) & 0x7F) + 1980;
int month = ((dt >> 21) & 0x0F) - 1; // 0..12
int dayofmonth = ((dt >> 16) & 0x1F); // 0..31
int hour = (dt >> 11) & 0x1F; // 0..23
int minute = (dt >> 5) & 0x3F; // 0..59
int second = (dt << 1) & 0x3E; // 0..58 (in 2 second increments)
d_time t;
t = std.date.MakeDate(std.date.MakeDay(year, month, dayofmonth),
std.date.MakeTime(hour, minute, second, 0));
assert(YearFromTime(t) == year);
assert(MonthFromTime(t) == month);
assert(DateFromTime(t) == dayofmonth);
assert(HourFromTime(t) == hour);
assert(MinFromTime(t) == minute);
assert(SecFromTime(t) == second);
t -= LocalTZA + DaylightSavingTA(t);
return t;
}
/****************************************
* Convert from d_time to DOS file date/time.
*/
DosFileTime toDosFileTime(d_time t)
{ uint dt;
if (t == d_time_nan)
return cast(DosFileTime)0;
t += LocalTZA + DaylightSavingTA(t);
uint year = YearFromTime(t);
uint month = MonthFromTime(t);
uint dayofmonth = DateFromTime(t);
uint hour = HourFromTime(t);
uint minute = MinFromTime(t);
uint second = SecFromTime(t);
dt = (year - 1980) << 25;
dt |= ((month + 1) & 0x0F) << 21;
dt |= (dayofmonth & 0x1F) << 16;
dt |= (hour & 0x1F) << 11;
dt |= (minute & 0x3F) << 5;
dt |= (second >> 1) & 0x1F;
return cast(DosFileTime)dt;
}
|
D
|
// ************************ EXIT **************************
instance Tpl_1436_Templer_Exit(C_INFO)
{
npc = Tpl_1436_Templer;
nr = 999;
condition = Tpl_1436_Templer_Exit_Condition;
information = Tpl_1436_Templer_Exit_Info;
important = 0;
permanent = 1;
description = DIALOG_ENDE;
};
func int Tpl_1436_Templer_Exit_Condition()
{
return TRUE;
};
func void Tpl_1436_Templer_Exit_Info()
{
AI_StopProcessInfos(self);
};
// ***************************** INFOS ****************************************//
instance Tpl_1436_Templer_CRAWLER(C_INFO)
{
npc = Tpl_1436_Templer;
condition = Tpl_1436_Templer_CRAWLER_Condition;
information = Tpl_1436_Templer_CRAWLER_Info;
important = 0;
permanent = 1;
// description = "What's up?";
// description = "Was liegt an?";
description = "Co se děje?";
};
func int Tpl_1436_Templer_CRAWLER_Condition()
{
return TRUE;
};
func void Tpl_1436_Templer_CRAWLER_Info()
{
// AI_Output(other,self,"Tpl_1436_Templer_CRAWLER_Info_15_01"); //What's up?
// AI_Output(other,self,"Tpl_1436_Templer_CRAWLER_Info_15_01"); //Was liegt an?
AI_Output(other,self,"Tpl_1436_Templer_CRAWLER_Info_15_01"); //Co se děje?
// AI_Output(self,other,"Tpl_1436_Templer_CRAWLER_Info_13_02"); //We're here to hunt the crawlers. The side effect of protecting the diggers is quite popular as well.
// AI_Output(self,other,"Tpl_1436_Templer_CRAWLER_Info_13_02"); //Wir sind hier, um die Crawler zu jagen. Das wir damit gleichzeitig die Buddler beschützen, kann allen Beteiligten ja nur Recht sein.
AI_Output(self,other,"Tpl_1436_Templer_CRAWLER_Info_13_02"); //Lovíme tady důlní červy. To, že přitom chráníme kopáče, může všem přítomným jen vyhovovat.
// AI_Output(self,other,"Tpl_1436_Templer_CRAWLER_Info_13_03"); //What we really want is the secretion of the crawlers, though. Our Guru Cor Kalom brews magic potions from the secretion of the minecrawlers' mandibles.
// AI_Output(self,other,"Tpl_1436_Templer_CRAWLER_Info_13_03"); //Was wir aber wirklich wollen, ist das Sekret der Crawler. Aus dem Sekret der Minecrawler-Zangen braut unser Guru Cor Kalom magische Tränke.
AI_Output(self,other,"Tpl_1436_Templer_CRAWLER_Info_13_03"); //To, co opravdu chceme, je výměšek z čelistí důlních červů. Náš Guru Cor Kalom připravuje z výměšku magické lektvary.
};
|
D
|
module maths.util;
import maths.all;
/**
* More useful than sgn because it never returns 0.
*/
float sign(float f) {
return f<0 ? -1 : 1;
}
float reciprocal(float value) {
return 1f / value;
}
pragma(inline, true)
T clamp(T)(T value, T min, T max) pure nothrow {
if(value<min) return min;
if(value>max) return max;
return value;
}
pragma(inline, true)
T min(T)(T a, T b) pure nothrow {
return a<b ? a : b;
}
pragma(inline, true)
T min(T)(T a, T b, T c) pure nothrow {
return a<b && a<c ? a :
b<c ? b :
c;
}
pragma(inline, true)
T min(T)(T a, T b, T c, T d) pure nothrow {
return min(a, min(b,c,d));
}
pragma(inline, true)
T max(T)(T a, T b) pure nothrow {
return a>b ? a : b;
}
pragma(inline, true)
T max(T)(T a, T b, T c) pure nothrow {
return a>b && a>c ? a :
b>c ? b :
c;
}
pragma(inline, true)
T max(T)(T a, T b, T c, T d) pure nothrow {
return max(a, max(b,c,d));
}
T minOf(T)(T[] array...)
if(__traits(compiles,"T a; T b; bool c = a<b;"))
{
if(array.length==1) return array[0];
T v = array[0];
foreach(t; array[1..$]) { if(t < v) v = t; }
return v;
}
T maxOf(T)(T[] array...)
if(__traits(compiles,"T a; T b; bool c = a<b;"))
{
if(array.length==1) return array[0];
T v = array[0];
foreach(t; array[1..$]) { if(t > v) v = t; }
return v;
}
pragma(inline,true)
float signum(float f) {
return f==0 ? 0 : f>0 ? 1 : -1;
}
float distanceFromLine(
Vector2 p, // point
Vector2 v, // line start
Vector2 w) // line end
{
Vector2 pointvec = p-v;
Vector2 linevec = w-v;
// Return minimum distance between line segment vw and point p
float l2 = linevec.magnitudeSquared; // i.e. |w-v|^2 - avoid a sqrt
if(l2==0) return pointvec.magnitude; // v == w case
// Consider the line extending the segment, parameterized as v + t (w - v).
// We find projection of point p onto the line.
// It falls where t = [(p-v) . (w-v)] / |w-v|^2
float t = pointvec.dot(linevec) / l2;
if(t < 0) return pointvec.magnitude; // Beyond the 'v' end of the segment
else if(t > 1) return (p-w).magnitude; // Beyond the 'w' end of the segment
// 0 <= t <=1
Vector2 projection = v + linevec * t; // Projection falls on the segment
return (projection-p).magnitude;
}
string formatReal(real r, uint decimalPlaces=uint.max) {
string s1;
string s2;
string pre;
bool removeTrailing = false;
if(decimalPlaces==uint.max) {
removeTrailing = true;
decimalPlaces = 9;
} else if(decimalPlaces > 12) {
decimalPlaces = 12;
}
// handle negative
if(r<0) {
pre = "-";
r = -r;
}
// round up
r += (0.5 / pow(10, decimalPlaces));
// calculate remainder
real rr = r - cast(long)r;
// before decimal point
if(r<1) {
s1 ~= "0";
} else {
while(r >= 1) {
s1 ~= (cast(int)(r%10)+'0');
r /= 10;
}
}
// after decimal point
if(decimalPlaces != 0) {
int i=0;
while(i < decimalPlaces) {
rr *= 10;
int val = cast(int)rr;
s2 ~= val+'0';
rr -= val;
i++;
}
if(removeTrailing) {
// remove any excess right hand side zeros
while(s2.length>0) {
if(s2[s2.length-1]=='0') {
s2 = s2[0..s2.length-1];
} else break;
}
}
}
auto reversed = s1.dup;
reverse(reversed);
if(s2.length==0) {
return (pre ~ reversed).idup;
}
return (pre ~ reversed ~ "." ~ s2).idup;
}
T[] factorsOf(T)(T n) if(is(T : long)) {
T[] factors;
T i = 1;
while(i*i <= n) {
if((n%i)==0) {
factors ~= i;
if(n/i!=i) factors ~= n/i;
}
i++;
}
return factors;
}
bool isPrime(ulong n) {
if(n==0) return false;
if(n<4) return true;
auto i = 2L;
while(i*i <= n) {
if((n%i)==0) return false;
i++;
}
return true;
}
/**
* Return the number of bits required to store
* _value_ given a total set of size _total_.
* eg. entropy(1, 256) == 8 (bits)
* entropy(1, 3) == 1.58496 (bits)
*/
double entropyBits(double value, double total) {
import std.math : log, log2;
return log2(total/value);
//return -log(cast(double)value / cast(double)total) * (1.0 / log(2.0));
}
/**
* Find intersection of lines a->b and c->d.
*
*/
vec2 lineIntersection(vec2 a, vec2 b, vec2 c, vec2 d) {
float A1 = b.y-a.y;
float B1 = a.x-b.x;
float C1 = A1*a.x+B1*a.y;
float A2 = d.y-c.y;
float B2 = c.x-d.x;
float C2 = A2*c.x+B2*c.y;
float det = A1*B2 - A2*B1;
if(det==0){
//Lines are parallel
return vec2(0.0f/0.0f,0.0f/0.0f);
}
float x = (B2*C1 - B1*C2)/det;
float y = (A1*C2 - A2*C1)/det;
return vec2(x,y);
}
|
D
|
/*
TEST_OUTPUT:
---
fail_compilation/e7804_1.d(14): Error: undefined identifier `Aggr`
fail_compilation/e7804_1.d(15): Error: unrecognized trait `farfelu`
fail_compilation/e7804_1.d(17): Error: undefined identifier `Aggr`
fail_compilation/e7804_1.d(18): Error: unrecognized trait `farfelu`
---
*/
module e7804_1;
struct S {}
__traits(farfelu, Aggr, "member") a;
__traits(farfelu, S, "member") a2;
alias foo = __traits(farfelu, Aggr, "member");
alias foo2 = __traits(farfelu, S, "member");
|
D
|
module des.cl.util;
import std.string;
import std.range;
import std.exception;
import std.algorithm;
version(unittest) import std.stdio;
package:
/// generate propertyes for subject
string infoMixin( string subject, string enumname, in string[] list )
{
string[] ret;
foreach( ln; list )
{
auto tpl = splitInfoLine( ln );
ret ~= fformat(
q{%D_TYPE% %PROP_NAME%() @property {
if( id is null )
throw new CLException( "id is null" );
import std.traits;
import std.algorithm;
import std.array;
import std.conv;
alias T=%CL_TYPE%;
alias R=%D_TYPE%;
// TODO: it's for strings
static if( isArray!T )
{
size_t len;
checkCall!clGet%CC_SUBJ%Info( id, %CL_PARAM_NAME%, 0, null, &len );
alias ueT = Unqual!(ElementEncodingType!T);
auto buf = new ueT[]( len );
if( len == 0 ) return null;
checkCall!clGet%CC_SUBJ%Info( id,
%CL_PARAM_NAME%, len * ueT.sizeof, buf.ptr, &len );
return to!R(buf[0 .. len/ueT.sizeof - cast(size_t)isSomeString!T ]);
}
else
{
T val;
checkCall!clGet%CC_SUBJ%Info( id,
%CL_PARAM_NAME%, typeof(val).sizeof, &val, null );
static if( is( R == class ) ) return R.getFromID( val );
else static if( is( R == enum ) ) return cast(R)val;
else return to!R(val);
}
}},
[
"CC_SUBJ": toCamelCase( subject ),
"CL_TYPE": tpl.cl_type,
"D_TYPE": tpl.d_type,
"CL_PARAM_NAME": paramEnumName( "CL" ~ "_" ~ enumname.toUpper, tpl.cl_param_name ),
"PROP_NAME": tpl.prop_name,
]
);
}
return ret.join("\n");
}
/// ditto
string infoMixin( string subject, in string[] list )
{
return infoMixin( subject, subject, list );
}
unittest
{
import std.stdio;
auto info_list =
[
"cl_command_type:Command command_type:command",
"cl_int:Status command_execution_status:status",
"uint reference_count:ref_count",
"uint max_block"
];
//writeln( infoMixin( "event", info_list ) );
}
/++ split info line
+
+ Rules:
+ ---
+ property:
+ type name
+
+ type:
+ d_type
+ cl_type:d_type
+
+ name:
+ prop_name
+ cl_param_name:prop_name
+ ---
+/
auto splitInfoLine( string ln )
{
static struct Result { string d_type, cl_type, prop_name, cl_param_name; }
auto splt = ln.strip.split(" ");
enforce( splt.length == 2,
format( "bad info format '%s', need one space between type and name", ln.strip ) );
auto types = splt[0].split(":").cycle;
Result ret;
ret.d_type = types[1];
ret.cl_type = types[0];
auto names = splt[1].split(":").cycle;
ret.prop_name = names[1];
ret.cl_param_name = names[0];
return ret;
}
///
unittest
{
auto r = splitInfoLine( "uint param" );
assert( r.d_type == "uint" );
assert( r.cl_type == "uint" );
assert( r.prop_name == "param" );
assert( r.cl_param_name == "param" );
}
///
unittest
{
auto r = splitInfoLine( "cl_uint:MyEnum param" );
assert( r.d_type == "MyEnum" );
assert( r.cl_type == "cl_uint" );
assert( r.prop_name == "param" );
assert( r.cl_param_name == "param" );
}
///
unittest
{
auto r = splitInfoLine( "uint param:prop" );
assert( r.d_type == "uint" );
assert( r.cl_type == "uint" );
assert( r.prop_name == "prop" );
assert( r.cl_param_name == "param" );
}
///
unittest
{
auto r = splitInfoLine( "cl_uint:MyEnum param:prop" );
assert( r.d_type == "MyEnum" );
assert( r.cl_type == "cl_uint" );
assert( r.prop_name == "prop" );
assert( r.cl_param_name == "param" );
}
string paramEnumName( string prefix, string name )
{
if( name.startsWith("!") ) return "CL_" ~ name[1..$].toUpper;
return prefix ~ "_" ~ name.toUpper;
}
unittest
{
assert( paramEnumName( "CL_PLATFORM", "name" ) == "CL_PLATFORM_NAME" );
assert( paramEnumName( "CL_PLATFORM", "nAmE" ) == "CL_PLATFORM_NAME" );
assert( paramEnumName( "CL_DEVICE", "max_work_item_dimensions" ) ==
"CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS" );
assert( paramEnumName( "CL_DEVICE", "!driver_version" ) == "CL_DRIVER_VERSION" );
}
string fformat( string input, string[string] dict )
{
//string rplc( Captures!string m )
//{ return dict[ m.hit[1..$-1] ]; }
//return replaceAll!(rplc)( input, ctRegex!( r"%\w*%" ) );
string rplc( string m )
{
//import std.stdio;
//stderr.writeln( m );
return dict[m[1..$-1]];
}
return replaceWords!(rplc)( input );
}
unittest
{
auto input =
q{ hello %NAME%
i have %SUBJ% for you };
auto expect =
q{ hello Ivan
i have question for you };
auto result = fformat( input, [ "NAME": "Ivan", "SUBJ": "question" ] );
assert( result == expect );
}
unittest
{
auto input = q{ hello %NAME% i have %SUBJ% for you};
auto expect = q{ hello Ivan i have question for you};
auto result = fformat( input, [ "NAME": "Ivan", "SUBJ": "question" ] );
assert( result == expect );
}
unittest
{
auto input = q{ hello %NAME% i have %SUBJ% for you %s};
auto expect = q{ hello Ivan i have question for you %s};
auto result = fformat( input, [ "NAME": "Ivan", "SUBJ": "question" ] );
assert( result == expect );
}
unittest
{
auto input = q{ hello %NAME% i have %SUBJ% for you %s };
auto expect = q{ hello Ivan i have question for you %s };
auto result = fformat( input, [ "NAME": "Ivan", "SUBJ": "question" ] );
assert( result == expect );
}
unittest
{
auto input = q{%NAME% i have %SUBJ% for you};
auto expect = q{Ivan i have question for you};
auto result = fformat( input, [ "NAME": "Ivan", "SUBJ": "question" ] );
assert( result == expect );
}
unittest
{
auto input = q{%NAME% i %% have %SUBJ% for you};
auto expect = q{Ivan i %% have question for you};
auto result = fformat( input, [ "NAME": "Ivan", "SUBJ": "question" ] );
assert( result == expect );
}
unittest
{
auto input = q{%%%NAME% i have %SUBJ% for you};
auto expect = q{%%Ivan i have question for you};
auto result = fformat( input, [ "NAME": "Ivan", "SUBJ": "question" ] );
assert( result == expect );
}
unittest
{
auto input = q{%NAME% i have %SUBJ% for you%%};
auto expect = q{Ivan i have question for you%%};
auto result = fformat( input, [ "NAME": "Ivan", "SUBJ": "question" ] );
assert( result == expect );
}
unittest
{
auto input = q{%NAME% i have%%%};
auto expect = q{Ivan i have%%%};
auto result = fformat( input, [ "NAME": "Ivan", "SUBJ": "question" ] );
assert( result == expect );
}
unittest
{
auto input = q{%NAME %i have %SUBJ%%};
auto expect = q{%NAME %i have question%};
auto result = fformat( input, [ "NAME": "Ivan", "SUBJ": "question" ] );
assert( result == expect );
}
///
string toSnakeCase( in string str, bool ignore_first=true ) @property pure @trusted
{
string[] buf;
buf ~= "";
foreach( i, ch; str )
{
if( [ch].toUpper == [ch] ) buf ~= "";
buf[$-1] ~= [ch].toLower;
}
if( buf[0].length == 0 && ignore_first )
buf = buf[1..$];
return buf.join("_");
}
///
unittest
{
assertEq( "SomeVar".toSnakeCase, "some_var" );
assertEq( "SomeVar".toSnakeCase(false), "_some_var" );
assertEq( "someVar".toSnakeCase, "some_var" );
assertEq( "someVar".toSnakeCase(false), "some_var" );
assertEq( "ARB".toSnakeCase, "a_r_b" );
assertEq( "ARB".toSnakeCase(false), "_a_r_b" );
// not alphabetic chars in upper case looks like lower, func separate by them
assertEq( "A.B.r.A".toSnakeCase, "a_._b_.r_._a" );
assertEq( "A_B_r_A".toSnakeCase, "a___b__r___a" );
}
///
string toCamelCaseBySep( in string str, string sep="_", bool first_capitalize=true ) pure @trusted
{
auto arr = str.split(sep).filter!(a=>a.length>0).array;
string[] ret;
foreach( i, v; arr )
{
auto bb = v.capitalize;
if( i == 0 && !first_capitalize )
bb = v.toLower;
ret ~= bb;
}
return ret.join("");
}
///
unittest
{
assertEq( toCamelCaseBySep( "single-precision-constant", "-", false ), "singlePrecisionConstant" );
assertEq( toCamelCaseBySep( "one.two.three", ".", true ), "OneTwoThree" );
assertEq( toCamelCaseBySep( "one..three", ".", true ), "OneThree" );
assertEq( toCamelCaseBySep( "one/three", "/" ), "OneThree" );
assertEq( toCamelCaseBySep( "one_.three", ".", false ), "one_Three" );
// `_` in upper case looks equals as lower case
assertEq( toCamelCaseBySep( "one._three", ".", true ), "One_three" );
}
///
string toCamelCase( in string str, bool first_capitalize=true ) @property pure @trusted
{ return toCamelCaseBySep( str, "_", first_capitalize ); }
///
unittest
{
assertEq( "some_class".toCamelCase, "SomeClass" );
assertEq( "_some_class".toCamelCase, "SomeClass" );
assertEq( "some_func".toCamelCase(false), "someFunc" );
assertEq( "_some_func".toCamelCase(false), "someFunc" );
assertEq( "a_r_b".toCamelCase, "ARB" );
assertEq( toCamelCase( "program_build" ), "ProgramBuild" );
assertEq( toCamelCase( "program__build" ), "ProgramBuild" );
assertEq( toCamelCase( "program__build", false ), toCamelCaseBySep( "program__build", "_", false ) );
}
private:
string replaceWords(alias fun)( string s )
{
string ret;
size_t p0 = 0, p1 = 0;
void inc() { p1++; }
void dump() { ret ~= s[min(p0,$)..min(p1,$)]; p0 = p1; }
void dumpfun() { ret ~= fun( s[p0..p1] ); p0 = p1; }
m:while( p1 < s.length )
{
if( s[p1] == '%' )
{
dump; inc;
while( p1 < s.length )
{
if( s[p1] == '%' )
{
inc;
if( p1-2 == p0 ) // if no symbol between %%
continue m;
else
dumpfun;
break;
}
else if( !identitySymbol(s[p1]) ) { inc; break; }
inc;
}
}
inc;
if( p1 >= s.length ) dump();
}
if( p0 != p1 ) ret ~= s[p0..$]; // in case endWith("%%")
return ret;
}
bool identitySymbol( char c )
{
switch(c)
{
case 'a': .. case 'z': case 'A': .. case 'Z':
case '_': case '0': .. case '9': return true;
default: return false;
}
}
|
D
|
/*
* ProjectEuler 005
* D / main.d
* copyright (c) 2015 Susisu
*
* DMD 2.066
* `dmd main.d -ofbin/main`
*/
import std.stdio;
void main() {
int p = 1;
for (int i = 1; i <= 20; i++) {
p *= i / gcd(p, i);
}
writeln(p);
}
int gcd(int a, int b) {
if (a < b) {
return gcd(b, a);
}
else if (b == 0) {
return a;
}
else {
return gcd(b, a % b);
}
}
|
D
|
// unihernandez22
// https://atcoder.jp/contests/abc143/tasks/abc143_d
// binary search
import std;
int binary_search(int[] a, int x) {
int
left = -1,
right = (a.length.to!int);
while (right-left > 1) {
int cur = (right+left) / 2;
if (a[cur] < x)
left = cur;
else
right = cur;
}
return right;
}
void main() {
int n = readln.chomp.to!int;
int[] l = readln.split.map!(to!int).array;
l.sort();
int ans = 0;
foreach (int a; 0 .. n)
foreach (int b; a+1 .. n)
ans += l.binary_search(l[a] + l[b]) - b - 1;
ans.writeln;
}
|
D
|
/****************************************************
* NSC sucht ArenaFight-FP und beginnt anzubeten *
****************************************************/
func void ZS_ArenaFight()
{
PrintDebugNpc(PD_TA_FRAME,"ZS_ArenaFight");
B_UseHat (self);
Perception_Set_Normal();
B_ResetAll (self);
if (self.aivar[AIV_Schwierigkeitsgrad] < Mod_Schwierigkeit)
|| (self.aivar[AIV_Schwierigkeitsgrad] > Mod_Schwierigkeit)
{
B_SetSchwierigkeit();
};
AI_SetWalkmode (self,NPC_WALK); // Walkmode für den Zustand
Wld_DetectNpc (self, -1, ZS_Preach_PSI, -1);
if (Npc_GetDistToNpc (self,other) <= PERC_DIST_INTERMEDIAT)
{
AI_TurnToNpc (self,other);
Npc_SetTarget (self, other);
B_Attack (self, other, AR_NONE, 0);
};
};
func void ZS_ArenaFight_Loop()
{
Wld_DetectNpc (self, -1, ZS_ArenaFight, -1);
if (Npc_GetDistToNpc (self,other) <= PERC_DIST_INTERMEDIAT)
{
AI_TurnToNpc (self,other);
Npc_SetTarget (self, other);
B_Attack (self, other, AR_NONE, 0);
};
};
func void ZS_ArenaFight_End ()
{
};
|
D
|
module util.snappy;
import std.conv;
extern (C) {
enum snappy_status {
SNAPPY_OK = 0,
SNAPPY_INVALID_INPUT = 1,
SNAPPY_BUFFER_TOO_SMALL = 2,
};
snappy_status snappy_uncompressed_length(const byte* compressed,
size_t compressed_length,
size_t* result);
snappy_status snappy_uncompress(const byte* compressed,
size_t compressed_length,
byte* uncompressed,
size_t* uncompressed_length);
snappy_status snappy_compress(const byte* input,
size_t input_length,
byte* compressed,
size_t* compressed_length);
size_t snappy_max_compressed_length(size_t source_length);
}
class Snappy {
static byte[] uncompress(byte[] compressed) {
size_t uncompressedPrediction;
snappy_status ok = snappy_uncompressed_length(compressed.ptr, compressed.length, &uncompressedPrediction);
if (ok != snappy_status.SNAPPY_OK) {
throw new Exception(to!(string)(ok));
}
auto res = new byte[uncompressedPrediction];
size_t uncompressed = uncompressedPrediction;
ok = snappy_uncompress(compressed.ptr, compressed.length, res.ptr, &uncompressed);
if (ok != snappy_status.SNAPPY_OK) {
throw new Exception(to!(string)(ok));
}
if (uncompressed != uncompressedPrediction) {
throw new Exception("uncompressedPrediction " ~ to!(string)(uncompressedPrediction) ~ " != " ~ "uncompressed " ~ to!(string)(uncompressed));
}
return res;
}
static byte[] compress(byte[] uncompressed) {
size_t maxCompressedSize = snappy_max_compressed_length(uncompressed.length);
byte[] res = new byte[maxCompressedSize];
size_t compressedSize = maxCompressedSize;
snappy_status ok = snappy_compress(uncompressed.ptr, uncompressed.length, res.ptr, &compressedSize);
if (ok != snappy_status.SNAPPY_OK) {
throw new Exception(to!(string)(ok));
}
return res[0..compressedSize];
}
}
unittest{
import std.stdio;
import util.snappy;
byte[] data = cast(byte[])"ffdsffffffffffffffffaaaaaaaaaaaaaaaaaaccccccccccccccccccccccccdddddddddddddddddddeeeeeeeeeeeeeeeeeeeeeee";
writeln("-------------------------------------------------");
writefln("start test compress data, length:%s", data.length);
byte[] cprData = Snappy.compress(data);
writefln("compress data, length:%s, data:%s", cprData.length, cprData);
byte[] unData = Snappy.uncompress(cprData);
writefln("uncompress data, length:%s, data:%s", unData.length, unData);
}
|
D
|
/*
* Paradigm for fixation (and eventually saccade) training. Allows the
* experimenter to control background luminance and fixation spot size
* and color.
*
* This version updated to be compatible with Rex version 5.4
* KHB, 12/21/95
*
* joymap.d spawned from fix.d, to handle joystick mapping of RFs.
* dotmap.d is almost identical to joymap.
*
* Tertiary state list set control fixation monitoring LED added
* 4/03/98 HWH. Allows user control of fixation LED by setting
* a variable in the statelist (st menu) true. This variable, fix_led,
* is by default false (0); setting it to 1 turns on the monitoring.
*
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include "cnf.h"
#include "ldev.h" /* hardware device defines */
#include "lcode.h" /* Ecodes */
#include "lcalib.h"
#include "pixels.h" /* pixel <==> degree conversion */
#include "make_msg.h" /* generates msgs, and provides all structs for commands.See /rexr3c/*.h */
#include "actions.h" /* action lib for render */
// structs and handles for render objects
DotStruct f_fpStruct; // fp parameters
static FF2DStruct f_ff2dStruct; // ff2d parameters
int f_fpHandle = 0; // handle for dot
int f_ff2dHandle = 0; // handle for ff2d
int f_handleCount=0; // used in my_check_for_handles()
#define FALSE 0
#define TRUE 1
#define WIND0 0
#define EYEH_SIG 0
#define EYEV_SIG 1
#define JOYDEBUG_RESPONSE 0x1
/**********************************************************************
* Global variables.
**********************************************************************/
int dots_on = 1; /* controlled by button 1 */
int joystick_enabled = 1; /* NOT under button control! */
int window_on=0; /* can't make this static or compiler chokes */
int framecnt; /* ditto. */
static int coh_seed, loc_seed;
static float joy_x = 0, joy_y = 0; /* in pixel coordinates */
static int dir = 0;
static int dirstep = 45;
static int ptsiz = 2;
static int fpsiz = 2;
static int fpwinsize = 20;
static int fpred = 255;
static int fpgreen = 0;
static int fpblue = 0;
static int f_reward_time = 50;
static int f_reward_random = 0;
/************************************************************************
* Declaration of statelist variables.
************************************************************************/
int fixx = 0,
fixy = 0,
stimz = 290, //in mm
coh = 750,
width = 0,
islinear = 1,
bar_R = 255,
bar_G = 255,
bar_B = 255,
ntrials = 1000,
msec = 3000,
fix_led = 0,
remain,
density = 50,
radius = 20,
speed = 50,
bg = 0; /* background grayscale value */
static int f_joyDead = 5;
static int f_joyPixPerFrame = 5;
static int f_joyXMin = -1000;
static int f_joyXMax = 1000;
static int f_joyXZero = 0;
static int f_joyYMin=-1000;
static int f_joyYMax=1000;
static int f_joyYZero = 0;
static int f_joyDebug = 0;
static int f_joyDebugThrottle = 500;
static int f_joyDebugCount = 0;
static int f_width;
static int f_height;
static double f_framerate;
char local_addr[16] = "192.168.1.1";
char remote_addr[16]="192.168.1.2";
int remote_port = 2000;
/************************************************************************
* Control functions to make things happen.
************************************************************************/
/******************************** rinitf() *********************************/
void rinitf(void)
{
int status=0;
// initialize tcpip - The last arg (0) turns autoflush off.
status = init_tcpip(local_addr, remote_addr, remote_port, 0);
}
/********************************* setbg() *******************************
*
* sets the background luminance
*/
int setbg()
{
render_bgcolor(bg, bg, bg);
return 0;
}
/******************************** trcount() *******************************
*
* bookkeeping function
*/
int trcount(int flag)
{
score(flag); /* Rex trial counter */
return 0;
}
void get_dot_param(DotStruct *pdot)
{
int siz;
siz = to_pixels((float)fpsiz/10);
pdot->xorigin = fixx;
pdot->yorigin = fixy;
pdot->xsize = siz;
pdot->ysize = siz;
pdot->depth = 10;
pdot->r = fpred;
pdot->g = fpgreen;
pdot->b = fpblue;
pdot->a = 0;
}
int get_single_response(int ival, int imax, int imin, int izero, int idead, float *response)
{
int status = 0;
int sign = 1;
if (imax == izero || imin == izero) {
status = -1;
*response = 0;
}
if (abs(ival - izero) <= idead) {
*response = 0;
} else if ((ival-izero)*(imax-izero) > 0) {
// response is positive
*response = (float)(ival-izero)/(float)(imax - izero);
} else {
// response is negative
*response = -1 * (float)(ival - izero)/(float)(imin - izero);
}
return status;
}
int get_joystick_response(float *pxresponse, float *pyresponse)
{
int status =
get_single_response(addh, f_joyXMax, f_joyXMin, f_joyXZero, f_joyDead, pxresponse) +
get_single_response(addv, f_joyYMax, f_joyYMin, f_joyYZero, f_joyDead, pyresponse);
return status;
}
void get_ff2d_param(FF2DStruct* pff2d)
{
float xresponse = 0.0;
float yresponse = 0.0;
int npoints;
float degperframe = (float)speed/10/f_framerate;
float area = 1.0;
float rad = to_pixels((float)radius/10);
float den = (float)density/100;
area = M_PI*radius*radius/100;
npoints = (int)(den*area);
pff2d->linear = islinear;
pff2d->npts = npoints;
pff2d->prob = (float)coh/1000.0f;
pff2d->radius = rad;
pff2d->pseed = loc_seed;
pff2d->cseed = coh_seed;
pff2d->pixsz = ptsiz;
pff2d->depth = 20; // TODO: NO HARDCODING
pff2d->v = to_pixels(degperframe);
pff2d->width = (float)width/10.0f; // TESTING
pff2d->angle = dir;
pff2d->r = bar_R;
pff2d->g = bar_G;
pff2d->b = bar_B;
if (joystick_enabled)
{
if (!get_joystick_response(&xresponse, &yresponse))
{
// djs xresponse has a sign inversion.
joy_x = joy_x + (xresponse * f_joyPixPerFrame);
joy_y = joy_y + (yresponse * f_joyPixPerFrame);
if (f_joyDebug & JOYDEBUG_RESPONSE)
{
if (f_joyDebugCount >= f_joyDebugThrottle)
{
dprintf("get_ff2d_param: addh (resp/delta/joy_x) %d (%d/%d/%d), addv (resp/delta/joy_y) %d (%d/%d/%d)\n",
addh, (int)(xresponse*100), (int)(xresponse*f_joyPixPerFrame*100), (int)joy_x,
addv, (int)(yresponse*100), (int)(yresponse*f_joyPixPerFrame*100), (int)joy_y);
}
}
if (joy_x < -f_width/2) joy_x = -f_width/2;
if (joy_x > f_width/2) joy_x = f_width/2;
if (joy_y < -f_height/2) joy_y = -f_height/2;
if (joy_y > f_height/2) joy_y = f_height/2;
}
else
{
dprintf("get_ff2d_param: get_joystick_response failed!\n");
}
}
if (f_joyDebugCount >= f_joyDebugThrottle)
{
f_joyDebugCount = 0;
}
else
{
f_joyDebugCount++;
}
pff2d->x = joy_x;
pff2d->y = joy_y;
}
/***************************** my_conf_all() **********************************
*
* Configure dot and ff2d. Sends commands, but does not fetch handles. See my_check_for_handles
*
*/
int my_conf_all()
{
// background color
render_bgcolor(bg, bg, bg);
// Get dot parameters, send DOT command
get_dot_param(&f_fpStruct);
render_dot(&f_fpStruct); // will need to get handle return
// Get ff2d parameters, send FF2D command
get_ff2d_param(&f_ff2dStruct);
render_ff2d(&f_ff2dStruct);
}
/*
* my_check_for_handles
*
* Escape function that returns 1 when two handles have been received.
* The first handle received will be the fp handle.
* The second handle received will be the dotfield handle.
*
* Uses a global int, f_handleCount. When that count reaches 2 we're done.
*
*/
int my_check_for_handles()
{
int status = 0;
int h=0;
while (render_check_for_handle(&h))
{
if (f_handleCount == 0)
{
f_fpHandle = h;
f_handleCount = 1;
dprintf("fp handle %d\n", f_fpHandle);
}
else if (f_handleCount == 1)
{
f_ff2dHandle = h;
f_handleCount = 2;
status = 1;
dprintf("ff2d handle %d\n", f_ff2dHandle);
}
else
{
dprintf("ERROR: Handle count is %d\n", f_handleCount);
}
}
return status;
}
/******************************* initial() *******************************
*
* setup function
*/
int initial(void)
{
render_get_parameters(&f_width, &f_height, &f_framerate);
dprintf("render parameters: %dx%d@%d\n", f_width, f_height, (int)f_framerate);
initialize_pixel_conversion(x_dimension_mm, y_dimension_mm, f_width, f_height, stimz); // Initializes to_pixels function properties
remain = ntrials;
coh_seed = joy_x;
loc_seed = joy_y;
joy_x = joy_y = 0;
f_fpHandle = f_ff2dHandle = f_handleCount = 0;
setbg();
/* Set reward time */
set_times("reward", (long)f_reward_time, (long)f_reward_random);
return 0;
}
/*
* fpask() - update fixation point with current parameters, turn on,
* and issue FRAME command (does not check for WENT)
*
*/
int fpask(void)
{
render_update(f_fpHandle, &f_fpStruct, sizeof(f_fpStruct), HANDLE_ON);
render_frame(0);
return 0;
}
/*
* dottie_update() - updates values in FF2DStruct with current parameters
* from menus, and current joystick position value.
*
*/
int dottie_update()
{
/* If dots are ON, then get params and issue update */
if (dots_on)
{
get_ff2d_param(&f_ff2dStruct);
render_update(f_ff2dHandle, &f_ff2dStruct, sizeof(f_ff2dStruct), HANDLE_ON);
}
render_frame(0);
return 0;
}
/*
* fpoff() - send command to turn off fixpt, issue FRAME,
* does not check for went!
*
*/
int fpoff(void)
{
render_onoff(&f_fpHandle, HANDLE_OFF, ONOFF_FRAME_NOWAIT);
return 0;
}
/*
* dotoff() - send command to turn off ff2d, issue FRAME, does not check
* for WENT
*/
int dotoff(void)
{
render_onoff(&f_ff2dHandle, HANDLE_OFF, ONOFF_FRAME_NOWAIT);
return 0;
}
/*
* winon() - configures fixation window using
* parameters from menus (fixx, fixy, xsiz, ysiz).
*
*/
int winon()
{
wd_src_pos(WIND0, WD_DIRPOS, 0, WD_DIRPOS, 0);
wd_pos(WIND0, (long)fixx, (long)fixy);
wd_siz(WIND0, (long)fpwinsize, (long)fpwinsize);
wd_cntrl(WIND0, WD_ON);
wd_src_check(WIND0, WD_SIGNAL, EYEH_SIG, WD_SIGNAL, EYEV_SIG);
return 0;
}
/*
* my_check_for_went()
*/
int my_check_for_went()
{
int frames = 0;
int wstatus;
wstatus = render_check_for_went(&frames);
if (wstatus < 0)
{
// ERROR! not clear what to do ...
dprintf("ERROR in render_check_for_went!\n");
}
return wstatus;
}
/****************************** my_fixtim()() *******************************
*
* checks if fixation window on (window_on = 1) for LED control
*/
int my_fixtim()
{
window_on = 1;
framecnt = msec / 1000 * f_framerate;
return 0;
}
/***************************** alloff() **********************************
*
* both fixation point and window off, for clean state list
*/
int alloff()
{
render_onoff(&f_fpHandle, HANDLE_OFF, ONOFF_NO_FRAME);
render_onoff(&f_ff2dHandle, HANDLE_OFF, ONOFF_NO_FRAME);
render_frame(0);
wd_pos(WIND0, (long)9999, (long)9999);// disappear the window on eyd display
window_on = 0;
return 0;
}
int my_button1_toggled()
{
dots_on = 1 - dots_on;
render_onoff(&f_ff2dHandle, (dots_on ? HANDLE_ON : HANDLE_OFF), ONOFF_NO_FRAME);
dprintf("my_button1_toggled(): dots_on = %d\n", dots_on);
return 0;
}
int my_button1_reset()
{
//dots_on = 0;
//dprintf("my_button1_reset(): dots_on = %d\n", dots_on);
return 0;
}
int my_button2_toggled()
{
dir = dir + dirstep;
dir = dir % 360;
dprintf("my_button2_toggled(): dir = %d\n", dir);
return 0;
}
int my_button2_reset()
{
//joystick_enabled = 0;
//dprintf("my_button2_reset(): joystick_enabled = %d\n", joystick_enabled);
return 0;
}
int my_button3_toggled()
{
dir = dir - dirstep;
while (dir < 0) dir = dir + 360;
dprintf("my_button3_toggled(): dir = %d\n", dir);
return 0;
}
int my_button3_reset()
{
//joystick_enabled = 0;
//dprintf("my_button2_reset(): joystick_enabled = %d\n", joystick_enabled);
return 0;
}
VLIST joy_vl[] = {
"xmin(ADC)", &f_joyXMin, NP, NP, 0, ME_DEC,
"xmax(ADC)", &f_joyXMax, NP, NP, 0, ME_DEC,
"xzero(ADC)", &f_joyXZero, NP, NP, 0, ME_DEC,
"ymin(ADC)", &f_joyYMin, NP, NP, 0, ME_DEC,
"ymax(ADC)", &f_joyYMax, NP, NP, 0, ME_DEC,
"yzero(ADC)", &f_joyYZero, NP, NP, 0, ME_DEC,
"dead(ADC)", &f_joyDead, NP, NP, 0, ME_DEC,
"speed(ADC/frame)", &f_joyPixPerFrame, NP, NP, 0, ME_DEC,
"debug(0/1)", &f_joyDebug, NP, NP, 0, ME_DEC,
"debug-display-1/N", &f_joyDebugThrottle, NP, NP, 0, ME_DEC,
NS,
};
MENU joy_me =
{
"joy_params", &joy_vl, NP, NP, 0, NP, NS,
};
char hm_joy[] = "";
VLIST state_vl[] = {
"fp_x", &fixx, NP, NP, 0, ME_DEC,
"fp_y", &fixy, NP, NP, 0, ME_DEC,
"fp_size", &fpsiz, NP, NP, 0, ME_DEC,
"fp_window", &fpwinsize, NP, NP, 0, ME_DEC,
"reward", &f_reward_time, NP, NP, 0, ME_DEC,
"reward_random", &f_reward_random, NP, NP, 0, ME_DEC,
"duration", &msec, NP, NP, 0, ME_DEC,
"bg(0-255)", &bg, NP, NP, 0, ME_DEC,
"CRT_dist(mm)", &stimz, NP, NP, 0, ME_DEC,
"radius(1/10deg)?", &radius, NP, NP, 0, ME_DEC,
"dot_size(pixels)", &ptsiz, NP, NP, 0, ME_DEC,
"density?(100*d/d^2)",&density, NP, NP, 0, ME_DEC,
"coherence(0-1000)", &coh, NP, NP, 0, ME_DEC,
"speed(deg/sec) ", &speed, NP, NP, 0, ME_DEC,
"linear?(0,1)", &islinear, NP, NP, 0, ME_DEC,
"width(1/10deg)", &width, NP, NP, 0, ME_DEC,
"dot_R", &bar_R, NP, NP, 0, ME_DEC,
"dot_G", &bar_G, NP, NP, 0, ME_DEC,
"dot_B", &bar_B, NP, NP, 0, ME_DEC,
"background", &bg, NP, NP, 0, ME_DEC,
"fix_led", &fix_led, NP, NP, 0, ME_DEC,
"trials", &ntrials, NP, NP, 0, ME_DEC,
"local_ip_addr", local_addr, NP, NP, 0, ME_STR,
"remote_ip_addr", remote_addr, NP, NP, 0, ME_STR,
"remote_port", &remote_port, NP, NP, 0, ME_DEC,
NS,
};
VLIST fp_vl[] = {
"fixpt_R", &fpred, NP, NP, 0, ME_DEC,
"fixpt_G", &fpgreen, NP, NP, 0, ME_DEC,
"fixpt_B", &fpblue, NP, NP, 0, ME_DEC,
"background", &bg, NP, NP, 0, ME_DEC,
"dot_R", &bar_R, NP, NP, 0, ME_DEC,
"dot_G", &bar_G, NP, NP, 0, ME_DEC,
"dot_B", &bar_B, NP, NP, 0, ME_DEC,
NS,
};
char hm_fp[] = "";
// "stim_params", &stim_me, NP, NP, 0, ME_SUBMENU,
/*
* Help message.
*/
char hm_sv_vl[] = "";
MENU umenus[] = {
{"state_vars", &state_vl, NP, NP, 0, NP, hm_sv_vl},
{"separator", NP},
{"fp_vars", &fp_vl, NP, NP, 0, NP, hm_fp},
{"joy vars", &joy_vl, NP, NP, 0, NP, hm_joy},
{NS},
};
#define TESTF(a) ((a)*100)
/*
* User-supplied noun table.
*/
NOUN unouns[] = {
"",
};
%%
id 10
restart rinitf
main_set {
status ON
begin first:
code STARTCD
rl 0
to sendping
sendping:
rl 5
do render_send_ping()
to waitping
waitping:
rl 10
time 100
to checkping
checkping:
rl 15
to reset on 1 % render_check_for_ping
to pauseping
pauseping:
rl 20
time 1000
to sendping
reset:
rl 25
do render_reset()
to initial
initial:
do initial()
to pause1
pause1:
to pause2 on +PSTOP & softswitch
to initial on -PSTOP & softswitch
pause2:
code PAUSECD
to confall on -PSTOP & softswitch
confall:
do my_conf_all()
to loop on 1 % my_check_for_handles
loop:
time 100
to pause3
pause3:
to pause4 on +PSTOP & softswitch
to isi on -PSTOP & softswitch
pause4:
code PAUSECD
to isi on -PSTOP & softswitch
isi:
time 1000
to fpon
fpon:
code FIXASK
do fpask()
to winon on 1 % my_check_for_went
winon:
code FPONCD
do winon()
time 20
to grace
grace:
time 4000
to fixtim on -WD0_XY & eyeflag
to off
off:
do alloff()
to loop on 1 % my_check_for_went
fixtim:
time 150
rl 20
do my_fixtim()
to noise on +WD0_XY & eyeflag
to dncnt
noise:
do alloff()
to loop on 1 % my_check_for_went
dncnt:
do dottie_update();
to bad on +WD0_XY & eyeflag
to fpoff on 0 ? framecnt
to dottie_wait
dottie_wait:
to dncnt on 1 % my_check_for_went
fpoff:
do alloff()
rl 10
to good on 1 % my_check_for_went
bad:
do alloff()
to punish on 1 % my_check_for_went
punish:
code BREAKFIXCD
do trcount(FALSE)
to beep
beep:
do dio_on(BEEP)
time 1000
to bpoff
bpoff:
do dio_off(BEEP)
to timout
timout:
time 1000
to trlend
good:
do trcount(TRUE)
to reward
reward:
code REWCD
do dio_on(REW)
time 50
to rewoff
rewoff:
do dio_off(REW)
to trlend
trlend:
to blkdone on 0 ? remain
to loop
blkdone:
rl 0
to pause1 on 0 < remain
abort list:
initial
}
button1_set {
status ON
begin no_op1:
to wait_for_button1_fix
wait_for_button1_fix:
to wait_for_button1_down on 1 = window_on
wait_for_button1_down:
to wait_for_button1_up on -BUTTON1 & dina
to button1_reset on 0 = window_on
wait_for_button1_up:
to button1_toggled on +BUTTON1 & dina
to button1_reset on 0 = window_on
button1_toggled:
do my_button1_toggled()
to wait_for_button1_down
button1_reset:
do my_button1_reset()
to wait_for_button1_fix
}
button2_set {
status ON
begin no_op2:
to wait_for_button2_down
wait_for_button2_down:
to wait_for_button2_up on -BUTTON2 & dina
wait_for_button2_up:
to button2_toggled on +BUTTON2 & dina
button2_toggled:
do my_button2_toggled()
to wait_for_button2_down
}
button3_set {
status ON
begin no_op3:
to wait_for_button3_down
wait_for_button3_down:
to wait_for_button3_up on -BUTTON3 & dina
wait_for_button3_up:
to button3_toggled on +BUTTON3 & dina
button3_toggled:
do my_button3_toggled()
to wait_for_button3_down
}
/*
* Auxiliary set for LED control
* used for fixation monitoring
*/
fixled_set{
status ON
begin led_control:
to led_off on 1 = fix_led
led_on:
do dio_on(FIX_LED)
to led_off on 0 = window_on
led_off:
do dio_off(FIX_LED)
to led_on on 1 = window_on
}
|
D
|
a dangerous state of affairs
a box for holding tinder
|
D
|
/Users/apple/rCore_OS_Autumn/os/target/rls/debug/deps/riscv_target-f742b54fa409ef8f.rmeta: /Users/apple/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/riscv-target-0.1.2/src/lib.rs
/Users/apple/rCore_OS_Autumn/os/target/rls/debug/deps/libriscv_target-f742b54fa409ef8f.rlib: /Users/apple/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/riscv-target-0.1.2/src/lib.rs
/Users/apple/rCore_OS_Autumn/os/target/rls/debug/deps/riscv_target-f742b54fa409ef8f.d: /Users/apple/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/riscv-target-0.1.2/src/lib.rs
/Users/apple/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/riscv-target-0.1.2/src/lib.rs:
|
D
|
module libxlsxd.test3;
import libxlsxd.xlsxwrap;
import libxlsxd.workbook;
import libxlsxd.worksheet;
import libxlsxd.format;
import libxlsxd.chart;
import libxlsxd.chartsheet;
import libxlsxd.docproperties;
import libxlsxd.chartseries;
import libxlsxd.chartaxis;
import libxlsxd.datetime;
import libxlsxd.types;
@safe unittest {
import std.traits : isCallable, isFunction, isPointer, isSomeFunction;
import std.meta : AliasSeq;
import std.format : format;
import std.conv : to;
import std.stdio;
version(No_Overloads_Or_Templates) {
// make sure no member function is overloaded
static foreach(T; AliasSeq!(WorkbookOpen,Worksheet,Format, Chart,
Chartaxis, Chartseries, Chartsheet, DocProperties, Datetime
))
{
static foreach(mem; __traits(allMembers, T)) {{
static if (is(typeof(__traits(getMember, T.init, mem)))) {
enum bool isf =
isSomeFunction!(__traits(getMember, T.init, mem));
static if(isf) {{
enum prot = __traits(getProtection,
__traits(getMember, T.init, mem));
static if (prot == "public") {{
alias over = typeof(__traits(getOverloads, T, mem));
static assert(over.length == 1, format(
"%s.%s overload set size %s",
T.stringof, mem, over.length));
}}
}}
}
}}
}
}
}
|
D
|
module crypto.blockcipher.blockcipher;
public interface BlockCipher
{
public void encrypt(ubyte[] message);
public void decrypt(ubyte[] cipher);
@property public const size_t blockSize();
}
|
D
|
int add_one( int i )
in
{
assert( i > 0 );
}
out( result )
{
assert( result == i + 1 );
}
body
{
return i + 1;
}
class Date
{
int day;
int hour;
invariant
{
assert( 1 <= day && day <= 31 );
assert( 0 <= hour && hour < 24 );
}
}
|
D
|
/Users/asatyamurthy/Desktop/PhunwareHW/build/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/Upload.o : /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Alamofire.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Download.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Error.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Manager.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/MultipartFormData.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Notifications.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/ParameterEncoding.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Request.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Response.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/ResponseSerialization.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Result.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/ServerTrustPolicy.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Stream.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Timeline.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Upload.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Validation.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/asatyamurthy/Desktop/PhunwareHW/build/Pods.build/Debug-iphonesimulator/Alamofire.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/asatyamurthy/Desktop/PhunwareHW/build/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/Upload~partial.swiftmodule : /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Alamofire.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Download.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Error.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Manager.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/MultipartFormData.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Notifications.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/ParameterEncoding.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Request.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Response.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/ResponseSerialization.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Result.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/ServerTrustPolicy.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Stream.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Timeline.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Upload.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Validation.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/asatyamurthy/Desktop/PhunwareHW/build/Pods.build/Debug-iphonesimulator/Alamofire.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/asatyamurthy/Desktop/PhunwareHW/build/Pods.build/Debug-iphonesimulator/Alamofire.build/Objects-normal/x86_64/Upload~partial.swiftdoc : /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Alamofire.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Download.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Error.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Manager.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/MultipartFormData.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/NetworkReachabilityManager.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Notifications.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/ParameterEncoding.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Request.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Response.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/ResponseSerialization.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Result.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/ServerTrustPolicy.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Stream.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Timeline.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Upload.swift /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Alamofire/Source/Validation.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/asatyamurthy/Desktop/PhunwareHW/Pods/Target\ Support\ Files/Alamofire/Alamofire-umbrella.h /Users/asatyamurthy/Desktop/PhunwareHW/build/Pods.build/Debug-iphonesimulator/Alamofire.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
|
instance DIA_Addon_Francis_EXIT(C_Info)
{
npc = PIR_1350_Addon_Francis;
nr = 999;
condition = DIA_Addon_Francis_EXIT_Condition;
information = DIA_Addon_Francis_EXIT_Info;
permanent = TRUE;
description = Dialog_Ende;
};
func int DIA_Addon_Francis_EXIT_Condition()
{
if(GregIsBack == FALSE)
{
return TRUE;
};
};
func void DIA_Addon_Francis_EXIT_Info()
{
AI_StopProcessInfos(self);
};
instance DIA_Addon_Francis_First(C_Info)
{
npc = PIR_1350_Addon_Francis;
nr = 1;
condition = DIA_Addon_Francis_First_Condition;
information = DIA_Addon_Francis_First_Info;
permanent = FALSE;
description = "Is this your hut?";
};
func int DIA_Addon_Francis_First_Condition()
{
if((Knows_GregsHut == FALSE) && (Francis_ausgeschissen == FALSE) && Npc_HasItems(self,ITKE_Greg_ADDON_MIS))
{
return TRUE;
};
};
func void DIA_Addon_Francis_First_Info()
{
AI_Output(other,self,"DIA_Addon_Francis_GregsHut_15_00"); //Is this your hut?
AI_Output(self,other,"DIA_Addon_Francis_GregsHut_13_01"); //No, it belongs to Greg.
Knows_GregsHut = TRUE;
};
instance DIA_Addon_Francis_LetMeIn(C_Info)
{
npc = PIR_1350_Addon_Francis;
nr = 2;
condition = DIA_Addon_Francis_LetMeIn_Condition;
information = DIA_Addon_Francis_LetMeIn_Info;
permanent = FALSE;
description = "I must get into Greg's hut.";
};
func int DIA_Addon_Francis_LetMeIn_Condition()
{
if((Npc_KnowsInfo(other,DIA_Addon_Francis_First) || (Knows_GregsHut == TRUE)) && (Francis_ausgeschissen == FALSE) && Npc_HasItems(self,ITKE_Greg_ADDON_MIS))
{
return TRUE;
};
};
func void DIA_Addon_Francis_LetMeIn_Info()
{
AI_Output(other,self,"DIA_Addon_Francis_LetMeIn_15_00"); //I must get into Greg's hut.
AI_Output(self,other,"DIA_Addon_Francis_LetMeIn_13_01"); //Forget it!
AI_Output(self,other,"DIA_Addon_Francis_LetMeIn_13_02"); //Greg's not there. And I've locked the door and see to it that nobody sneaks around here to do a little looting.
AI_Output(self,other,"DIA_Addon_Francis_LetMeIn_13_03"); //So make yourself scarce, or I'll let you have it!
};
instance DIA_Addon_Francis_AboutGreg(C_Info)
{
npc = PIR_1350_Addon_Francis;
nr = 3;
condition = DIA_Addon_Francis_AboutGreg_Condition;
information = DIA_Addon_Francis_AboutGreg_Info;
permanent = FALSE;
description = "Greg is your boss?";
};
func int DIA_Addon_Francis_AboutGreg_Condition()
{
if(Npc_KnowsInfo(other,DIA_Addon_Francis_LetMeIn) && (Francis_ausgeschissen == FALSE))
{
return TRUE;
};
};
func void DIA_Addon_Francis_AboutGreg_Info()
{
AI_Output(other,self,"DIA_Addon_Francis_AboutGreg_15_00"); //Greg is your boss?
AI_Output(self,other,"DIA_Addon_Francis_AboutGreg_13_01"); //Now don't try and tell me that you know him!
AI_Output(self,other,"DIA_Addon_Francis_AboutGreg_13_02"); //Any sailor - even any cursed landlubber on this island - knows the terrible Cap'n Greg!
AI_Output(self,other,"DIA_Addon_Francis_AboutGreg_13_03"); //(snootily) And he left ME in command!
AI_Output(self,other,"DIA_Addon_Francis_AboutGreg_13_04"); //I'm responsible for making those lazy bums do what he commanded!
AI_Output(self,other,"DIA_Addon_Francis_AboutGreg_13_05"); //Some of the boys may think they can do whatever they bloody well want now that the Captain's not here.
AI_Output(self,other,"DIA_Addon_Francis_AboutGreg_13_06"); //Won't THEY be surprised when Greg comes back.
AI_Output(self,other,"DIA_Addon_Francis_AboutGreg_13_07"); //I'll tell him everything that's been going on here, got it?
AI_Output(self,other,"DIA_Addon_Francis_AboutGreg_13_08"); //Including who's been trying to get into his hut.
AI_Output(self,other,"DIA_Addon_Francis_AboutGreg_13_09"); //So make yourself scarce, or you'll be in a load of trouble.
};
var int Francis_bezahlt;
instance DIA_Addon_Francis_Key(C_Info)
{
npc = PIR_1350_Addon_Francis;
nr = 4;
condition = DIA_Addon_Francis_Key_Condition;
information = DIA_Addon_Francis_Key_Info;
permanent = TRUE;
description = "Give me the key to Greg's hut!";
};
func int DIA_Addon_Francis_Key_Condition()
{
if(Npc_KnowsInfo(other,DIA_Addon_Francis_LetMeIn) && Npc_HasItems(self,ITKE_Greg_ADDON_MIS))
{
return TRUE;
};
};
func void DIA_Addon_Francis_Key_Info()
{
AI_Output(other,self,"DIA_Addon_Francis_Key_15_00"); //Give me the key to Greg's hut!
AI_Output(self,other,"DIA_Addon_Francis_Key_13_01"); //You must be joking!
Info_ClearChoices(DIA_Addon_Francis_Key);
Info_AddChoice(DIA_Addon_Francis_Key,"I'll think about it...",DIA_Addon_Francis_Key_BACK);
Info_AddChoice(DIA_Addon_Francis_Key,"I'll give you 2000 gold pieces!",DIA_Addon_Francis_Key_2000Gold);
Info_AddChoice(DIA_Addon_Francis_Key,"I'll give you 1000 gold pieces!",DIA_Addon_Francis_Key_1000Gold);
};
func void DIA_Addon_Francis_Key_BACK()
{
Info_ClearChoices(DIA_Addon_Francis_Key);
};
func void DIA_Addon_Francis_Key_1000Gold()
{
AI_Output(other,self,"DIA_Addon_Francis_Key_1000Gold_15_00"); //I'll give you 1000 gold pieces!
AI_Output(self,other,"DIA_Addon_Francis_Key_1000Gold_13_01"); //That's not quite enough to make me betray my Captain, I'm afraid.
AI_Output(self,other,"DIA_Addon_Francis_Key_1000Gold_13_02"); //Be careful what you say, or I'll have your hide!
};
func void DIA_Addon_Francis_Key_2000Gold()
{
AI_Output(other,self,"DIA_Addon_Francis_Key_2000Gold_15_00"); //I'll give you 2000 gold pieces!
if(Npc_HasItems(other,ItMi_Gold) >= 2000)
{
AI_Output(self,other,"DIA_Addon_Francis_Key_2000Gold_13_01"); //Boy, what you're asking for is mutiny.
AI_Output(self,other,"DIA_Addon_Francis_Key_2000Gold_13_02"); //(to himself) But, on second thought ...
AI_Output(self,other,"DIA_Addon_Francis_Key_2000Gold_13_03"); //Oh well, give it here. No-one needs to know.
AI_Output(self,other,"DIA_Addon_Francis_Key_2000Gold_13_04"); //Here's the key!
AI_Output(self,other,"DIA_Addon_Francis_Key_2000Gold_13_05"); //But hurry up before Greg comes back. And not a word to the others, understood?!
B_GiveInvItems(other,self,ItMi_Gold,2000);
B_GiveInvItems(self,other,ITKE_Greg_ADDON_MIS,1);
Francis_bezahlt = TRUE;
}
else
{
AI_Output(self,other,"DIA_Addon_FrancisNotEnoughGold_13_05"); //(laughs) Ha! I bet you don't have that much!
};
Info_ClearChoices(DIA_Addon_Francis_Key);
};
instance DIA_Addon_Francis_AufsMaul(C_Info)
{
npc = PIR_1350_Addon_Francis;
nr = 5;
condition = DIA_Addon_Francis_AufsMaul_Condition;
information = DIA_Addon_Francis_AufsMaul_Info;
permanent = TRUE;
description = "Well, then, let's see what you've got.";
};
func int DIA_Addon_Francis_AufsMaul_Condition()
{
if(Npc_KnowsInfo(other,DIA_Addon_Francis_LetMeIn) && Npc_HasItems(self,ITKE_Greg_ADDON_MIS))
{
return TRUE;
};
};
func void DIA_Addon_Francis_AufsMaul_Info()
{
AI_Output(other,self,"DIA_Addon_Francis_AufsMaul_15_00"); //Well, then, let's see what you've got.
AI_Output(self,other,"DIA_Addon_Francis_AufsMaul_13_01"); //(shrilly) What? I'm the Captain here!
AI_Output(self,other,"DIA_Addon_Francis_AufsMaul_13_02"); //I'll teach you respect, you landlubber!
AI_StopProcessInfos(self);
B_Attack(self,other,AR_NONE,1);
};
instance DIA_Addon_Francis_Buch(C_Info)
{
npc = PIR_1350_Addon_Francis;
nr = 5;
condition = DIA_Addon_Francis_Buch_Condition;
information = DIA_Addon_Francis_Buch_Info;
permanent = TRUE;
description = "I found your cache...";
};
func int DIA_Addon_Francis_Buch_Condition()
{
if(Npc_HasItems(other,ITWR_Addon_FrancisAbrechnung_Mis))
{
return TRUE;
};
};
func void DIA_Addon_Francis_Buch_Info()
{
AI_Output(other,self,"DIA_Addon_Francis_Key_Business_15_03"); //I found your hiding-place. Your treasure and your paybook. This is your book, isn't it?
AI_Output(self,other,"DIA_Addon_Francis_Buch_13_01"); //Er ... I've never seen this book before.
AI_Output(self,other,"DIA_Addon_Francis_Buch_13_02"); //And ... Er ... even IF this were my book ...
AI_Output(self,other,"DIA_Addon_Francis_Buch_13_03"); //You don't REALLY believe the lads will buy YOUR story based on a few yellowed pages, do you?
AI_Output(other,self,"DIA_Addon_Francis_Key_Business_15_01"); //You cheated them all out of their shares.
AI_Output(self,other,"DIA_Addon_Francis_Buch_13_04"); //Er ... wait a minute ...
if(Npc_HasItems(self,ITKE_Greg_ADDON_MIS))
{
if(Npc_KnowsInfo(other,DIA_Addon_Francis_LetMeIn))
{
AI_Output(self,other,"DIA_Addon_Francis_Buch_13_05"); //(slimily) You wanted the key to Greg's hut, didn't you?
};
AI_Output(self,other,"DIA_Addon_Francis_Buch_13_06"); //I'll GIVE you the key to Greg's hut!
AI_Output(self,other,"DIA_Addon_Francis_Buch_13_07"); //There's plenty of valuable stuff in there ...
AI_Output(self,other,"DIA_Addon_Francis_Buch_13_08"); //(nervously) But you'll give me the book and keep your trap shut, right?
B_GiveInvItems(other,self,ITWR_Addon_FrancisAbrechnung_Mis,1);
B_GiveInvItems(self,other,ITKE_Greg_ADDON_MIS,1);
}
else
{
AI_Output(self,other,"DIA_Addon_Francis_Buch_13_09"); //Just don't do anything stupid!
if((Francis_bezahlt == TRUE) && (Npc_HasItems(self,ItMi_Gold) >= 2000))
{
AI_Output(self,other,"DIA_Addon_Francis_Buch_13_10"); //Here's your 2000 pieces of gold!
AI_Output(self,other,"DIA_Addon_Francis_Buch_13_11"); //And I'll add another 500.
B_GiveInvItems(self,other,ItMi_Gold,2500);
}
else
{
AI_Output(self,other,"DIA_Addon_Francis_Buch_13_12"); //Here's 500 gold pieces!
B_GiveInvItems(self,other,ItMi_Gold,500);
};
AI_Output(self,other,"DIA_Addon_Francis_Buch_13_13"); //(hastily) And now give me that thing ...
B_GiveInvItems(other,self,ITWR_Addon_FrancisAbrechnung_Mis,1);
};
AI_StopProcessInfos(self);
};
instance DIA_Francis_PICKPOCKET(C_Info)
{
npc = PIR_1350_Addon_Francis;
nr = 900;
condition = DIA_Francis_PICKPOCKET_Condition;
information = DIA_Francis_PICKPOCKET_Info;
permanent = TRUE;
description = "(It would be easy to steal his key)";
};
func int DIA_Francis_PICKPOCKET_Condition()
{
if((Npc_GetTalentSkill(other,NPC_TALENT_PICKPOCKET) == 1) && (self.aivar[AIV_PlayerHasPickedMyPocket] == FALSE) && (Npc_HasItems(self,ITKE_Greg_ADDON_MIS) >= 1) && (other.attribute[ATR_DEXTERITY] >= (40 - Theftdiff)))
{
return TRUE;
};
};
func void DIA_Francis_PICKPOCKET_Info()
{
Info_ClearChoices(DIA_Francis_PICKPOCKET);
Info_AddChoice(DIA_Francis_PICKPOCKET,Dialog_Back,DIA_Francis_PICKPOCKET_BACK);
Info_AddChoice(DIA_Francis_PICKPOCKET,DIALOG_PICKPOCKET,DIA_Francis_PICKPOCKET_DoIt);
};
func void DIA_Francis_PICKPOCKET_DoIt()
{
if(other.attribute[ATR_DEXTERITY] >= 40)
{
B_GiveInvItems(self,other,ITKE_Greg_ADDON_MIS,1);
self.aivar[AIV_PlayerHasPickedMyPocket] = TRUE;
B_GivePlayerXP(XP_Ambient);
Info_ClearChoices(DIA_Francis_PICKPOCKET);
}
else
{
AI_StopProcessInfos(self);
B_Attack(self,other,AR_Theft,1);
};
Info_ClearChoices(DIA_Francis_PICKPOCKET);
};
func void DIA_Francis_PICKPOCKET_BACK()
{
Info_ClearChoices(DIA_Francis_PICKPOCKET);
};
instance DIA_Francis_Ausgeschissen(C_Info)
{
npc = PIR_1350_Addon_Francis;
nr = 900;
condition = DIA_Francis_Ausgeschissen_Condition;
information = DIA_Francis_Ausgeschissen_Info;
permanent = TRUE;
important = TRUE;
};
func int DIA_Francis_Ausgeschissen_Condition()
{
if((Francis_ausgeschissen == TRUE) && Npc_IsInState(self,ZS_Talk))
{
return TRUE;
};
};
func void DIA_Francis_Ausgeschissen_Info()
{
if(!Npc_IsDead(Greg))
{
AI_Output(self,other,"DIA_Addon_Francis_Ausgeschissen_13_00"); //(furious) Thanks to you, Greg is making me saw planks now until there's no wood left on the island.
};
AI_Output(self,other,"DIA_Addon_Francis_Ausgeschissen_13_01"); //Just leave me alone!
AI_StopProcessInfos(self);
};
|
D
|
/*
* Collie - An asynchronous event-driven network framework using Dlang development
*
* Copyright (C) 2015-2016 Shanghai Putao Technology Co., Ltd
*
* Developer: putao's Dlang team
*
* Licensed under the Apache-2.0 License.
*
*/
module collie.socket.timer;
import core.memory;
import core.sys.posix.time;
import std.socket : socket_t;
import collie.socket.common;
import collie.socket.eventloop;
import collie.utils.functional;
final class Timer : EventCallInterface
{
this(EventLoop loop)
{
_loop = loop;
_event = AsyncEvent.create(AsynType.TIMER, this);
}
~this()
{
import core.sys.posix.unistd;
if (_event.isActive)
{
_loop.delEvent(_event);
close(_event.fd);
}
AsyncEvent.free(_event);
}
pragma(inline,true)
@property bool isActive()
{
return _event.isActive;
}
pragma(inline)
void setCallBack(CallBack cback)
{
_callBack = cback;
}
bool start(ulong msesc)
{
import collie.socket.selector.epoll;
// _timeout = msesc;
if (isActive() || msesc < 2)
return false;
_event.fd = cast(socket_t) timerfd_create(CLOCK_MONOTONIC, TFD_CLOEXEC | TFD_NONBLOCK);
itimerspec its;
ulong sec, nsec;
sec = msesc / 1000;
nsec = (msesc % 1000) * 1_000_000;
its.it_value.tv_sec = cast(typeof(its.it_value.tv_sec)) sec;
its.it_value.tv_nsec = cast(typeof(its.it_value.tv_nsec)) nsec;
its.it_interval.tv_sec = its.it_value.tv_sec;
its.it_interval.tv_nsec = its.it_value.tv_nsec;
int err = timerfd_settime(_event.fd, 0, &its, null);
if (err == -1)
{
import core.sys.posix.unistd;
close(_event.fd);
return false;
}
_loop.addEvent(_event);
return true;
}
pragma(inline)
void stop()
{
if (isActive())
{
_loop.post(&onClose);
}
}
protected:
override void onRead() nothrow
{
import core.sys.posix.unistd;
ulong value;
read(_event.fd, &value, 8);
if (_callBack)
{
try
{
_callBack();
}
catch
{
}
}
else
{
onClose();
}
}
override void onWrite() nothrow
{
}
override void onClose() nothrow
{
import core.sys.posix.unistd;
_loop.delEvent(_event);
close(_event.fd);
}
private:
// ulong _timeout;
CallBack _callBack;
AsyncEvent* _event = null;
EventLoop _loop;
}
unittest
{
import std.stdio;
import std.datetime;
EventLoop loop = new EventLoop();
Timer tm = new Timer(loop);
int cout = -1;
ulong time;
void timeout()
{
writeln("time : ", Clock.currTime().toSimpleString());
++cout;
if (cout == 0)
{
time = Clock.currTime().toUnixTime!long();
return;
}
++time;
assert(time == Clock.currTime().toUnixTime!long());
if (cout > 5)
{
tm.stop();
loop.stop();
}
}
tm.setCallBack(&timeout);
tm.start(1000);
loop.run();
}
|
D
|
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric;
void main()
{
auto N = readln.chomp.to!int;
bool[string] res;
foreach (_; 0..N) {
res[readln.chomp] = true;
}
writeln(res.length);
}
|
D
|
class BoardState {
}
|
D
|
void main() {
auto S = rs;
bool flag = true;
if(S[0] != 'A') flag = false;
ulong tmp;
foreach(i; 2..S.length-1) {
tmp += S[i] == 'C';
}
if(flag) {
ulong tmp2;
foreach(i; S) {
if(i.isUpper) tmp2++;
}
if(tmp2!=2) flag = false;
}
if(tmp != 1) flag = false;
writeln(flag ? "AC" : "WA");
}
// ===================================
import std.stdio;
import std.string;
import std.functional;
import std.conv;
import std.algorithm;
import std.range;
import std.traits;
import std.math;
import std.container;
import std.bigint;
import std.numeric;
import std.conv;
import std.typecons;
import std.ascii;
import std.bitmanip;
import core.bitop;
T readAs(T)() if (isBasicType!T) {
return readln.chomp.to!T;
}
T readAs(T)() if (isArray!T) {
return readln.split.to!T;
}
T[][] readMatrix(T)(uint height, uint width) if (!isSomeChar!T) {
auto res = new T[][](height, width);
foreach(i; 0..height) {
res[i] = readAs!(T[]);
}
return res;
}
T[][] readMatrix(T)(uint height, uint width) if (isSomeChar!T) {
auto res = new T[][](height, width);
foreach(i; 0..height) {
auto s = rs;
foreach(j; 0..width) res[i][j] = s[j].to!T;
}
return res;
}
int ri() {
return readAs!int;
}
double rd() {
return readAs!double;
}
string rs() {
return readln.chomp;
}
|
D
|
module org.serviio.library.service;
public import org.serviio.library.service.AccessGroupService;
public import org.serviio.library.service.Service;
|
D
|
/Users/oyo02699/apps/easycrm/easycrm-api/target/rls/debug/deps/diesel-c9fc099a90c954a6.rmeta: /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/lib.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/macros/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/macros/internal.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/macros/query_id.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/macros/static_cond.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/macros/ops.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/macros/tuples.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/associations/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/associations/belongs_to.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/backend.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/connection/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/connection/statement_cache.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/connection/transaction_manager.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/data_types.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/deserialize.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/ops/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/ops/numeric.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/functions/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/functions/aggregate_folding.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/functions/aggregate_ordering.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/functions/date_and_time.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/functions/helper_types.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/array_comparison.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/bound.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/coerce.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/count.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/exists.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/grouped.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/helper_types.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/not.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/nullable.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/operators.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/sql_literal.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/subselect.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression_methods/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression_methods/bool_expression_methods.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression_methods/eq_all.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression_methods/escape_expression_methods.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression_methods/global_expression_methods.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression_methods/text_expression_methods.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/insertable.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/query_id.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/clause_macro.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/ast_pass.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/bind_collector.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/debug_query.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/delete_statement/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/distinct_clause.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/functions.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/group_by_clause.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/insert_statement/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/insert_statement/column_list.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/insert_statement/insert_from_select.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/limit_clause.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/locking_clause.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/nodes/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/offset_clause.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/order_clause.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/returning_clause.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/select_clause.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/select_statement/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/select_statement/boxed.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/select_statement/dsl_impls.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/sql_query.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/update_statement/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/update_statement/changeset.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/update_statement/target.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/where_clause.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/belonging_to_dsl.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/boxed_dsl.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/distinct_dsl.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/filter_dsl.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/group_by_dsl.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/join_dsl.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/limit_dsl.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/load_dsl.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/locking_dsl.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/nullable_select_dsl.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/offset_dsl.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/order_dsl.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/save_changes_dsl.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/select_dsl.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/single_value_dsl.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_source/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_source/joins.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_source/peano_numbers.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/result.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/serialize.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/sql_types/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/sql_types/fold.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/sql_types/ops.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/sql_types/ord.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/migration/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/migration/errors.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/row.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/types/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/backend.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/bind_collector.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/connection/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/connection/bind.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/connection/raw.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/connection/stmt/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/connection/stmt/iterator.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/connection/stmt/metadata.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/connection/url.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/query_builder/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/query_builder/query_fragment_impls.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/types/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/types/date_and_time.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/types/numeric.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/type_impls/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/type_impls/date_and_time.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/type_impls/decimal.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/type_impls/floats.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/type_impls/integers.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/type_impls/option.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/type_impls/primitives.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/type_impls/tuples.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/util.rs
/Users/oyo02699/apps/easycrm/easycrm-api/target/rls/debug/deps/diesel-c9fc099a90c954a6.d: /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/lib.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/macros/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/macros/internal.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/macros/query_id.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/macros/static_cond.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/macros/ops.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/macros/tuples.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/associations/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/associations/belongs_to.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/backend.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/connection/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/connection/statement_cache.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/connection/transaction_manager.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/data_types.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/deserialize.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/ops/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/ops/numeric.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/functions/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/functions/aggregate_folding.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/functions/aggregate_ordering.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/functions/date_and_time.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/functions/helper_types.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/array_comparison.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/bound.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/coerce.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/count.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/exists.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/grouped.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/helper_types.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/not.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/nullable.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/operators.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/sql_literal.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/subselect.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression_methods/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression_methods/bool_expression_methods.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression_methods/eq_all.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression_methods/escape_expression_methods.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression_methods/global_expression_methods.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression_methods/text_expression_methods.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/insertable.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/query_id.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/clause_macro.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/ast_pass.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/bind_collector.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/debug_query.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/delete_statement/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/distinct_clause.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/functions.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/group_by_clause.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/insert_statement/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/insert_statement/column_list.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/insert_statement/insert_from_select.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/limit_clause.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/locking_clause.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/nodes/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/offset_clause.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/order_clause.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/returning_clause.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/select_clause.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/select_statement/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/select_statement/boxed.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/select_statement/dsl_impls.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/sql_query.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/update_statement/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/update_statement/changeset.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/update_statement/target.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/where_clause.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/belonging_to_dsl.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/boxed_dsl.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/distinct_dsl.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/filter_dsl.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/group_by_dsl.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/join_dsl.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/limit_dsl.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/load_dsl.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/locking_dsl.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/nullable_select_dsl.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/offset_dsl.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/order_dsl.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/save_changes_dsl.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/select_dsl.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/single_value_dsl.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_source/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_source/joins.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_source/peano_numbers.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/result.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/serialize.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/sql_types/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/sql_types/fold.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/sql_types/ops.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/sql_types/ord.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/migration/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/migration/errors.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/row.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/types/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/backend.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/bind_collector.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/connection/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/connection/bind.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/connection/raw.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/connection/stmt/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/connection/stmt/iterator.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/connection/stmt/metadata.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/connection/url.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/query_builder/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/query_builder/query_fragment_impls.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/types/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/types/date_and_time.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/types/numeric.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/type_impls/mod.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/type_impls/date_and_time.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/type_impls/decimal.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/type_impls/floats.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/type_impls/integers.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/type_impls/option.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/type_impls/primitives.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/type_impls/tuples.rs /Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/util.rs
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/lib.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/macros/mod.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/macros/internal.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/macros/query_id.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/macros/static_cond.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/macros/ops.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/macros/tuples.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/associations/mod.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/associations/belongs_to.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/backend.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/connection/mod.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/connection/statement_cache.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/connection/transaction_manager.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/data_types.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/deserialize.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/mod.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/ops/mod.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/ops/numeric.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/functions/mod.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/functions/aggregate_folding.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/functions/aggregate_ordering.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/functions/date_and_time.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/functions/helper_types.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/array_comparison.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/bound.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/coerce.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/count.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/exists.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/grouped.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/helper_types.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/not.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/nullable.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/operators.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/sql_literal.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression/subselect.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression_methods/mod.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression_methods/bool_expression_methods.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression_methods/eq_all.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression_methods/escape_expression_methods.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression_methods/global_expression_methods.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/expression_methods/text_expression_methods.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/insertable.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/mod.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/query_id.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/clause_macro.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/ast_pass.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/bind_collector.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/debug_query.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/delete_statement/mod.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/distinct_clause.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/functions.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/group_by_clause.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/insert_statement/mod.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/insert_statement/column_list.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/insert_statement/insert_from_select.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/limit_clause.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/locking_clause.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/nodes/mod.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/offset_clause.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/order_clause.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/returning_clause.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/select_clause.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/select_statement/mod.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/select_statement/boxed.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/select_statement/dsl_impls.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/sql_query.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/update_statement/mod.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/update_statement/changeset.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/update_statement/target.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_builder/where_clause.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/mod.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/belonging_to_dsl.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/boxed_dsl.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/distinct_dsl.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/filter_dsl.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/group_by_dsl.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/join_dsl.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/limit_dsl.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/load_dsl.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/locking_dsl.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/nullable_select_dsl.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/offset_dsl.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/order_dsl.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/save_changes_dsl.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/select_dsl.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_dsl/single_value_dsl.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_source/mod.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_source/joins.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/query_source/peano_numbers.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/result.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/serialize.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/sql_types/mod.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/sql_types/fold.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/sql_types/ops.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/sql_types/ord.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/migration/mod.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/migration/errors.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/row.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/types/mod.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/mod.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/backend.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/bind_collector.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/connection/mod.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/connection/bind.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/connection/raw.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/connection/stmt/mod.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/connection/stmt/iterator.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/connection/stmt/metadata.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/connection/url.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/query_builder/mod.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/query_builder/query_fragment_impls.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/types/mod.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/types/date_and_time.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/mysql/types/numeric.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/type_impls/mod.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/type_impls/date_and_time.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/type_impls/decimal.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/type_impls/floats.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/type_impls/integers.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/type_impls/option.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/type_impls/primitives.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/type_impls/tuples.rs:
/Users/oyo02699/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/diesel-1.4.5/src/util.rs:
|
D
|
/Users/sunww/GitHub/DanmuSwift/build/Intermediates/DanmuSwift.build/Debug-iphonesimulator/DanmuSwift.build/Objects-normal/x86_64/DanmuDefine.o : /Users/sunww/GitHub/DanmuSwift/DanmuSwift/DanmuManage/DanmuManage.swift /Users/sunww/GitHub/DanmuSwift/DanmuSwift/DanmuManage/DanmuDefine.swift /Users/sunww/GitHub/DanmuSwift/DanmuSwift/AppDelegate.swift /Users/sunww/GitHub/DanmuSwift/DanmuSwift/ViewController.swift /Users/sunww/GitHub/DanmuSwift/DanmuSwift/DanmuManage/DanmuView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule
/Users/sunww/GitHub/DanmuSwift/build/Intermediates/DanmuSwift.build/Debug-iphonesimulator/DanmuSwift.build/Objects-normal/x86_64/DanmuDefine~partial.swiftmodule : /Users/sunww/GitHub/DanmuSwift/DanmuSwift/DanmuManage/DanmuManage.swift /Users/sunww/GitHub/DanmuSwift/DanmuSwift/DanmuManage/DanmuDefine.swift /Users/sunww/GitHub/DanmuSwift/DanmuSwift/AppDelegate.swift /Users/sunww/GitHub/DanmuSwift/DanmuSwift/ViewController.swift /Users/sunww/GitHub/DanmuSwift/DanmuSwift/DanmuManage/DanmuView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule
/Users/sunww/GitHub/DanmuSwift/build/Intermediates/DanmuSwift.build/Debug-iphonesimulator/DanmuSwift.build/Objects-normal/x86_64/DanmuDefine~partial.swiftdoc : /Users/sunww/GitHub/DanmuSwift/DanmuSwift/DanmuManage/DanmuManage.swift /Users/sunww/GitHub/DanmuSwift/DanmuSwift/DanmuManage/DanmuDefine.swift /Users/sunww/GitHub/DanmuSwift/DanmuSwift/AppDelegate.swift /Users/sunww/GitHub/DanmuSwift/DanmuSwift/ViewController.swift /Users/sunww/GitHub/DanmuSwift/DanmuSwift/DanmuManage/DanmuView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule
|
D
|
import awebview.gui.application;
import awebview.gui.activity;
import awebview.gui.html;
import awebview.wrapper;
void main()
{
auto app = SDLApplication.instance;
auto pref = WebPreferences.recommended;
with(app.newFactoryOf!SDLActivity(pref)){
// Activityの各種設定
id = "MainActivity";
width = 600;
height = 400;
title = "Hello!";
// Activityの作成
auto activity = newInstance;
// hello.htmlを読み込んで、helloというIDのページを作成
auto helloPage = new TemplateHTMLPage!(import("hello.html"))("hello", null);
// Activityにページを登録
activity ~= helloPage;
// IDがhelloのページを読み込む
activity.load("hello");
// アプリケーションにアクティビティを登録する
app.addActivity(activity);
}
// アプリケーションを走らせる
app.run();
}
|
D
|
module fio;
private import std.stdio: writeln;
private import std.datetime;
private import std.experimental.logger;
private import std.socket;
private import std.format;
private import std.algorithm;
private import std.array;
private import std.conv;
private import std.traits;
private import std.variant;
private import std.exception;
private import std.container.dlist;
private import core.sys.posix.sys.wait: wait;
private import std.typecons;
private import std.algorithm: remove, countUntil, map, each;
private import core.thread;
private import core.memory;
private import core.exception;
private import core.sys.posix.unistd: fork;
private import poll;
alias Partial = Flag!"Partial";
template frm(alias v) {
string frm() {
string frm = v.stringof;
frm ~= "=" ~ to!string(v);
return frm;
}
}
static Exception RingEmpty;
static Exception RingFull;
static Exception ResultNotReady;
static Exception TimeoutException;
static this() {
RingEmpty = new Exception("Ring empty");
RingFull = new Exception("Ring full");
ResultNotReady = new Exception("Task not ready");
TimeoutException = new Exception("Timeout");
loop = new fioFiber;
_STACKSIZE = 64*1024; // default stacksize
}
///
/// cyclic buffer for runnable fibers
///
private struct Ring {
int _front;
int _back;
Fiber[1024] holder;
int length() pure const nothrow @nogc @property {
return (_back-_front)%holder.length;
}
ulong capacity() pure const nothrow @nogc @property {
return holder.length - this.length;
}
void opOpAssign(string s: "~", T)(T x) @nogc {
if (this.length >= holder.length ) {
throw RingFull;
}
holder[_back] = x;
_back = (_back+1) % holder.length;
}
bool empty() @property @nogc pure const nothrow {
return this.length == 0;
}
Fiber front() @property @nogc {
if ( empty ) throw RingEmpty;
return holder[_front];
}
void popFront() @nogc {
if ( empty ) throw RingEmpty;
_front =( _front+1)%holder.length;
}
}
private static EventLoop evl;
private static fioFiber loop;
private static int _STACKSIZE;
private static Ring runnables;
private static bool[fioTask] started;
private static bool[fioTask] zombie;
enum {
ERROR = -1,
TIMEOUT = -2
}
enum BACKLOG = 1024;
///
/// Get stack size for new fibers. Default value is 64k.
///
int stacksize() @property {
return _STACKSIZE;
}
///
/// Set stack size for new fibers
///
void stacksize(int s) @property {
_STACKSIZE = s;
}
///
/// Syncronization between fibers.
///
class MsgBox {
private DList!Variant msgList;
private DList!Fiber waitList;
///
/// Post message to box.
/// Parameters:
/// msg = data to post. Can be empty if you just need to wake up some fiber.
/// Return:
/// void
void post(in Variant msg = Variant.init) @trusted {
msgList.insertBack(msg);
if ( !waitList.empty ) {
tracef("Wake up first");
// wake up first
auto r = waitList.front();
waitList.removeFront();
runnables ~= r;
} else {
tracef("Nobody wait on this mbox");
}
}
///
/// Wait and get message from box
/// Parameters:
/// timeout = how long to wait
/// Returns:
/// message posted.
/// Can throw exception TimeoutException.
///
Variant waitAndGet(Duration timeout = 0.seconds) @trusted {
auto thisFiber = Fiber.getThis();
bool _timedout;
auto t = scoped!AsyncTimer(evl);
if ( timeout != 0.seconds ) {
t.duration = timeout;
t.run({
trace("Waiting on mbox timedout");
_timedout = true;
runnables ~= thisFiber;
});
}
while ( msgList.empty ) {
waitList ~= thisFiber;
trace("Waiting on emty msgbox");
Fiber.yield();
if ( !msgList.empty || _timedout ) {
break;
}
}
if ( _timedout ) {
throw TimeoutException;
}
auto msg = msgList.front();
msgList.removeFront();
return msg;
}
}
///
unittest {
globalLogLevel(LogLevel.info);
info("Test msgBox");
makeApp((){
auto box = new MsgBox;
auto f1 = makeFuture((int arg){
Variant msg = arg;
info("post 1st msg");
box.post(msg);
fioSleep(500.msecs);
msg = arg + 1;
info("post 2nd msg");
box.post(msg);
info("post empty msg");
box.post();
}, 1).start();
auto f2 = makeFuture((){
infof("Wait for 1st msg");
auto i = box.waitAndGet(1.seconds);
assert(i == 1);
infof("Wait for 2nd msg");
i = box.waitAndGet(1.seconds);
assert(i == 2);
auto e = box.waitAndGet();
info("Check timeouts on waiting for msg");
assertThrown(box.waitAndGet(1.seconds));
}).start();
auto t = tuple(f1,f2);
t.waitAll(10.seconds);
});
runEventLoop();
info("MsgBox tests ok");
}
///
/// Excecution unit that run in "background". You can't wait for its completion or get result.
/// To run asyncronous code that will return any result use Future
///
class Daemon(F, A...) {
private:
F g;
A a;
fioDaemonTask _task;
public:
///
/// Constructor
/// Params:
/// f = function or generator
/// a = args to call f
///
this(F f, A a) @safe pure {
this.g = f;
this.a = a;
}
///
/// You have to call start() method to start daemon running
/// Params:
///
/// Return:
/// Daemon object (you can chain calls)
auto start() {
_task = new fioDaemonTask({
g(a);
});
return this;
}
}
///
/// Execution unit that run in "foreground" - you can wait for completion and get results
///
class Future(F, A...) {
private:
F g;
A a;
fioTask _task;
public:
///
/// Constructor
/// Params:
/// f = function or generator
/// a = args to call f
///
this(F f, A a) @safe pure nothrow @nogc {
this.g = f;
this.a = a;
}
///
/// You have to call start() to start Future execution
///
static if ( is (ReturnType!F==void) ) {
private auto _result = null;
auto start() @safe {
_task = new fioTask({
g(a);
});
return this;
}
} else {
private ReturnType!F _result;
auto start() @safe {
_task = new fioTask({
_result = g(a);
});
return this;
}
}
///
/// Get return value of f when f completes.
///
auto get() @property @safe {
if ( ready ) {
return _result;
}
throw ResultNotReady;
}
///
/// Get completion status and result readiness
///
/// Return:
/// True if task were started and were finished
///
bool ready() @property @safe {
return _task !is null && _task.ready;
}
///
/// Wait for task completion. Also start task if you forget to call method start()
/// Params:
/// d = how long to wait (forewer by default)
/// Return:
/// status of wait (SUCCESS or TIMEDOUT)
///
int wait(Duration d = 0.seconds) {
if ( _task is null ) {
start();
}
return _task.wait(d);
}
///
/// Wait for task completion and return result. Also start task if you forget to call method start()
/// Params:
/// d = how long to wait (forewer by default)
/// Return:
/// result of f, or exceptioin ResultNotReady if result is not ready after timeout d expired.
///
auto waitAndGet(Duration d = 0.seconds) @property {
if ( _task is null ) {
start();
}
_task.wait(d);
return get();
}
}
///////////////////////////////////////////////////////////
///
/// makeFuture create "Future" - execution unit that you
/// can start, wait for completion and get result
/// Params:
/// f = function or delegate to run
/// a = args for calling f
///
///////////////////////////////////////////////////////////
auto makeFuture(F, A...)(F f, A a) @safe pure nothrow {
return new Future!(F, A)(f, a);
}
///
unittest {
globalLogLevel(LogLevel.info);
info("Test Future");
new fioTask((){
int base = 1;
void f0() {
}
int f1(int a) {
return a;
}
int f2(int a, int b) {
infof("f2 sleep, wait %d seconds, please.", a);
fioSleep(dur!"seconds"(a));
return b+base;
}
auto t0 = makeFuture(&f0).start();
auto t1 = makeFuture(&f1, 1).start();
auto t2 = makeFuture(&f2, 5, 1).start();
auto t3 = makeFuture((string s) {
assert(s == "hello");
}, "hello").start();
auto t = tuple(t0, t1, t2, t3);
assert(t.waitAll(1.seconds) == [0,0,TIMEOUT,0]);
info("Future waitAll - ok");
auto tasks = map!(a => makeFuture(&f1, a).start)([1, 2, 3]).array();
tasks ~= makeFuture(&f1, 4).start;
//fioSleep(1.seconds);
assert(tasks.map!(a => a.waitAndGet).array() == [1,2,3,4]);
info("Future waitAndGet - ok");
auto d = makeDaemon(
(int a) {
infof("Daemon got %d and return", a);
}, 1
).start();
stopEventLoop();
});
runEventLoop();
info("Test Future! Done");
}
//////////////////////////////////////////////////////////////////////////
///
/// makeDaemon create "Daemon" - execution unit that you
/// can start but can't wait for completion or get result.
/// All you can do with daemons - wait when all daemons finish with call
/// waitForAllDaemons()
/// Params:
/// f = function or delegate to run
/// a = args for calling f
///
//////////////////////////////////////////////////////////////////////////
auto makeDaemon(F, A...)(F f, A a) @safe pure nothrow {
return new Daemon!(F, A)(f, a);
}
/**
*
* makeApp create "Future" that
* will stop eventLoop when completed
*
* Params:
* f = function or delegate to run
* a = args for calling f
* Return:
* Nothing
*
**/
auto makeApp(F, A...)(F f, A a) {
makeFuture({
auto w = makeFuture(f, a);
w.wait();
stopEventLoop();
}).start();
}
///
unittest {
globalLogLevel(LogLevel.info);
info("Test makeApp");
makeApp((){
void f0() {
auto aa = [1:1];
}
auto t0 = makeFuture(&f0).start();
t0.wait();
});
runEventLoop();
info("App finished");
}
/////////////////////////////////////////////////////////////////
///
/// wait(polling used) until all started daemon tasks finish
/// Params:
/// timeout = ,how long to wait
/// Return:
/// TIMEOUT or 0
///
/////////////////////////////////////////////////////////////////
int waitForAllDaemons(Duration timeout = 0.seconds) {
//
// wait(polling) until all started daemon tasks finish
//
auto deadline = Clock.currTime + timeout;
while ( !started.keys.filter!(t => t.daemon).empty ) {
fioSleep(100.msecs);
if ( timeout > 0.seconds && Clock.currTime > deadline ) {
return TIMEOUT;
}
}
return 0;
}
/////////////////////////////////////////////////////////////////
///
/// Wait until all tasks in array finish
/// Params:
/// tasks = range of objects, supporting wait()
/// d = time to wait
/// Return:
/// array of the 0(success) and TIMEOUT(failed to wait)
///
/////////////////////////////////////////////////////////////////
int[] waitAll(W)(W tasks, Duration d = 0.seconds) {
int[] result;
Duration timeleft = d;
foreach(t; tasks) {
if ( timeleft > 0.seconds ) {
auto start = Clock.currTime;
auto r = t.wait(timeleft);
result ~= r;
auto stop = Clock.currTime;
timeleft -= stop - start;
} else {
if ( t.ready ) {
result ~= 0;
} else {
result ~= TIMEOUT;
}
}
}
return result;
}
//////////////////////////////////////////////////////////////
/// sleep for some duration.
/// you have to use this sleep as it allow concurrency
/// Params:
/// d = duration
/// Return:
/// void
/// Examples:
/// `fioSleep(1.seconds)`
///////////////////////////////////////////////////////////////
void fioSleep(in Duration d) {
auto t = scoped!AsyncTimer(evl);
auto f = Fiber.getThis();
t.duration = d;
t.run({
runnables ~= f; // continue task
});
Fiber.yield(); // pass control to main
}
///////////////////////////////////////////////////////////////
///
/// Create TCPListener instance.
/// Note:
/// 1. Listener will accept connections only after call to method start().
/// 2. After start() you may want to use method serve() to accept and serve requests
/// until method stop is called()
/// Params:
/// host = interface to listen
/// port = port to listen
/// f = function or delegate to execute on each connectiom
/// Return:
/// instance of class fioTCPListener
///
///////////////////////////////////////////////////////////////
auto makeTCPListener(F)(string host, ushort port, F f) {
return new fioTCPListener!(F)(host, port, f);
}
///
/// Incoming TCP connections handler
/// Common
///
class fioTCPListener(F) {
private:
F server;
string host;
ushort port;
Address _address;
Socket so;
asyncAccept acceptor;
uint _childs;
bool stopped;
Fiber servingFiber;
static if ( is(SocketOption.REUSEPORT) ) {
enum So_REUSEPORT = SocketOption.REUSEPORT;
} else {
version(linux) {
enum So_REUSEPORT = cast(SocketOption)15;
}
version(FreeBSD) {
enum So_REUSEPORT = cast(SocketOption)0x200;
}
}
public:
this(string host, ushort port, F d) @safe {
server = d;
_address = getAddress(host, port)[0];
_childs = 0;
so = new Socket(_address.addressFamily, SocketType.STREAM, ProtocolType.TCP);
so.setOption(SocketOptionLevel.SOCKET, SocketOption.REUSEADDR, 1);
so.setOption(SocketOptionLevel.SOCKET, So_REUSEPORT, 1);
so.blocking(false);
so.bind(_address);
so.listen(BACKLOG);
trace("Listener started");
}
///
/// Start accepting connections
///
/// Returns:
/// this
auto start() {
if ( evl is null ) {
evl = new EventLoop;
}
acceptor = new asyncAccept(evl, so, &run);
return this;
}
///
/// Implement loop (also start listening if not done yet).
/// ---
/// while ( ! stopped ) { accept-and-handle;}
/// ---
///
auto serve() in {
assert(servingFiber is null);
} body {
if ( evl is null ) {
evl = new EventLoop;
}
if ( acceptor is null ) {
acceptor = new asyncAccept(evl, so, &run);
}
// just sleep while not stopped
servingFiber = Fiber.getThis();
while ( !stopped ) {
Fiber.yield();
}
}
///
/// Break serve() loop.
/// Note: Connection is not closed and still can accept (call close() to close socket)
///
auto stop() {
if ( stopped || servingFiber is null ) {
return;
}
stopped = true;
runnables ~= servingFiber;
servingFiber = null;
}
///
/// Before call to start() you can fork Listener, it wil accept connectons
/// in several processes. See forked_server in examples.
///
/// Params:
/// n = how many processes to fork
/// Return:
/// int 0 in parent, 1 in child
///
auto fork(int n) {
while(n) {
auto pid = .fork();
if ( pid ) {
n--;
_childs++;
} else if ( pid == 0 ) {
return 0;
}
}
return 1;
}
///
/// Parent can call for forked childs
///
auto waitForForkedChilds() {
while( _childs ) {
int s;
.wait(&s);
_childs--;
}
}
void run(Event e) {
trace("handle new incoming connection");
auto server_task = new fioDaemonTask({
try {
auto newSo = so.accept();
auto fio_connection = scoped!fioTCPConnection(newSo);
scope(exit) {
fio_connection.close();
destroy(newSo);
}
server(fio_connection);
} catch (SocketAcceptException e) {
error("SocketAcceptException");
}
});
}
///
/// stop listening and close socket.
///
void close() {
trace("close listener");
if ( acceptor !is null ) {
acceptor.close();
acceptor = null;
}
if ( so !is null ) {
so.close();
destroy(so);
so = null;
}
stop();
}
}
///
/// Handle connect(for outgoing connections),send,receive.
///
class fioTCPConnection {
string host;
ushort port;
Socket so;
Fiber thisFiber;
bool _timedout;
Address[] _address;
asyncConnection _async_connection;
///
/// Constructor for pre-created sockets (accepted connection for example)
///
/// Params:
/// so = socket
this(Socket so) {
this.so = so;
this._async_connection = new asyncConnection(evl, so);
}
///
/// Constructor
/// Create socket, connect to remote end. You can find connection status using
/// connected() method
///
/// Params:
/// host = host (ip or name to connect)
/// port = port to connect
/// timeout = how long to wait for connection
///
this(in string host, in ushort port, in Duration timeout = 0.seconds ) {
this.host = host;
this.port = port;
_timedout = false;
_address = getAddress(host, port);
auto t = scoped!AsyncTimer(evl);
thisFiber = Fiber.getThis();
so = new Socket(_address[0].addressFamily, SocketType.STREAM, ProtocolType.TCP);
if ( timeout != 0.seconds ) {
t.duration = timeout;
t.run({
_timedout = true;
runnables ~= thisFiber;
});
}
_async_connection = new asyncConnection(evl, so, _address[0], (Event e){
runnables ~= thisFiber;
});
if ( _async_connection.error ) {
return;
}
Fiber.yield();
}
///
/// Close socket
///
void close() {
if ( so ) {
so.close();
destroy(so);
so = null;
}
if ( _async_connection ) {
destroy(_async_connection);
_async_connection = null;
}
destroy(_address);
}
///
/// Last operation timeout status.
///
/// Return:
/// true or false
///
bool timedout() const pure nothrow @property {
return _timedout;
}
///
/// Status of connection.
///
/// Return:
/// true or false
bool connected() const pure nothrow @property {
return _async_connection && _async_connection.connected();
}
///
/// Error state on socket
///
/// Return:
/// true or false
bool error() const pure nothrow @property {
return !_async_connection || _async_connection.error();
}
bool instream_closed() const pure nothrow @property {
return !_async_connection || _async_connection.instream_closed();
}
bool outstream_closed() const pure nothrow @property {
return !_async_connection || _async_connection.outstream_closed();
}
///
/// Send data from buffer or timeout.
///
/// Params:
/// buff = buffer with data
/// len = range to send
/// timeout = timeout for data sending
/// Return:
/// number of transmitted bytes or ERROR
///
int send(const void[] buff, size_t len, in Duration timeout = 60.seconds) {
return send(buff[0..len], timeout);
}
///
/// Send data from buffer or timeout.
///
/// Params:
/// buff = data to send
/// timeout = timeout for data sending
/// Return:
/// number of transmitted bytes or ERROR
///
int send(const void[] buff, in Duration timeout = 60.seconds)
in {
assert( buff.length, "You can't send from empty buffer");
}
body {
uint _sent = 0;
_timedout = false;
auto timer = scoped!AsyncTimer(evl);
thisFiber = Fiber.getThis();
if ( _async_connection is null ) {
// closed or disconnected
return ERROR;
}
if ( _async_connection.error ) {
std.experimental.logger.error("trying to send to error-ed socket");
return ERROR;
}
scope(exit) {
_async_connection.on_send = null;
}
if ( timeout != 0.seconds ) {
timer.duration = timeout;
timer.run({
_timedout = true;
runnables ~= thisFiber;
});
}
void __send__(Event e) {
tracef("event %0x on %s", e.events, this.host);
while ( _sent < buff.length ) {
auto rc = so.send(buff[_sent..$]);
tracef("so.send() = %d", rc);
if ( rc == Socket.ERROR && wouldHaveBlocked() ) {
// will restart when ready
trace("block");
return;
}
if ( rc == Socket.ERROR ) {
// failure
trace("error");
break;
}
_sent += rc;
}
_async_connection.on_send = null;
runnables ~= thisFiber;
}
_async_connection.on_send = &__send__;
Fiber.yield();
if ( !_sent ) {
if ( _timedout ) {
return TIMEOUT;
}
if ( _async_connection.error ) {
return ERROR;
}
}
return _sent;
}
///
/// Receive data from connection.
///
/// When any data received from socket level:
/// if partial is true, return immediately
/// else continue waiting for data.
/// if timeout:
/// return as many data as we can.
/// if error on socket:
/// return and set error state.
/// Params:
/// buff = buffer to receive data to.
/// timeout = how long to wait data.
/// partial = if we allow to receive less data then buffer can accept.
/// Return:
/// number of received bytes or ERROR (timedout or error on socket).
/// if socket closed - return 0
///
int recv(byte[] buff, in Duration timeout=0.seconds, in Partial partial=Partial.yes,
in string __file__ = __FILE__, in size_t __line__ = __LINE__)
in {
assert(buff.length > 0, format("You can't recv to zero-length buffer %s:%d", __file__, __line__));
}
body {
int received = 0;
_timedout = false;
thisFiber = Fiber.getThis();
if ( _async_connection is null ) {
// closed or disconnected
return ERROR;
}
if ( _async_connection.instream_closed ) {
return 0; // closed already
}
scope(exit) {
_async_connection.on_recv = null;
}
auto timer = scoped!AsyncTimer(evl);
if ( timeout != 0.seconds ) {
timer.duration = timeout;
timer.run({
_timedout = true;
runnables ~= thisFiber;
});
}
void __recv__(Event e) {
tracef("received event %02x", e.events);
// if ( e.events & Event.HUP ) {
// runnables ~= thisFiber;
// return;
// }
if ( e.events & Event.IN ) {
auto rc = so.receive(buff[received..$]);
tracef("received from so.receive: %d", rc);
switch (rc) {
case Socket.ERROR:
goto case; // fall-through
case 0:
// connection closed
runnables ~= thisFiber;
return;
default:
received += rc;
if ( partial || ( received >= buff.length)) { // return to caller
runnables ~= thisFiber;
}
// continue to receive
return;
}
}
}
_async_connection.on_recv = &__recv__;
Fiber.yield();
// tracef("fioTCPConnection:read finished with received: %d, timedout: %s, error: %s",
// received, to!string(_timedout), to!string(_async_connection.error));
// foreach(v;[frm!(received),frm!(_timedout)]){
// writeln(v);
// }
if ( received > 0 ) {
if ( !partial && received < buff.length ) {
return TIMEOUT;
}
return received;
}
if ( _timedout ) {
return TIMEOUT;
}
if ( _async_connection.error ) {
return ERROR;
}
return 0;
}
}
class fioDaemonTask: fioTask {
@disable override int wait(Duration d) {return 0;};
@disable override bool ready() @property @trusted nothrow const {return false;};
this(void delegate() f) {
super(f, true);
}
}
class fioTask : Fiber {
void delegate() f;
Fiber[] in_wait;
bool daemon;
this(void delegate() f, bool daemon=false) @trusted {
super(&run, _STACKSIZE);
this.f = f;
this.daemon = daemon;
runnables ~= this;
}
bool ready() @property @trusted nothrow const {
return state == Fiber.State.TERM;
}
int wait(Duration d=0.seconds) @trusted {
if ( state == Fiber.State.TERM ) {
return 0;
}
auto timer = scoped!AsyncTimer(evl);
auto thisFiber = Fiber.getThis();
bool _timedout;
if ( d != 0.seconds ) {
timer.duration = d;
timer.run({
_timedout = true;
runnables ~= thisFiber;
// remove this fiber from in_wait list
auto i = countUntil(in_wait, thisFiber);
if ( i >= 0 ) {
in_wait = remove(in_wait, i);
}
});
}
in_wait ~= thisFiber;
Fiber.yield();
if ( _timedout ) {
return TIMEOUT;
} else {
return 0;
}
}
private:
void run() {
started[this] = true;
f();
if ( daemon ) {
zombie[this]=true;
assert(started[this] == true);
auto removed = started.remove(this);
assert(removed);
return;
}
if ( in_wait.length ) {
runnables ~= this;
foreach(ref f; in_wait) {
runnables ~= f;
}
Fiber.yield();
}
started.remove(this);
}
}
class fioFiber: Fiber {
// this is master of all fibers
bool stopped = false;
this() {
super(&run);
}
private:
void run() {
// This is fiber's main coordination loop
trace("ioloop started");
Throwable exception;
while ( !stopped ) {
while ( runnables.length ) {
auto f = runnables.front();
runnables.popFront();
exception = f.call(Rethrow.no);
}
if ( stopped || exception ) {
break;
}
foreach(ref z; zombie.byKey) {
zombie.remove(z);
destroy(z);
}
evl.loop(60.seconds);
trace("ev loop wakeup");
}
if ( exception ) {
loop.stopped = true;
loop = null;
throw exception;
}
trace("ioloop stopped");
}
}
void runEventLoop() {
if ( evl is null ) {
evl = new EventLoop();
}
if ( loop is null ) {
loop = new fioFiber();
}
loop.call();
}
void stopEventLoop() {
loop.stopped = true;
loop = null;
}
unittest {
globalLogLevel(LogLevel.info);
info("Test exception");
makeApp((){
void f0() {
auto aa = [1:1];
auto bb = aa[2]; // this will throw exception
}
auto t0 = makeFuture(&f0).start();
t0.wait();
});
try {
runEventLoop();
} catch (RangeError e) {
info("Test exception Done");
}
}
///
/// Create signal handler
///
/// Params:
/// sig = signal number
/// f = function or delegate - handler
/// Return:
/// SignalHandler object
///
auto makeSignalHandler(F)(int sig, F f, in string file = __FILE__ , in size_t line = __LINE__) @safe {
return new SignalHandler!F(evl, sig, f, file, line);
}
///
unittest {
///
/// test Signal
///
import core.sys.posix.signal;
info("Test Signal");
bool signalled;
makeApp((){
auto sig = makeSignalHandler(SIGINT, (int s){
infof("got signal %d", s);
signalled = true;
});
scope(exit) {
sig.restore();
}
fioSleep(1.seconds);
kill(getpid(), SIGINT);
fioSleep(1.seconds);
assert(signalled);
});
runEventLoop();
info("Test Signal done");
}
unittest {
info("Test 10k connections");
makeApp((){
fioTCPConnection[] a;
auto s = makeTCPListener("localhost", cast(ushort)9997, (fioTCPConnection c){
fioSleep(60.seconds);
}).start();
foreach(i; 0..50) {
auto n = new fioTCPConnection("localhost", cast(ushort)9997);
assert(n.connected);
a ~= n;
}
foreach(c; a) {
c.close();
}
s.close();
});
runEventLoop();
info("Test 10k connections passed");
}
unittest {
globalLogLevel(LogLevel.info);
void testAll() {
info("Test wait");
auto task = new fioTask({
info("t started");
fioSleep(1.seconds);
info("t finished");
});
auto start = Clock.currTime();
task.wait();
auto stop = Clock.currTime();
assert(990.msecs < stop - start && stop - start < 1010.msecs);
task = new fioTask({
info("t started");
fioSleep(1.seconds);
info("t finished");
});
start = Clock.currTime();
auto rc = task.wait(500.msecs); // wait with timeout
stop = Clock.currTime();
assert(rc == TIMEOUT);
assert(400.msecs < stop - start && stop - start < 600.msecs);
task.wait(); // finally wait
info("Test wait - ok");
{
void ff1(string s) {
writefln("from future1: %s", s);
}
void ff2(int i) {
writefln("from future2: %d", i);
}
int increment(int i) {
return i+1;
}
}
globalLogLevel(LogLevel.info);
info("Test task create/destroy");
int loops = 50000;
int c = 0;
void empty() {
c++;
}
info("Test non-daemon task wait() after some delay.");
info("Please, be patient, can take some time.");
foreach(i; 0..loops) {
auto z = new fioTask(&empty);
fioSleep(1.msecs);
z.wait();
destroy(z);
}
info("Test non-daemon task wait() right after start.");
info("Please, be patient, can take some time.");
foreach(i; 0..loops) {
auto z = new fioTask(&empty);
z.wait();
destroy(z);
}
info("Test daemon task.");
info("Please, be patient, can take some time.");
foreach(i; 0..loops) {
auto z = new fioDaemonTask(&empty);
fioSleep(1.msecs);
}
info("Test task create/destroy - ok");
fioSleep(5.seconds);
globalLogLevel(LogLevel.info);
info("Test sleeps");
void test0() {
fioSleep(1.seconds);
int loops = 50;
foreach(i; 0 .. loops ) {
start = Clock.currTime();
fioSleep(50.msecs);
stop = Clock.currTime();
assert(45.msecs < stop - start && stop - start < 55.msecs, "bad sleep time, shoul be 50 ms");
if ( i> 0 && (i % 10 == 0) ) {
info(format("%d iterations out of %d", i, loops));
}
}
}
task = new fioTask(&test0);
task.wait();
info("Test sleeps - ok");
writeln(c, " started=", started.length, " zombie=", zombie.length);
void test1() {
int loops = 500;
infof("%s:%d, tmo=%s - wait", "1.1.1.1", 9998, to!string(10.msecs));
foreach(i; 0..loops) {
start = Clock.currTime();
auto conn = new fioTCPConnection("1.1.1.1", 9998, 10.msecs);
stop = Clock.currTime();
assert( !conn.connected );
conn.close();
destroy(conn);
assert(5.msecs < stop - start && stop - start < 100.msecs, format("connect took %s", to!string(stop-start)));
if ( i> 0 && (i % 1000 == 0) ) {
info(format("%d iterations out of %d", i, loops));
}
}
infof("%s:%d, tmo=%s passed", "1.1.1.1", 9998, to!string(10.msecs));
infof("%s:%d, tmo=%s - wait", "localhost", 9998, to!string(10.msecs));
loops = 10000;
foreach(i; 0..loops) {
start = Clock.currTime();
auto conn = new fioTCPConnection("localhost", 9998, 10.msecs);
stop = Clock.currTime();
assert( !conn.connected );
assert( stop - start < 50.msecs, format("Connection to localhost should return instantly, but took %s", to!string(stop-start)));
conn.close();
destroy(conn);
}
infof("%s:%d, tmo=%s passed", "localhost", 9998, to!string(10.msecs));
infof("%s:%d, tmo=%s - wait", "localhost", 9998, to!string(0.seconds));
loops = 10000;
foreach(i; 0..loops) {
start = Clock.currTime();
auto conn = new fioTCPConnection("localhost", 9998, 0.seconds);
stop = Clock.currTime();
assert( !conn.connected );
assert( stop - start < 5.seconds,
format("Connection to localhost should return instantly, but it took %s", to!string(stop-start))
);
conn.close();
destroy(conn);
}
infof("%s:%d, tmo=%s passed", "localhost", 9998, to!string(0.seconds));
info("test dumb listener");
void dumb_server(fioTCPConnection c) {
}
int oloops = 10_000;
foreach(int j; 0..oloops) {
auto dumb_server_listener = makeTCPListener("localhost", cast(ushort)9997, &dumb_server);
dumb_server_listener.start();
loops = 100;
foreach(i;0..loops) {
auto c = scoped!fioTCPConnection("localhost", cast(ushort)9997, 10.seconds);
assert(c.connected);
c.close();
}
dumb_server_listener.close();
if ( j > 0 && (j % 1000 == 0) ) {
info(format("%d iterations out of %d", j, oloops));
}
}
info("test dumb listener - done");
globalLogLevel(LogLevel.info);
void test_server(fioTCPConnection c) {
///
/// simple server receive and execute commands
/// 'q' in fist position in line - exit from processing loop
/// digit in first position - sleep that number of seconds and echo line
/// anything else - just echo
///
import std.ascii;
byte[1024] server_buff;
int rc;
info("test echo server started");
trace("incoming connection");
do {
rc = c.recv(server_buff);
tracef("echo server received %d", rc);
if ( rc > 0 ) {
if ( server_buff[0] == 'q' ) {
trace("test server received quit");
break;
}
if ( isDigit(server_buff[0]) ) {
int s = to!int(server_buff[0]-'0');
tracef("sleeping for %d sec, then send buffer", s);
fioSleep(dur!"seconds"(s));
}
rc = c.send(server_buff[0..rc]);
tracef("echoserver sent %d", rc);
}
//fioSleep(1.seconds);
} while (rc > 0);
info("echo server loop done");
}
auto listener = makeTCPListener("localhost", 9999, &test_server).start();
string host = "localhost";
ushort port = 9999;
Duration t = 5.seconds;
loops = 1;
infof("%s:%d, tmo=%s - wait", host, port, to!string(t));
foreach(i; 0..loops) {
byte[10] buff;
int send_rc, recv_rc;
char[32000] c = 'c';
start = Clock.currTime();
auto conn = new fioTCPConnection(host, port, t);
assert(conn.connected);
assert(!conn.instream_closed);
assert(!conn.outstream_closed);
assert(!conn.error);
stop = Clock.currTime();
assert( conn.connected );
trace("connected");
conn.send("abcd", 3);
start = Clock.currTime();
assert(buff.length>0);
recv_rc = conn.recv(buff);
stop = Clock.currTime();
infof("receive any input, default timeout (should receive 3 bytes immediately)");
infof("received %d bytes in %s", recv_rc, to!string(stop-start));
assert(recv_rc == 3);
conn.send("1abc");
start = Clock.currTime();
recv_rc = conn.recv(buff, 3.seconds); // receive anything in 3 seconds
stop = Clock.currTime();
infof("receive any input, 3 sec timeout (should receive 4 bytes in 1sec)");
infof("received %d bytes in %s", recv_rc, to!string(stop-start));
assert(recv_rc == 4);
conn.send("1abc");
start = Clock.currTime();
recv_rc = conn.recv(buff, 3.seconds, Partial.no); // wait 3 sec, require full buff -> should be timeout
stop = Clock.currTime();
infof("receive exactly %d bytes with 3 sec timeout(should timeout)", buff.length);
infof("received %d bytes in %s", recv_rc, to!string(stop-start));
assert(recv_rc == TIMEOUT);
conn.send("1234567890");
start = Clock.currTime();
recv_rc = conn.recv(buff, 3.seconds, Partial.no); // wait 3 sec, require full buff
stop = Clock.currTime();
infof("receive exactly %d bytes with 3 sec timeout(should succeed)", buff.length);
infof("received %d bytes in %s", recv_rc, to!string(stop-start));
assert(recv_rc == 10);
conn.send("3abc");
start = Clock.currTime();
recv_rc = conn.recv(buff, 1.seconds); // wait 1 sec, should be timeout
stop = Clock.currTime();
infof("receive any input, 1 sec timeout (should timeout)");
infof("received %d bytes in %s", recv_rc, to!string(stop-start));
assert(recv_rc == TIMEOUT);
conn.recv(buff, 5.seconds); // eat all input
info("stop echo server");
conn.send("q");
tracef("wait for reaction on quit");
start = Clock.currTime();
recv_rc = conn.recv(buff);
stop = Clock.currTime();
infof("received %d bytes in %s", recv_rc, to!string(stop-start));
//recv_rc = conn.recv(buff);
//do {
// send_rc = conn.send(buff);
// fioSleep(100.msecs);
//} while (send_rc > 0);
//infof("recv_rc: %d, send_rc: %d", recv_rc, send_rc);
conn.close();
// verify that closed connection behave correctly
recv_rc = conn.recv(buff);
assert(recv_rc == ERROR);
send_rc = conn.send(buff);
assert(send_rc == ERROR);
assert(!conn.connected);
assert(conn.instream_closed);
assert(conn.outstream_closed);
assert(conn.error);
destroy(conn);
}
infof("%s:%d, tmo=%s passed", host, port, to!string(t));
globalLogLevel(LogLevel.info);
}
info("Test connection");
task = new fioTask(&test1);
task.wait();
info("Test connection - ok");
stopEventLoop();
}
info("tesing all");
new fioTask(&testAll);
runEventLoop();
writeln("Test finished");
}
|
D
|
module android.java.android.webkit.DownloadListener;
public import android.java.android.webkit.DownloadListener_d_interface;
import arsd.jni : ImportExportImpl;
mixin ImportExportImpl!DownloadListener;
import import0 = android.java.java.lang.Class;
|
D
|
E: c9, c58, c84, c81, c79, c13, c35, c37, c1, c5, c68, c44, c24, c82, c69, c74, c11, c39, c54, c47, c23, c75, c22, c83, c76, c88, c38, c59, c89, c3, c21, c19, c12, c8, c61, c72, c66, c30, c55, c50, c85, c62, c20, c18, c28, c87, c7, c73, c14, c51, c31, c67, c42, c71, c32.
p2(E,E)
c9,c9
c79,c13
c35,c35
c74,c39
c23,c75
c38,c76
c72,c66
c68,c50
c38,c22
c68,c31
c58,c58
c58,c50
.
p0(E,E)
c58,c58
c37,c1
c82,c35
c69,c74
c38,c76
c59,c89
c81,c79
c59,c68
c19,c54
c47,c84
c85,c55
c58,c50
c35,c12
c47,c11
c79,c13
c8,c38
c74,c39
c23,c75
c7,c73
c51,c68
c35,c35
.
p9(E,E)
c84,c84
c35,c35
c11,c11
c19,c79
c8,c61
c59,c5
c51,c24
c85,c30
c58,c1
c69,c62
c71,c38
c79,c79
.
p1(E,E)
c81,c79
c47,c11
c74,c22
c83,c76
c88,c35
c21,c13
c8,c59
c7,c73
c14,c50
c20,c12
c74,c24
c35,c89
c47,c84
c32,c39
.
p8(E,E)
c79,c13
c44,c24
c74,c39
c35,c12
c35,c35
c20,c18
c28,c87
c38,c22
c68,c50
c59,c89
.
p10(E,E)
c5,c68
c79,c54
c1,c58
c38,c3
c30,c55
c61,c38
c62,c74
.
p3(E,E)
c67,c42
.
p6(E,E)
c47,c83
.
|
D
|
/*
[The "BSD licence"]
Copyright (c) 2005-2008 Terence Parr
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
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 BY THE AUTHOR ``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 antlr.runtime.BaseRecognizer;
import antlr.runtime.BitSet;
import antlr.runtime.RecognizerSharedState;
import antlr.runtime.RecognitionException;
import antlr.runtime.IntStream;
import antlr.runtime.Token;
import antlr.runtime.UnwantedTokenException;
import antlr.runtime.MismatchedTokenException;
import antlr.runtime.MissingTokenException;
import antlr.runtime.MismatchedTreeNodeException;
import antlr.runtime.NoViableAltException;
import antlr.runtime.EarlyExitException;
import antlr.runtime.MismatchedSetException;
import antlr.runtime.MismatchedSetException;
import antlr.runtime.MismatchedNotSetException;
import antlr.runtime.MismatchedRangeException;
import antlr.runtime.FailedPredicateException;
import antlr.runtime.RuntimeException;
import tango.text.Regex;
private import tango.text.convert.Layout;
import antlr.runtime.misc.Format;
import tango.core.RuntimeTraits;
import tango.util.container.LinkedList;
import tango.util.container.HashMap;
import tango.io.Stdout;
/** A generic recognizer that can handle recognizers generated from
* lexer, parser, and tree grammars. This is all the parsing
* support code essentially; most of it is error recovery stuff and
* backtracking.
*/
abstract class BaseRecognizer(char_t) {
public:
alias RecognizerSharedState!(char_t) RecognizerSharedStateT;
alias MismatchedSetException!(char_t) MismatchedSetExceptionT;
alias RecognitionException!(char_t) RecognitionExceptionT;
alias MismatchedTokenException!(char_t) MismatchedTokenExceptionT;
alias MismatchedRangeException!(char_t) MismatchedRangeExceptionT;
alias MismatchedNotSetException!(char_t) MismatchedNotSetExceptionT;
alias NoViableAltException!(char_t) NoViableAltExceptionT;
alias EarlyExitException!(char_t) EarlyExitExceptionT;
alias UnwantedTokenException!(char_t) UnwantedTokenExceptionT;
alias MissingTokenException!(char_t) MissingTokenExceptionT;
alias MismatchedTreeNodeException!(char_t) MismatchedTreeNodeExceptionT;
alias FailedPredicateException!(char_t) FailedPredicateExceptionT;
// alias iFormat!(char_t) iFormatT;
alias Token!(char_t) TokenT;
const int MEMO_RULE_FAILED = -2;
const int MEMO_RULE_UNKNOWN = -1;
const int INITIAL_FOLLOW_STACK_SIZE = 100;
// const Integer MEMO_RULE_FAILED_I = new Integer(MEMO_RULE_FAILED);
// copies from Token object for convenience in actions
const int DEFAULT_TOKEN_CHANNEL = TokenT.DEFAULT_CHANNEL;
const int HIDDEN = TokenT.HIDDEN_CHANNEL;
const char[] NEXT_TOKEN_RULE_NAME = "nextToken";
private int traceIndent;
/** State of a lexer, parser, or tree parser are collected into a state
* object so the state can be shared. This sharing is needed to
* have one grammar import others and share same error variables
* and other state variables. It's a kind of explicit multiple
* inheritance via delegation of methods and shared state.
*/
package RecognizerSharedStateT state;
private static Layout!(char_t) FormatT;
static this() {
FormatT=Layout!(char_t).instance;
}
public this(RecognizerSharedStateT state=null) {
if ( state is null ) {
state = new RecognizerSharedStateT();
}
this.state = state;
this.traceIndent=0;
}
/** reset the parser's state; subclasses must rewinds the input stream */
public void reset() {
// wack everything related to error recovery
if ( state is null ) {
return; // no shared state work to do
}
state._fsp = -1;
state.errorRecovery = false;
state.lastErrorIndex = -1;
state.failed = false;
state.syntaxErrors = 0;
// wack everything related to backtracking and memoization
state.backtracking = 0;
for (int i = 0; state.ruleMemo !is null && i < state.ruleMemo.length; i++) { // wipe cache
state.ruleMemo[i]=null;
}
}
/** Match current input symbol against ttype. Attempt
* single token insertion or deletion error recovery. If
* that fails, throw MismatchedTokenException.
*
* To turn off single token insertion or deletion error
* recovery, override mismatchRecover() and have it call
* plain mismatch(), which does not recover. Then any error
* in a rule will cause an exception and immediate exit from
* rule. Rule would recover by resynchronizing to the set of
* symbols that can follow rule ref.
*/
public TokenT match(IntStream input, int ttype, ref const BitSet follow)
{
auto matchedSymbol = getCurrentInputSymbol(input);
if ( input.LA(1)==ttype ) {
input.consume();
state.errorRecovery = false;
state.failed = false;
return matchedSymbol;
}
if ( state.backtracking>0 ) {
state.failed = true;
return matchedSymbol;
}
matchedSymbol = recoverFromMismatchedToken(input, ttype, follow.dup);
return matchedSymbol;
}
/** Match the wildcard: in a symbol */
public void matchAny(IntStream input) {
state.errorRecovery = false;
state.failed = false;
input.consume();
}
public bool mismatchIsUnwantedToken(IntStream input, int ttype) {
return input.LA(2)==ttype;
}
public bool mismatchIsMissingToken(IntStream input, BitSet follow) {
if ( follow.length==0 ) {
// we have no information about the follow; we can only consume
// a single token and hope for the best
return false;
}
// compute what can follow this grammar element reference
if ( follow[(TokenT.EOR_TOKEN_TYPE)] ) {
if ( state._fsp>=0 ) { // remove EOR if we're not the
// start symbol
follow[TokenT.EOR_TOKEN_TYPE]=false;
// follow.remove(Token.EOR_TOKEN_TYPE);
}
BitSet viableTokensFollowingThisRule = computeContextSensitiveRuleFOLLOW();
if (follow.length==0) {
follow=viableTokensFollowingThisRule;
} else {
follow|=viableTokensFollowingThisRule;
}
}
// if current token is consistent with what could come after set
// then we know we're missing a token; error recovery is free to
// "insert" the missing token
//System.out.println("viable tokens="+follow.toString(getTokenNames()));
//System.out.println("LT(1)="+((TokenStream)input).LT(1));
// BitSet cannot handle negative numbers like -1 (EOF) so I leave EOR
// in follow set to indicate that the fall of the start symbol is
// in the set (EOF can follow).
if ( follow[input.LA(1)] || follow[TokenT.EOR_TOKEN_TYPE] ) {
//System.out.println("LT(1)=="+((TokenStream)input).LT(1)+" is consistent with what follows; inserting...");
return true;
}
return false;
}
/** Factor out what to do upon token mismatch so tree parsers can behave
* differently. Override and call mismatchRecover(input, ttype, follow)
* to get single token insertion and deletion. Use this to turn of
* single token insertion and deletion. Override mismatchRecover
* to call this instead.
*/
protected void mismatch(IntStream input, int ttype, BitSet follow)
{
if ( mismatchIsUnwantedToken(input, ttype) ) {
throw new UnwantedTokenExceptionT(ttype, input);
}
else if ( mismatchIsMissingToken(input, follow) ) {
throw new MissingTokenExceptionT(ttype, input, null);
}
throw new MismatchedTokenExceptionT(ttype, input);
}
/** Report a recognition problem.
*
* This method sets errorRecovery to indicate the parser is recovering
* not parsing. Once in recovery mode, no errors are generated.
* To get out of recovery mode, the parser must successfully match
* a token (after a resync). So it will go:
*
* 1. error occurs
* 2. enter recovery mode, report error
* 3. consume until token found in resynch set
* 4. try to resume parsing
* 5. next match() will reset errorRecovery mode
*
* If you override, make sure to update syntaxErrors if you care about that.
*/
public void reportError(RecognitionExceptionT e) {
// if we've already reported an error and have not matched a token
// yet successfully, don't report any errors.
if ( state.errorRecovery ) {
//System.err.print("[SPURIOUS] ");
return;
}
state.syntaxErrors++; // don't count spurious
state.errorRecovery = true;
displayRecognitionError(this.getTokenNames(), e);
}
public void displayRecognitionError(immutable(char_t)[][] tokenNames,
RecognitionExceptionT e)
{
auto hdr = getErrorHeader(e);
auto msg = getErrorMessage(e, tokenNames);
emitErrorMessage(hdr~" "~msg);
}
/** What error message should be generated for the various
* exception types?
*
* Not very object-oriented code, but I like having all error message
* generation within one method rather than spread among all of the
* exception classes. This also makes it much easier for the exception
* handling because the exception classes do not have to have pointers back
* to this object to access utility routines and so on. Also, changing
* the message for an exception type would be difficult because you
* would have to subclassing exception, but then somehow get ANTLR
* to make those kinds of exception objects instead of the default.
* This looks weird, but trust me--it makes the most sense in terms
* of flexibility.
*
* For grammar debugging, you will want to override this to add
* more information such as the stack frame with
* getRuleInvocationStack(e, this.getClass().getName()) and,
* for no viable alts, the decision description and state etc...
*
* Override this to change the message generated for one or more
* exception types.
*/
public immutable(char)[] getErrorMessage(RecognitionExceptionT e, immutable(char_t)[][] tokenNames) {
//char[] msg = e.getMessage();
immutable(char)[] msg = e.toString();
if ( auto ute = cast(UnwantedTokenExceptionT)e ) {
immutable(char)[] tokenName="<unknown>";
if ( ute.expecting== TokenT.EOF ) {
tokenName = "EOF";
}
else {
tokenName = cast(immutable(char)[])tokenNames[ute.expecting];
}
msg = iFormat8("extraneous input {} expecting {}",
getTokenErrorDisplay(ute.getUnexpectedToken()),
tokenName);
}
else if ( auto mte = cast(MissingTokenExceptionT)e ) {
immutable(char)[] tokenName="<unknown>";
if ( mte.expecting== TokenT.EOF ) {
tokenName = "EOF";
}
else {
tokenName = cast(immutable(char)[])tokenNames[mte.expecting];
}
msg = iFormat8("missing {} at {}",tokenName,getTokenErrorDisplay(e.token));
}
else if ( auto mte = cast(MismatchedTokenExceptionT)e ) {
immutable(char)[] tokenName="<unknown>";
if ( mte.expecting== TokenT.EOF ) {
tokenName = "EOF";
}
else {
tokenName = cast(immutable(char)[])tokenNames[mte.expecting];
}
msg = iFormat8("mismatched input {} expecting {}",
getTokenErrorDisplay(e.token),tokenName);
}
else if ( auto mtne = cast(MismatchedTreeNodeExceptionT)e ) {
immutable(char)[] tokenName="<unknown>";
if ( mtne.expecting==TokenT.EOF ) {
tokenName = "EOF";
}
else {
tokenName = cast(immutable(char)[])tokenNames[mtne.expecting];
}
msg = iFormat8("mismatched tree node: {} expecting {}",
mtne.node,tokenName);
}
else if ( auto nvae = cast(NoViableAltExceptionT)e ) {
// for development, can add "decision=<<"+nvae.grammarDecisionDescription+">>"
// and "(decision="+nvae.decisionNumber+") and
// "state "+nvae.stateNumber
msg = iFormat8("no viable alternative at input {}",getTokenErrorDisplay(e.token));
}
else if ( auto eee = cast(EarlyExitExceptionT)e ) {
// for development, can add "(decision="+eee.decisionNumber+")"
msg = iFormat8("required (...)+ loop did not match anything at input {}",
getTokenErrorDisplay(e.token));
}
else if ( auto mse = cast(MismatchedSetExceptionT)e ) {
msg = iFormat8("mismatched input {} excepting set {}",
getTokenErrorDisplay(e.token),mse.expecting);
}
else if ( auto mse = cast(MismatchedNotSetExceptionT)e ) {
msg = iFormat8("mismatched input {} expecting set {}",
getTokenErrorDisplay(e.token),mse.expecting);
}
else if ( auto fpe = cast(FailedPredicateExceptionT)e ) {
msg = iFormat8("rule {} failed predicate: {{})?",
fpe.ruleName,fpe.predicateText);
}
return msg;
}
/** Get number of recognition errors (lexer, parser, tree parser). Each
* recognizer tracks its own number. So parser and lexer each have
* separate count. Does not count the spurious errors found between
* an error and next valid token match
*
* See also reportError()
*/
public int getNumberOfSyntaxErrors() {
return state.syntaxErrors;
}
/** What is the error header, normally line/character position information? */
public immutable(char)[] getErrorHeader(RecognitionExceptionT e) {
return iFormat8("line {} : {}",e.line,e.charPositionInLine);
}
/** How should a token be displayed in an error message? The default
* is to display just the text, but during development you might
* want to have a lot of information spit out. Override in that case
* to use t.toString() (which, for CommonToken, dumps everything about
* the token). This is better than forcing you to override a method in
* your token objects because you don't have to go modify your lexer
* so that it creates a new Java type.
*/
public immutable(char)[] getTokenErrorDisplay(TokenT t) {
immutable(char)[] s = (t!is null)?cast(immutable(char)[])t.Text():"<NULL>";
if ( s.length == 0 ) {
if ( t.Type==TokenT.EOF ) {
s = "<EOF>";
}
else {
s = iFormat8("<{}>",t.Type);
}
}
s = Regex("\n".dup).replaceAll(s,"\\\\n").idup;
s = Regex("\r".dup).replaceAll(s,"\\\\r").idup;
s = Regex("\t".dup).replaceAll(s,"\\\\t").idup;
return "'"~s~"'";
}
/** Override this method to change where error messages go */
public void emitErrorMessage(immutable(char)[] msg) {
Stdout(msg).nl;
}
/** Recover from an error found on the input stream. This is
* for NoViableAlt and mismatched symbol exceptions. If you enable
* single token insertion and deletion, this will usually not
* handle mismatched symbol exceptions but there could be a mismatched
* token that the match() routine could not recover from.
*/
public void recover(IntStream input, RecognitionExceptionT re) {
if ( state.lastErrorIndex==input.index() ) {
// uh oh, another error at same token index; must be a case
// where LT(1) is in the recovery token set so nothing is
// consumed; consume a single token so at least to prevent
// an infinite loop; this is a failsafe.
input.consume();
}
state.lastErrorIndex = input.index();
BitSet followSet = computeErrorRecoverySet();
beginResync();
consumeUntil(input, followSet);
endResync();
}
/** A hook to listen in on the token consumption during error recovery.
* The DebugParser subclasses this to fire events to the listenter.
*/
public void beginResync() {
}
public void endResync() {
}
/* Compute the error recovery set for the current rule. During
* rule invocation, the parser pushes the set of tokens that can
* follow that rule reference on the stack; this amounts to
* computing FIRST of what follows the rule reference in the
* enclosing rule. This local follow set only includes tokens
* from within the rule; i.e., the FIRST computation done by
* ANTLR stops at the end of a rule.
*
* EXAMPLE
*
* When you find a "no viable alt exception", the input is not
* consistent with any of the alternatives for rule r. The best
* thing to do is to consume tokens until you see something that
* can legally follow a call to r *or* any rule that called r.
* You don't want the exact set of viable next tokens because the
* input might just be missing a token--you might consume the
* rest of the input looking for one of the missing tokens.
*
* Consider grammar:
*
* a : '[' b ']'
* | '(' b ')'
* ;
* b : c '^' INT ;
* c : ID
* | INT
* ;
*
* At each rule invocation, the set of tokens that could follow
* that rule is pushed on a stack. Here are the various "local"
* follow sets:
*
* FOLLOW(b1_in_a) = FIRST(']') = ']'
* FOLLOW(b2_in_a) = FIRST(')') = ')'
* FOLLOW(c_in_b) = FIRST('^') = '^'
*
* Upon erroneous input "[]", the call chain is
*
* a -> b -> c
*
* and, hence, the follow context stack is:
*
* depth local follow set after call to rule
* 0 <EOF> a (from main())
* 1 ']' b
* 3 '^' c
*
* Notice that ')' is not included, because b would have to have
* been called from a different context in rule a for ')' to be
* included.
*
* For error recovery, we cannot consider FOLLOW(c)
* (context-sensitive or otherwise). We need the combined set of
* all context-sensitive FOLLOW sets--the set of all tokens that
* could follow any reference in the call chain. We need to
* resync to one of those tokens. Note that FOLLOW(c)='^' and if
* we resync'd to that token, we'd consume until EOF. We need to
* sync to context-sensitive FOLLOWs for a, b, and c: {']','^'}.
* In this case, for input "[]", LA(1) is in this set so we would
* not consume anything and after printing an error rule c would
* return normally. It would not find the required '^' though.
* At this point, it gets a mismatched token error and throws an
* exception (since LA(1) is not in the viable following token
* set). The rule exception handler tries to recover, but finds
* the same recovery set and doesn't consume anything. Rule b
* exits normally returning to rule a. Now it finds the ']' (and
* with the successful match exits errorRecovery mode).
*
* So, you cna see that the parser walks up call chain looking
* for the token that was a member of the recovery set.
*
* Errors are not generated in errorRecovery mode.
*
* ANTLR's error recovery mechanism is based upon original ideas:
*
* "Algorithms + Data Structures = Programs" by Niklaus Wirth
*
* and
*
* "A note on error recovery in recursive descent parsers":
* http://portal.acm.org/citation.cfm?id=947902.947905
*
* Later, Josef Grosch had some good ideas:
*
* "Efficient and Comfortable Error Recovery in Recursive Descent
* Parsers":
* ftp://www.cocolab.com/products/cocktail/doca4.ps/ell.ps.zip
*
* Like Grosch I implemented local FOLLOW sets that are combined
* at run-time upon error to avoid overhead during parsing.
*/
protected BitSet computeErrorRecoverySet() {
return combineFollows(false);
}
/** Compute the context-sensitive FOLLOW set for current rule.
* This is set of token types that can follow a specific rule
* reference given a specific call chain. You get the set of
* viable tokens that can possibly come next (lookahead depth 1)
* given the current call chain. Contrast this with the
* definition of plain FOLLOW for rule r:
*
* FOLLOW(r)={x | S=>*alpha r beta in G and x in FIRST(beta)}
*
* where x in T* and alpha, beta in V*; T is set of terminals and
* V is the set of terminals and nonterminals. In other words,
* FOLLOW(r) is the set of all tokens that can possibly follow
* references to r in *any* sentential form (context). At
* runtime, however, we know precisely which context applies as
* we have the call chain. We may compute the exact (rather
* than covering superset) set of following tokens.
*
* For example, consider grammar:
*
* stat : ID '=' expr ';' // FOLLOW(stat)=={EOF}
* | "return" expr '.'
* ;
* expr : atom ('+' atom)* ; // FOLLOW(expr)=={';','.',')'}
* atom : INT // FOLLOW(atom)=={'+',')',';','.'}
* | '(' expr ')'
* ;
*
* The FOLLOW sets are all inclusive whereas context-sensitive
* FOLLOW sets are precisely what could follow a rule reference.
* For input input "i=(3);", here is the derivation:
*
* stat => ID '=' expr ';'
* => ID '=' atom ('+' atom)* ';'
* => ID '=' '(' expr ')' ('+' atom)* ';'
* => ID '=' '(' atom ')' ('+' atom)* ';'
* => ID '=' '(' INT ')' ('+' atom)* ';'
* => ID '=' '(' INT ')' ';'
*
* At the "3" token, you'd have a call chain of
*
* stat -> expr -> atom -> expr -> atom
*
* What can follow that specific nested ref to atom? Exactly ')'
* as you can see by looking at the derivation of this specific
* input. Contrast this with the FOLLOW(atom)={'+',')',';','.'}.
*
* You want the exact viable token set when recovering from a
* token mismatch. Upon token mismatch, if LA(1) is member of
* the viable next token set, then you know there is most likely
* a missing token in the input stream. "Insert" one by just not
* throwing an exception.
*/
protected BitSet computeContextSensitiveRuleFOLLOW() {
return combineFollows(true);
}
protected BitSet combineFollows(bool exact) {
int top = state._fsp;
BitSet followSet;
for (int i=top; i>=0; i--) {
BitSet localFollowSet = state.following[i].dup;
/*
System.out.println("local follow depth "+i+"="+
localFollowSet.toString(getTokenNames())+")");
*/
followSet|=localFollowSet;
if ( exact ) {
// can we see end of rule?
if ( localFollowSet[TokenT.EOR_TOKEN_TYPE] ) {
// Only leave EOR in set if at top (start rule); this lets
// us know if have to include follow(start rule); i.e., EOF
if ( i>0 ) {
followSet[TokenT.EOR_TOKEN_TYPE]=0;
}
}
else { // can't see end of rule, quit
break;
}
}
}
return followSet;
}
/** Attempt to recover from a single missing or extra token.
*
* EXTRA TOKEN
*
* LA(1) is not what we are looking for. If LA(2) has the right token,
* however, then assume LA(1) is some extra spurious token. Delete it
* and LA(2) as if we were doing a normal match(), which advances the
* input.
*
* MISSING TOKEN
*
* If current token is consistent with what could come after
* ttype then it is ok to "insert" the missing token, else throw
* exception For example, Input "i=(3;" is clearly missing the
* ')'. When the parser returns from the nested call to expr, it
* will have call chain:
*
* stat -> expr -> atom
*
* and it will be trying to match the ')' at this point in the
* derivation:
*
* => ID '=' '(' INT ')' ('+' atom)* ';'
* ^
* match() will see that ';' doesn't match ')' and report a
* mismatched token error. To recover, it sees that LA(1)==';'
* is in the set of tokens that can follow the ')' token
* reference in rule atom. It can assume that you forgot the ')'.
*/
protected TokenT recoverFromMismatchedToken(IntStream input, int ttype, BitSet follow)
{
RecognitionExceptionT e = null;
// if next token is what we are looking for then "delete" this token
if ( mismatchIsUnwantedToken(input, ttype) ) {
try {
throw new UnwantedTokenExceptionT(ttype, input);
/*
System.err.println("recoverFromMismatchedToken deleting "+
((TokenStream)input).LT(1)+
" since "+((TokenStream)input).LT(2)+" is what we want");
*/
} catch (UnwantedTokenExceptionT e) {
beginResync();
input.consume(); // simply delete extra token
endResync();
reportError(e); // report after consuming so AW sees the token in the exception
// we want to return the token we're actually matching
}
auto matchedSymbol = getCurrentInputSymbol(input);
input.consume(); // move past ttype token as if all were ok
return matchedSymbol;
}
// can't recover with single token deletion, try insertion
if ( mismatchIsMissingToken(input, follow) ) {
auto inserted = getMissingSymbol(input, e, ttype, follow);
e = new MissingTokenExceptionT(ttype, input, inserted);
try {
throw e;
} catch ( MissingTokenExceptionT e) {
reportError(e); // report after inserting so AW sees the token in the exception
}
return inserted;
}
// even that didn't work; must throw the exception
e = new MismatchedTokenExceptionT(ttype, input);
throw e;
}
/** Not currently used */
public TokenT recoverFromMismatchedSet(IntStream input,
RecognitionExceptionT e,
BitSet follow)
{
if ( mismatchIsMissingToken(input, follow) ) {
// System.out.println("missing token");
reportError(e);
// we don't know how to conjure up a token for sets yet
return getMissingSymbol(input, e, TokenT.INVALID_TOKEN_TYPE, follow);
}
// TODO do single token deletion like above for Token mismatch
throw e;
}
/** Match needs to return the current input symbol, which gets put
* into the label for the associated token ref; e.g., x=ID. Token
* and tree parsers need to return different objects. Rather than test
* for input stream type or change the IntStream interface, I use
* a simple method to ask the recognizer to tell me what the current
* input symbol is.
*
* This is ignored for lexers.
*/
protected TokenT getCurrentInputSymbol(IntStream input)
in {
assert(input !is null);
}
out(result){
assert(result !is null);
}
body {
return null;
}
/** Conjure up a missing token during error recovery.
*
* The recognizer attempts to recover from single missing
* symbols. But, actions might refer to that missing symbol.
* For example, x=ID {f($x);}. The action clearly assumes
* that there has been an identifier matched previously and that
* $x points at that token. If that token is missing, but
* the next token in the stream is what we want we assume that
* this token is missing and we keep going. Because we
* have to return some token to replace the missing token,
* we have to conjure one up. This method gives the user control
* over the tokens returned for missing tokens. Mostly,
* you will want to create something special for identifier
* tokens. For literals such as '{' and ',', the default
* action in the parser or tree parser works. It simply creates
* a CommonToken of the appropriate type. The text will be the token.
* If you change what tokens must be created by the lexer,
* override this method to create the appropriate tokens.
*/
protected TokenT getMissingSymbol(IntStream input,
RecognitionExceptionT e,
int expectedTokenType,
const BitSet follow)
{
return null;
}
public void consumeUntil(IntStream input, int tokenType) {
//System.out.println("consumeUntil "+tokenType);
int ttype = input.LA(1);
while (ttype != TokenT.EOF && ttype != tokenType) {
input.consume();
ttype = input.LA(1);
}
}
/** Consume tokens until one matches the given token set */
public void consumeUntil(IntStream input, BitSet set) {
//System.out.println("consumeUntil("+set.toString(getTokenNames())+")");
int ttype = input.LA(1);
while (ttype != TokenT.EOF && !set[ttype] ) {
//System.out.println("consume during recover LA(1)="+getTokenNames()[input.LA(1)]);
input.consume();
ttype = input.LA(1);
}
}
/** Push a rule's follow set using our own hardcoded stack */
protected void pushFollow(ref const BitSet fset) {
if ( (state._fsp +1)>=state.following.length ) {
BitSet[] f = new BitSet[state.following.length*2];
// System.arraycopy(state.following, 0, f, 0, state.following.length-1);
f[][0..state.following.length-1]=state.following[][0..state.following.length-1];
state.following = f;
}
state.following[++state._fsp] = fset.dup;
}
/** Return List<String> of the rules in your parser instance
* leading up to a call to this method. You could override if
* you want more details such as the file/line info of where
* in the parser java code a rule is invoked.
*
* This is very useful for error messages and for context-sensitive
* error recovery.
*/
public LinkedList!(const(char)[]) getRuleInvocationStack() {
// char[] parserClassName = getClass().getName();
immutable(char)[] parserClassName = asClass(typeid(typeof(this))).name;
RuntimeException e;
try {
throw new RuntimeException("getRuleInvocationStack");
} catch (RuntimeException _e) {
e=_e;
}
return getRuleInvocationStack(e, parserClassName);
}
/** A more general version of getRuleInvocationStack where you can
* pass in, for example, a RecognitionException to get it's rule
* stack trace. This routine is shared with all recognizers, hence,
* static.
*
* TODO: move to a utility class or something; weird having lexer call this
*/
public LinkedList!(const(char)[]) getRuleInvocationStack(Exception e,
immutable(char)[] recognizerClassName)
{
auto rules = new LinkedList!(const(char)[]);
foreach(msg; e.info) {
rules.append(msg);
}
return rules;
}
public int getBacktrackingLevel() {
return state.backtracking;
}
/** Used to print out token names like ID during debugging and
* error reporting. The generated parsers implement a method
* that overrides this to point to their String[] tokenNames.
*/
public immutable(char_t)[][] getTokenNames() {
return null;
}
/** For debugging and other purposes, might want the grammar name.
* Have ANTLR generate an implementation for this method.
*/
public immutable(char)[] getGrammarFileName() {
return null;
}
public abstract immutable(char)[] getSourceName();
/** A convenience method for use most often with template rewrites.
* Convert a List<Token> to List<String>
*/
public LinkedList!(immutable(char_t)[]) toStrings(LinkedList!(TokenT) tokens) {
if ( tokens is null ) return null;
auto strings = new LinkedList!(immutable(char_t)[]);
// strings.capacity=tokens.length;
foreach(t;tokens) {
strings.add(t.Text);
/*
for (int i; i<tokens.size(); i++) {
strings.append(tokens.get(i))
strings.add((cast(Token)tokens.get(i)).getText());
*/
}
return strings;
}
/** Given a rule number and a start token index number, return
* MEMO_RULE_UNKNOWN if the rule has not parsed input starting from
* start index. If this rule has parsed input starting from the
* start index before, then return where the rule stopped parsing.
* It returns the index of the last token matched by the rule.
*
* For now we use a hashtable and just the slow Object-based one.
* Later, we can make a special one for ints and also one that
* tosses out data after we commit past input position i.
*/
public int getRuleMemoization(int ruleIndex, int ruleStartIndex) {
if ( state.ruleMemo[ruleIndex] is null ) {
state.ruleMemo[ruleIndex] = new HashMap!(int,int);
}
/*
Integer stopIndexI =
cast(Integer)state.ruleMemo[ruleIndex].get(new
Integer(ruleStartIndex));
*/
bool stopIndexI=state.ruleMemo[ruleIndex].contains(ruleStartIndex);
if ( !stopIndexI ) {
return MEMO_RULE_UNKNOWN;
}
return state.ruleMemo[ruleIndex][ruleStartIndex];
}
/** Has this rule already parsed input at the current index in the
* input stream? Return the stop token index or MEMO_RULE_UNKNOWN.
* If we attempted but failed to parse properly before, return
* MEMO_RULE_FAILED.
*
* This method has a side-effect: if we have seen this input for
* this rule and successfully parsed before, then seek ahead to
* 1 past the stop token matched for this rule last time.
*/
public bool alreadyParsedRule(IntStream input, int ruleIndex) {
int stopIndex = getRuleMemoization(ruleIndex, input.index());
if ( stopIndex==MEMO_RULE_UNKNOWN ) {
return false;
}
if ( stopIndex==MEMO_RULE_FAILED ) {
//System.out.println("rule "+ruleIndex+" will never succeed");
state.failed=true;
}
else {
//System.out.println("seen rule "+ruleIndex+" before; skipping ahead to @"+(stopIndex+1)+" failed="+state.failed);
input.seek(stopIndex+1); // jump to one past stop token
}
return true;
}
/** Record whether or not this rule parsed the input at this position
* successfully. Use a standard java hashtable for now.
*/
public void memoize(IntStream input,
int ruleIndex,
int ruleStartIndex)
{
int stopTokenIndex = state.failed?MEMO_RULE_FAILED:input.index()-1;
if ( state.ruleMemo==null ) {
Stdout("!!!!!!!!! memo array is null for ")(getGrammarFileName()).newline;
}
if ( ruleIndex >= state.ruleMemo.length ) {
Stdout("!!!!!!!!! memo size is ")(state.ruleMemo.length)(", but rule index is ")(ruleIndex).newline;
}
if ( state.ruleMemo[ruleIndex] !is null ) {
state.ruleMemo[ruleIndex].add(ruleStartIndex,stopTokenIndex);
}
}
/** return how many rule/input-index pairs there are in total.
* TODO: this includes synpreds. :(
*/
public int getRuleMemoizationCacheSize() {
int n = 0;
for (int i = 0; state.ruleMemo!=null && i < state.ruleMemo.length; i++) {
HashMap!(int,int) ruleMap = state.ruleMemo[i];
if ( ruleMap !is null ) {
n += ruleMap.size(); // how many input indexes are recorded?
}
}
return n;
}
public void traceIn(immutable(char)[] ruleName, int ruleIndex, TokenT inputSymbol) {
assert(ruleName !is null);
assert(ruleName.length>0);
for(int i=0;i<traceIndent;i++) Stdout(" ");
Stdout("> ")(ruleName)(" ")(inputSymbol.toStringT);
if ( state.failed ) {
Stdout(" failed=")(state.failed).newline;
}
if ( state.backtracking>0 ) {
Stdout(" backtracking=")(state.backtracking);
}
Stdout.newline;
traceIndent++;
}
public void traceOut(immutable(char)[] ruleName,
int ruleIndex,
TokenT inputSymbol)
{
traceIndent--;
for(int i=0;i<traceIndent;i++) Stdout(" ");
Stdout("< ")(ruleName)(" ")(inputSymbol.Text);
if ( state.failed ) {
Stdout(" failed=")(state.failed).newline;
}
if ( state.backtracking>0 ) {
Stdout(" backtracking=")(state.backtracking);
}
Stdout.newline;
}
}
|
D
|
module testrunner;
import std.array;
import std.algorithm;
import std.file;
import std.path;
import std.process;
import std.stdio;
int main( string[] args )
{
writeln( "Building..." );
auto dub = execute( [ "dub", "build", "--compiler="~environment.get( "DC", "dmd" ) ] );
if( dub.status != 0 )
{
writeln( "Build failed.\n", dub.output );
return 1;
}
auto cwd = getcwd();
auto llbuild = "llbuild".absolutePath();
writeln( "Building projects..." );
auto projects = "examples".dirEntries( SpanMode.shallow ).map!absolutePath.array();
foreach( project; projects )
{
chdir( project );
auto result = execute( [ llbuild, "run" ] ~ args );
if( result.status != 0 )
{
writefln( "Project %s build failed:\n%s", project.baseName, result.output );
return 1;
}
else
{
writefln( "%s: pass", project.baseName );
}
}
return 0;
}
|
D
|
/*
* Copyright (c) 2017-2018 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-2018 sel-project
* License: MIT
* Authors: Kripth
* Source: $(HTTP github.com/sel-project/selery/source/selery/math/package.d, selery/math/package.d)
*/
module selery.math;
public import selery.math.vector : Vector, Vector2, Vector3, Vector4, vector, abs, floor, ceil, round, distanceSquared, distance, dot;
|
D
|
///* Licensed under the Apache License, Version 2.0 (the "License");
// * you may not use this file except in compliance with the License.
// * You may obtain a copy of the License at
// *
// * http://www.apache.org/licenses/LICENSE-2.0
// *
// * Unless required by applicable law or agreed to in writing, software
// * distributed under the License is distributed on an "AS IS" BASIS,
// * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// * See the License for the specific language governing permissions and
// * limitations under the License.
// */
//
//
//import hunt.collection.ArrayList;
//import hunt.collection.HashMap;
//import hunt.collection.List;
//import hunt.collection.Map;
//
//import flow.common.api.deleg.event.AbstractFlowableEventListener;
//import flow.common.api.deleg.event.FlowableEngineEventType;
//import flow.common.api.deleg.event.FlowableEntityEvent;
//import flow.common.api.deleg.event.FlowableEvent;
//import flow.common.context.Context;
//import flow.common.interceptor.CommandContext;
//import flow.common.interceptor.CommandContextCloseListener;
//import flow.common.runtime.Clockm;
//import flow.engine.impl.event.logger.handler.ActivityCompensatedEventHandler;
//import flow.engine.impl.event.logger.handler.ActivityCompletedEventHandler;
//import flow.engine.impl.event.logger.handler.ActivityErrorReceivedEventHandler;
//import flow.engine.impl.event.logger.handler.ActivityMessageEventHandler;
//import flow.engine.impl.event.logger.handler.ActivitySignaledEventHandler;
//import flow.engine.impl.event.logger.handler.ActivityStartedEventHandler;
//import flow.engine.impl.event.logger.handler.EventLoggerEventHandler;
//import flow.engine.impl.event.logger.handler.ProcessInstanceEndedEventHandler;
//import flow.engine.impl.event.logger.handler.ProcessInstanceStartedEventHandler;
//import flow.engine.impl.event.logger.handler.SequenceFlowTakenEventHandler;
//import flow.engine.impl.event.logger.handler.TaskAssignedEventHandler;
//import flow.engine.impl.event.logger.handler.TaskCompletedEventHandler;
//import flow.engine.impl.event.logger.handler.TaskCreatedEventHandler;
//import flow.engine.impl.event.logger.handler.VariableCreatedEventHandler;
//import flow.engine.impl.event.logger.handler.VariableDeletedEventHandler;
//import flow.engine.impl.event.logger.handler.VariableUpdatedEventHandler;
//import flow.engine.impl.persistence.entity.ExecutionEntity;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//
//import com.fasterxml.jackson.databind.ObjectMapper;
//
///**
// * @author Joram Barrez
// */
//class EventLogger : AbstractFlowableEventListener {
//
// private static final Logger LOGGER = LoggerFactory.getLogger(EventLogger.class);
//
// private static final string EVENT_FLUSHER_KEY = "eventFlusher";
//
// protected Clockm clock;
// protected ObjectMapper objectMapper;
//
// // Mapping of type -> handler
// protected Map<FlowableEngineEventType, Class<? : EventLoggerEventHandler>> eventHandlers = new HashMap<>();
//
// // Listeners for new events
// protected List!EventLoggerListener listeners;
//
// public EventLogger() {
// initializeDefaultHandlers();
// }
//
// public EventLogger(Clockm clock, ObjectMapper objectMapper) {
// this();
// this.clock = clock;
// this.objectMapper = objectMapper;
// }
//
// protected void initializeDefaultHandlers() {
// addEventHandler(FlowableEngineEventType.TASK_CREATED, TaskCreatedEventHandler.class);
// addEventHandler(FlowableEngineEventType.TASK_COMPLETED, TaskCompletedEventHandler.class);
// addEventHandler(FlowableEngineEventType.TASK_ASSIGNED, TaskAssignedEventHandler.class);
//
// addEventHandler(FlowableEngineEventType.SEQUENCEFLOW_TAKEN, SequenceFlowTakenEventHandler.class);
//
// addEventHandler(FlowableEngineEventType.ACTIVITY_COMPLETED, ActivityCompletedEventHandler.class);
// addEventHandler(FlowableEngineEventType.ACTIVITY_STARTED, ActivityStartedEventHandler.class);
// addEventHandler(FlowableEngineEventType.ACTIVITY_SIGNALED, ActivitySignaledEventHandler.class);
// addEventHandler(FlowableEngineEventType.ACTIVITY_MESSAGE_RECEIVED, ActivityMessageEventHandler.class);
// addEventHandler(FlowableEngineEventType.ACTIVITY_MESSAGE_WAITING, ActivityMessageEventHandler.class);
//
// addEventHandler(FlowableEngineEventType.ACTIVITY_COMPENSATE, ActivityCompensatedEventHandler.class);
// addEventHandler(FlowableEngineEventType.ACTIVITY_ERROR_RECEIVED, ActivityErrorReceivedEventHandler.class);
//
// addEventHandler(FlowableEngineEventType.VARIABLE_CREATED, VariableCreatedEventHandler.class);
// addEventHandler(FlowableEngineEventType.VARIABLE_DELETED, VariableDeletedEventHandler.class);
// addEventHandler(FlowableEngineEventType.VARIABLE_UPDATED, VariableUpdatedEventHandler.class);
// }
//
// override
// public void onEvent(FlowableEvent event) {
// EventLoggerEventHandler eventHandler = getEventHandler(event);
// if (eventHandler !is null) {
//
// // Events are flushed when command context is closed
// CommandContext currentCommandContext = Context.getCommandContext();
// EventFlusher eventFlusher = (EventFlusher) currentCommandContext.getAttribute(EVENT_FLUSHER_KEY);
//
// if (eventFlusher is null) {
//
// eventFlusher = createEventFlusher();
// if (eventFlusher is null) {
// eventFlusher = new DatabaseEventFlusher(); // Default
// }
// currentCommandContext.addAttribute(EVENT_FLUSHER_KEY, eventFlusher);
//
// currentCommandContext.addCloseListener(eventFlusher);
// currentCommandContext
// .addCloseListener(new CommandContextCloseListener() {
//
// override
// public void closing(CommandContext commandContext) {
// }
//
// override
// public void closed(CommandContext commandContext) {
// // For those who are interested: we can now broadcast the events were added
// if (listeners !is null) {
// for (EventLoggerListener listener : listeners) {
// listener.eventsAdded(EventLogger.this);
// }
// }
// }
//
// override
// public void afterSessionsFlush(CommandContext commandContext) {
// }
//
// override
// public void closeFailure(CommandContext commandContext) {
// }
//
// });
// }
//
// eventFlusher.addEventHandler(eventHandler);
// }
// }
//
// // Subclasses can override this if defaults are not ok
// protected EventLoggerEventHandler getEventHandler(FlowableEvent event) {
//
// Class<? : EventLoggerEventHandler> eventHandlerClass = null;
// if (event.getType().equals(FlowableEngineEventType.ENTITY_INITIALIZED)) {
// Object entity = ((FlowableEntityEvent) event).getEntity();
// if (entity instanceof ExecutionEntity) {
// ExecutionEntity executionEntity = (ExecutionEntity) entity;
// if (executionEntity.getProcessInstanceId().equals(executionEntity.getId())) {
// eventHandlerClass = ProcessInstanceStartedEventHandler.class;
// }
// }
// } else if (event.getType().equals(FlowableEngineEventType.ENTITY_DELETED)) {
// Object entity = ((FlowableEntityEvent) event).getEntity();
// if (entity instanceof ExecutionEntity) {
// ExecutionEntity executionEntity = (ExecutionEntity) entity;
// if (executionEntity.getProcessInstanceId().equals(executionEntity.getId())) {
// eventHandlerClass = ProcessInstanceEndedEventHandler.class;
// }
// }
// } else {
// // Default: dedicated mapper for the type
// eventHandlerClass = eventHandlers.get(event.getType());
// }
//
// if (eventHandlerClass !is null) {
// return instantiateEventHandler(event, eventHandlerClass);
// }
//
// return null;
// }
//
// protected EventLoggerEventHandler instantiateEventHandler(FlowableEvent event,
// Class<? : EventLoggerEventHandler> eventHandlerClass) {
// try {
// EventLoggerEventHandler eventHandler = eventHandlerClass.newInstance();
// eventHandler.setTimeStamp(clock.getCurrentTime());
// eventHandler.setEvent(event);
// eventHandler.setObjectMapper(objectMapper);
// return eventHandler;
// } catch (Exception e) {
// LOGGER.warn("Could not instantiate {}, this is most likely a programmatic error", eventHandlerClass);
// }
// return null;
// }
//
// override
// public bool isFailOnException() {
// return false;
// }
//
// public void addEventHandler(FlowableEngineEventType eventType, Class<? : EventLoggerEventHandler> eventHandlerClass) {
// eventHandlers.put(eventType, eventHandlerClass);
// }
//
// public void addEventLoggerListener(EventLoggerListener listener) {
// if (listeners is null) {
// listeners = new ArrayList<>(1);
// }
// listeners.add(listener);
// }
//
// /**
// * Subclasses that want something else than the database flusher should override this method
// */
// protected EventFlusher createEventFlusher() {
// return null;
// }
//
// public Clockm getClock() {
// return clock;
// }
//
// public void setClock(Clockm clock) {
// this.clock = clock;
// }
//
// public ObjectMapper getObjectMapper() {
// return objectMapper;
// }
//
// public void setObjectMapper(ObjectMapper objectMapper) {
// this.objectMapper = objectMapper;
// }
//
// public List!EventLoggerListener getListeners() {
// return listeners;
// }
//
// public void setListeners(List!EventLoggerListener listeners) {
// this.listeners = listeners;
// }
//
//}
|
D
|
//Автор Кристофер Миллер. Переработано для Динрус Виталием Кулич.
//Библиотека визуальных конпонентов VIZ (первоначально DFL).
module viz.textbox;
private import viz.control, viz.common, viz.app;
version(ВИЗ_БЕЗ_МЕНЮ)
{
}
else
{
private import viz.menu;
}
private extern(Windows) проц _initTextBox();
// Note: ПСтилиУпрЭлта.CACHE_TEXT might not work correctly with а текст box.
// It's not actually а bug, but а limitation of this упрэлт.
export abstract class ОсноваТекстБокса: СуперКлассУпрЭлта // docmain
{
export:
final проц acceptsTab(бул подтвержд) // setter
{
atab = подтвержд;
установиСтиль(ПСтилиУпрЭлта.WANT_TAB_KEY, atab);
}
final бул acceptsTab() // getter
{
return atab;
}
проц стильКромки(ПСтильКромки bs) // setter
{
switch(bs)
{
case ПСтильКромки.ФИКС_3М:
_style(_style() & ~WS_BORDER);
_exStyle(_exStyle() | WS_EX_CLIENTEDGE);
break;
case ПСтильКромки.ФИКС_ЕДИН:
_exStyle(_exStyle() & ~WS_EX_CLIENTEDGE);
_style(_style() | WS_BORDER);
break;
case ПСтильКромки.НЕУК:
_style(_style() & ~WS_BORDER);
_exStyle(_exStyle() & ~WS_EX_CLIENTEDGE);
break;
}
if(создан)
{
перерисуйПолностью();
}
}
ПСтильКромки стильКромки() // getter
{
if(_exStyle() & WS_EX_CLIENTEDGE)
return ПСтильКромки.ФИКС_3М;
else if(_style() & WS_BORDER)
return ПСтильКромки.ФИКС_ЕДИН;
return ПСтильКромки.НЕУК;
}
final бул можноОтменить() // getter
{
if(!создан)
return нет;
return SendMessageA(указатель, EM_CANUNDO, 0, 0) != 0;
}
final проц скройВыделение(бул подтвержд) // setter
{
if(подтвержд)
_style(_style() & ~ES_NOHIDESEL);
else
_style(_style() | ES_NOHIDESEL);
}
final бул скройВыделение() // getter
{
return (_style() & ES_NOHIDESEL) == 0;
}
final проц строки(Ткст[] lns) // setter
{
Ткст результат;
foreach(Ткст s; lns)
{
результат ~= s ~ \r\n;
}
if(результат.length) // Remove last \r\n.
результат = результат[0 .. результат.length - 2];
текст = результат;
}
final Ткст[] строки() // getter
{
return разбейнастр(текст);
}
проц максДлина(бцел len) // setter
{
if(!len)
{
if(многострок)
lim = 0xFFFFFFFF;
else
lim = 0x7FFFFFFE;
}
else
{
lim = len;
}
if(создан)
{
Сообщение m;
m = Сообщение(указатель, EM_SETLIMITTEXT, cast(WPARAM)lim, 0);
предшОкПроц(m);
}
}
бцел максДлина() // getter
{
if(создан)
lim = cast(бцел)SendMessageA(указатель, EM_GETLIMITTEXT, 0, 0);
return lim;
}
final бцел дайЧлоСтрок()
{
if(!многострок)
return 1;
if(создан)
{
return cast(бцел)SendMessageA(указатель, EM_GETLINECOUNT, 0, 0);
}
Ткст s;
т_мера iw = 0;
бцел count = 1;
s = текст;
for(; iw != s.length; iw++)
{
if('\r' == s[iw])
{
if(iw + 1 == s.length)
break;
if('\n' == s[iw + 1])
{
iw++;
count++;
}
}
}
return count;
}
final проц изменён(бул подтвержд) // setter
{
if(создан)
SendMessageA(указатель, EM_SETMODIFY, подтвержд, 0);
}
final бул изменён() // getter
{
if(!создан)
return нет;
return SendMessageA(указатель, EM_GETMODIFY, 0, 0) != 0;
}
проц многострок(бул подтвержд) // setter
{
/+
if(подтвержд)
_style(_style() & ~ES_AUTOHSCROLL | ES_MULTILINE);
else
_style(_style() & ~ES_MULTILINE | ES_AUTOHSCROLL);
+/
// TODO: check if correct implementation.
LONG st;
if(подтвержд)
{
st = _style() | ES_MULTILINE | ES_AUTOVSCROLL;
if(_wrap)
st &= ~ES_AUTOHSCROLL;
else
st |= ES_AUTOHSCROLL;
}
else
{
st = _style() & ~(ES_MULTILINE | ES_AUTOVSCROLL);
// Always H-scroll when single line.
st |= ES_AUTOHSCROLL;
}
_style(st);
_crecreate();
}
бул многострок() // getter
{
return (_style() & ES_MULTILINE) != 0;
}
final проц толькоЧтение(бул подтвержд) // setter
{
if(создан)
{
SendMessageA(указатель, EM_SETREADONLY, подтвержд, 0); // Should trigger WM_STYLECHANGED.
инвалидируй(); // ?
}
else
{
if(подтвержд)
_style(_style() | ES_READONLY);
else
_style(_style() & ~ES_READONLY);
}
}
final бул толькоЧтение() // getter
{
return (_style() & ES_READONLY) != 0;
}
проц выделенныйТекст(Ткст sel) // setter
{
/+
if(создан)
SendMessageA(указатель, EM_REPLACESEL, FALSE, cast(LPARAM)небезопТкст0(sel));
+/
if(создан)
{
//шлиСооб(указатель, EM_REPLACESEL, FALSE, sel);
шлиСообНебезоп(указатель, EM_REPLACESEL, FALSE, sel);
}
}
Ткст выделенныйТекст() // getter
{
/+
if(создан)
{
бцел v1, v2;
SendMessageA(указатель, EM_GETSEL, cast(WPARAM)&v1, cast(LPARAM)&v2);
if(v1 == v2)
return пусто;
assert(v2 > v1);
Ткст результат = new сим[v2 - v1 + 1];
результат[результат.length - 1] = 0;
результат = результат[0 .. результат.length - 1];
результат[] = текст[v1 .. v2];
return результат;
}
return пусто;
+/
if(создан)
return дайВыделенныйТекст(указатель);
return пусто;
}
проц длинаВыделения(бцел len) // setter
{
if(создан)
{
бцел v1, v2;
SendMessageA(указатель, EM_GETSEL, cast(WPARAM)&v1, cast(LPARAM)&v2);
v2 = v1 + len;
SendMessageA(указатель, EM_SETSEL, v1, v2);
}
}
// Current selection length, in characters.
// This does not necessarily correspond to the length of chars; some characters use multiple chars.
// An end of line (\r\n) takes up 2 characters.
бцел длинаВыделения() // getter
{
if(создан)
{
бцел v1, v2;
SendMessageA(указатель, EM_GETSEL, cast(WPARAM)&v1, cast(LPARAM)&v2);
assert(v2 >= v1);
return v2 - v1;
}
return 0;
}
проц началоВыделения(бцел поз) // setter
{
if(создан)
{
бцел v1, v2;
SendMessageA(указатель, EM_GETSEL, cast(WPARAM)&v1, cast(LPARAM)&v2);
assert(v2 >= v1);
v2 = поз + (v2 - v1);
SendMessageA(указатель, EM_SETSEL, поз, v2);
}
}
// Current selection стартing индекс, in characters.
// This does not necessarily correspond to the индекс of chars; some characters use multiple chars.
// An end of line (\r\n) takes up 2 characters.
бцел началоВыделения() // getter
{
if(создан)
{
бцел v1, v2;
SendMessageA(указатель, EM_GETSEL, cast(WPARAM)&v1, cast(LPARAM)&v2);
return v1;
}
return 0;
}
// Number of characters in the текстbox.
// This does not necessarily correspond to the number of chars; some characters use multiple chars.
// An end of line (\r\n) takes up 2 characters.
// Return may be larger than the amount of characters.
// This is а lot faster than retrieving the текст, but retrieving the текст is completely accurate.
бцел длинаТекста() // getter
{
if(!(ктрлСтиль & ПСтилиУпрЭлта.CACHE_TEXT) && создан())
//return cast(бцел)SendMessageA(указатель, WM_GETTEXTLENGTH, 0, 0);
return cast(бцел)шлиСооб(указатель, WM_GETTEXTLENGTH, 0, 0);
return окТекст.length;
}
final проц wordWrap(бул подтвержд) // setter
{
/+
if(подтвержд)
_style(_style() | ES_AUTOVSCROLL);
else
_style(_style() & ~ES_AUTOVSCROLL);
+/
// TODO: check if correct implementation.
if(_wrap == подтвержд)
return;
_wrap = подтвержд;
// Always H-scroll when single line.
if(многострок)
{
if(подтвержд)
{
_style(_style() & ~(ES_AUTOHSCROLL | WS_HSCROLL));
}
else
{
LONG st;
st = _style();
st |= ES_AUTOHSCROLL;
if(_hscroll)
st |= WS_HSCROLL;
_style(st);
}
}
_crecreate();
}
final бул wordWrap() // getter
{
//return (_style() & ES_AUTOVSCROLL) != 0;
return _wrap;
}
final проц добавьТекст(Ткст txt)
{
if(создан)
{
началоВыделения = длинаТекста;
выделенныйТекст = txt;
}
else
{
текст = текст ~ txt;
}
}
final проц сотри()
{
/+
// WM_CLEAR only clears the selection ?
if(создан)
SendMessageA(указатель, WM_CLEAR, 0, 0);
else
окТекст = пусто;
+/
текст = пусто;
}
final проц сотриОтмену()
{
if(создан)
SendMessageA(указатель, EM_EMPTYUNDOBUFFER, 0, 0);
}
final проц копируй()
{
if(создан)
{
SendMessageA(указатель, WM_COPY, 0, 0);
}
else
{
// There's never а selection if the окно isn't создан; so just пуст the clipboard.
if(!OpenClipboard(пусто))
{
debug(APP_PRINT)
скажиф("Unable to OpenClipboard().\n");
//throw new ВизИскл("Unable to установи clipboard данные.");
return;
}
EmptyClipboard();
CloseClipboard();
}
}
final проц вырежь()
{
if(создан)
{
SendMessageA(указатель, WM_CUT, 0, 0);
}
else
{
// There's never а selection if the окно isn't создан; so just пуст the clipboard.
if(!OpenClipboard(пусто))
{
debug(APP_PRINT)
скажиф("Unable to OpenClipboard().\n");
//throw new ВизИскл("Unable to установи clipboard данные.");
return;
}
EmptyClipboard();
CloseClipboard();
}
}
final проц вставь()
{
if(создан)
{
SendMessageA(указатель, WM_PASTE, 0, 0);
}
else
{
// Can't do anything because there's нет selection ?
}
}
final проц прокрутиДоКаретки()
{
if(создан)
SendMessageA(указатель, EM_SCROLLCARET, 0, 0);
}
final проц выдели(бцел старт, бцел length)
{
if(создан)
SendMessageA(указатель, EM_SETSEL, старт, старт + length);
}
alias УпрЭлт.выдели выдели; // Overload.
final проц выделиВсе()
{
if(создан)
SendMessageA(указатель, EM_SETSEL, 0, -1);
}
Ткст вТкст()
{
return текст; // ?
}
final проц отмени()
{
if(создан)
SendMessageA(указатель, EM_UNDO, 0, 0);
}
/+
override проц создайУказатель()
{
if(созданУказатель_ли)
return;
создайУказательНаКласс(TEXTBOX_CLASSNAME);
поСозданиюУказателя(АргиСоб.пуст);
}
+/
override проц создайУказатель()
{
if(!созданУказатель_ли)
{
Ткст txt;
txt = окТекст;
super.создайУказатель();
//установиТекстОкна(уок, txt);
текст = txt; // So that it can be overridden.
}
}
override проц создайПараметры(inout ПарамыСозд cp)
{
super.создайПараметры(cp);
cp.имяКласса = TEXTBOX_CLASSNAME;
cp.заглавие = пусто; // Set in создайУказатель() to allow larger buffers.
}
override проц поСозданиюУказателя(АргиСоб ea)
{
super.поСозданиюУказателя(ea);
//SendMessageA(уок, EM_SETLIMITTEXT, cast(WPARAM)lim, 0);
максДлина = lim; // Call virtual function.
}
private
{
version(ВИЗ_БЕЗ_МЕНЮ)
{
}
else
{
проц menuUndo(Объект отправитель, АргиСоб ea)
{
отмени();
}
проц menuCut(Объект отправитель, АргиСоб ea)
{
вырежь();
}
проц menuCopy(Объект отправитель, АргиСоб ea)
{
копируй();
}
проц menuPaste(Объект отправитель, АргиСоб ea)
{
вставь();
}
проц menuDelete(Объект отправитель, АргиСоб ea)
{
// Only сотри selection.
SendMessageA(указатель, WM_CLEAR, 0, 0);
}
проц menuSelectAll(Объект отправитель, АргиСоб ea)
{
выделиВсе();
}
бул isClipboardText()
{
if(!OpenClipboard(указатель))
return нет;
бул результат;
результат = GetClipboardData(CF_TEXT) != пусто;
CloseClipboard();
return результат;
}
проц menuPopup(Объект отправитель, АргиСоб ea)
{
цел slen, tlen;
бул issel;
slen = длинаВыделения;
tlen = длинаТекста;
issel = slen != 0;
miundo.включен = можноОтменить;
micut.включен = !толькоЧтение() && issel;
micopy.включен = issel;
mipaste.включен = !толькоЧтение() && isClipboardText();
midel.включен = !толькоЧтение() && issel;
misel.включен = tlen != 0 && tlen != slen;
}
ПунктМеню miundo, micut, micopy, mipaste, midel, misel;
}
}
this()
{
_initTextBox();
окСтиль |= WS_TABSTOP | ES_AUTOHSCROLL;
окДопСтиль |= WS_EX_CLIENTEDGE;
ктрлСтиль |= ПСтилиУпрЭлта.ВЫДЕЛЕНИЕ;
окСтильКласса = стильКлассаТекстБокс;
version(ВИЗ_БЕЗ_МЕНЮ)
{
}
else
{
ПунктМеню mi;
cmenu = new КонтекстноеМеню;
cmenu.всплытие ~= &menuPopup;
miundo = new ПунктМеню;
miundo.текст = "&Undo";
miundo.клик ~= &menuUndo;
miundo.индекс = 0;
cmenu.элтыМеню.добавь(miundo);
mi = new ПунктМеню;
mi.текст = "-";
mi.индекс = 1;
cmenu.элтыМеню.добавь(mi);
micut = new ПунктМеню;
micut.текст = "Cu&t";
micut.клик ~= &menuCut;
micut.индекс = 2;
cmenu.элтыМеню.добавь(micut);
micopy = new ПунктМеню;
micopy.текст = "&Copy";
micopy.клик ~= &menuCopy;
micopy.индекс = 3;
cmenu.элтыМеню.добавь(micopy);
mipaste = new ПунктМеню;
mipaste.текст = "&Paste";
mipaste.клик ~= &menuPaste;
mipaste.индекс = 4;
cmenu.элтыМеню.добавь(mipaste);
midel = new ПунктМеню;
midel.текст = "&Delete";
midel.клик ~= &menuDelete;
midel.индекс = 5;
cmenu.элтыМеню.добавь(midel);
mi = new ПунктМеню;
mi.текст = "-";
mi.индекс = 6;
cmenu.элтыМеню.добавь(mi);
misel = new ПунктМеню;
misel.текст = "Select &All";
misel.клик ~= &menuSelectAll;
misel.индекс = 7;
cmenu.элтыМеню.добавь(misel);
}
}
override Цвет цветФона() // getter
{
if(Цвет.пуст == цвфона)
return дефЦветФона;
return цвфона;
}
alias УпрЭлт.цветФона цветФона; // Overload.
static Цвет дефЦветФона() // getter
{
return Цвет.системныйЦвет(COLOR_WINDOW);
}
override Цвет цветПП() // getter
{
if(Цвет.пуст == цвпп)
return дефЦветПП;
return цвпп;
}
alias УпрЭлт.цветПП цветПП; // Overload.
static Цвет дефЦветПП() //getter
{
return Цвет.системныйЦвет(COLOR_WINDOWTEXT);
}
override Курсор курсор() // getter
{
if(!окКурс)
return _defaultCursor;
return окКурс;
}
alias УпрЭлт.курсор курсор; // Overload.
цел getFirstCharIndexFromLine(цел line)
{
if(!созданУказатель_ли)
return -1; // ...
if(line < 0)
return -1;
return SendMessageA(уок, EM_LINEINDEX, line, 0);
}
цел getFirstCharIndexOfCurrentLine()
{
if(!созданУказатель_ли)
return -1; // ...
return SendMessageA(уок, EM_LINEINDEX, -1, 0);
}
цел getLineFromCharIndex(цел charIndex)
{
if(!созданУказатель_ли)
return -1; // ...
if(charIndex < 0)
return -1;
return SendMessageA(уок, EM_LINEFROMCHAR, charIndex, 0);
}
Точка getPositionFromCharIndex(цел charIndex)
{
if(!созданУказатель_ли)
return Точка(0, 0); // ...
if(charIndex < 0)
return Точка(0, 0);
Точка Точка;
SendMessageA(уок, EM_POSFROMCHAR, cast(WPARAM)&Точка, charIndex);
return Точка(Точка.ш, Точка.в);
}
цел getCharIndexFromPosition(Точка тчк)
{
if(!созданУказатель_ли)
return -1; // ...
if(!многострок)
return 0;
auto lresult = SendMessageA(уок, EM_CHARFROMPOS, 0, MAKELPARAM(тчк.ш, тчк.в));
if(-1 == lresult)
return -1;
return cast(цел)cast(short)(lresult & 0xFFFF);
}
package static Курсор _defaultCursor() // getter
{
static Курсор def = пусто;
if(!def)
{
synchronized
{
if(!def)
def = new БезопасныйКурсор(LoadCursorA(пусто, IDC_IBEAM));
}
}
return def;
}
override проц поОбратномуСообщению(inout Сообщение m)
{
super.поОбратномуСообщению(m);
switch(m.сооб)
{
case WM_COMMAND:
switch(HIWORD(m.парам1))
{
case EN_CHANGE:
приИзмененииТекста(АргиСоб.пуст);
break;
default: ;
}
break;
/+
case WM_CTLCOLORSTATIC:
case WM_CTLCOLOREDIT:
/+
//SetBkColor(cast(HDC)m.парам1, цветФона.вКзс()); // ?
SetBkMode(cast(HDC)m.парам1, НЕПРОЗРАЧНЫЙ); // ?
+/
break;
+/
default: ;
}
}
override проц предшОкПроц(inout Сообщение сооб)
{
version(ВИЗ_БЕЗ_МЕНЮ)
{
// Don't prevent WM_CONTEXTMENU so at least it'll have а default меню.
}
else
{
if(сооб.сооб == WM_CONTEXTMENU) // Ignore the default контекст меню.
return;
}
//сооб.результат = CallWindowProcA(первОкПроцТексБокса, сооб.уок, сооб.сооб, сооб.парам1, сооб.парам2);
сооб.результат = вызовиОкПроц(первОкПроцТексБокса, сооб.уок, сооб.сооб, сооб.парам1, сооб.парам2);
}
override бул обработайАргиСобКлавиш(inout Сообщение сооб) // package
{
switch(сооб.сооб)
{
case WM_KEYDOWN:
case WM_KEYUP:
case WM_CHAR:
if('\t' == сооб.парам1)
{
// TODO: fix this. This case shouldn't be needed.
if(atab)
{
if(super.обработайАргиСобКлавиш(сооб))
return да; // Handled.
if(WM_KEYDOWN == сооб.сооб)
{
if(многострок) // Only многострок текстboxes can have real tabs..
{
//выделенныйТекст = "\t";
//SendMessageA(указатель, EM_REPLACESEL, TRUE, cast(LPARAM)"\t".ptr); // Allow отмени. // Crashes DMD 0.161.
auto str = "\t".ptr;
SendMessageA(указатель, EM_REPLACESEL, TRUE, cast(LPARAM)str); // Allow отмени.
}
}
return да; // Handled.
}
}
break;
default: ;
}
return super.обработайАргиСобКлавиш(сооб);
}
override проц окПроц(inout Сообщение сооб)
{
switch(сооб.сооб)
{
case WM_GETDLGCODE:
super.окПроц(сооб);
if(atab)
{
//if(GetKeyState(ПКлавиши.TAB) & 0x8000)
{
//сооб.результат |= DLGC_WANTALLKEYS;
сооб.результат |= DLGC_WANTTAB;
}
}
else
{
сооб.результат &= ~DLGC_WANTTAB;
}
return;
default:
super.окПроц(сооб);
}
}
override Размер дефРазм() // getter
{
return Размер(120, 23); // ?
}
private:
package бцел lim = 30_000; // Documented as default.
бул _wrap = да;
бул _hscroll;
бул atab = нет;
/+
бул atab() // getter
{
if(_style() & X)
return да;
return нет;
}
проц atab(бул подтвержд) // setter
{
if(подтвержд)
_style(_style() | X);
else
_style(_style() & ~X);
}
+/
проц hscroll(бул подтвержд) // setter
{
_hscroll = подтвержд;
if(подтвержд && (!_wrap || !многострок))
_style(_style() | WS_HSCROLL | ES_AUTOHSCROLL);
}
бул hscroll() // getter
{
return _hscroll;
}
}
export class ТекстБокс: ОсноваТекстБокса // docmain
{
export:
final проц acceptsReturn(бул подтвержд) // setter
{
if(подтвержд)
_style(_style() | ES_WANTRETURN);
else
_style(_style() & ~ES_WANTRETURN);
}
final бул acceptsReturn() // getter
{
return (_style() & ES_WANTRETURN) != 0;
}
final проц characterCasing(ПРегистрСимволов cc) // setter
{
LONG wl = _style() & ~(ES_UPPERCASE | ES_LOWERCASE);
switch(cc)
{
case ПРегистрСимволов.ЗАГ:
wl |= ES_UPPERCASE;
break;
case ПРегистрСимволов.ПРОПИСЬ:
wl |= ES_LOWERCASE;
break;
case ПРегистрСимволов.НОРМА:
break;
}
_style(wl);
}
final ПРегистрСимволов characterCasing() // getter
{
LONG wl = _style();
if(wl & ES_UPPERCASE)
return ПРегистрСимволов.ЗАГ;
else if(wl & ES_LOWERCASE)
return ПРегистрСимволов.ПРОПИСЬ;
return ПРегистрСимволов.НОРМА;
}
// Set to 0 (NUL) to удали.
final проц passwordChar(дим pwc) // setter
{
if(pwc)
{
// When the EM_SETPASSWORDCHAR сообщение is received by an edit упрэлт,
// the edit упрэлт redraws все виден characters by using the
// character задано by the ch parameter.
if(создан)
//SendMessageA(указатель, EM_SETPASSWORDCHAR, pwc, 0);
emSetPasswordChar(указатель, pwc);
else
_style(_style() | ES_PASSWORD);
}
else
{
// The стиль ES_PASSWORD is removed if an EM_SETPASSWORDCHAR сообщение
// is sent with the ch parameter установи to zero.
if(создан)
//SendMessageA(указатель, EM_SETPASSWORDCHAR, 0, 0);
emSetPasswordChar(указатель, 0);
else
_style(_style() & ~ES_PASSWORD);
}
passchar = pwc;
}
final дим passwordChar() // getter
{
if(создан)
//passchar = cast(дим)SendMessageA(указатель, EM_GETPASSWORDCHAR, 0, 0);
passchar = emGetPasswordChar(указатель);
return passchar;
}
final проц полосыПрокрутки(ППолосыПрокрутки sb) // setter
{
/+
switch(sb)
{
case ППолосыПрокрутки.ОБА:
_style(_style() | WS_HSCROLL | WS_VSCROLL);
break;
case ППолосыПрокрутки.ГОРИЗ:
_style(_style() & ~WS_VSCROLL | WS_HSCROLL);
break;
case ППолосыПрокрутки.ВЕРТ:
_style(_style() & ~WS_HSCROLL | WS_VSCROLL);
break;
case ППолосыПрокрутки.НЕУК:
_style(_style() & ~(WS_HSCROLL | WS_VSCROLL));
break;
}
+/
switch(sb)
{
case ППолосыПрокрутки.ОБА:
_style(_style() | WS_VSCROLL);
hscroll = да;
break;
case ППолосыПрокрутки.ГОРИЗ:
_style(_style() & ~WS_VSCROLL);
hscroll = да;
break;
case ППолосыПрокрутки.ВЕРТ:
_style(_style() | WS_VSCROLL);
hscroll = нет;
break;
case ППолосыПрокрутки.НЕУК:
_style(_style() & ~WS_VSCROLL);
hscroll = нет;
break;
}
if(создан)
перерисуйПолностью();
}
final ППолосыПрокрутки полосыПрокрутки() // getter
{
LONG wl = _style();
//if(wl & WS_HSCROLL)
if(hscroll)
{
if(wl & WS_VSCROLL)
return ППолосыПрокрутки.ОБА;
return ППолосыПрокрутки.ГОРИЗ;
}
if(wl & WS_VSCROLL)
return ППолосыПрокрутки.ВЕРТ;
return ППолосыПрокрутки.НЕУК;
}
final проц разместиТекст(ПГоризРасположение ha) // setter
{
LONG wl = _style() & ~(ES_RIGHT | ES_CENTER | ES_LEFT);
switch(ha)
{
case ПГоризРасположение.ПРАВ:
wl |= ES_RIGHT;
break;
case ПГоризРасположение.ЦЕНТР:
wl |= ES_CENTER;
break;
case ПГоризРасположение.ЛЕВ:
wl |= ES_LEFT;
break;
}
_style(wl);
_crecreate();
}
final ПГоризРасположение разместиТекст() // getter
{
LONG wl = _style();
if(wl & ES_RIGHT)
return ПГоризРасположение.ПРАВ;
if(wl & ES_CENTER)
return ПГоризРасположение.ЦЕНТР;
return ПГоризРасположение.ЛЕВ;
}
this()
{
окСтиль |= ES_LEFT;
}
override проц поСозданиюУказателя(АргиСоб ea)
{
super.поСозданиюУказателя(ea);
if(passchar)
{
SendMessageA(уок, EM_SETPASSWORDCHAR, passchar, 0);
}
}
/+
override проц окПроц(inout Сообщение сооб)
{
switch(сооб.сооб)
{
/+
case WM_GETDLGCODE:
if(!acceptsReturn && (GetKeyState(ПКлавиши.RETURN) & 0x8000))
{
// Hack.
сооб.результат = DLGC_HASSETSEL | DLGC_WANTCHARS | DLGC_WANTARROWS;
return;
}
break;
+/
default: ;
}
super.окПроц(сооб);
}
+/
private:
дим passchar = 0;
}
|
D
|
module orelang.operator.SortOperator;
import orelang.operator.IOperator,
orelang.Engine,
orelang.Value;
import std.algorithm,
std.array;
class SortOperator : IOperator {
public Value call(Engine engine, Value[] args) {
Value eargs0 = engine.eval(args[0]);
Value[] array,
ret;
if (eargs0.type == ValueType.Array) {
array = eargs0.getArray;
} else if (eargs0.type == ValueType.ImmediateValue && eargs0.getImmediateValue.value.type == ValueType.Array) {
array = eargs0.getImmediateValue.value.getArray;
} else {
throw new Exception("[SortOperator] Invaild argument was given. SortOperator accepts list or array only.");
}
switch (array[0].type) with (ValueType) {
case Numeric:
double[] tmp = array.map!(value => value.getNumeric).array;
std.algorithm.sort(tmp);
foreach (t; tmp) {
ret ~= new Value(t);
}
break;
case String:
string[] tmp = array.map!(value => value.getString).array;
std.algorithm.sort(tmp);
foreach (t; tmp) {
ret ~= new Value(t);
}
break;
default:
throw new Exception("[SortOperator] Can't sort given array, all element of the array must be typed Numeric or String and the types are unified");
}
return new Value(ret);
}
}
|
D
|
//T compiles:yes
//T lexer:yes
//T parser:yes
//T semantic:yes
//T retval:42
int foo() { return 42; }
int main()
{
int function()[] l;
l.length = 1;
l[0] = &foo;
return l[0]();
}
|
D
|
/**
* Compiler implementation of the
* $(LINK2 http://www.dlang.org, D programming language).
* Entry point for DMD.
*
* This modules defines the entry point (main) for DMD, as well as related
* utilities needed for arguments parsing, path manipulation, etc...
* This file is not shared with other compilers which use the DMD front-end.
*
* Copyright: Copyright (C) 1999-2018 by The D Language Foundation, All Rights Reserved
* Authors: $(LINK2 http://www.digitalmars.com, Walter Bright)
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/mars.d, _mars.d)
* Documentation: https://dlang.org/phobos/dmd_mars.html
* Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/mars.d
*/
module dmd.mars;
import core.stdc.ctype;
import core.stdc.limits;
import core.stdc.stdio;
import core.stdc.stdlib;
import core.stdc.string;
import dmd.arraytypes;
import dmd.astcodegen;
import dmd.gluelayer;
import dmd.builtin;
import dmd.cond;
import dmd.console;
import dmd.dinifile;
import dmd.dinterpret;
import dmd.dmodule;
import dmd.doc;
import dmd.dscope;
import dmd.dsymbol;
import dmd.dsymbolsem;
import dmd.errors;
import dmd.expression;
import dmd.globals;
import dmd.hdrgen;
import dmd.id;
import dmd.identifier;
import dmd.inline;
import dmd.json;
import dmd.lib;
import dmd.link;
import dmd.mtype;
import dmd.objc;
import dmd.parse;
import dmd.root.array;
import dmd.root.file;
import dmd.root.filename;
import dmd.root.man;
import dmd.root.outbuffer;
import dmd.root.response;
import dmd.root.rmem;
import dmd.root.stringtable;
import dmd.semantic2;
import dmd.semantic3;
import dmd.target;
import dmd.tokens;
import dmd.utils;
/**
* Print DMD's logo on stdout
*/
private void logo()
{
printf("DMD%llu D Compiler %s\n%s %s\n", cast(ulong)size_t.sizeof * 8, global._version, global.copyright, global.written);
}
/**
Print DMD's logo with more debug information and error-reporting pointers.
Params:
stream = output stream to print the information on
*/
extern(C) void printInternalFailure(FILE* stream)
{
fputs(("---\n" ~
"ERROR: This is a compiler bug.\n" ~
"Please report it via https://issues.dlang.org/enter_bug.cgi\n" ~
"with, preferably, a reduced, reproducible example and the information below.\n" ~
"DustMite (https://github.com/CyberShadow/DustMite/wiki) can help with the reduction.\n" ~
"---\n").ptr, stream);
stream.fprintf("DMD %s\n", global._version);
stream.printPredefinedVersions;
stream.printGlobalConfigs();
fputs("---\n".ptr, stream);
}
/**
* Print DMD's usage message on stdout
*/
private void usage()
{
import dmd.cli : CLIUsage;
logo();
auto help = CLIUsage.usage;
printf("
Documentation: https://dlang.org/
Config file: %s
Usage:
dmd [<option>...] <file>...
dmd [<option>...] -run <file> [<arg>...]
Where:
<file> D source file
<arg> Argument to pass when running the resulting program
<option>:
@<cmdfile> read arguments from cmdfile
%.*s", FileName.canonicalName(global.inifilename), help.length, &help[0]);
}
/// DMD-generated module `__entrypoint` where the C main resides
extern (C++) __gshared Module entrypoint = null;
/// Module in which the D main is
extern (C++) __gshared Module rootHasMain = null;
/**
* Generate C main() in response to seeing D main().
*
* This function will generate a module called `__entrypoint`,
* and set the globals `entrypoint` and `rootHasMain`.
*
* This used to be in druntime, but contained a reference to _Dmain
* which didn't work when druntime was made into a dll and was linked
* to a program, such as a C++ program, that didn't have a _Dmain.
*
* Params:
* sc = Scope which triggered the generation of the C main,
* used to get the module where the D main is.
*/
extern (C++) void genCmain(Scope* sc)
{
if (entrypoint)
return;
/* The D code to be generated is provided as D source code in the form of a string.
* Note that Solaris, for unknown reasons, requires both a main() and an _main()
*/
immutable cmaincode =
q{
extern(C)
{
int _d_run_main(int argc, char **argv, void* mainFunc);
int _Dmain(char[][] args);
int main(int argc, char **argv)
{
return _d_run_main(argc, argv, &_Dmain);
}
version (Solaris) int _main(int argc, char** argv) { return main(argc, argv); }
}
};
Identifier id = Id.entrypoint;
auto m = new Module("__entrypoint.d", id, 0, 0);
scope p = new Parser!ASTCodegen(m, cmaincode, false);
p.scanloc = Loc.initial;
p.nextToken();
m.members = p.parseModule();
assert(p.token.value == TOK.endOfFile);
assert(!p.errors); // shouldn't have failed to parse it
bool v = global.params.verbose;
global.params.verbose = false;
m.importedFrom = m;
m.importAll(null);
m.dsymbolSemantic(null);
m.semantic2(null);
m.semantic3(null);
global.params.verbose = v;
entrypoint = m;
rootHasMain = sc._module;
}
/**
* DMD's real entry point
*
* Parses command line arguments and config file, open and read all
* provided source file and do semantic analysis on them.
*
* Params:
* argc = Number of arguments passed via command line
* argv = Array of string arguments passed via command line
*
* Returns:
* Application return code
*/
private int tryMain(size_t argc, const(char)** argv)
{
Strings files;
Strings libmodules;
global._init();
debug
{
printf("DMD %s DEBUG\n", global._version);
fflush(stdout); // avoid interleaving with stderr output when redirecting
}
// Check for malformed input
if (argc < 1 || !argv)
{
Largs:
error(Loc.initial, "missing or null command line arguments");
fatal();
}
// Convert argc/argv into arguments[] for easier handling
Strings arguments = Strings(argc);
for (size_t i = 0; i < argc; i++)
{
if (!argv[i])
goto Largs;
arguments[i] = argv[i];
}
if (response_expand(&arguments)) // expand response files
error(Loc.initial, "can't open response file");
//for (size_t i = 0; i < arguments.dim; ++i) printf("arguments[%d] = '%s'\n", i, arguments[i]);
files.reserve(arguments.dim - 1);
// Set default values
global.params.argv0 = arguments[0];
// Temporary: Use 32 bits as the default on Windows, for config parsing
static if (TARGET.Windows)
global.params.is64bit = false;
global.inifilename = parse_conf_arg(&arguments);
if (global.inifilename)
{
// can be empty as in -conf=
if (strlen(global.inifilename) && !FileName.exists(global.inifilename))
error(Loc.initial, "Config file '%s' does not exist.", global.inifilename);
}
else
{
version (Windows)
{
global.inifilename = findConfFile(global.params.argv0, "sc.ini");
}
else version (Posix)
{
global.inifilename = findConfFile(global.params.argv0, "dmd.conf");
}
else
{
static assert(0, "fix this");
}
}
// Read the configurarion file
auto inifile = File(global.inifilename);
inifile.read();
/* Need path of configuration file, for use in expanding @P macro
*/
const(char)* inifilepath = FileName.path(global.inifilename);
Strings sections;
StringTable environment;
environment._init(7);
/* Read the [Environment] section, so we can later
* pick up any DFLAGS settings.
*/
sections.push("Environment");
parseConfFile(&environment, global.inifilename, inifilepath, inifile.len, inifile.buffer, §ions);
const(char)* arch = global.params.is64bit ? "64" : "32"; // use default
arch = parse_arch_arg(&arguments, arch);
// parse architecture from DFLAGS read from [Environment] section
{
Strings dflags;
getenv_setargv(readFromEnv(&environment, "DFLAGS"), &dflags);
environment.reset(7); // erase cached environment updates
arch = parse_arch_arg(&dflags, arch);
}
bool is64bit = arch[0] == '6';
version(Windows) // delete LIB entry in [Environment] (necessary for optlink) to allow inheriting environment for MS-COFF
if (is64bit || strcmp(arch, "32mscoff") == 0)
environment.update("LIB", 3).ptrvalue = null;
// read from DFLAGS in [Environment{arch}] section
char[80] envsection = void;
sprintf(envsection.ptr, "Environment%s", arch);
sections.push(envsection.ptr);
parseConfFile(&environment, global.inifilename, inifilepath, inifile.len, inifile.buffer, §ions);
getenv_setargv(readFromEnv(&environment, "DFLAGS"), &arguments);
updateRealEnvironment(&environment);
environment.reset(1); // don't need environment cache any more
if (parseCommandLine(arguments, argc, global.params, files))
{
Loc loc;
errorSupplemental(loc, "run 'dmd -man' to open browser on manual");
return EXIT_FAILURE;
}
if (global.params.usage)
{
usage();
return EXIT_SUCCESS;
}
if (global.params.logo)
{
logo();
return EXIT_SUCCESS;
}
if (global.params.mcpuUsage)
{
import dmd.cli : CLIUsage;
auto help = CLIUsage.mcpu;
printf("%.*s", help.length, &help[0]);
return EXIT_SUCCESS;
}
if (global.params.transitionUsage)
{
import dmd.cli : CLIUsage;
auto help = CLIUsage.transitionUsage;
printf("%.*s", help.length, &help[0]);
return EXIT_SUCCESS;
}
if (global.params.manual)
{
version (Windows)
{
browse("http://dlang.org/dmd-windows.html");
}
version (linux)
{
browse("http://dlang.org/dmd-linux.html");
}
version (OSX)
{
browse("http://dlang.org/dmd-osx.html");
}
version (FreeBSD)
{
browse("http://dlang.org/dmd-freebsd.html");
}
/*NOTE: No regular builds for openbsd/dragonflybsd (yet) */
/*
version (OpenBSD)
{
browse("http://dlang.org/dmd-openbsd.html");
}
version (DragonFlyBSD)
{
browse("http://dlang.org/dmd-dragonflybsd.html");
}
*/
return EXIT_SUCCESS;
}
if (global.params.color)
global.console = Console.create(core.stdc.stdio.stderr);
global.params.cpu = setTargetCPU(global.params.cpu);
if (global.params.is64bit != is64bit)
error(Loc.initial, "the architecture must not be changed in the %s section of %s", envsection.ptr, global.inifilename);
// Target uses 64bit pointers.
global.params.isLP64 = global.params.is64bit;
if (global.errors)
{
fatal();
}
if (files.dim == 0)
{
if (global.params.jsonFieldFlags)
{
generateJson(null);
return EXIT_SUCCESS;
}
usage();
return EXIT_FAILURE;
}
static if (TARGET.OSX)
{
global.params.pic = 1;
}
static if (TARGET.Linux || TARGET.OSX || TARGET.FreeBSD || TARGET.OpenBSD || TARGET.Solaris || TARGET.DragonFlyBSD)
{
if (global.params.lib && global.params.dll)
error(Loc.initial, "cannot mix -lib and -shared");
}
static if (TARGET.Windows)
{
if (global.params.mscoff && !global.params.mscrtlib)
{
VSOptions vsopt;
vsopt.initialize();
global.params.mscrtlib = vsopt.defaultRuntimeLibrary(global.params.is64bit);
}
}
if (global.params.release)
{
global.params.useInvariants = false;
global.params.useIn = false;
global.params.useOut = false;
if (global.params.useArrayBounds == CHECKENABLE._default)
global.params.useArrayBounds = CHECKENABLE.safeonly;
if (global.params.useAssert == CHECKENABLE._default)
global.params.useAssert = CHECKENABLE.off;
if (global.params.useSwitchError == CHECKENABLE._default)
global.params.useSwitchError = CHECKENABLE.off;
}
if (global.params.betterC)
{
global.params.checkAction = CHECKACTION.C;
global.params.useModuleInfo = false;
global.params.useTypeInfo = false;
global.params.useExceptions = false;
}
if (global.params.useUnitTests)
global.params.useAssert = CHECKENABLE.on;
if (global.params.useArrayBounds == CHECKENABLE._default)
global.params.useArrayBounds = CHECKENABLE.on;
if (global.params.useAssert == CHECKENABLE._default)
global.params.useAssert = CHECKENABLE.on;
if (global.params.useSwitchError == CHECKENABLE._default)
global.params.useSwitchError = CHECKENABLE.on;
if (!global.params.obj || global.params.lib)
global.params.link = false;
if (global.params.link)
{
global.params.exefile = global.params.objname;
global.params.oneobj = true;
if (global.params.objname)
{
/* Use this to name the one object file with the same
* name as the exe file.
*/
global.params.objname = cast(char*)FileName.forceExt(global.params.objname, global.obj_ext);
/* If output directory is given, use that path rather than
* the exe file path.
*/
if (global.params.objdir)
{
const(char)* name = FileName.name(global.params.objname);
global.params.objname = cast(char*)FileName.combine(global.params.objdir, name);
}
}
}
else if (global.params.run)
{
error(Loc.initial, "flags conflict with -run");
fatal();
}
else if (global.params.lib)
{
global.params.libname = global.params.objname;
global.params.objname = null;
// Haven't investigated handling these options with multiobj
if (!global.params.cov && !global.params.trace)
global.params.multiobj = true;
}
else
{
if (global.params.objname && files.dim > 1)
{
global.params.oneobj = true;
//error("multiple source files, but only one .obj name");
//fatal();
}
}
// Add in command line versions
if (global.params.versionids)
foreach (charz; *global.params.versionids)
VersionCondition.addGlobalIdent(charz[0 .. strlen(charz)]);
if (global.params.debugids)
foreach (charz; *global.params.debugids)
DebugCondition.addGlobalIdent(charz[0 .. strlen(charz)]);
// Predefined version identifiers
addDefaultVersionIdentifiers();
setDefaultLibrary();
// Initialization
Type._init();
Id.initialize();
Module._init();
Module.onImport = &marsOnImport;
Target._init();
Expression._init();
Objc._init();
builtin_init();
version(CRuntime_Microsoft)
{
import dmd.root.longdouble;
initFPU();
}
import dmd.root.ctfloat : CTFloat;
CTFloat.initialize();
if (global.params.verbose)
{
stdout.printPredefinedVersions();
stdout.printGlobalConfigs();
}
//printf("%d source files\n",files.dim);
// Build import search path
static Strings* buildPath(Strings* imppath)
{
Strings* result = null;
if (imppath)
{
foreach (const path; *imppath)
{
Strings* a = FileName.splitPath(path);
if (a)
{
if (!result)
result = new Strings();
result.append(a);
}
}
}
return result;
}
global.path = buildPath(global.params.imppath);
global.filePath = buildPath(global.params.fileImppath);
if (global.params.addMain)
{
files.push(cast(char*)global.main_d); // a dummy name, we never actually look up this file
}
// Create Modules
Modules modules;
modules.reserve(files.dim);
bool firstmodule = true;
for (size_t i = 0; i < files.dim; i++)
{
const(char)* name;
version (Windows)
{
files[i] = toWinPath(files[i]);
}
const(char)* p = files[i];
p = FileName.name(p); // strip path
const(char)* ext = FileName.ext(p);
char* newname;
if (ext)
{
/* Deduce what to do with a file based on its extension
*/
if (FileName.equals(ext, global.obj_ext))
{
global.params.objfiles.push(files[i]);
libmodules.push(files[i]);
continue;
}
if (FileName.equals(ext, global.lib_ext))
{
global.params.libfiles.push(files[i]);
libmodules.push(files[i]);
continue;
}
static if (TARGET.Linux || TARGET.OSX || TARGET.FreeBSD || TARGET.OpenBSD || TARGET.Solaris || TARGET.DragonFlyBSD)
{
if (FileName.equals(ext, global.dll_ext))
{
global.params.dllfiles.push(files[i]);
libmodules.push(files[i]);
continue;
}
}
if (strcmp(ext, global.ddoc_ext) == 0)
{
global.params.ddocfiles.push(files[i]);
continue;
}
if (FileName.equals(ext, global.json_ext))
{
global.params.doJsonGeneration = true;
global.params.jsonfilename = files[i];
continue;
}
if (FileName.equals(ext, global.map_ext))
{
global.params.mapfile = files[i];
continue;
}
static if (TARGET.Windows)
{
if (FileName.equals(ext, "res"))
{
global.params.resfile = files[i];
continue;
}
if (FileName.equals(ext, "def"))
{
global.params.deffile = files[i];
continue;
}
if (FileName.equals(ext, "exe"))
{
assert(0); // should have already been handled
}
}
/* Examine extension to see if it is a valid
* D source file extension
*/
if (FileName.equals(ext, global.mars_ext) || FileName.equals(ext, global.hdr_ext) || FileName.equals(ext, "dd"))
{
ext--; // skip onto '.'
assert(*ext == '.');
newname = cast(char*)mem.xmalloc((ext - p) + 1);
memcpy(newname, p, ext - p);
newname[ext - p] = 0; // strip extension
name = newname;
if (name[0] == 0 || strcmp(name, "..") == 0 || strcmp(name, ".") == 0)
{
Linvalid:
error(Loc.initial, "invalid file name '%s'", files[i]);
fatal();
}
}
else
{
error(Loc.initial, "unrecognized file extension %s", ext);
fatal();
}
}
else
{
name = p;
if (!*name)
goto Linvalid;
}
/* At this point, name is the D source file name stripped of
* its path and extension.
*/
auto id = Identifier.idPool(name, cast(uint)strlen(name));
auto m = new Module(files[i], id, global.params.doDocComments, global.params.doHdrGeneration);
modules.push(m);
if (firstmodule)
{
global.params.objfiles.push(m.objfile.name.str);
firstmodule = false;
}
}
// Read files
/* Start by "reading" the dummy main.d file
*/
if (global.params.addMain)
{
bool added = false;
foreach (m; modules)
{
if (strcmp(m.srcfile.name.str, global.main_d) == 0)
{
string buf = "int main(){return 0;}";
m.srcfile.setbuffer(cast(void*)buf.ptr, buf.length);
m.srcfile._ref = 1;
added = true;
break;
}
}
assert(added);
}
enum ASYNCREAD = false;
static if (ASYNCREAD)
{
// Multi threaded
AsyncRead* aw = AsyncRead.create(modules.dim);
foreach (m; modules)
{
aw.addFile(m.srcfile);
}
aw.start();
}
else
{
// Single threaded
foreach (m; modules)
{
m.read(Loc.initial);
}
}
// Parse files
bool anydocfiles = false;
size_t filecount = modules.dim;
for (size_t filei = 0, modi = 0; filei < filecount; filei++, modi++)
{
Module m = modules[modi];
if (global.params.verbose)
message("parse %s", m.toChars());
if (!Module.rootModule)
Module.rootModule = m;
m.importedFrom = m; // m.isRoot() == true
if (!global.params.oneobj || modi == 0 || m.isDocFile)
m.deleteObjFile();
static if (ASYNCREAD)
{
if (aw.read(filei))
{
error(Loc.initial, "cannot read file %s", m.srcfile.name.toChars());
fatal();
}
}
m.parse();
if (m.isDocFile)
{
anydocfiles = true;
gendocfile(m);
// Remove m from list of modules
modules.remove(modi);
modi--;
// Remove m's object file from list of object files
for (size_t j = 0; j < global.params.objfiles.dim; j++)
{
if (m.objfile.name.str == global.params.objfiles[j])
{
global.params.objfiles.remove(j);
break;
}
}
if (global.params.objfiles.dim == 0)
global.params.link = false;
}
}
static if (ASYNCREAD)
{
AsyncRead.dispose(aw);
}
if (anydocfiles && modules.dim && (global.params.oneobj || global.params.objname))
{
error(Loc.initial, "conflicting Ddoc and obj generation options");
fatal();
}
if (global.errors)
fatal();
if (global.params.doHdrGeneration)
{
/* Generate 'header' import files.
* Since 'header' import files must be independent of command
* line switches and what else is imported, they are generated
* before any semantic analysis.
*/
foreach (m; modules)
{
if (global.params.verbose)
message("import %s", m.toChars());
genhdrfile(m);
}
}
if (global.errors)
fatal();
// load all unconditional imports for better symbol resolving
foreach (m; modules)
{
if (global.params.verbose)
message("importall %s", m.toChars());
m.importAll(null);
}
if (global.errors)
fatal();
backend_init();
// Do semantic analysis
foreach (m; modules)
{
if (global.params.verbose)
message("semantic %s", m.toChars());
m.dsymbolSemantic(null);
}
//if (global.errors)
// fatal();
Module.dprogress = 1;
Module.runDeferredSemantic();
if (Module.deferred.dim)
{
for (size_t i = 0; i < Module.deferred.dim; i++)
{
Dsymbol sd = Module.deferred[i];
sd.error("unable to resolve forward reference in definition");
}
//fatal();
}
// Do pass 2 semantic analysis
foreach (m; modules)
{
if (global.params.verbose)
message("semantic2 %s", m.toChars());
m.semantic2(null);
}
Module.runDeferredSemantic2();
if (global.errors)
fatal();
// Do pass 3 semantic analysis
foreach (m; modules)
{
if (global.params.verbose)
message("semantic3 %s", m.toChars());
m.semantic3(null);
}
if (includeImports)
{
// Note: DO NOT USE foreach here because Module.amodules.dim can
// change on each iteration of the loop
for (size_t i = 0; i < compiledImports.dim; i++)
{
auto m = compiledImports[i];
assert(m.isRoot);
if (global.params.verbose)
message("semantic3 %s", m.toChars());
m.semantic3(null);
modules.push(m);
}
}
Module.runDeferredSemantic3();
if (global.errors)
fatal();
// Scan for functions to inline
if (global.params.useInline)
{
foreach (m; modules)
{
if (global.params.verbose)
message("inline scan %s", m.toChars());
inlineScanModule(m);
}
}
// Do not attempt to generate output files if errors or warnings occurred
if (global.errors || global.warnings)
fatal();
// inlineScan incrementally run semantic3 of each expanded functions.
// So deps file generation should be moved after the inlinig stage.
if (global.params.moduleDeps)
{
foreach (i; 1 .. modules[0].aimports.dim)
semantic3OnDependencies(modules[0].aimports[i]);
OutBuffer* ob = global.params.moduleDeps;
if (global.params.moduleDepsFile)
{
auto deps = File(global.params.moduleDepsFile);
deps.setbuffer(cast(void*)ob.data, ob.offset);
writeFile(Loc.initial, &deps);
}
else
printf("%.*s", cast(int)ob.offset, ob.data);
}
printCtfePerformanceStats();
Library library = null;
if (global.params.lib)
{
if (global.params.objfiles.dim == 0)
{
error(Loc.initial, "no input files");
return EXIT_FAILURE;
}
library = Library.factory();
library.setFilename(global.params.objdir, global.params.libname);
// Add input object and input library files to output library
for (size_t i = 0; i < libmodules.dim; i++)
{
const(char)* p = libmodules[i];
library.addObject(p, null);
}
}
// Generate output files
if (global.params.doJsonGeneration)
{
generateJson(&modules);
}
if (!global.errors && global.params.doDocComments)
{
foreach (m; modules)
{
gendocfile(m);
}
}
if (global.params.vcg_ast)
{
import dmd.hdrgen;
foreach (mod; modules)
{
auto buf = OutBuffer();
buf.doindent = 1;
scope HdrGenState hgs;
hgs.fullDump = 1;
scope PrettyPrintVisitor ppv = new PrettyPrintVisitor(&buf, &hgs);
mod.accept(ppv);
// write the output to $(filename).cg
auto modFilename = mod.srcfile.toChars();
auto modFilenameLength = strlen(modFilename);
auto cgFilename = cast(char*)allocmemory(modFilenameLength + 4);
memcpy(cgFilename, modFilename, modFilenameLength);
cgFilename[modFilenameLength .. modFilenameLength + 4] = ".cg\0";
auto cgFile = File(cgFilename);
cgFile.setbuffer(buf.data, buf.offset);
cgFile._ref = 1;
cgFile.write();
}
}
if (!global.params.obj)
{
}
else if (global.params.oneobj)
{
if (modules.dim)
obj_start(cast(char*)modules[0].srcfile.toChars());
foreach (m; modules)
{
if (global.params.verbose)
message("code %s", m.toChars());
genObjFile(m, false);
if (entrypoint && m == rootHasMain)
genObjFile(entrypoint, false);
}
if (!global.errors && modules.dim)
{
obj_end(library, modules[0].objfile);
}
}
else
{
foreach (m; modules)
{
if (global.params.verbose)
message("code %s", m.toChars());
obj_start(cast(char*)m.srcfile.toChars());
genObjFile(m, global.params.multiobj);
if (entrypoint && m == rootHasMain)
genObjFile(entrypoint, global.params.multiobj);
obj_end(library, m.objfile);
obj_write_deferred(library);
if (global.errors && !global.params.lib)
m.deleteObjFile();
}
}
if (global.params.lib && !global.errors)
library.write();
backend_term();
if (global.errors)
fatal();
int status = EXIT_SUCCESS;
if (!global.params.objfiles.dim)
{
if (global.params.link)
error(Loc.initial, "no object files to link");
}
else
{
if (global.params.link)
status = runLINK();
if (global.params.run)
{
if (!status)
{
status = runProgram();
/* Delete .obj files and .exe file
*/
foreach (m; modules)
{
m.deleteObjFile();
if (global.params.oneobj)
break;
}
remove(global.params.exefile);
}
}
}
if (global.errors || global.warnings)
fatal();
return status;
}
private void generateJson(Modules* modules)
{
OutBuffer buf;
json_generate(&buf, modules);
// Write buf to file
const(char)* name = global.params.jsonfilename;
if (name && name[0] == '-' && name[1] == 0)
{
// Write to stdout; assume it succeeds
size_t n = fwrite(buf.data, 1, buf.offset, stdout);
assert(n == buf.offset); // keep gcc happy about return values
}
else
{
/* The filename generation code here should be harmonized with Module::setOutfile()
*/
const(char)* jsonfilename;
if (name && *name)
{
jsonfilename = FileName.defaultExt(name, global.json_ext);
}
else
{
if (global.params.objfiles.dim == 0)
{
error(Loc.initial, "cannot determine JSON filename, use `-Xf=<file>` or provide a source file");
fatal();
}
// Generate json file name from first obj name
const(char)* n = global.params.objfiles[0];
n = FileName.name(n);
//if (!FileName::absolute(name))
// name = FileName::combine(dir, name);
jsonfilename = FileName.forceExt(n, global.json_ext);
}
ensurePathToNameExists(Loc.initial, jsonfilename);
auto jsonfile = new File(jsonfilename);
jsonfile.setbuffer(buf.data, buf.offset);
jsonfile._ref = 1;
writeFile(Loc.initial, jsonfile);
}
}
/**
* Entry point which forwards to `tryMain`.
*
* Returns:
* Return code of the application
*/
version(NoMain) {} else
int main()
{
import core.memory;
import core.runtime;
version (GC)
{
}
else
{
GC.disable();
}
version(D_Coverage)
{
// for now we need to manually set the source path
string dirName(string path, char separator)
{
for (size_t i = path.length - 1; i > 0; i--)
{
if (path[i] == separator)
return path[0..i];
}
return path;
}
version (Windows)
enum sourcePath = dirName(dirName(__FILE_FULL_PATH__, '\\'), '\\');
else
enum sourcePath = dirName(dirName(__FILE_FULL_PATH__, '/'), '/');
dmd_coverSourcePath(sourcePath);
dmd_coverDestPath(sourcePath);
dmd_coverSetMerge(true);
}
scope(failure) stderr.printInternalFailure;
auto args = Runtime.cArgs();
return tryMain(args.argc, cast(const(char)**)args.argv);
}
/**
* Parses an environment variable containing command-line flags
* and append them to `args`.
*
* This function is used to read the content of DFLAGS.
* Flags are separated based on spaces and tabs.
*
* Params:
* envvalue = The content of an environment variable
* args = Array to append the flags to, if any.
*/
private void getenv_setargv(const(char)* envvalue, Strings* args)
{
if (!envvalue)
return;
char* p;
int instring;
int slash;
char c;
char* env = mem.xstrdup(envvalue); // create our own writable copy
//printf("env = '%s'\n", env);
while (1)
{
switch (*env)
{
case ' ':
case '\t':
env++;
break;
case 0:
return;
default:
args.push(env); // append
p = env;
slash = 0;
instring = 0;
while (1)
{
c = *env++;
switch (c)
{
case '"':
p -= (slash >> 1);
if (slash & 1)
{
p--;
goto Laddc;
}
instring ^= 1;
slash = 0;
continue;
case ' ':
case '\t':
if (instring)
goto Laddc;
*p = 0;
//if (wildcard)
// wildcardexpand(); // not implemented
break;
case '\\':
slash++;
*p++ = c;
continue;
case 0:
*p = 0;
//if (wildcard)
// wildcardexpand(); // not implemented
return;
default:
Laddc:
slash = 0;
*p++ = c;
continue;
}
break;
}
}
}
}
/**
* Parse command line arguments for -m32 or -m64
* to detect the desired architecture.
*
* Params:
* args = Command line arguments
* arch = Default value to use for architecture.
* Should be "32" or "64"
*
* Returns:
* "32", "64" or "32mscoff" if the "-m32", "-m64", "-m32mscoff" flags were passed,
* respectively. If they weren't, return `arch`.
*/
private const(char)* parse_arch_arg(Strings* args, const(char)* arch)
{
for (size_t i = 0; i < args.dim; ++i)
{
const(char)* p = (*args)[i];
if (p[0] == '-')
{
if (strcmp(p + 1, "m32") == 0 || strcmp(p + 1, "m32mscoff") == 0 || strcmp(p + 1, "m64") == 0)
arch = p + 2;
else if (strcmp(p + 1, "run") == 0)
break;
}
}
return arch;
}
/**
* Parse command line arguments for -conf=path.
*
* Params:
* args = Command line arguments
*
* Returns:
* Path to the config file to use
*/
private const(char)* parse_conf_arg(Strings* args)
{
const(char)* conf = null;
for (size_t i = 0; i < args.dim; ++i)
{
const(char)* p = (*args)[i];
if (p[0] == '-')
{
if (strncmp(p + 1, "conf=", 5) == 0)
conf = p + 6;
else if (strcmp(p + 1, "run") == 0)
break;
}
}
return conf;
}
/**
* Set the default and debug libraries to link against, if not already set
*
* Must be called after argument parsing is done, as it won't
* override any value.
* Note that if `-defaultlib=` or `-debuglib=` was used,
* we don't override that either.
*/
private void setDefaultLibrary()
{
if (global.params.defaultlibname is null)
{
static if (TARGET.Windows)
{
if (global.params.is64bit)
global.params.defaultlibname = "phobos64";
else if (global.params.mscoff)
global.params.defaultlibname = "phobos32mscoff";
else
global.params.defaultlibname = "phobos";
}
else static if (TARGET.Linux || TARGET.FreeBSD || TARGET.OpenBSD || TARGET.Solaris || TARGET.DragonFlyBSD)
{
global.params.defaultlibname = "libphobos2.a";
}
else static if (TARGET.OSX)
{
global.params.defaultlibname = "phobos2";
}
else
{
static assert(0, "fix this");
}
}
else if (!global.params.defaultlibname[0]) // if `-defaultlib=` (i.e. an empty defaultlib)
global.params.defaultlibname = null;
if (global.params.debuglibname is null)
global.params.debuglibname = global.params.defaultlibname;
}
/**
* Add default `version` identifier for dmd, and set the
* target platform in `global`.
* https://dlang.org/spec/version.html#predefined-versions
*
* Needs to be run after all arguments parsing (command line, DFLAGS environment
* variable and config file) in order to add final flags (such as `X86_64` or
* the `CRuntime` used).
*/
void addDefaultVersionIdentifiers()
{
VersionCondition.addPredefinedGlobalIdent("DigitalMars");
static if (TARGET.Windows)
{
VersionCondition.addPredefinedGlobalIdent("Windows");
global.params.isWindows = true;
}
else static if (TARGET.Linux)
{
VersionCondition.addPredefinedGlobalIdent("Posix");
VersionCondition.addPredefinedGlobalIdent("linux");
VersionCondition.addPredefinedGlobalIdent("ELFv1");
global.params.isLinux = true;
}
else static if (TARGET.OSX)
{
VersionCondition.addPredefinedGlobalIdent("Posix");
VersionCondition.addPredefinedGlobalIdent("OSX");
global.params.isOSX = true;
// For legacy compatibility
VersionCondition.addPredefinedGlobalIdent("darwin");
}
else static if (TARGET.FreeBSD)
{
VersionCondition.addPredefinedGlobalIdent("Posix");
VersionCondition.addPredefinedGlobalIdent("FreeBSD");
VersionCondition.addPredefinedGlobalIdent("ELFv1");
global.params.isFreeBSD = true;
}
else static if (TARGET.OpenBSD)
{
VersionCondition.addPredefinedGlobalIdent("Posix");
VersionCondition.addPredefinedGlobalIdent("OpenBSD");
VersionCondition.addPredefinedGlobalIdent("ELFv1");
global.params.isOpenBSD = true;
}
else static if (TARGET.DragonFlyBSD)
{
VersionCondition.addPredefinedGlobalIdent("Posix");
VersionCondition.addPredefinedGlobalIdent("DragonFlyBSD");
VersionCondition.addPredefinedGlobalIdent("ELFv1");
global.params.isDragonFlyBSD = true;
}
else static if (TARGET.Solaris)
{
VersionCondition.addPredefinedGlobalIdent("Posix");
VersionCondition.addPredefinedGlobalIdent("Solaris");
VersionCondition.addPredefinedGlobalIdent("ELFv1");
global.params.isSolaris = true;
}
else
{
static assert(0, "fix this");
}
VersionCondition.addPredefinedGlobalIdent("LittleEndian");
VersionCondition.addPredefinedGlobalIdent("D_Version2");
VersionCondition.addPredefinedGlobalIdent("all");
if (global.params.cpu >= CPU.sse2)
{
VersionCondition.addPredefinedGlobalIdent("D_SIMD");
if (global.params.cpu >= CPU.avx)
VersionCondition.addPredefinedGlobalIdent("D_AVX");
if (global.params.cpu >= CPU.avx2)
VersionCondition.addPredefinedGlobalIdent("D_AVX2");
}
if (global.params.is64bit)
{
VersionCondition.addPredefinedGlobalIdent("D_InlineAsm_X86_64");
VersionCondition.addPredefinedGlobalIdent("X86_64");
static if (TARGET.Windows)
{
VersionCondition.addPredefinedGlobalIdent("Win64");
}
}
else
{
VersionCondition.addPredefinedGlobalIdent("D_InlineAsm"); //legacy
VersionCondition.addPredefinedGlobalIdent("D_InlineAsm_X86");
VersionCondition.addPredefinedGlobalIdent("X86");
static if (TARGET.Windows)
{
VersionCondition.addPredefinedGlobalIdent("Win32");
}
}
static if (TARGET.Windows)
{
if (global.params.mscoff)
VersionCondition.addPredefinedGlobalIdent("CRuntime_Microsoft");
else
VersionCondition.addPredefinedGlobalIdent("CRuntime_DigitalMars");
}
else static if (TARGET.Linux)
{
VersionCondition.addPredefinedGlobalIdent("CRuntime_Glibc");
}
if (global.params.isLP64)
VersionCondition.addPredefinedGlobalIdent("D_LP64");
if (global.params.doDocComments)
VersionCondition.addPredefinedGlobalIdent("D_Ddoc");
if (global.params.cov)
VersionCondition.addPredefinedGlobalIdent("D_Coverage");
if (global.params.pic)
VersionCondition.addPredefinedGlobalIdent("D_PIC");
if (global.params.useUnitTests)
VersionCondition.addPredefinedGlobalIdent("unittest");
if (global.params.useAssert == CHECKENABLE.on)
VersionCondition.addPredefinedGlobalIdent("assert");
if (global.params.useArrayBounds == CHECKENABLE.off)
VersionCondition.addPredefinedGlobalIdent("D_NoBoundsChecks");
if (global.params.betterC)
VersionCondition.addPredefinedGlobalIdent("D_BetterC");
VersionCondition.addPredefinedGlobalIdent("D_HardFloat");
}
private void printPredefinedVersions(FILE* stream)
{
if (global.versionids)
{
OutBuffer buf;
foreach (const str; *global.versionids)
{
buf.writeByte(' ');
buf.writestring(str.toChars());
}
stream.fprintf("predefs %s\n", buf.peekString());
}
}
extern(C) void printGlobalConfigs(FILE* stream)
{
stream.fprintf("binary %s\n", global.params.argv0);
stream.fprintf("version %s\n", global._version);
stream.fprintf("config %s\n", global.inifilename ? global.inifilename : "(none)");
// Print DFLAGS environment variable
{
StringTable environment;
environment._init(0);
Strings dflags;
getenv_setargv(readFromEnv(&environment, "DFLAGS"), &dflags);
environment.reset(1);
OutBuffer buf;
foreach (flag; dflags[])
{
bool needsQuoting;
foreach (c; flag[0 .. strlen(flag)])
{
if (!(isalnum(c) || c == '_'))
{
needsQuoting = true;
break;
}
}
if (flag.strchr(' '))
buf.printf("'%s' ", flag);
else
buf.printf("%s ", flag);
}
auto res = buf.peekSlice() ? buf.peekSlice()[0 .. $ - 1] : "(none)";
stream.fprintf("DFLAGS %.*s\n", res.length, res.ptr);
}
}
/****************************************
* Determine the instruction set to be used.
* Params:
* cpu = value set by command line switch
* Returns:
* value to generate code for
*/
private CPU setTargetCPU(CPU cpu)
{
// Determine base line for target
CPU baseline = CPU.x87;
if (global.params.is64bit)
baseline = CPU.sse2;
else
{
static if (TARGET.OSX)
{
baseline = CPU.sse2;
}
}
if (baseline < CPU.sse2)
return baseline; // can't support other instruction sets
switch (cpu)
{
case CPU.baseline:
cpu = baseline;
break;
case CPU.native:
{
import core.cpuid;
cpu = baseline;
if (core.cpuid.avx2)
cpu = CPU.avx2;
else if (core.cpuid.avx)
cpu = CPU.avx;
break;
}
default:
break;
}
return cpu;
}
/****************************************************
* Parse command line arguments.
*
* Prints message(s) if there are errors.
*
* Params:
* arguments = command line arguments
* argc = argument count
* params = set to result of parsing `arguments`
* files = set to files pulled from `arguments`
* Returns:
* true if errors in command line
*/
private bool parseCommandLine(const ref Strings arguments, const size_t argc, ref Param params, ref Strings files)
{
bool errors;
void error(const(char)* format, const(char*) arg = null)
{
dmd.errors.error(Loc.initial, format, arg);
errors = true;
}
/************************************
* Convert string to integer.
* Params:
* p = pointer to start of string digits, ending with 0
* max = max allowable value (inclusive)
* Returns:
* uint.max on error, otherwise converted integer
*/
static pure uint parseDigits(const(char)*p, const uint max)
{
uint value;
bool overflow;
for (uint d; (d = uint(*p) - uint('0')) < 10; ++p)
{
import core.checkedint : mulu, addu;
value = mulu(value, 10, overflow);
value = addu(value, d, overflow);
}
return (overflow || value > max || *p) ? uint.max : value;
}
/********************************
* Params:
* p = 0 terminated string
* s = string
* Returns:
* true if `p` starts with `s`
*/
static pure bool startsWith(const(char)* p, string s)
{
foreach (const c; s)
{
if (c != *p)
return false;
++p;
}
return true;
}
version (none)
{
for (size_t i = 0; i < arguments.dim; i++)
{
printf("arguments[%d] = '%s'\n", i, arguments[i]);
}
}
for (size_t i = 1; i < arguments.dim; i++)
{
const(char)* p = arguments[i];
const(char)[] arg = p[0 .. strlen(p)];
if (*p == '-')
{
if (arg == "-allinst") // https://dlang.org/dmd.html#switch-allinst
params.allInst = true;
else if (arg == "-de") // https://dlang.org/dmd.html#switch-de
params.useDeprecated = 0;
else if (arg == "-d") // https://dlang.org/dmd.html#switch-d
params.useDeprecated = 1;
else if (arg == "-dw") // https://dlang.org/dmd.html#switch-dw
params.useDeprecated = 2;
else if (arg == "-c") // https://dlang.org/dmd.html#switch-c
params.link = false;
else if (startsWith(p + 1, "color")) // https://dlang.org/dmd.html#switch-color
{
params.color = true;
// Parse:
// -color
// -color=on|off
if (p[6] == '=')
{
if (strcmp(p + 7, "off") == 0)
params.color = false;
else if (strcmp(p + 7, "on") != 0)
goto Lerror;
}
else if (p[6])
goto Lerror;
}
else if (startsWith(p + 1, "conf=")) // https://dlang.org/dmd.html#switch-conf
{
// ignore, already handled above
}
else if (startsWith(p + 1, "cov")) // https://dlang.org/dmd.html#switch-cov
{
params.cov = true;
// Parse:
// -cov
// -cov=nnn
if (p[4] == '=')
{
if (isdigit(cast(char)p[5]))
{
const percent = parseDigits(p + 5, 100);
if (percent == uint.max)
goto Lerror;
params.covPercent = cast(ubyte)percent;
}
else
goto Lerror;
}
else if (p[4])
goto Lerror;
}
else if (arg == "-shared")
params.dll = true;
else if (arg == "-fPIC")
{
static if (TARGET.Linux || TARGET.OSX || TARGET.FreeBSD || TARGET.OpenBSD || TARGET.Solaris || TARGET.DragonFlyBSD)
{
params.pic = 1;
}
else
{
goto Lerror;
}
}
else if (arg == "-map") // https://dlang.org/dmd.html#switch-map
params.map = true;
else if (arg == "-multiobj")
params.multiobj = true;
else if (arg == "-g") // https://dlang.org/dmd.html#switch-g
params.symdebug = 1;
else if (arg == "-gc") // https://dlang.org/dmd.html#switch-gc
{
Loc loc;
deprecation(loc, "use -g instead of -gc");
params.symdebug = 2;
}
else if (arg == "-gf")
{
if (!params.symdebug)
params.symdebug = 1;
params.symdebugref = true;
}
else if (arg == "-gs") // https://dlang.org/dmd.html#switch-gs
params.alwaysframe = true;
else if (arg == "-gx") // https://dlang.org/dmd.html#switch-gx
params.stackstomp = true;
else if (arg == "-gt")
{
error("use -profile instead of -gt");
params.trace = true;
}
else if (arg == "-m32") // https://dlang.org/dmd.html#switch-m32
{
static if (TARGET.DragonFlyBSD) {
error("-m32 is not supported on DragonFlyBSD, it is 64-bit only");
} else {
params.is64bit = false;
params.mscoff = false;
}
}
else if (arg == "-m64") // https://dlang.org/dmd.html#switch-m64
{
params.is64bit = true;
static if (TARGET.Windows)
{
params.mscoff = true;
}
}
else if (arg == "-m32mscoff") // https://dlang.org/dmd.html#switch-m32mscoff
{
static if (TARGET.Windows)
{
params.is64bit = 0;
params.mscoff = true;
}
else
{
error("-m32mscoff can only be used on windows");
}
}
else if (strncmp(p + 1, "mscrtlib=", 9) == 0)
{
static if (TARGET.Windows)
{
params.mscrtlib = p + 10;
}
else
{
error("-mscrtlib");
}
}
else if (startsWith(p + 1, "profile")) // https://dlang.org/dmd.html#switch-profile
{
// Parse:
// -profile
// -profile=gc
if (p[8] == '=')
{
if (strcmp(p + 9, "gc") == 0)
params.tracegc = true;
else
goto Lerror;
}
else if (p[8])
goto Lerror;
else
params.trace = true;
}
else if (arg == "-v") // https://dlang.org/dmd.html#switch-v
params.verbose = true;
else if (arg == "-vcg-ast")
params.vcg_ast = true;
else if (arg == "-vtls") // https://dlang.org/dmd.html#switch-vtls
params.vtls = true;
else if (arg == "-vcolumns") // https://dlang.org/dmd.html#switch-vcolumns
params.showColumns = true;
else if (arg == "-vgc") // https://dlang.org/dmd.html#switch-vgc
params.vgc = true;
else if (startsWith(p + 1, "verrors")) // https://dlang.org/dmd.html#switch-verrors
{
if (p[8] == '=' && isdigit(cast(char)p[9]))
{
const num = parseDigits(p + 9, int.max);
if (num == uint.max)
goto Lerror;
params.errorLimit = num;
}
else if (startsWith(p + 9, "spec"))
{
params.showGaggedErrors = true;
}
else
goto Lerror;
}
else if (startsWith(p + 1, "mcpu")) // https://dlang.org/dmd.html#switch-mcpu
{
// Parse:
// -mcpu=identifier
if (p[5] == '=')
{
if (strcmp(p + 6, "?") == 0)
{
params.mcpuUsage = true;
return false;
}
else if (Identifier.isValidIdentifier(p + 6))
{
const ident = p + 6;
switch (ident[0 .. strlen(ident)])
{
case "baseline":
params.cpu = CPU.baseline;
break;
case "avx":
params.cpu = CPU.avx;
break;
case "avx2":
params.cpu = CPU.avx2;
break;
case "native":
params.cpu = CPU.native;
break;
default:
goto Lerror;
}
}
else
goto Lerror;
}
else
goto Lerror;
}
else if (startsWith(p + 1, "transition") ) // https://dlang.org/dmd.html#switch-transition
{
// Parse:
// -transition=number
if (p[11] == '=')
{
if (strcmp(p + 12, "?") == 0)
{
params.transitionUsage = true;
return false;
}
if (isdigit(cast(char)p[12]))
{
const num = parseDigits(p + 12, int.max);
if (num == uint.max)
goto Lerror;
string generateTransitionsNumbers()
{
import dmd.cli : Usage;
string buf;
foreach (t; Usage.transitions)
{
if (t.bugzillaNumber !is null)
buf ~= `case `~t.bugzillaNumber~`: params.`~t.paramName~` = true;break;`;
}
return buf;
}
// Bugzilla issue number
switch (num)
{
mixin(generateTransitionsNumbers());
default:
goto Lerror;
}
}
else if (Identifier.isValidIdentifier(p + 12))
{
string generateTransitionsText()
{
import dmd.cli : Usage;
string buf = `case "all":`;
foreach (t; Usage.transitions)
buf ~= `params.`~t.paramName~` = true;`;
buf ~= "break;";
foreach (t; Usage.transitions)
{
buf ~= `case "`~t.name~`": params.`~t.paramName~` = true;break;`;
}
return buf;
}
const ident = p + 12;
switch (ident[0 .. strlen(ident)])
{
mixin(generateTransitionsText());
default:
goto Lerror;
}
}
else
goto Lerror;
}
else
goto Lerror;
}
else if (arg == "-w") // https://dlang.org/dmd.html#switch-w
params.warnings = 1;
else if (arg == "-wi") // https://dlang.org/dmd.html#switch-wi
params.warnings = 2;
else if (arg == "-O") // https://dlang.org/dmd.html#switch-O
params.optimize = true;
else if (p[1] == 'o')
{
const(char)* path;
switch (p[2])
{
case '-': // https://dlang.org/dmd.html#switch-o-
params.obj = false;
break;
case 'd': // https://dlang.org/dmd.html#switch-od
if (!p[3])
goto Lnoarg;
path = p + 3 + (p[3] == '=');
version (Windows)
{
path = toWinPath(path);
}
params.objdir = path;
break;
case 'f': // https://dlang.org/dmd.html#switch-of
if (!p[3])
goto Lnoarg;
path = p + 3 + (p[3] == '=');
version (Windows)
{
path = toWinPath(path);
}
params.objname = path;
break;
case 'p': // https://dlang.org/dmd.html#switch-op
if (p[3])
goto Lerror;
params.preservePaths = true;
break;
case 0:
error("-o no longer supported, use -of or -od");
break;
default:
goto Lerror;
}
}
else if (p[1] == 'D') // https://dlang.org/dmd.html#switch-D
{
params.doDocComments = true;
switch (p[2])
{
case 'd': // https://dlang.org/dmd.html#switch-Dd
if (!p[3])
goto Lnoarg;
params.docdir = p + 3 + (p[3] == '=');
break;
case 'f': // https://dlang.org/dmd.html#switch-Df
if (!p[3])
goto Lnoarg;
params.docname = p + 3 + (p[3] == '=');
break;
case 0:
break;
default:
goto Lerror;
}
}
else if (p[1] == 'H') // https://dlang.org/dmd.html#switch-H
{
params.doHdrGeneration = true;
switch (p[2])
{
case 'd': // https://dlang.org/dmd.html#switch-Hd
if (!p[3])
goto Lnoarg;
params.hdrdir = p + 3 + (p[3] == '=');
break;
case 'f': // https://dlang.org/dmd.html#switch-Hf
if (!p[3])
goto Lnoarg;
params.hdrname = p + 3 + (p[3] == '=');
break;
case 0:
break;
default:
goto Lerror;
}
}
else if (p[1] == 'X') // https://dlang.org/dmd.html#switch-X
{
params.doJsonGeneration = true;
switch (p[2])
{
case 'f': // https://dlang.org/dmd.html#switch-Xf
if (!p[3])
goto Lnoarg;
params.jsonfilename = p + 3 + (p[3] == '=');
break;
case 'i':
if (!p[3])
goto Lnoarg;
if (p[3] != '=')
goto Lerror;
if (!p[4])
goto Lnoarg;
{
auto flag = tryParseJsonField(p + 4);
if (!flag)
{
error("unknown JSON field `-Xi=%s`, expected one of " ~ jsonFieldNames, p + 4);
continue;
}
global.params.jsonFieldFlags |= flag;
}
break;
case 0:
break;
default:
goto Lerror;
}
}
else if (arg == "-ignore") // https://dlang.org/dmd.html#switch-ignore
params.ignoreUnsupportedPragmas = true;
else if (arg == "-inline") // https://dlang.org/dmd.html#switch-inline
{
params.useInline = true;
params.hdrStripPlainFunctions = false;
}
else if (arg == "-i")
includeImports = true;
else if (startsWith(p + 1, "i="))
{
includeImports = true;
if (!p[3])
{
error("invalid option '%s', module patterns cannot be empty", p);
}
else
{
// NOTE: we could check that the argument only contains valid "module-pattern" characters.
// Invalid characters doesn't break anything but an error message to the user might
// be nice.
includeModulePatterns.push(p + 3);
}
}
else if (arg == "-dip25") // https://dlang.org/dmd.html#switch-dip25
params.useDIP25 = true;
else if (arg == "-dip1000")
{
params.useDIP25 = true;
params.vsafe = true;
}
else if (arg == "-dip1008")
{
params.ehnogc = true;
}
else if (arg == "-lib") // https://dlang.org/dmd.html#switch-lib
params.lib = true;
else if (arg == "-nofloat")
params.nofloat = true;
else if (arg == "-quiet")
{
// Ignore
}
else if (arg == "-release") // https://dlang.org/dmd.html#switch-release
params.release = true;
else if (arg == "-betterC") // https://dlang.org/dmd.html#switch-betterC
params.betterC = true;
else if (arg == "-noboundscheck") // https://dlang.org/dmd.html#switch-noboundscheck
{
params.useArrayBounds = CHECKENABLE.off;
}
else if (startsWith(p + 1, "boundscheck")) // https://dlang.org/dmd.html#switch-boundscheck
{
// Parse:
// -boundscheck=[on|safeonly|off]
if (p[12] == '=')
{
if (strcmp(p + 13, "on") == 0)
{
params.useArrayBounds = CHECKENABLE.on;
}
else if (strcmp(p + 13, "safeonly") == 0)
{
params.useArrayBounds = CHECKENABLE.safeonly;
}
else if (strcmp(p + 13, "off") == 0)
{
params.useArrayBounds = CHECKENABLE.off;
}
else
goto Lerror;
}
else
goto Lerror;
}
else if (arg == "-unittest")
params.useUnitTests = true;
else if (p[1] == 'I') // https://dlang.org/dmd.html#switch-I
{
if (!params.imppath)
params.imppath = new Strings();
params.imppath.push(p + 2 + (p[2] == '='));
}
else if (p[1] == 'm' && p[2] == 'v' && p[3] == '=') // https://dlang.org/dmd.html#switch-mv
{
if (p[4] && strchr(p + 5, '='))
{
if (!params.modFileAliasStrings)
params.modFileAliasStrings = new Strings();
params.modFileAliasStrings.push(p + 4);
}
else
goto Lerror;
}
else if (p[1] == 'J') // https://dlang.org/dmd.html#switch-J
{
if (!params.fileImppath)
params.fileImppath = new Strings();
params.fileImppath.push(p + 2 + (p[2] == '='));
}
else if (startsWith(p + 1, "debug") && p[6] != 'l') // https://dlang.org/dmd.html#switch-debug
{
// Parse:
// -debug
// -debug=number
// -debug=identifier
if (p[6] == '=')
{
if (isdigit(cast(char)p[7]))
{
const level = parseDigits(p + 7, int.max);
if (level == uint.max)
goto Lerror;
params.debuglevel = level;
}
else if (Identifier.isValidIdentifier(p + 7))
{
if (!params.debugids)
params.debugids = new Array!(const(char)*);
params.debugids.push(p + 7);
}
else
goto Lerror;
}
else if (p[6])
goto Lerror;
else
params.debuglevel = 1;
}
else if (startsWith(p + 1, "version")) // https://dlang.org/dmd.html#switch-version
{
// Parse:
// -version=number
// -version=identifier
if (p[8] == '=')
{
if (isdigit(cast(char)p[9]))
{
const level = parseDigits(p + 9, int.max);
if (level == uint.max)
goto Lerror;
params.versionlevel = level;
}
else if (Identifier.isValidIdentifier(p + 9))
{
if (!params.versionids)
params.versionids = new Array!(const(char)*);
params.versionids.push(p + 9);
}
else
goto Lerror;
}
else
goto Lerror;
}
else if (arg == "--b")
params.debugb = true;
else if (arg == "--c")
params.debugc = true;
else if (arg == "--f")
params.debugf = true;
else if (arg == "--help" ||
arg == "-h")
{
params.usage = true;
return false;
}
else if (arg == "--r")
params.debugr = true;
else if (arg == "--version")
{
params.logo = true;
return false;
}
else if (arg == "--x")
params.debugx = true;
else if (arg == "--y")
params.debugy = true;
else if (p[1] == 'L') // https://dlang.org/dmd.html#switch-L
{
params.linkswitches.push(p + 2 + (p[2] == '='));
}
else if (startsWith(p + 1, "defaultlib=")) // https://dlang.org/dmd.html#switch-defaultlib
{
params.defaultlibname = p + 1 + 11;
}
else if (startsWith(p + 1, "debuglib=")) // https://dlang.org/dmd.html#switch-debuglib
{
params.debuglibname = p + 1 + 9;
}
else if (startsWith(p + 1, "deps")) // https://dlang.org/dmd.html#switch-deps
{
if (params.moduleDeps)
{
error("-deps[=file] can only be provided once!");
break;
}
if (p[5] == '=')
{
params.moduleDepsFile = p + 1 + 5;
if (!params.moduleDepsFile[0])
goto Lnoarg;
}
else if (p[5] != '\0')
{
// Else output to stdout.
goto Lerror;
}
params.moduleDeps = new OutBuffer();
}
else if (arg == "-main") // https://dlang.org/dmd.html#switch-main
{
params.addMain = true;
}
else if (startsWith(p + 1, "man")) // https://dlang.org/dmd.html#switch-man
{
params.manual = true;
return false;
}
else if (arg == "-run") // https://dlang.org/dmd.html#switch-run
{
params.run = true;
size_t length = argc - i - 1;
if (length)
{
const(char)* ext = FileName.ext(arguments[i + 1]);
if (ext && FileName.equals(ext, "d") == 0 && FileName.equals(ext, "di") == 0)
{
error("-run must be followed by a source file, not '%s'", arguments[i + 1]);
break;
}
if (strcmp(arguments[i + 1], "-") == 0)
files.push("__stdin.d");
else
files.push(arguments[i + 1]);
params.runargs.setDim(length - 1);
for (size_t j = 0; j < length - 1; ++j)
{
params.runargs[j] = arguments[i + 2 + j];
}
i += length;
}
else
{
params.run = false;
goto Lnoarg;
}
}
else if (p[1] == '\0')
files.push("__stdin.d");
else
{
Lerror:
error("unrecognized switch '%s'", arguments[i]);
continue;
Lnoarg:
error("argument expected for switch '%s'", arguments[i]);
continue;
}
}
else
{
static if (TARGET.Windows)
{
const(char)* ext = FileName.ext(p);
if (ext && FileName.compare(ext, "exe") == 0)
{
params.objname = p;
continue;
}
if (arg == "/?")
{
params.usage = true;
return false;
}
}
files.push(p);
}
}
return errors;
}
private __gshared bool includeImports = false;
// array of module patterns used to include/exclude imported modules
private __gshared Array!(const(char)*) includeModulePatterns;
private __gshared Modules compiledImports;
private extern(C++) bool marsOnImport(Module m)
{
if (includeImports)
{
Identifiers empty;
if (includeImportedModuleCheck(ModuleComponentRange(
(m.md && m.md.packages) ? m.md.packages : &empty, m.ident, m.isPackageFile)))
{
if (global.params.verbose)
message("compileimport (%s)", m.srcfile.toChars);
compiledImports.push(m);
return true; // this import will be compiled
}
}
return false; // this import will not be compiled
}
// A range of component identifiers for a module
private struct ModuleComponentRange
{
Identifiers* packages;
Identifier name;
bool isPackageFile;
size_t index;
@property auto totalLength() const { return packages.dim + 1 + (isPackageFile ? 1 : 0); }
@property auto empty() { return index >= totalLength(); }
@property auto front() const
{
if (index < packages.dim)
return (*packages)[index];
if (index == packages.dim)
return name;
else
return Identifier.idPool("package");
}
void popFront() { index++; }
}
/*
* Determines if the given module should be included in the compilation.
* Returns:
* True if the given module should be included in the compilation.
*/
private bool includeImportedModuleCheck(ModuleComponentRange components)
in { assert(includeImports); } body
{
createMatchNodes();
size_t nodeIndex = 0;
while (nodeIndex < matchNodes.dim)
{
//printf("matcher ");printMatcher(nodeIndex);printf("\n");
auto info = matchNodes[nodeIndex++];
if (info.depth <= components.totalLength())
{
size_t nodeOffset = 0;
for (auto range = components;;range.popFront())
{
if (range.empty || nodeOffset >= info.depth)
{
// MATCH
//printf("matcher ");printMatcher(nodeIndex - 1);
//printf(" MATCHES module '");components.print();printf("'\n");
return !info.isExclude;
}
if (!range.front.equals(matchNodes[nodeIndex + nodeOffset].id))
{
break;
}
nodeOffset++;
}
}
//printf("matcher ");printMatcher(nodeIndex-1);
//printf(" does not match module '");components.print();printf("'\n");
nodeIndex += info.depth;
}
assert(nodeIndex == matchNodes.dim, "code bug");
return includeByDefault;
}
// Matching module names is done with an array of matcher nodes.
// The nodes are sorted by "component depth" from largest to smallest
// so that the first match is always the longest (best) match.
private struct MatcherNode
{
union
{
struct
{
ushort depth;
bool isExclude;
}
Identifier id;
}
this(Identifier id) { this.id = id; }
this(bool isExclude, ushort depth)
{
this.depth = depth;
this.isExclude = isExclude;
}
}
/*
* $(D includeByDefault) determines whether to include/exclude modules when they don't
* match any pattern. This setting changes depending on if the user provided any "inclusive" module
* patterns. When a single "inclusive" module pattern is given, it likely means the user only
* intends to include modules they've "included", however, if no module patterns are given or they
* are all "exclusive", then it is likely they intend to include everything except modules
* that have been excluded. i.e.
* ---
* -i=-foo // include everything except modules that match "foo*"
* -i=foo // only include modules that match "foo*" (exclude everything else)
* ---
* Note that this default behavior can be overriden using the '.' module pattern. i.e.
* ---
* -i=-foo,-. // this excludes everything
* -i=foo,. // this includes everything except the default exclusions (-std,-core,-etc.-object)
* ---
*/
private __gshared bool includeByDefault = true;
private __gshared Array!MatcherNode matchNodes;
/*
* Creates the global list of match nodes used to match module names
* given strings provided by the -i commmand line option.
*/
private void createMatchNodes()
{
static size_t findSortedIndexToAddForDepth(size_t depth)
{
size_t index = 0;
while (index < matchNodes.dim)
{
auto info = matchNodes[index];
if (depth > info.depth)
break;
index += 1 + info.depth;
}
return index;
}
if (matchNodes.dim == 0)
{
foreach (modulePattern; includeModulePatterns)
{
auto depth = parseModulePatternDepth(modulePattern);
auto entryIndex = findSortedIndexToAddForDepth(depth);
matchNodes.split(entryIndex, depth + 1);
parseModulePattern(modulePattern, &matchNodes[entryIndex], depth);
// if at least 1 "include pattern" is given, then it is assumed the
// user only wants to include modules that were explicitly given, which
// changes the default behavior from inclusion to exclusion.
if (includeByDefault && !matchNodes[entryIndex].isExclude)
{
//printf("Matcher: found 'include pattern', switching default behavior to exclusion\n");
includeByDefault = false;
}
}
// Add the default 1 depth matchers
MatcherNode[8] defaultDepth1MatchNodes = [
MatcherNode(true, 1), MatcherNode(Id.std),
MatcherNode(true, 1), MatcherNode(Id.core),
MatcherNode(true, 1), MatcherNode(Id.etc),
MatcherNode(true, 1), MatcherNode(Id.object),
];
{
auto index = findSortedIndexToAddForDepth(1);
matchNodes.split(index, defaultDepth1MatchNodes.length);
matchNodes.data[index .. index + defaultDepth1MatchNodes.length] = defaultDepth1MatchNodes[];
}
}
}
/*
* Determines the depth of the given module pattern.
* Params:
* modulePattern = The module pattern to determine the depth of.
* Returns:
* The component depth of the given module pattern.
*/
private ushort parseModulePatternDepth(const(char)* modulePattern)
{
if (modulePattern[0] == '-')
modulePattern++;
// handle special case
if (modulePattern[0] == '.' && modulePattern[1] == '\0')
return 0;
ushort depth = 1;
for (;; modulePattern++)
{
auto c = *modulePattern;
if (c == '.')
depth++;
if (c == '\0')
return depth;
}
}
unittest
{
assert(".".parseModulePatternDepth == 0);
assert("-.".parseModulePatternDepth == 0);
assert("abc".parseModulePatternDepth == 1);
assert("-abc".parseModulePatternDepth == 1);
assert("abc.foo".parseModulePatternDepth == 2);
assert("-abc.foo".parseModulePatternDepth == 2);
}
/*
* Parses a 'module pattern', which is the "include import" components
* given on the command line, i.e. "-i=<module_pattern>,<module_pattern>,...".
* Params:
* modulePattern = The module pattern to parse.
* dst = the data structure to save the parsed module pattern to.
* depth = the depth of the module pattern previously retrieved from $(D parseModulePatternDepth).
*/
private void parseModulePattern(const(char)* modulePattern, MatcherNode* dst, ushort depth)
{
bool isExclude = false;
if (modulePattern[0] == '-')
{
isExclude = true;
modulePattern++;
}
*dst = MatcherNode(isExclude, depth);
dst++;
// Create and add identifiers for each component in the modulePattern
if (depth > 0)
{
auto idStart = modulePattern;
auto lastNode = dst + depth - 1;
for (; dst < lastNode; dst++)
{
for (;; modulePattern++)
{
if (*modulePattern == '.')
{
assert(modulePattern > idStart, "empty module pattern");
*dst = MatcherNode(Identifier.idPool(idStart, cast(uint)(modulePattern - idStart)));
modulePattern++;
idStart = modulePattern;
break;
}
}
}
for (;; modulePattern++)
{
if (*modulePattern == '\0')
{
assert(modulePattern > idStart, "empty module pattern");
*lastNode = MatcherNode(Identifier.idPool(idStart, cast(uint)(modulePattern - idStart)));
break;
}
}
}
}
|
D
|
INSTANCE Info_Mod_Genn_Hi (C_INFO)
{
npc = Mod_1959_VMG_Genn_TUG;
nr = 1;
condition = Info_Mod_Genn_Hi_Condition;
information = Info_Mod_Genn_Hi_Info;
permanent = 0;
important = 1;
};
FUNC INT Info_Mod_Genn_Hi_Condition()
{
return 1;
};
FUNC VOID Info_Mod_Genn_Hi_Info()
{
AI_Output(self, hero, "Info_Mod_Genn_Hi_09_00"); //Du kommst gerade richtig.
if (Mod_Struk_Dabei == TRUE)
&& (Mod_Thorge_Dabei == TRUE)
{
AI_Output(self, hero, "Info_Mod_Genn_Hi_09_01"); //Du bist in Begleitung zweier Freunde.
}
else if (Mod_Struk_Dabei == TRUE)
|| (Mod_Thorge_Dabei == TRUE)
{
AI_Output(self, hero, "Info_Mod_Genn_Hi_09_02"); //Du bist in Begleitung eines Freundes.
};
AI_Output(self, hero, "Info_Mod_Genn_Hi_09_03"); //Wer bist du?
AI_Output(hero, self, "Info_Mod_Genn_Hi_15_04"); //Ich will bei euch Verwandlungsmagiern mitmachen.
AI_Output(self, hero, "Info_Mod_Genn_Hi_09_05"); //Dann hast du dir hierbei schon einen Pluspunkt eingehandelt. Wenn du willst, erzähle ich dir ein paar Takte über unser kleines Problem hier im Tal.
AI_Output(hero, self, "Info_Mod_Genn_Hi_15_06"); //Deswegen bin ich hier.
AI_Output(self, hero, "Info_Mod_Genn_Hi_09_07"); //Das ist gut. Sieh dich mal hier um. Die Goblins zerstören unser geliebtes Tal. Wir wissen nicht genau, woher sie kommen, aber wir haben eine Vermutung.
AI_Output(self, hero, "Info_Mod_Genn_Hi_09_08"); //Vor ein paar Tagen gab es ein Erdbeben, bei dem der Eingang eines gewaltigen Höhlensystems freigelegt worden ist.
AI_Output(self, hero, "Info_Mod_Genn_Hi_09_09"); //Wir vermuten, dass die Höhlen verschüttet worden sind und die Goblins als Fluchtweg unser Tal genommen haben.
AI_Output(self, hero, "Info_Mod_Genn_Hi_09_10"); //Doch die Matronen hören nicht auf, neue Würfe zu bekommen, und so haben wir hier keine Ruhe vor ihnen.
AI_Output(hero, self, "Info_Mod_Genn_Hi_15_11"); //Was soll ich tun?
AI_Output(self, hero, "Info_Mod_Genn_Hi_09_12"); //Es ist ab Besten, wenn du die Matronen tötest. Mit dem Rest werden wir schon fertig.
AI_Output(self, hero, "Info_Mod_Genn_Hi_09_13"); //Du darfst natürlich auch jeden Goblin, der dir über den Weg läuft, umbringen.
AI_Output(hero, self, "Info_Mod_Genn_Hi_15_14"); //Dann mache ich mich mal sofort auf den Weg.
AI_Output(self, hero, "Info_Mod_Genn_Hi_09_15"); //Bevor du losgehst, nimm das hier, es wird dir helfen.
B_GiveInvItems (self, hero, ItSc_TrfSnapper, 2);
AI_Output(self, hero, "Info_Mod_Genn_Hi_09_16"); //Aber verwende sie nicht in der Gegenwart von Menschen, sie könnten dich sonst für ein Monster halten.
if (Mod_Struk_Dabei == TRUE)
&& (Mod_Thorge_Dabei == TRUE)
{
AI_Output(hero, self, "Info_Mod_Genn_Hi_15_17"); //Und was ist mit meinen Begleitern?
AI_Output(self, hero, "Info_Mod_Genn_Hi_09_18"); //Sie werden dich nur bis zum Dorf begleiten, den Rest musst du alleine bewältigen.
}
else if (Mod_Struk_Dabei == TRUE)
|| (Mod_Thorge_Dabei == TRUE)
{
AI_Output(hero, self, "Info_Mod_Genn_Hi_15_19"); //Und was ist mit meinem Begleiter?
AI_Output(self, hero, "Info_Mod_Genn_Hi_09_20"); //Er wird dich nur bis zum Dorf begleiten, den Rest musst du alleine bewältigen.
};
AI_Output(hero, self, "Info_Mod_Genn_Hi_15_21"); //Verstehe. Dann mache ich mich am besten gleich auf den Weg.
B_LogEntry (TOPIC_MOD_FERCO_GOBLIN, "Ich soll die Goblin-Matronen töten, damit sie keinen Nachwuchs mehr bekommen können.");
};
INSTANCE Info_Mod_Genn_Matronen (C_INFO)
{
npc = Mod_1959_VMG_Genn_TUG;
nr = 1;
condition = Info_Mod_Genn_Matronen_Condition;
information = Info_Mod_Genn_Matronen_Info;
permanent = 0;
important = 1;
};
FUNC INT Info_Mod_Genn_Matronen_Condition()
{
if (Npc_KnowsInfo(hero, Info_Mod_Lorforn_Hi))
&& (TUG_Lorforn == TRUE)
&& (Npc_IsDead(Gobbo_Matrone))
&& (((Npc_IsDead(Mod_1962_OUT_Lorforn_TUG))
&& (Npc_HasItems(hero, ItWr_LorfornsBrief) == 1))
|| (!Npc_IsDead(Mod_1962_OUT_Lorforn_TUG)))
{
return 1;
};
};
FUNC VOID Info_Mod_Genn_Matronen_Info()
{
AI_Output(self, hero, "Info_Mod_Genn_Matronen_09_00"); //Sind die Matronen tot?
AI_Output(hero, self, "Info_Mod_Genn_Matronen_15_01"); //Ja, ich habe sie getötet. Außerdem kenne ich den Schuldigen, der für das Erdbeben verantwortlich ist.
AI_Output(self, hero, "Info_Mod_Genn_Matronen_09_02"); //Wer ist es?
Info_ClearChoices (Info_Mod_Genn_Matronen);
if (Npc_IsDead(Mod_1962_OUT_Lorforn_TUG))
&& (Npc_HasItems(hero, ItWr_LorfornsBrief) == 1)
{
Info_AddChoice (Info_Mod_Genn_Matronen, "Da war so ein Typ namens Lorforn ...", Info_Mod_Genn_Matronen_B);
}
else
{
Info_AddChoice (Info_Mod_Genn_Matronen, "Da war so ein Typ mit Lederklamotten ...", Info_Mod_Genn_Matronen_A);
};
};
FUNC VOID Info_Mod_Genn_Matronen_C()
{
AI_Output(hero, self, "Info_Mod_Genn_Matronen_C_15_00"); //Danke. Wir sehen uns.
AI_Output(self, hero, "Info_Mod_Genn_Matronen_C_09_01"); //Bestimmt. Ich wünsche dir alles Gute. Der Teleporter ist noch aktiviert. Wenn du dich beeilst, schaffst du es noch hinüber ins Minental.
if (Mod_Struk_Dabei == TRUE)
&& (Mod_Thorge_Dabei == TRUE)
&& (!Npc_KnowsInfo(hero, Info_Mod_Thorge_TUG_AtDorf))
&& (!Npc_KnowsInfo(hero, Info_Mod_Struk_TUG_AtDorf))
{
AI_Output(self, hero, "Info_Mod_Genn_Matronen_C_09_02"); //Deine zwei Begleiter werden allerdings hier bleiben müssen.
B_StartOtherRoutine (Mod_1961_VMK_Struk_TUG, "ATCITY");
B_StartOtherRoutine (Mod_1960_VMG_Thorge_TUG, "ATCITY");
Struk_Abgeliefert = 1;
Thorge_Abgeliefert = 1;
Mod_1961_VMK_Struk_TUG.aivar[AIV_Partymember] = FALSE;
Mod_1960_VMG_Thorge_TUG.aivar[AIV_Partymember] = FALSE;
}
else if ((Mod_Struk_Dabei == TRUE)
|| (Mod_Thorge_Dabei == TRUE))
&& (!Npc_KnowsInfo(hero, Info_Mod_Thorge_TUG_AtDorf))
&& (!Npc_KnowsInfo(hero, Info_Mod_Struk_TUG_AtDorf))
{
AI_Output(self, hero, "Info_Mod_Genn_Matronen_C_09_03"); //Dein Begleiter muss allerdings hier bleiben.
B_StartOtherRoutine (Mod_1961_VMK_Struk_TUG, "ATCITY");
B_StartOtherRoutine (Mod_1960_VMG_Thorge_TUG, "ATCITY");
Struk_Abgeliefert = 1;
Thorge_Abgeliefert = 1;
Mod_1961_VMK_Struk_TUG.aivar[AIV_Partymember] = FALSE;
Mod_1960_VMG_Thorge_TUG.aivar[AIV_Partymember] = FALSE;
};
B_StartOtherRoutine (Mod_7355_VMG_Asko_TUG, "STUDIEREN");
};
FUNC VOID Info_Mod_Genn_Matronen_B()
{
AI_Output(hero, self, "Info_Mod_Genn_Matronen_B_15_00"); //Da war so ein Typ namens Lorforn, der von einem 'P.' geschickt wurde, um das Beben auszulösen. Hier ist der Beweisbrief.
B_GiveInvItems (hero, self, ItWr_LorfornsBrief, 1);
B_UseFakeScroll();
AI_Output(self, hero, "Info_Mod_Genn_Matronen_B_09_01"); //Vielen Dank für diesen Brief. Wir bleiben an der Sache dran. Hier hast du eine Entlohnung.
B_GiveInvItems (self, hero, ItMi_Gold, 500);
B_GivePlayerXP (250);
B_LogEntry (TOPIC_MOD_FERCO_GOBLIN, "Ich habe Genn die Situation geschildert und eine Entlohnung bekommen. Ich sollte mich nun auf den Rückweg ins Minental machen.");
Info_ClearChoices (Info_Mod_Genn_Matronen);
Info_Mod_Genn_Matronen_C();
};
FUNC VOID Info_Mod_Genn_Matronen_A()
{
AI_Output(hero, self, "Info_Mod_Genn_Matronen_A_15_00"); //Da war so ein Typ mit Lederklamotten, der meinte, er wäre geschickt worden, um dies zu tun. Ich habe ihn laufen lassen.
AI_Output(self, hero, "Info_Mod_Genn_Matronen_A_09_01"); //Danke für die Information. Wir bleiben an der Sache dran. Hier hast du eine Entlohnung.
B_GiveInvItems (self, hero, ItMi_Gold, 100);
B_GivePlayerXP (250);
B_LogEntry (TOPIC_MOD_FERCO_GOBLIN, "Ich habe Genn die Situation geschildert und eine Entlohnung bekommen. Ich sollte mich nun auf den Rückweg ins Minental machen.");
Info_ClearChoices (Info_Mod_Genn_Matronen);
Info_Mod_Genn_Matronen_C();
};
INSTANCE Info_Mod_Genn_Faice (C_INFO)
{
npc = Mod_1959_VMG_Genn_TUG;
nr = 1;
condition = Info_Mod_Genn_Faice_Condition;
information = Info_Mod_Genn_Faice_Info;
permanent = 0;
important = 1;
};
FUNC INT Info_Mod_Genn_Faice_Condition()
{
if (Mod_VMG_FaiceGifty_Gift == 3)
{
return 1;
};
};
FUNC VOID Info_Mod_Genn_Faice_Info()
{
AI_Output(self, hero, "Info_Mod_Genn_Faice_09_00"); //Das ist ja mal ein Zufall, wir haben gerade über dich gesprochen.
Info_ClearChoices (Info_Mod_Genn_Faice);
Info_AddChoice (Info_Mod_Genn_Faice, "Wer ist das?", Info_Mod_Genn_Faice_B);
Info_AddChoice (Info_Mod_Genn_Faice, "Worum ging es denn?", Info_Mod_Genn_Faice_A);
};
FUNC VOID Info_Mod_Genn_Faice_B()
{
AI_Output(hero, self, "Info_Mod_Genn_Faice_B_15_00"); //Wer ist das?
AI_Output(self, hero, "Info_Mod_Genn_Faice_B_09_01"); //Das ist Sören. Er kommt von weit her, um uns beim Wiederaufbau unserer Siedlung zu helfen.
AI_Output(hero, self, "Info_Mod_Genn_Faice_B_15_02"); //Das freut mich, Sören. Ich bin ...
AI_Output(self, hero, "Info_Mod_Genn_Faice_B_09_03"); //Das ist Sören. Er kommt von weit her, um uns beim Wiederaufbau unserer Siedlung zu helfen.
Info_ClearChoices (Info_Mod_Genn_Faice);
AI_StopProcessInfos (self);
Mod_VMG_FaiceGifty_Gift = 4;
};
FUNC VOID Info_Mod_Genn_Faice_A()
{
AI_Output(hero, self, "Info_Mod_Genn_Faice_A_15_00"); //Worum ging es denn?
AI_Output(self, hero, "Info_Mod_Genn_Faice_A_09_01"); //Es ging um den Erdrutsch vor der Goblinplage, falls du dich erinnerst.
AI_Output(hero, self, "Info_Mod_Genn_Faice_A_15_02"); //Ja, wie könnte ich das vergessen?
AI_Output(self, hero, "Info_Mod_Genn_Faice_A_09_03"); //Warum bist du hier?
Info_ClearChoices (Info_Mod_Genn_Faice);
Mod_VMG_FaiceGifty_Gift = 5;
};
INSTANCE Info_Mod_Genn_Mendulus (C_INFO)
{
npc = Mod_1959_VMG_Genn_TUG;
nr = 1;
condition = Info_Mod_Genn_Mendulus_Condition;
information = Info_Mod_Genn_Mendulus_Info;
permanent = 0;
important = 0;
description = "Ich suche eine große Heilpflanze mit lila Streben. Hast du sie gesehen?";
};
FUNC INT Info_Mod_Genn_Mendulus_Condition()
{
if (Npc_KnowsInfo(hero, Info_Mod_Genn_Faice))
&& (Mod_VMG_FaiceGifty_Gift == 5)
{
return 1;
};
};
FUNC VOID Info_Mod_Genn_Mendulus_Info()
{
AI_Output(hero, self, "Info_Mod_Genn_Mendulus_15_00"); //Ich suche eine große Heilpflanze mit lila Streben. Hast du sie gesehen?
AI_Output(self, hero, "Info_Mod_Genn_Mendulus_09_01"); //Natürlich kenne ich das Mendulus-Kraut. Erinnerst du dich an die Höhle mit den Matronen? Da in der Gegend wächst es, wenn ich mich nicht irre.
AI_Output(self, hero, "Info_Mod_Genn_Mendulus_09_02"); //Wenn du schon dort bist, kannst du mir gleich eine mitbringen.
B_LogEntry (TOPIC_MOD_FAICE_HEILUNG, "Die Pflanze heißt 'Mendulus-Kraut' und wächst in der Nähe des Höhleneingangs, bei dem sich die Goblinmatronen befanden.");
Wld_InsertItem (ItPl_Mendulus, "FP_ITEM_MENDULUS_01");
Wld_InsertItem (ItPl_Mendulus, "FP_ITEM_MENDULUS_02");
Wld_InsertItem (ItPl_Mendulus, "FP_ITEM_MENDULUS_03");
Wld_InsertItem (ItPl_Mendulus, "FP_ITEM_MENDULUS_04");
Wld_InsertItem (ItPl_Mendulus, "FP_ITEM_MENDULUS_05");
Info_ClearChoices (Info_Mod_Genn_Mendulus);
Info_AddChoice (Info_Mod_Genn_Mendulus, "Ich spiele doch nicht den Laufburschen für dich.", Info_Mod_Genn_Mendulus_B);
Info_AddChoice (Info_Mod_Genn_Mendulus, "Alles klar. Wir sehen uns.", Info_Mod_Genn_Mendulus_A);
};
FUNC VOID Info_Mod_Genn_Mendulus_B()
{
AI_Output(hero, self, "Info_Mod_Genn_Mendulus_B_15_00"); //Ich spiele doch nicht den Laufburschen für dich.
AI_Output(self, hero, "Info_Mod_Genn_Mendulus_B_09_01"); //Komm schon, wenn du sowieso auf dem Weg bist ...
Info_ClearChoices (Info_Mod_Genn_Mendulus);
AI_StopProcessInfos (self);
Info_AddChoice (Info_Mod_Genn_Mendulus, "Nein, vergiss es.", Info_Mod_Genn_Mendulus_D);
Info_AddChoice (Info_Mod_Genn_Mendulus, "Okay.", Info_Mod_Genn_Mendulus_C);
};
FUNC VOID Info_Mod_Genn_Mendulus_A()
{
AI_Output(hero, self, "Info_Mod_Genn_Mendulus_A_15_00"); //Alles klar. Wir sehen uns.
AI_Output(self, hero, "Info_Mod_Genn_Mendulus_C_09_01"); //Viel Glück.
Info_ClearChoices (Info_Mod_Genn_Mendulus);
Mod_VMG_FaiceGifty_Gift = 6;
};
FUNC VOID Info_Mod_Genn_Mendulus_D()
{
AI_Output(hero, self, "Info_Mod_Genn_Mendulus_D_15_00"); //Nein, vergiss es.
AI_Output(self, hero, "Info_Mod_Genn_Mendulus_D_09_01"); //Du hast dich verändert. Leider.
Info_ClearChoices (Info_Mod_Genn_Mendulus);
Mod_VMG_FaiceGifty_Gift = 6;
};
FUNC VOID Info_Mod_Genn_Mendulus_C()
{
AI_Output(hero, self, "Info_Mod_Genn_Mendulus_C_15_00"); //Okay.
AI_Output(self, hero, "Info_Mod_Genn_Mendulus_C_09_01"); //Viel Glück.
Info_ClearChoices (Info_Mod_Genn_Mendulus);
Mod_VMG_FaiceGifty_Gift = 6;
};
INSTANCE Info_Mod_Genn_Soeren (C_INFO)
{
npc = Mod_1959_VMG_Genn_TUG;
nr = 1;
condition = Info_Mod_Genn_Soeren_Condition;
information = Info_Mod_Genn_Soeren_Info;
permanent = 0;
important = 1;
};
FUNC INT Info_Mod_Genn_Soeren_Condition()
{
if (Npc_KnowsInfo(hero, Info_Mod_Soeren_Mendulus))
&& (Mod_VMG_FaiceGifty_Gift == 8)
&& (Npc_HasItems(hero, ItWr_SoerensPBrief) == 1)
{
return 1;
};
};
FUNC VOID Info_Mod_Genn_Soeren_Info()
{
AI_Output(self, hero, "Info_Mod_Genn_Soeren_09_00"); //Hast du Sören gesehen? Er ist so plötzlich verschwunden.
AI_Output(hero, self, "Info_Mod_Genn_Soeren_15_01"); //Allerdings. Hier, lies das.
B_GiveInvItems (hero, self, ItWr_SoerensPBrief, 1);
B_UseFakeScroll ();
AI_Output(self, hero, "Info_Mod_Genn_Soeren_09_02"); //Aber ... das ist ja schrecklich! Wie konnte ich nur auf ihn hereinfallen? Und schon wieder dieser P.
B_StartOtherRoutine (self, "START");
Info_ClearChoices (Info_Mod_Genn_Soeren);
Info_AddChoice (Info_Mod_Genn_Soeren, "Wie sieht es mit einer Belohnung aus?", Info_Mod_Genn_Soeren_B);
Info_AddChoice (Info_Mod_Genn_Soeren, "Was wirst du nun tun?", Info_Mod_Genn_Soeren_A);
};
FUNC VOID Info_Mod_Genn_Soeren_E()
{
AI_Output(hero, self, "Info_Mod_Genn_Soeren_E_15_00"); //Ich werde dann ins Minental zurückkehren, wenn es dir nichts ausmacht.
AI_Output(self, hero, "Info_Mod_Genn_Soeren_E_09_01"); //Nein, der Teleporter ist noch aktiv.
if (Mod_VMG_FaiceGifty_Gift == 8)
{
AI_Output(self, hero, "Info_Mod_Genn_Soeren_E_09_02"); //Ach ja, ehe ich es vergesse: Hier ist deine Entlohnung. Du hast uns einen großen Dienst erwiesen.
B_GiveInvItems (self, hero, ItMi_Gold, 500);
B_LogEntry (TOPIC_MOD_FAICE_HEILUNG, "Ich habe mit Genn gesprochen und meine Entlohnung erhalten. Ich sollte jetzt ins Minental zurückkehren, solange der Teleporter noch aktiv ist.");
Mod_VMG_FaiceGifty_Gift = 9;
};
Info_ClearChoices (Info_Mod_Genn_Soeren);
AI_StopProcessInfos (self);
};
FUNC VOID Info_Mod_Genn_Soeren_B()
{
AI_Output(hero, self, "Info_Mod_Genn_Soeren_B_15_00"); //Wie sieht es mit einer Belohnung aus?
AI_Output(self, hero, "Info_Mod_Genn_Soeren_B_09_01"); //Natürlich, hier. Nimm dieses Gold als Belohnung.
B_GiveInvItems (self, hero, ItMi_Gold, 250);
Mod_VMG_FaiceGifty_Gift = 9;
B_LogEntry (TOPIC_MOD_FAICE_HEILUNG, "Ich habe mit Genn gesprochen und meine Entlohnung erhalten. Ich sollte jetzt ins Minental zurückkehren, solange der Teleporter noch aktiv ist.");
Info_ClearChoices (Info_Mod_Genn_Soeren);
Info_AddChoice (Info_Mod_Genn_Soeren, "Wie, das ist alles?", Info_Mod_Genn_Soeren_D);
Info_AddChoice (Info_Mod_Genn_Soeren, "Danke. Was wirst du nun tun?", Info_Mod_Genn_Soeren_C);
};
FUNC VOID Info_Mod_Genn_Soeren_A()
{
AI_Output(hero, self, "Info_Mod_Genn_Soeren_A_15_00"); //Was wirst du nun tun?
AI_Output(self, hero, "Info_Mod_Genn_Soeren_A_09_01"); //Ich werde Nachforschungen anstellen. Wir müssen herausfinden, wer dieser P. ist.
if (Mod_VMG_FaiceGifty_Gift == 8)
{
Info_ClearChoices (Info_Mod_Genn_Soeren);
Info_AddChoice (Info_Mod_Genn_Soeren, "Wie sieht es mit einer Belohnung aus?", Info_Mod_Genn_Soeren_B);
Info_AddChoice (Info_Mod_Genn_Soeren, "Ich werde dann ins Minental zurückkehren, wenn es dir nichts ausmacht.", Info_Mod_Genn_Soeren_E);
}
else
{
Info_Mod_Genn_Soeren_E();
};
};
FUNC VOID Info_Mod_Genn_Soeren_D()
{
AI_Output(hero, self, "Info_Mod_Genn_Soeren_D_15_00"); //Wie, das ist alles?
AI_Output(self, hero, "Info_Mod_Genn_Soeren_D_09_01"); //Sei damit zufrieden. Und jetzt verschwinde, der Teleporter ist noch aktiv.
Info_ClearChoices (Info_Mod_Genn_Soeren);
AI_StopProcessInfos (self);
};
FUNC VOID Info_Mod_Genn_Soeren_C()
{
AI_Output(hero, self, "Info_Mod_Genn_Soeren_C_15_00"); //Danke.
Info_Mod_Genn_Soeren_A();
};
INSTANCE Info_Mod_Genn_Gift (C_INFO)
{
npc = Mod_1959_VMG_Genn_TUG;
nr = 1;
condition = Info_Mod_Genn_Gift_Condition;
information = Info_Mod_Genn_Gift_Info;
permanent = 1;
important = 1;
};
FUNC INT Info_Mod_Genn_Gift_Condition()
{
if (Mod_Turendil_Faice_Day == 1)
&& (Npc_IsInState(self, ZS_Talk))
{
return 1;
};
};
FUNC VOID Info_Mod_Genn_Gift_Info()
{
AI_Output(self, hero, "Info_Mod_Genn_Gift_09_00"); //Sei mir gegrüßt. Kann ich dir helfen? Nach allem, was du für uns getan hast, wäre es mir eine Ehre, dir zu helfen.
Info_ClearChoices (Info_Mod_Genn_Gift);
Info_AddChoice (Info_Mod_Genn_Gift, "Ich finde mich schon zurecht.", Info_Mod_Genn_Gift_B);
Info_AddChoice (Info_Mod_Genn_Gift, "Ich suche nach dem Gift, mit dem Faice vergiftet worden ist.", Info_Mod_Genn_Gift_A);
};
FUNC VOID Info_Mod_Genn_Gift_B()
{
AI_Output(hero, self, "Info_Mod_Genn_Gift_B_15_00"); //Ich finde mich schon zurecht.
AI_Output(self, hero, "Info_Mod_Genn_Gift_B_09_01"); //Wie du meinst.
Info_ClearChoices (Info_Mod_Genn_Gift);
AI_StopProcessInfos (self);
};
FUNC VOID Info_Mod_Genn_Gift_A()
{
AI_Output(hero, self, "Info_Mod_Genn_Gift_A_15_00"); //Ich suche nach dem Gift, mit dem Faice vergiftet worden ist, falls du davon gehört hast.
if (Mod_VMG_FaiceGifty_Gift == 13)
{
AI_Output(hero, self, "Info_Mod_Genn_Gift_A_15_01"); //Der Übeltäter soll sich hier in Tugettso aufhalten und ein Verwandlungsmagier oder Krieger sein.
AI_Output(self, hero, "Info_Mod_Genn_Gift_A_09_02"); //Was? Wie ist das möglich? Ich kenne fast alle Mitglieder persönlich.
};
AI_Output(self, hero, "Info_Mod_Genn_Gift_A_09_03"); //Über das Gift kann ich nur Vermutungen anstellen. Wir haben hier einige wenige giftige Gewächse.
AI_Output(self, hero, "Info_Mod_Genn_Gift_A_09_04"); //Am Besten ist es, wenn du mir von jedem Exemplar eines bringst. Hier hast du eine Liste.
B_GiveInvItems (self, hero, ItWr_GennGiftListe, 1);
Wld_InsertItem (ItPl_Mushroom_04, "FP_ITEM_FUNGO_01");
Wld_InsertItem (ItPl_Mushroom_04, "FP_ITEM_FUNGO_02");
Wld_InsertItem (ItPl_Mushroom_04, "FP_ITEM_FUNGO_03");
Wld_InsertItem (ItPl_Ponzola, "FP_ITEM_PONZOLA_01");
Wld_InsertItem (ItPl_Ponzola, "FP_ITEM_PONZOLA_02");
Wld_InsertItem (ItPl_Ponzola, "FP_ITEM_PONZOLA_03");
Wld_InsertItem (ItPl_VENENA, "FP_ITEM_VENENA_01");
Wld_InsertItem (ItPl_VENENA, "FP_ITEM_VENENA_02");
Wld_InsertItem (ItPl_VENENA, "FP_ITEM_VENENA_03");
Wld_InsertItem (ItPl_Mithrida, "FP_ITEM_MITHRIDA_01");
Wld_InsertItem (ItPl_Mithrida, "FP_ITEM_MITHRIDA_02");
Wld_InsertItem (ItPl_Mithrida, "FP_ITEM_MITHRIDA_03");
Wld_InsertItem (ItPl_Piante, "FP_ITEM_PIANTE_01");
Wld_InsertItem (ItPl_Piante, "FP_ITEM_PIANTE_02");
Wld_InsertItem (ItPl_Piante, "FP_ITEM_PIANTE_03");
B_LogEntry (TOPIC_MOD_FAICE_GIFT, "Ich habe von Genn eine Liste aller giftigen Pflanzen erhalten, die in Tugettso zu finden sind. Ich soll ihm ein Exemplar jeder Art besorgen.");
Mod_Turendil_Faice_Day = 2;
Info_ClearChoices (Info_Mod_Genn_Gift);
};
INSTANCE Info_Mod_Genn_Trador (C_INFO)
{
npc = Mod_1959_VMG_Genn_TUG;
nr = 1;
condition = Info_Mod_Genn_Trador_Condition;
information = Info_Mod_Genn_Trador_Info;
permanent = 0;
important = 1;
};
FUNC INT Info_Mod_Genn_Trador_Condition()
{
if (Npc_KnowsInfo(hero, Info_Mod_Trador_Hi))
{
return 1;
};
};
FUNC VOID Info_Mod_Genn_Trador_Info()
{
AI_Output(self, hero, "Info_Mod_Genn_Trador_09_00"); //Was ist passiert? Du siehst nicht gut aus.
AI_Output(hero, self, "Info_Mod_Genn_Trador_15_01"); //Ich wurde von Golems angegriffen, als ich die Pflanzen eingesammelt hatte.
if (Mod_VMG_Giftpflanzen == 5)
{
AI_Output(hero, self, "Info_Mod_Genn_Trador_15_02"); //Danach hat mir so ein Spinner namens Trador die Pflanzen abgenommen.
}
else
{
AI_Output(hero, self, "Info_Mod_Genn_Trador_15_03"); //Danach hat mich so ein Spinner namens Trador angesprochen und wollte die Pflanzen haben.
};
AI_Output(hero, self, "Info_Mod_Genn_Trador_15_04"); //Er meinte, er wäre ein hohes Mitglied bei den Verwandlungsmagiern.
if (Mod_VMG_Giftpflanzen == 5)
{
AI_Output(self, hero, "Info_Mod_Genn_Trador_09_05"); //Das ist ja furchtbar!
};
AI_Output(self, hero, "Info_Mod_Genn_Trador_09_06"); //Ich kenne kein Mitglied dieses Namens, aber wenn er eine unserer Roben anhatte, muss er jemanden von uns umgebracht haben.
AI_Output(self, hero, "Info_Mod_Genn_Trador_09_07"); //Wir geben nämlich nur ausgewählten Mitgliedern so eine Robe.
if (Mod_VMG_Giftpflanzen == 5)
{
AI_Output(self, hero, "Info_Mod_Genn_Trador_09_08"); //Ach, und weiterhin muss ich dich bitten, die Pflanzen nochmal einzusammeln, da ich sie immer noch benötige.
};
AI_Output(self, hero, "Info_Mod_Genn_Trador_09_09"); //Hat dieser Trador denn verraten, warum er das gemacht hat?
if (Mod_VMG_FaiceGifty_Gift == 13)
{
AI_Output(hero, self, "Info_Mod_Genn_Trador_15_10"); //Dadurch, dass ich Furt ausgeliefert habe, ist Trador auf mich aufmerksam geworden.
AI_Output(hero, self, "Info_Mod_Genn_Trador_15_11"); //Er und Furt haben gemeinsame Sache gemacht.
}
else
{
AI_Output(hero, self, "Info_Mod_Genn_Trador_15_12"); //Nachdem ich Furt habe laufen lassen, ist er zu Trador gegangen und hat ihm von mir erzählt.
AI_Output(hero, self, "Info_Mod_Genn_Trador_15_13"); //Sie haben gemeinsame Sache gemacht.
};
AI_Output(hero, self, "Info_Mod_Genn_Trador_15_14"); //Warum sie Faice vergiften wollten, hat er mir allerdings nicht verraten.
if (Mod_VMG_Giftpflanzen == 5)
{
AI_Output(hero, self, "Info_Mod_Genn_Trador_15_15"); //Ich mache mich sofort auf den Weg und sammle die Pflanzen erneut.
};
AI_Output(self, hero, "Info_Mod_Genn_Trador_09_16"); //Ich schlage vor, wir gehen folgendermaßen vor:
AI_Output(self, hero, "Info_Mod_Genn_Trador_09_17"); //Du gehst ins Dorf und versuchst herauszufinden, wer verschwunden ist, damit wir wissen, von wem dieser Trador die Robe und vielleicht sogar noch etwas Wissen über uns hat.
if (Mod_VMG_Giftpflanzen == 5)
{
AI_Output(self, hero, "Info_Mod_Genn_Trador_09_18"); //Bring mir aber vorher doch bitte die Pflanzen.
AI_Output(hero, self, "Info_Mod_Genn_Trador_15_19"); //Ich werde dir die Pflanzen bringen und danach herausfinden, welcher Magier umgebracht worden ist.
B_LogEntry (TOPIC_MOD_FAICE_GIFT, "Ich muss Genn wohl oder übel noch einmal ein Exemplar jeder giftigen Pflanze besorgen, damit er seine Untersuchungen fortsetzen kann.");
}
else
{
AI_Output(self, hero, "Info_Mod_Genn_Trador_09_20"); //Gibst du mir bitte die Pflanzen? Ich werde sie solange untersuchen.
};
};
INSTANCE Info_Mod_Genn_Giftpflanzen (C_INFO)
{
npc = Mod_1959_VMG_Genn_TUG;
nr = 1;
condition = Info_Mod_Genn_Giftpflanzen_Condition;
information = Info_Mod_Genn_Giftpflanzen_Info;
permanent = 0;
important = 0;
description = "Hier sind die Pflanzen.";
};
FUNC INT Info_Mod_Genn_Giftpflanzen_Condition()
{
if (Npc_KnowsInfo(hero, Info_Mod_Genn_Trador))
&& (Npc_HasItems(hero, ItPl_Mushroom_04) >= 1)
&& (Npc_HasItems(hero, ItPl_Venena) >= 1)
&& (Npc_HasItems(hero, ItPl_Mithrida) >= 1)
&& (Npc_HasItems(hero, ItPl_Piante) >= 1)
&& (Npc_HasItems(hero, ItPl_Ponzola) >= 1)
{
return 1;
};
};
FUNC VOID Info_Mod_Genn_Giftpflanzen_Info()
{
AI_Output(hero, self, "Info_Mod_Genn_Giftpflanzen_15_00"); //Hier sind die Pflanzen.
Npc_RemoveInvItems (hero, ItPl_Mushroom_04, 1);
Npc_RemoveInvItems (hero, ItPl_Mithrida, 1);
Npc_RemoveInvItems (hero, ItPl_Piante, 1);
Npc_RemoveInvItems (hero, ItPl_Ponzola, 1);
Npc_RemoveInvItems (hero, ItPl_Venena, 1);
B_ShowGivenThings ("Pflanzen gegeben");
AI_Output(self, hero, "Info_Mod_Genn_Giftpflanzen_09_01"); //Vielen Dank, ich werde sie untersuchen, solange du nach dem verschwundenen Magier Ausschau hälst.
B_LogEntry (TOPIC_MOD_FAICE_GIFT, "Jetzt liegt es an mir, herauszufinden, wer von Trador umgebracht wurde. Ich sollte mich im Dorf etwas umsehen.");
AI_UnequipArmor (Mod_7357_VMG_Dean_Tug);
Npc_RemoveInvItems (Mod_7357_VMG_Dean_TUG, ItAr_Naturmagier2, 1);
B_StartOtherRoutine (Mod_7357_VMG_Dean_TUG, "ERMORDET");
B_KillNpc (Mod_7357_VMG_Dean_TUG);
Wld_InsertNpc (Golem_DeanKiller, "TUG_83");
};
INSTANCE Info_Mod_Genn_Dean (C_INFO)
{
npc = Mod_1959_VMG_Genn_TUG;
nr = 1;
condition = Info_Mod_Genn_Dean_Condition;
information = Info_Mod_Genn_Dean_Info;
permanent = 0;
important = 1;
};
FUNC INT Info_Mod_Genn_Dean_Condition()
{
if (Npc_KnowsInfo(hero, Info_Mod_Per_Dean))
|| (Npc_KnowsInfo(hero, Info_Mod_Dever_Dean))
{
return 1;
};
};
FUNC VOID Info_Mod_Genn_Dean_Info()
{
AI_Output(self, hero, "Info_Mod_Genn_Dean_09_00"); //Und? Was hast du herausgefunden?
AI_Output(hero, self, "Info_Mod_Genn_Dean_15_01"); //Der getötete Magier heißt Dean.
AI_Output(hero, self, "Info_Mod_Genn_Dean_15_02"); //Er wurde von einem Golem überfallen, als er sich auf den Weg gemacht hat, den alten Steinkreis zu untersuchen.
AI_Output(hero, self, "Info_Mod_Genn_Dean_15_03"); //Merkwürdigerweise hat aber niemand den Golem vorher gesehen.
AI_Output(self, hero, "Info_Mod_Genn_Dean_09_04"); //Dean also. Das ist schon ein Schlag.
AI_Output(self, hero, "Info_Mod_Genn_Dean_09_05"); //Er hat sich bei uns um die mystischen und unerklärlichen Angelegenheiten gekümmert.
AI_Output(self, hero, "Info_Mod_Genn_Dean_09_06"); //Wir müssen davon ausgehen, dass unser Feind Dinge weiß, die ihn nichts angehen.
AI_Output(hero, self, "Info_Mod_Genn_Dean_15_07"); //Wie geht es jetzt weiter?
AI_Output(self, hero, "Info_Mod_Genn_Dean_09_08"); //Ach ja, genau. Ich habe die Pflanzen untersucht.
AI_Output(self, hero, "Info_Mod_Genn_Dean_09_09"); //Ich denke, er wurde mit der Venena-Pflanze vergiftet. Hier hast du ein Exemplar davon.
B_GiveInvItems (self, hero, ItPl_Venena, 1);
AI_Output(self, hero, "Info_Mod_Genn_Dean_09_10"); //Jetzt geh zu Turendil und berichte ihm alles, was du hier herausgefunden hast.
AI_Output(self, hero, "Info_Mod_Genn_Dean_09_11"); //Er wird wissen, was zu tun ist.
AI_Output(hero, self, "Info_Mod_Genn_Dean_15_12"); //Okay, danke. Ich mache mich dann auf den Weg.
AI_Output(self, hero, "Info_Mod_Genn_Dean_09_13"); //Beeile dich.
B_LogEntry (TOPIC_MOD_FAICE_GIFT, "Genn hat herausgefunden, dass Faice mit dem Gift der Venena-Pflanze vergiftet wurde. Ich sollte jetzt zurück zu Turendil gehen und ihm alles erzählen, was ich herausgefunden habe.");
};
INSTANCE Info_Mod_Genn_TradorTot (C_INFO)
{
npc = Mod_1959_VMG_Genn_TUG;
nr = 1;
condition = Info_Mod_Genn_TradorTot_Condition;
information = Info_Mod_Genn_TradorTot_Info;
permanent = 0;
important = 1;
};
FUNC INT Info_Mod_Genn_TradorTot_Condition()
{
if (Mod_VMG_WSTrador == 6)
{
return 1;
};
};
FUNC VOID Info_Mod_Genn_TradorTot_Info()
{
AI_Output(self, hero, "Info_Mod_Genn_TradorTot_09_00"); //Wo kommst du denn her? Und was war das für ein Lärm da hinten?
Info_ClearChoices (Info_Mod_Genn_TradorTot);
Info_AddChoice (Info_Mod_Genn_TradorTot, "Die lange Version.", Info_Mod_Genn_TradorTot_B);
Info_AddChoice (Info_Mod_Genn_TradorTot, "Die kurze Version", Info_Mod_Genn_TradorTot_A);
};
FUNC VOID Info_Mod_Genn_TradorTot_C()
{
AI_Output(self, hero, "Info_Mod_Genn_TradorTot_C_09_00"); //Sehr gut, ich bin stolz auf dich.
AI_Output(self, hero, "Info_Mod_Genn_TradorTot_C_09_01"); //Ich denke, es wäre das Beste, wenn ich den Teleporter zurück ins Minental für dich aktiviere, damit du Turendil von der Sache berichten kannst.
AI_Output(hero, self, "Info_Mod_Genn_TradorTot_C_15_02"); //Tu das.
AI_Output(self, hero, "Info_Mod_Genn_TradorTot_C_09_03"); //So, du kannst. Wir sehen uns.
B_LogEntry (TOPIC_MOD_TURENDIL_GOLEM, "Genn weiß Bescheid und hat das Portal für den Rückweg aktiviert. Jetzt sollte ich zu Turendil gehen.");
Info_ClearChoices (Info_Mod_Genn_TradorTot);
AI_StopProcessInfos (self);
};
FUNC VOID Info_Mod_Genn_TradorTot_B()
{
AI_Output(hero, self, "Info_Mod_Genn_TradorTot_B_15_00"); //Die lange Version:
AI_Output(hero, self, "Info_Mod_Genn_TradorTot_B_15_01"); //Nachdem Trador den Teleporter manipuliert hatte, bin ich in einem abgelegenen Tal herausgekommen.
AI_Output(hero, self, "Info_Mod_Genn_TradorTot_B_15_02"); //Dort habe ich die beiden Einsiedler Setta und Buff kennen gelernt und habe den taleigenen Teleporter repariert.
AI_Output(hero, self, "Info_Mod_Genn_TradorTot_B_15_03"); //Danach sind wir hierhergekommen und wurden von Trador überrascht.
AI_Output(hero, self, "Info_Mod_Genn_TradorTot_B_15_04"); //Ich habe ihn umgebracht und ihm die Spruchrollen zur Golembeschwörung abgenommen.
Info_Mod_Genn_TradorTot_C();
};
FUNC VOID Info_Mod_Genn_TradorTot_A()
{
AI_Output(hero, self, "Info_Mod_Genn_TradorTot_A_15_00"); //Die kurze Version:
AI_Output(hero, self, "Info_Mod_Genn_TradorTot_A_15_01"); //Trador ist tot und ich habe die Spruchrollen zur Golembeschwörung sichergestellt. Er hatte den Teleporter manipuliert.
Info_Mod_Genn_TradorTot_C();
};
INSTANCE Info_Mod_Genn_Pruefung (C_INFO)
{
npc = Mod_1959_VMG_Genn_TUG;
nr = 1;
condition = Info_Mod_Genn_Pruefung_Condition;
information = Info_Mod_Genn_Pruefung_Info;
permanent = 1;
important = 0;
description = "Faice schickt mich.";
};
FUNC INT Info_Mod_Genn_Pruefung_Condition()
{
if (Npc_KnowsInfo(hero, Info_Mod_Albert_Pruefung))
&& (Mod_VMG_Pruefung == 0)
{
return 1;
};
};
FUNC VOID Info_Mod_Genn_Pruefung_Info()
{
AI_Output(hero, self, "Info_Mod_Genn_Pruefung_15_00"); //Faice schickt mich.
AI_Output(self, hero, "Info_Mod_Genn_Pruefung_09_01"); //Ja, ich weiß. Du willst die drei Tests meistern, die dich in unsere Praktiken einweisen, habe ich recht?
Info_ClearChoices (Info_Mod_Genn_Pruefung);
Info_AddChoice (Info_Mod_Genn_Pruefung, "Was für Tests?", Info_Mod_Genn_Pruefung_B);
Info_AddChoice (Info_Mod_Genn_Pruefung, "So ist es.", Info_Mod_Genn_Pruefung_A);
};
FUNC VOID Info_Mod_Genn_Pruefung_B()
{
AI_Output(hero, self, "Info_Mod_Genn_Pruefung_B_15_00"); //Was für Tests?
AI_Output(self, hero, "Info_Mod_Genn_Pruefung_B_09_01"); //Das hat Faice dir nicht erzählt? Dann steht es mir auch nicht zu.
AI_Output(self, hero, "Info_Mod_Genn_Pruefung_B_09_02"); //Du wirst nacheinander Aufgaben gestellt bekommen, die du ohne Hilfe lösen musst.
AI_Output(self, hero, "Info_Mod_Genn_Pruefung_B_09_03"); //Ich werde dir jetzt die erste dieser Aufgaben auferlegen. Bist du bereit?
Info_ClearChoices (Info_Mod_Genn_Pruefung);
Info_AddChoice (Info_Mod_Genn_Pruefung, "Ich muss noch was erledigen.", Info_Mod_Genn_Pruefung_D);
Info_AddChoice (Info_Mod_Genn_Pruefung, "Ich bin bereit.", Info_Mod_Genn_Pruefung_C);
};
FUNC VOID Info_Mod_Genn_Pruefung_A()
{
AI_Output(hero, self, "Info_Mod_Genn_Pruefung_A_15_00"); //So ist es.
AI_Output(self, hero, "Info_Mod_Genn_Pruefung_A_09_01"); //Dann werde ich dir jetzt die erste Aufgabe auferlegen. Bist du bereit?
Info_ClearChoices (Info_Mod_Genn_Pruefung);
Info_AddChoice (Info_Mod_Genn_Pruefung, "Ich muss noch was erledigen.", Info_Mod_Genn_Pruefung_D);
Info_AddChoice (Info_Mod_Genn_Pruefung, "Ich bin bereit.", Info_Mod_Genn_Pruefung_C);
};
FUNC VOID Info_Mod_Genn_Pruefung_D()
{
AI_Output(hero, self, "Info_Mod_Genn_Pruefung_D_15_00"); //Ich muss noch was erledigen.
AI_Output(self, hero, "Info_Mod_Genn_Pruefung_D_09_01"); //Beeile dich.
Info_ClearChoices (Info_Mod_Genn_Pruefung);
};
FUNC VOID Info_Mod_Genn_Pruefung_C()
{
AI_Output(hero, self, "Info_Mod_Genn_Pruefung_C_15_00"); //Ich bin bereit.
AI_Output(self, hero, "Info_Mod_Genn_Pruefung_C_09_01"); //Vielleicht ist dir schon der Tempel vor unserem Lager aufgefallen.
AI_Output(self, hero, "Info_Mod_Genn_Pruefung_C_09_02"); //Falls nicht habe ich eine Karte für dich vorbereitet, auf der der Standpunkt eingezeichnet ist.
B_GiveInvItems (self, hero, ItWr_Map_Tugettso_Tempel, 1);
AI_Output(self, hero, "Info_Mod_Genn_Pruefung_C_09_03"); //Außerdem erhältst du von mir drei Spruchrollen, die du dort weise einsetzen musst.
B_ShowGivenThings ("3 Spruchrollen erhalten");
CreateInvItems (hero, ItSc_TrfMeatbug, 1);
CreateInvItems (hero, ItSc_TrfBloodfly, 1);
CreateInvItems (hero, Itsc_TrfSheep, 1);
AI_Output(self, hero, "Info_Mod_Genn_Pruefung_C_09_04"); //Unten im Tempel, ganz am Ende ist eine Truhe. Bring mir den Gegenstand, der darin ist. Ein Teleporter wird dich wieder zu mir führen.
AI_Output(self, hero, "Info_Mod_Genn_Pruefung_C_09_05"); //Doch sei gewarnt: Du wirst nur mit den Spruchrollen dein Ziel erreichen können, denn der Weg wird von drei Hindernissen versperrt.
AI_Output(self, hero, "Info_Mod_Genn_Pruefung_C_09_06"); //Überlege dir gut, welche Rolle du für welches Hindernis benutzt. Noch Fragen?
AI_Output(hero, self, "Info_Mod_Genn_Pruefung_C_15_07"); //Nein.
AI_Output(self, hero, "Info_Mod_Genn_Pruefung_C_09_08"); //Alles klar, hier hast du noch den Schlüssel und einen Teleportzauber.
B_ShowGivenThings ("Schlüssel und Spruchrolle erhalten");
CreateInvItems (hero, ItSc_TeleportGenn, 1);
CreateInvItems (hero, ItKe_TugettsoTempel, 1);
AI_Output(hero, self, "Info_Mod_Genn_Pruefung_C_15_09"); //Gut, ich mache mich dann auf den Weg.
AI_Output(self, hero, "Info_Mod_Genn_Pruefung_C_09_10"); //Viel Erfolg!
Mod_VMG_Pruefung = 1;
B_LogEntry (TOPIC_MOD_FAICE_PRUEFUNG, "Ich soll zum Tempel, der auf der Karte von Tugettso markiert ist und mit der Hilfe von drei Spruchrollen einen Gegenstand aus seinem Gewölbe holen.");
Info_ClearChoices (Info_Mod_Genn_Pruefung);
AI_StopProcessInfos (self);
};
INSTANCE Info_Mod_Genn_Pruefung2 (C_INFO)
{
npc = Mod_1959_VMG_Genn_TUG;
nr = 1;
condition = Info_Mod_Genn_Pruefung2_Condition;
information = Info_Mod_Genn_Pruefung2_Info;
permanent = 0;
important = 0;
description = "Ich bin zurück.";
};
FUNC INT Info_Mod_Genn_Pruefung2_Condition()
{
if (Mod_VMG_Pruefung == 1)
&& (Mod_VMG_Pruefung_Teleport > 0)
{
return 1;
};
};
FUNC VOID Info_Mod_Genn_Pruefung2_Info()
{
AI_Output(hero, self, "Info_Mod_Genn_Pruefung2_15_00"); //Ich bin zurück.
AI_Output(self, hero, "Info_Mod_Genn_Pruefung2_09_01"); //Und? Hast du den Gegenstand?
if (Npc_HasItems(hero, ItMi_Statue_Genn) == 1)
{
AI_Output(hero, self, "Info_Mod_Genn_Pruefung2_15_02"); //Hier ist die Büste.
AI_Output(self, hero, "Info_Mod_Genn_Pruefung2_09_03"); //Wunderbar, du hast die erste Aufgabe gemeistert! Gib mir die Büste.
AI_Output(hero, self, "Info_Mod_Genn_Pruefung2_15_04"); //Hier hast du sie.
B_GiveInvItems (hero, self, ItMi_Statue_Genn, 1);
B_LogEntry (TOPIC_MOD_FAICE_PRUEFUNG, "Ich habe die erste Aufgabe zu Genns Zufriedenheit gelöst. Asko wird mir nun die nächste Aufgabe stellen. Er wartet im Dorf auf mich.");
Mod_VMG_Pruefung_Genn = 1;
}
else
{
AI_Output(hero, self, "Info_Mod_Genn_Pruefung2_15_05"); //Nein.
AI_Output(self, hero, "Info_Mod_Genn_Pruefung2_09_06"); //Oh, verstehe. Das ist eine verzwickte Situation, eigentlich dürfte ich dich nicht weiter lassen.
AI_Output(self, hero, "Info_Mod_Genn_Pruefung2_09_07"); //Aber du hast schon so viel für unser Tal getan, dass ich ein Auge zudrücken werde.
AI_Output(self, hero, "Info_Mod_Genn_Pruefung2_09_08"); //Ich werde Faice davon berichten, aber du darfst jetzt bei keiner weiteren Aufgabe scheitern!
AI_Output(self, hero, "Info_Mod_Genn_Pruefung2_09_09"); //Hast du mich verstanden?
AI_Output(hero, self, "Info_Mod_Genn_Pruefung2_15_10"); //Alles klar.
B_LogEntry (TOPIC_MOD_FAICE_PRUEFUNG, "Ich habe die Aufgabe von Genn nicht lösen können. Jetzt soll mir Asko die nächste Aufgabe stellen, bei der ich nicht scheitern sollte.");
Mod_VMG_Pruefung_Genn = 2;
};
AI_Output(self, hero, "Info_Mod_Genn_Pruefung2_09_11"); //Gut. Die nächste Aufgabe wird dir Asko stellen. Am besten, du gehst gleich zu ihm.
AI_Output(self, hero, "Info_Mod_Genn_Pruefung2_09_12"); //Er ist inzwischen wieder im Dorf.
B_StartOtherRoutine (Mod_7355_VMG_Asko_TUG, "START");
};
INSTANCE Info_Mod_Genn_Pruefung3 (C_INFO)
{
npc = Mod_1959_VMG_Genn_TUG;
nr = 1;
condition = Info_Mod_Genn_Pruefung3_Condition;
information = Info_Mod_Genn_Pruefung3_Info;
permanent = 0;
important = 0;
description = "Ich bin zurück.";
};
FUNC INT Info_Mod_Genn_Pruefung3_Condition()
{
if (Npc_KnowsInfo(hero, Info_Mod_Per_Pruefung4))
{
return 1;
};
};
FUNC VOID Info_Mod_Genn_Pruefung3_Info()
{
AI_Output(hero, self, "Info_Mod_Genn_Pruefung3_15_00"); //Ich bin zurück.
AI_Output(self, hero, "Info_Mod_Genn_Pruefung3_09_01"); //Das freut mich. Ich will dich auch gar nicht lange aufhalten, denn Faice möchte dich sehen.
AI_Output(self, hero, "Info_Mod_Genn_Pruefung3_09_02"); //Ich werde dann ja erfahren, wie es ausgegangen ist. Ich wünsche dir auf jeden Fall viel Glück!
AI_Output(self, hero, "Info_Mod_Genn_Pruefung3_09_03"); //Der Teleporter ist aktiv, du kannst dich gleich auf den Weg machen.
AI_Output(hero, self, "Info_Mod_Genn_Pruefung3_15_04"); //Vielen Dank.
AI_Output(self, hero, "Info_Mod_Genn_Pruefung3_09_05"); //Mach's gut!
};
var int Mod_Knows_GennTrader;
INSTANCE Info_Mod_Genn_Trade (C_INFO)
{
npc = Mod_1959_VMG_Genn_TUG;
nr = 1;
condition = Info_Mod_Genn_Trade_Condition;
information = Info_Mod_Genn_Trade_Info;
permanent = 1;
important = 0;
trade = 1;
description = DIALOG_TRADE;
};
FUNC INT Info_Mod_Genn_Trade_Condition()
{
return 1;
};
FUNC VOID Info_Mod_Genn_Trade_Info()
{
if (Mod_Knows_GennTrader == FALSE)
{
Mod_Knows_GennTrader = TRUE;
Log_CreateTopic (TOPIC_MOD_HAENDLER_VM, LOG_NOTE);
B_LogEntry (TOPIC_MOD_HAENDLER_VM, "Genn handelt mit magischem Zubehör.");
};
B_GiveTradeInv (self);
B_Say (hero, self, "$TRADE_1");
};
INSTANCE Info_Mod_Genn_Pickpocket (C_INFO)
{
npc = Mod_1959_VMG_Genn_TUG;
nr = 1;
condition = Info_Mod_Genn_Pickpocket_Condition;
information = Info_Mod_Genn_Pickpocket_Info;
permanent = 1;
important = 0;
description = Pickpocket_60;
};
FUNC INT Info_Mod_Genn_Pickpocket_Condition()
{
C_Beklauen (55, ItSc_TrfBloodfly, 1);
};
FUNC VOID Info_Mod_Genn_Pickpocket_Info()
{
Info_ClearChoices (Info_Mod_Genn_Pickpocket);
Info_AddChoice (Info_Mod_Genn_Pickpocket, DIALOG_BACK, Info_Mod_Genn_Pickpocket_BACK);
Info_AddChoice (Info_Mod_Genn_Pickpocket, DIALOG_PICKPOCKET, Info_Mod_Genn_Pickpocket_DoIt);
};
FUNC VOID Info_Mod_Genn_Pickpocket_BACK()
{
Info_ClearChoices (Info_Mod_Genn_Pickpocket);
};
FUNC VOID Info_Mod_Genn_Pickpocket_DoIt()
{
if (B_Beklauen() == TRUE)
{
Info_ClearChoices (Info_Mod_Genn_Pickpocket);
}
else
{
Info_ClearChoices (Info_Mod_Genn_Pickpocket);
Info_AddChoice (Info_Mod_Genn_Pickpocket, DIALOG_PP_BESCHIMPFEN, Info_Mod_Genn_Pickpocket_Beschimpfen);
Info_AddChoice (Info_Mod_Genn_Pickpocket, DIALOG_PP_BESTECHUNG, Info_Mod_Genn_Pickpocket_Bestechung);
Info_AddChoice (Info_Mod_Genn_Pickpocket, DIALOG_PP_HERAUSREDEN, Info_Mod_Genn_Pickpocket_Herausreden);
};
};
FUNC VOID Info_Mod_Genn_Pickpocket_Beschimpfen()
{
B_Say (hero, self, "$PICKPOCKET_BESCHIMPFEN");
B_Say (self, hero, "$DIRTYTHIEF");
Info_ClearChoices (Info_Mod_Genn_Pickpocket);
AI_StopProcessInfos (self);
B_Attack (self, hero, AR_Theft, 1);
};
FUNC VOID Info_Mod_Genn_Pickpocket_Bestechung()
{
B_Say (hero, self, "$PICKPOCKET_BESTECHUNG");
var int rnd; rnd = r_max(99);
if (rnd < 25)
|| ((rnd >= 25) && (rnd < 50) && (Npc_HasItems(hero, ItMi_Gold) < 50))
|| ((rnd >= 50) && (rnd < 75) && (Npc_HasItems(hero, ItMi_Gold) < 100))
|| ((rnd >= 75) && (rnd < 100) && (Npc_HasItems(hero, ItMi_Gold) < 200))
{
B_Say (self, hero, "$DIRTYTHIEF");
Info_ClearChoices (Info_Mod_Genn_Pickpocket);
AI_StopProcessInfos (self);
B_Attack (self, hero, AR_Theft, 1);
}
else
{
if (rnd >= 75)
{
B_GiveInvItems (hero, self, ItMi_Gold, 200);
}
else if (rnd >= 50)
{
B_GiveInvItems (hero, self, ItMi_Gold, 100);
}
else if (rnd >= 25)
{
B_GiveInvItems (hero, self, ItMi_Gold, 50);
};
B_Say (self, hero, "$PICKPOCKET_BESTECHUNG_01");
Info_ClearChoices (Info_Mod_Genn_Pickpocket);
AI_StopProcessInfos (self);
};
};
FUNC VOID Info_Mod_Genn_Pickpocket_Herausreden()
{
B_Say (hero, self, "$PICKPOCKET_HERAUSREDEN");
if (r_max(99) < Mod_Verhandlungsgeschick)
{
B_Say (self, hero, "$PICKPOCKET_HERAUSREDEN_01");
Info_ClearChoices (Info_Mod_Genn_Pickpocket);
}
else
{
B_Say (self, hero, "$PICKPOCKET_HERAUSREDEN_02");
};
};
INSTANCE Info_Mod_Genn_EXIT (C_INFO)
{
npc = Mod_1959_VMG_Genn_TUG;
nr = 1;
condition = Info_Mod_Genn_EXIT_Condition;
information = Info_Mod_Genn_EXIT_Info;
permanent = 1;
important = 0;
description = DIALOG_ENDE;
};
FUNC INT Info_Mod_Genn_EXIT_Condition()
{
return 1;
};
FUNC VOID Info_Mod_Genn_EXIT_Info()
{
AI_StopProcessInfos (self);
};
|
D
|
/* $OpenBSD: txt_db.h,v 1.9 2014/07/10 22:45:58 jsing Exp $ */
/* Copyright (C) 1995-1998 Eric Young ([email protected])
* All rights reserved.
*
* This package is an SSL implementation written
* by Eric Young ([email protected]).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as core.stdc.config.c_long as
* the following conditions are aheared to. The following conditions
* apply to all code found in this distribution, be it the RC4, RSA,
* lhash, DES, etc., code; not just the SSL code. The SSL documentation
* included with this distribution is covered by the same copyright terms
* except that the holder is Tim Hudson ([email protected]).
*
* Copyright remains Eric Young's, and as such any Copyright notices in
* the code are not to be removed.
* If this package is used in a product, Eric Young should be given attribution
* as the author of the parts of the library used.
* This can be in the form of a textual message at program startup or
* in documentation (online or textual) provided with the package.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* "This product includes cryptographic software written by
* Eric Young ([email protected])"
* The word 'cryptographic' can be left out if the rouines from the library
* being used are not cryptographic related :-).
* 4. If you include any Windows specific code (or a derivative thereof) from
* the apps directory (application code) you must include an acknowledgement:
* "This product includes software written by Tim Hudson ([email protected])"
*
* THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* The licence and distribution terms for any publically available version or
* derivative of this code cannot be changed. i.e. this code cannot simply be
* copied and put under another distribution licence
* [including the GNU Public Licence.]
*/
module libressl_d.openssl.txt_db;
private static import core.stdc.config;
private static import libressl_d.openssl.safestack;
public import libressl_d.openssl.bio;
public import libressl_d.openssl.lhash;
public import libressl_d.openssl.opensslconf;
public import libressl_d.openssl.stack;
//#if !defined(OPENSSL_NO_BIO)
// public import libressl_d.openssl.bio;
//#endif
enum DB_ERROR_OK = 0;
enum DB_ERROR_MALLOC = 1;
enum DB_ERROR_INDEX_CLASH = 2;
enum DB_ERROR_INDEX_OUT_OF_RANGE = 3;
enum DB_ERROR_NO_INDEX = 4;
enum DB_ERROR_INSERT_INDEX_CLASH = 5;
extern (C):
nothrow @nogc:
alias OPENSSL_PSTRING = libressl_d.openssl.safestack.OPENSSL_STRING*;
//DECLARE_SPECIAL_STACK_OF(OPENSSL_PSTRING, OPENSSL_STRING)
struct stack_st_OPENSSL_PSTRING
{
libressl_d.openssl.stack._STACK stack;
}
package alias lhash_st_OPENSSL_STRING = void;
struct txt_db_st
{
int num_fields;
.stack_st_OPENSSL_PSTRING* data;
lhash_st_OPENSSL_STRING** index;
int function(libressl_d.openssl.safestack.OPENSSL_STRING*)* qual;
core.stdc.config.c_long error;
core.stdc.config.c_long arg1;
core.stdc.config.c_long arg2;
libressl_d.openssl.safestack.OPENSSL_STRING* arg_row;
}
alias TXT_DB = .txt_db_st;
//#if !defined(OPENSSL_NO_BIO)
.TXT_DB* TXT_DB_read(libressl_d.openssl.bio.BIO* in_, int num);
core.stdc.config.c_long TXT_DB_write(libressl_d.openssl.bio.BIO* out_, .TXT_DB* db);
//#else
// .TXT_DB* TXT_DB_read(char* in_, int num);
// core.stdc.config.c_long TXT_DB_write(char* out_, .TXT_DB* db);
//#endif
int TXT_DB_create_index(.TXT_DB* db, int field, int function(libressl_d.openssl.safestack.OPENSSL_STRING*) qual, libressl_d.openssl.lhash.LHASH_HASH_FN_TYPE hash, libressl_d.openssl.lhash.LHASH_COMP_FN_TYPE cmp);
void TXT_DB_free(.TXT_DB* db);
libressl_d.openssl.safestack.OPENSSL_STRING* TXT_DB_get_by_index(.TXT_DB* db, int idx, libressl_d.openssl.safestack.OPENSSL_STRING* value);
int TXT_DB_insert(.TXT_DB* db, libressl_d.openssl.safestack.OPENSSL_STRING* value);
|
D
|
/**
* File utilities.
*
* Functions and objects dedicated to file I/O and management. TODO: Move here artifacts
* from places such as root/ so both the frontend and the backend have access to them.
*
* Copyright: Copyright (C) 1999-2022 by The D Language Foundation, All Rights Reserved
* Authors: Walter Bright, https://www.digitalmars.com
* License: $(LINK2 https://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/common/file.d, common/_file.d)
* Documentation: https://dlang.org/phobos/dmd_common_file.html
* Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/common/file.d
*/
module dmd.common.file;
import core.stdc.errno : errno;
import core.stdc.stdio : fprintf, remove, rename, stderr;
import core.stdc.stdlib : exit;
import core.stdc.string : strerror;
import core.sys.windows.winbase;
import core.sys.windows.winnt;
import core.sys.posix.fcntl;
import core.sys.posix.unistd;
import dmd.common.string;
nothrow:
/**
Encapsulated management of a memory-mapped file.
Params:
Datum = the mapped data type: Use a POD of size 1 for read/write mapping
and a `const` version thereof for read-only mapping. Other primitive types
should work, but have not been yet tested.
*/
struct FileMapping(Datum)
{
static assert(__traits(isPOD, Datum) && Datum.sizeof == 1,
"Not tested with other data types yet. Add new types with care.");
version(Posix) enum invalidHandle = -1;
else version(Windows) enum invalidHandle = INVALID_HANDLE_VALUE;
// state {
/// Handle of underlying file
private auto handle = invalidHandle;
/// File mapping object needed on Windows
version(Windows) private HANDLE fileMappingObject = invalidHandle;
/// Memory-mapped array
private Datum[] data;
/// Name of underlying file, zero-terminated
private const(char)* name;
// state }
nothrow:
/**
Open `filename` and map it in memory. If `Datum` is `const`, opens for
read-only and maps the content in memory; no error is issued if the file
does not exist. This makes it easy to treat a non-existing file as empty.
If `Datum` is mutable, opens for read/write (creates file if it does not
exist) and fails fatally on any error.
Due to quirks in `mmap`, if the file is empty, `handle` is valid but `data`
is `null`. This state is valid and accounted for.
Params:
filename = the name of the file to be mapped in memory
*/
this(const char* filename)
{
version (Posix)
{
import core.sys.posix.sys.mman;
import core.sys.posix.fcntl : open, O_CREAT, O_RDONLY, O_RDWR, S_IRGRP, S_IROTH, S_IRUSR, S_IWUSR;
handle = open(filename, is(Datum == const) ? O_RDONLY : (O_CREAT | O_RDWR),
S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
if (handle == invalidHandle)
{
static if (is(Datum == const))
{
// No error, nonexisting file in read mode behaves like an empty file.
return;
}
else
{
fprintf(stderr, "open(\"%s\") failed: %s\n", filename, strerror(errno));
exit(1);
}
}
const size = fileSize(handle);
if (size > 0 && size != ulong.max && size <= size_t.max)
{
auto p = mmap(null, cast(size_t) size, is(Datum == const) ? PROT_READ : PROT_WRITE, MAP_SHARED, handle, 0);
if (p == MAP_FAILED)
{
fprintf(stderr, "mmap(null, %zu) for \"%s\" failed: %s\n", cast(size_t) size, filename, strerror(errno));
exit(1);
}
// The cast below will always work because it's gated by the `size <= size_t.max` condition.
data = cast(Datum[]) p[0 .. cast(size_t) size];
}
}
else version(Windows)
{
static if (is(Datum == const))
{
enum createFileMode = GENERIC_READ;
enum openFlags = OPEN_EXISTING;
}
else
{
enum createFileMode = GENERIC_READ | GENERIC_WRITE;
enum openFlags = CREATE_ALWAYS;
}
handle = filename.asDString.extendedPathThen!(p => CreateFileW(p.ptr, createFileMode, 0, null, openFlags, FILE_ATTRIBUTE_NORMAL, null));
if (handle == invalidHandle)
{
static if (is(Datum == const))
{
return;
}
else
{
fprintf(stderr, "CreateFileW() failed for \"%s\": %d\n", filename, GetLastError());
exit(1);
}
}
createMapping(filename, fileSize(handle));
}
else static assert(0);
// Save the name for later. Technically there's no need: on Linux one can use readlink on /proc/self/fd/NNN.
// On BSD and OSX one can use fcntl with F_GETPATH. On Windows one can use GetFileInformationByHandleEx.
// But just saving the name is simplest, fastest, and most portable...
import core.stdc.string : strlen;
import core.stdc.stdlib : malloc;
import core.stdc.string : memcpy;
auto totalNameLength = filename.strlen() + 1;
name = cast(char*) memcpy(malloc(totalNameLength), filename, totalNameLength);
name || assert(0, "FileMapping: Out of memory.");
}
/**
Common code factored opportunistically. Windows only. Assumes `handle` is
already pointing to an opened file. Initializes the `fileMappingObject`
and `data` members.
Params:
filename = the file to be mapped
size = the size of the file in bytes
*/
version(Windows) private void createMapping(const char* filename, ulong size)
{
assert(size <= size_t.max || size == ulong.max);
assert(handle != invalidHandle);
assert(data is null);
assert(fileMappingObject == invalidHandle);
if (size == 0 || size == ulong.max)
return;
static if (is(Datum == const))
{
enum fileMappingFlags = PAGE_READONLY;
enum mapViewFlags = FILE_MAP_READ;
}
else
{
enum fileMappingFlags = PAGE_READWRITE;
enum mapViewFlags = FILE_MAP_WRITE;
}
fileMappingObject = CreateFileMappingW(handle, null, fileMappingFlags, 0, 0, null);
if (!fileMappingObject)
{
fprintf(stderr, "CreateFileMappingW(%p) failed for %llu bytes of \"%s\": %d\n",
handle, size, filename, GetLastError());
fileMappingObject = invalidHandle; // by convention always use invalidHandle, not null
exit(1);
}
auto p = MapViewOfFile(fileMappingObject, mapViewFlags, 0, 0, 0);
if (!p)
{
fprintf(stderr, "MapViewOfFile() failed for \"%s\": %d\n", filename, GetLastError());
exit(1);
}
data = cast(Datum[]) p[0 .. cast(size_t) size];
}
// Not copyable or assignable (for now).
@disable this(const FileMapping!Datum rhs);
@disable void opAssign(const ref FileMapping!Datum rhs);
/**
Frees resources associated with this mapping. However, it does not deallocate the name.
*/
~this() pure nothrow
{
if (!active)
return;
fakePure({
version (Posix)
{
import core.sys.posix.sys.mman : munmap;
import core.sys.posix.unistd : close;
// Cannot call fprintf from inside a destructor, so exiting silently.
if (data.ptr && munmap(cast(void*) data.ptr, data.length) != 0)
{
exit(1);
}
data = null;
if (handle != invalidHandle && close(handle) != 0)
{
exit(1);
}
handle = invalidHandle;
}
else version(Windows)
{
if (data.ptr !is null && UnmapViewOfFile(cast(void*) data.ptr) == 0)
{
exit(1);
}
data = null;
if (fileMappingObject != invalidHandle && CloseHandle(fileMappingObject) == 0)
{
exit(1);
}
fileMappingObject = invalidHandle;
if (handle != invalidHandle && CloseHandle(handle) == 0)
{
exit(1);
}
handle = invalidHandle;
}
else static assert(0);
});
}
/**
Returns the zero-terminated file name associated with the mapping. Can NOT
be saved beyond the lifetime of `this`.
*/
private const(char)* filename() const pure @nogc @safe nothrow { return name; }
/**
Frees resources associated with this mapping. However, it does not deallocate the name.
Reinitializes `this` as a fresh object that can be reused.
*/
void close()
{
__dtor();
handle = invalidHandle;
version(Windows) fileMappingObject = invalidHandle;
data = null;
name = null;
}
/**
Deletes the underlying file and frees all resources associated.
Reinitializes `this` as a fresh object that can be reused.
This function does not abort if the file cannot be deleted, but does print
a message on `stderr` and returns `false` to the caller. The underlying
rationale is to give the caller the option to continue execution if
deleting the file is not important.
Returns: `true` iff the file was successfully deleted. If the file was not
deleted, prints a message to `stderr` and returns `false`.
*/
static if (!is(Datum == const))
bool discard()
{
// Truncate file to zero so unflushed buffers are not flushed unnecessarily.
resize(0);
auto deleteme = name;
close();
// In-memory resource freed, now get rid of the underlying temp file.
version(Posix)
{
import core.sys.posix.unistd : unlink;
if (unlink(deleteme) != 0)
{
fprintf(stderr, "unlink(\"%s\") failed: %s\n", filename, strerror(errno));
return false;
}
}
else version(Windows)
{
import core.sys.windows.winbase;
if (deleteme.asDString.extendedPathThen!(p => DeleteFileW(p.ptr)) == 0)
{
fprintf(stderr, "DeleteFileW error %d\n", GetLastError());
return false;
}
}
else static assert(0);
return true;
}
/**
Queries whether `this` is currently associated with a file.
Returns: `true` iff there is an active mapping.
*/
bool active() const pure @nogc nothrow
{
return handle !is invalidHandle;
}
/**
Queries the length of the file associated with this mapping. If not
active, returns 0.
Returns: the length of the file, or 0 if no file associated.
*/
size_t length() const pure @nogc @safe nothrow { return data.length; }
/**
Get a slice to the contents of the entire file.
Returns: the contents of the file. If not active, returns the `null` slice.
*/
auto opSlice() pure @nogc @safe nothrow { return data; }
/**
Resizes the file and mapping to the specified `size`.
Params:
size = new length requested
*/
static if (!is(Datum == const))
void resize(size_t size) pure
{
assert(handle != invalidHandle);
fakePure({
version(Posix)
{
import core.sys.posix.unistd : ftruncate;
import core.sys.posix.sys.mman;
if (data.length)
{
assert(data.ptr, "Corrupt memory mapping");
// assert(0) here because it would indicate an internal error
munmap(cast(void*) data.ptr, data.length) == 0 || assert(0);
data = null;
}
if (ftruncate(handle, size) != 0)
{
fprintf(stderr, "ftruncate() failed for \"%s\": %s\n", filename, strerror(errno));
exit(1);
}
if (size > 0)
{
auto p = mmap(null, size, PROT_WRITE, MAP_SHARED, handle, 0);
if (cast(ssize_t) p == -1)
{
fprintf(stderr, "mmap() failed for \"%s\": %s\n", filename, strerror(errno));
exit(1);
}
data = cast(Datum[]) p[0 .. size];
}
}
else version(Windows)
{
// Per documentation, must unmap first.
if (data.length > 0 && UnmapViewOfFile(cast(void*) data.ptr) == 0)
{
fprintf(stderr, "UnmapViewOfFile(%p) failed for memory mapping of \"%s\": %d\n",
data.ptr, filename, GetLastError());
exit(1);
}
data = null;
if (fileMappingObject != invalidHandle && CloseHandle(fileMappingObject) == 0)
{
fprintf(stderr, "CloseHandle() failed for memory mapping of \"%s\": %d\n", filename, GetLastError());
exit(1);
}
fileMappingObject = invalidHandle;
LARGE_INTEGER biggie;
biggie.QuadPart = size;
if (SetFilePointerEx(handle, biggie, null, FILE_BEGIN) == 0 || SetEndOfFile(handle) == 0)
{
fprintf(stderr, "SetFilePointer() failed for \"%s\": %d\n", filename, GetLastError());
exit(1);
}
createMapping(name, size);
}
else static assert(0);
});
}
/**
Unconditionally and destructively moves the underlying file to `filename`.
If the operation succeeds, returns true. Upon failure, prints a message to
`stderr` and returns `false`. In all cases it closes the underlying file.
Params: filename = zero-terminated name of the file to move to.
Returns: `true` iff the operation was successful.
*/
bool moveToFile(const char* filename)
{
assert(name !is null);
// Fetch the name and then set it to `null` so it doesn't get deallocated
auto oldname = name;
import core.stdc.stdlib;
scope(exit) free(cast(void*) oldname);
name = null;
close();
// Rename the underlying file to the target, no copy necessary.
version(Posix)
{
if (.rename(oldname, filename) != 0)
{
fprintf(stderr, "rename(\"%s\", \"%s\") failed: %s\n", oldname, filename, strerror(errno));
return false;
}
}
else version(Windows)
{
import core.sys.windows.winbase;
auto r = oldname.asDString.extendedPathThen!(
p1 => filename.asDString.extendedPathThen!(p2 => MoveFileExW(p1.ptr, p2.ptr, MOVEFILE_REPLACE_EXISTING))
);
if (r == 0)
{
fprintf(stderr, "MoveFileExW(\"%s\", \"%s\") failed: %d\n", oldname, filename, GetLastError());
return false;
}
}
else static assert(0);
return true;
}
}
/// Write a file, returning `true` on success.
extern(D) static bool writeFile(const(char)* name, const void[] data) nothrow
{
version (Posix)
{
int fd = open(name, O_CREAT | O_WRONLY | O_TRUNC, (6 << 6) | (4 << 3) | 4);
if (fd == -1)
goto err;
if (.write(fd, data.ptr, data.length) != data.length)
goto err2;
if (close(fd) == -1)
goto err;
return true;
err2:
close(fd);
.remove(name);
err:
return false;
}
else version (Windows)
{
DWORD numwritten; // here because of the gotos
const nameStr = name.asDString;
// work around Windows file path length limitation
// (see documentation for extendedPathThen).
HANDLE h = nameStr.extendedPathThen!
(p => CreateFileW(p.ptr,
GENERIC_WRITE,
0,
null,
CREATE_ALWAYS,
FILE_ATTRIBUTE_NORMAL | FILE_FLAG_SEQUENTIAL_SCAN,
null));
if (h == INVALID_HANDLE_VALUE)
goto err;
if (WriteFile(h, data.ptr, cast(DWORD)data.length, &numwritten, null) != TRUE)
goto err2;
if (numwritten != data.length)
goto err2;
if (!CloseHandle(h))
goto err;
return true;
err2:
CloseHandle(h);
nameStr.extendedPathThen!(p => DeleteFileW(p.ptr));
err:
return false;
}
else
{
static assert(0);
}
}
/// Touch a file to current date
bool touchFile(const char* namez)
{
version (Windows)
{
FILETIME ft = void;
SYSTEMTIME st = void;
GetSystemTime(&st);
SystemTimeToFileTime(&st, &ft);
import core.stdc.string : strlen;
// get handle to file
HANDLE h = namez[0 .. namez.strlen()].extendedPathThen!(p => CreateFile(p.ptr,
FILE_WRITE_ATTRIBUTES, FILE_SHARE_READ | FILE_SHARE_WRITE,
null, OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL, null));
if (h == INVALID_HANDLE_VALUE)
return false;
const f = SetFileTime(h, null, null, &ft); // set last write time
if (!CloseHandle(h))
return false;
return f != 0;
}
else version (Posix)
{
import core.sys.posix.utime;
return utime(namez, null) == 0;
}
else
static assert(0);
}
// Feel free to make these public if used elsewhere.
/**
Size of a file in bytes.
Params: fd = file handle
Returns: file size in bytes, or `ulong.max` on any error.
*/
version (Posix)
private ulong fileSize(int fd)
{
import core.sys.posix.sys.stat;
stat_t buf;
if (fstat(fd, &buf) == 0)
return buf.st_size;
return ulong.max;
}
/// Ditto
version (Windows)
private ulong fileSize(HANDLE fd)
{
ulong result;
if (GetFileSizeEx(fd, cast(LARGE_INTEGER*) &result) == 0)
return result;
return ulong.max;
}
/**
Runs a non-pure function or delegate as pure code. Use with caution.
Params:
fun = the delegate to run, usually inlined: `fakePure({ ... });`
Returns: whatever `fun` returns.
*/
private auto ref fakePure(F)(scope F fun) pure
{
mixin("alias PureFun = " ~ F.stringof ~ " pure;");
return (cast(PureFun) fun)();
}
|
D
|
#!/usr/bin/env dub
/+ dub.json:
{
"name": "flex_plot_test_density_with_poles",
"dependencies": {"flex_common_pack": {"path": "./flex_common_pack"}},
"versions": ["Flex_logging", "Flex_single"]
}
+/
/**
Test density with pole.
*/
void test(S, F)(in F test)
{
import std.math : abs, log;
auto f0 = (S x) => - cast(S) log(abs(x)) * S(0.5);
auto f1 = (S x) => -1 / (2 * x);
auto f2 = (S x) => S(0.5) / (x * x);
test.plot("dist_with_poles", f0, f1, f2, -1.5, [-1.0, 0, 1]);
}
version(Flex_single) void main()
{
import flex_common;
alias T = double;
auto cf = CFlex!T(5_000, "plots", 1.1);
test!T(cf);
}
|
D
|
// Written in the D programming language.
/**
High-level interface for allocators. Implements bundled allocation/creation
and destruction/deallocation of data including `struct`s and `class`es,
and also array primitives related to allocation. This module is the entry point
for both making use of allocators and for their documentation.
$(SCRIPT inhibitQuickIndex = 1;)
$(BOOKTABLE,
$(TR $(TH Category) $(TH Functions))
$(TR $(TD Make) $(TD
$(LREF make)
$(LREF makeArray)
$(LREF makeMultidimensionalArray)
))
$(TR $(TD Dispose) $(TD
$(LREF dispose)
$(LREF disposeMultidimensionalArray)
))
$(TR $(TD Modify) $(TD
$(LREF expandArray)
$(LREF shrinkArray)
))
$(TR $(TD Global) $(TD
$(LREF processAllocator)
$(LREF theAllocator)
))
$(TR $(TD Class interface) $(TD
$(LREF allocatorObject)
$(LREF CAllocatorImpl)
$(LREF IAllocator)
))
)
Synopsis:
---
// Allocate an int, initialize it with 42
int* p = theAllocator.make!int(42);
assert(*p == 42);
// Destroy and deallocate it
theAllocator.dispose(p);
// Allocate using the global process allocator
p = processAllocator.make!int(100);
assert(*p == 100);
// Destroy and deallocate
processAllocator.dispose(p);
// Create an array of 50 doubles initialized to -1.0
double[] arr = theAllocator.makeArray!double(50, -1.0);
// Append two zeros to it
theAllocator.expandArray(arr, 2, 0.0);
// On second thought, take that back
theAllocator.shrinkArray(arr, 2);
// Destroy and deallocate
theAllocator.dispose(arr);
---
$(H2 Layered Structure)
D's allocators have a layered structure in both implementation and documentation:
$(OL
$(LI A high-level, dynamically-typed layer (described further down in this
module). It consists of an interface called $(LREF IAllocator), which concret;
allocators need to implement. The interface primitives themselves are oblivious
to the type of the objects being allocated; they only deal in `void[]`, by
necessity of the interface being dynamic (as opposed to type-parameterized).
Each thread has a current allocator it uses by default, which is a thread-local
variable $(LREF theAllocator) of type $(LREF IAllocator). The process has a
global _allocator called $(LREF processAllocator), also of type $(LREF
IAllocator). When a new thread is created, $(LREF processAllocator) is copied
into $(LREF theAllocator). An application can change the objects to which these
references point. By default, at application startup, $(LREF processAllocator)
refers to an object that uses D's garbage collected heap. This layer also
include high-level functions such as $(LREF make) and $(LREF dispose) that
comfortably allocate/create and respectively destroy/deallocate objects. This
layer is all needed for most casual uses of allocation primitives.)
$(LI A mid-level, statically-typed layer for assembling several allocators into
one. It uses properties of the type of the objects being created to route
allocation requests to possibly specialized allocators. This layer is relatively
thin and implemented and documented in the $(MREF
std,experimental,_allocator,typed) module. It allows an interested user to e.g.
use different allocators for arrays versus fixed-sized objects, to the end of
better overall performance.)
$(LI A low-level collection of highly generic $(I heap building blocks)$(MDASH)
Lego-like pieces that can be used to assemble application-specific allocators.
The real allocation smarts are occurring at this level. This layer is of
interest to advanced applications that want to configure their own allocators.
A good illustration of typical uses of these building blocks is module $(MREF
std,experimental,_allocator,showcase) which defines a collection of frequently-
used preassembled allocator objects. The implementation and documentation entry
point is $(MREF std,experimental,_allocator,building_blocks). By design, the
primitives of the static interface have the same signatures as the $(LREF
IAllocator) primitives but are for the most part optional and driven by static
introspection. The parameterized class $(LREF CAllocatorImpl) offers an
immediate and useful means to package a static low-level _allocator into an
implementation of $(LREF IAllocator).)
$(LI Core _allocator objects that interface with D's garbage collected heap
($(MREF std,experimental,_allocator,gc_allocator)), the C `malloc` family
($(MREF std,experimental,_allocator,mallocator)), and the OS ($(MREF
std,experimental,_allocator,mmap_allocator)). Most custom allocators would
ultimately obtain memory from one of these core allocators.)
)
$(H2 Idiomatic Use of $(D std.experimental._allocator))
As of this time, $(D std.experimental._allocator) is not integrated with D's
built-in operators that allocate memory, such as `new`, array literals, or
array concatenation operators. That means $(D std.experimental._allocator) is
opt-in$(MDASH)applications need to make explicit use of it.
For casual creation and disposal of dynamically-allocated objects, use $(LREF
make), $(LREF dispose), and the array-specific functions $(LREF makeArray),
$(LREF expandArray), and $(LREF shrinkArray). These use by default D's garbage
collected heap, but open the application to better configuration options. These
primitives work either with `theAllocator` but also with any allocator obtained
by combining heap building blocks. For example:
----
void fun(size_t n)
{
// Use the current allocator
int[] a1 = theAllocator.makeArray!int(n);
scope(exit) theAllocator.dispose(a1);
...
}
----
To experiment with alternative allocators, set $(LREF theAllocator) for the
current thread. For example, consider an application that allocates many 8-byte
objects. These are not well supported by the default _allocator, so a
$(MREF_ALTTEXT free list _allocator,
std,experimental,_allocator,building_blocks,free_list) would be recommended.
To install one in `main`, the application would use:
----
void main()
{
import std.experimental.allocator.building_blocks.free_list
: FreeList;
theAllocator = allocatorObject(FreeList!8());
...
}
----
$(H3 Saving the `IAllocator` Reference For Later Use)
As with any global resource, setting `theAllocator` and `processAllocator`
should not be done often and casually. In particular, allocating memory with
one allocator and deallocating with another causes undefined behavior.
Typically, these variables are set during application initialization phase and
last through the application.
To avoid this, long-lived objects that need to perform allocations,
reallocations, and deallocations relatively often may want to store a reference
to the _allocator object they use throughout their lifetime. Then, instead of
using `theAllocator` for internal allocation-related tasks, they'd use the
internally held reference. For example, consider a user-defined hash table:
----
struct HashTable
{
private IAllocator _allocator;
this(size_t buckets, IAllocator allocator = theAllocator) {
this._allocator = allocator;
...
}
// Getter and setter
IAllocator allocator() { return _allocator; }
void allocator(IAllocator a) { assert(empty); _allocator = a; }
}
----
Following initialization, the `HashTable` object would consistently use its
$(D _allocator) object for acquiring memory. Furthermore, setting
$(D HashTable._allocator) to point to a different _allocator should be legal but
only if the object is empty; otherwise, the object wouldn't be able to
deallocate its existing state.
$(H3 Using Allocators without `IAllocator`)
Allocators assembled from the heap building blocks don't need to go through
`IAllocator` to be usable. They have the same primitives as `IAllocator` and
they work with $(LREF make), $(LREF makeArray), $(LREF dispose) etc. So it
suffice to create allocator objects wherever fit and use them appropriately:
----
void fun(size_t n)
{
// Use a stack-installed allocator for up to 64KB
StackFront!65536 myAllocator;
int[] a2 = myAllocator.makeArray!int(n);
scope(exit) myAllocator.dispose(a2);
...
}
----
In this case, `myAllocator` does not obey the `IAllocator` interface, but
implements its primitives so it can work with `makeArray` by means of duck
typing.
One important thing to note about this setup is that statically-typed assembled
allocators are almost always faster than allocators that go through
`IAllocator`. An important rule of thumb is: "assemble allocator first, adapt
to `IAllocator` after". A good allocator implements intricate logic by means of
template assembly, and gets wrapped with `IAllocator` (usually by means of
$(LREF allocatorObject)) only once, at client level.
Copyright: Andrei Alexandrescu 2013-.
License: $(HTTP boost.org/LICENSE_1_0.txt, Boost License 1.0).
Authors: $(HTTP erdani.com, Andrei Alexandrescu)
Source: $(PHOBOSSRC std/experimental/_allocator)
*/
module std.experimental.allocator;
public import std.experimental.allocator.common,
std.experimental.allocator.typed;
// Example in the synopsis above
@system unittest
{
import std.algorithm.comparison : min, max;
import std.experimental.allocator.building_blocks.allocator_list
: AllocatorList;
import std.experimental.allocator.building_blocks.bitmapped_block
: BitmappedBlock;
import std.experimental.allocator.building_blocks.bucketizer : Bucketizer;
import std.experimental.allocator.building_blocks.free_list : FreeList;
import std.experimental.allocator.building_blocks.segregator : Segregator;
import std.experimental.allocator.gc_allocator : GCAllocator;
alias FList = FreeList!(GCAllocator, 0, unbounded);
alias A = Segregator!(
8, FreeList!(GCAllocator, 0, 8),
128, Bucketizer!(FList, 1, 128, 16),
256, Bucketizer!(FList, 129, 256, 32),
512, Bucketizer!(FList, 257, 512, 64),
1024, Bucketizer!(FList, 513, 1024, 128),
2048, Bucketizer!(FList, 1025, 2048, 256),
3584, Bucketizer!(FList, 2049, 3584, 512),
4072 * 1024, AllocatorList!(
(n) => BitmappedBlock!(4096)(
cast(ubyte[])(GCAllocator.instance.allocate(
max(n, 4072 * 1024))))),
GCAllocator
);
A tuMalloc;
auto b = tuMalloc.allocate(500);
assert(b.length == 500);
auto c = tuMalloc.allocate(113);
assert(c.length == 113);
assert(tuMalloc.expand(c, 14));
tuMalloc.deallocate(b);
tuMalloc.deallocate(c);
}
import std.range.primitives;
import std.traits;
import std.typecons;
/**
Dynamic allocator interface. Code that defines allocators ultimately implements
this interface. This should be used wherever a uniform type is required for
encapsulating various allocator implementations.
Composition of allocators is not recommended at this level due to
inflexibility of dynamic interfaces and inefficiencies caused by cascaded
multiple calls. Instead, compose allocators using the static interface defined
in $(A std_experimental_allocator_building_blocks.html,
`std.experimental.allocator.building_blocks`), then adapt the composed
allocator to `IAllocator` (possibly by using $(LREF CAllocatorImpl) below).
Methods returning $(D Ternary) return $(D Ternary.yes) upon success,
$(D Ternary.no) upon failure, and $(D Ternary.unknown) if the primitive is not
implemented by the allocator instance.
*/
interface IAllocator
{
/**
Returns the alignment offered.
*/
@property uint alignment();
/**
Returns the good allocation size that guarantees zero internal
fragmentation.
*/
size_t goodAllocSize(size_t s);
/**
Allocates `n` bytes of memory.
*/
void[] allocate(size_t, TypeInfo ti = null);
/**
Allocates `n` bytes of memory with specified alignment `a`. Implementations
that do not support this primitive should always return `null`.
*/
void[] alignedAllocate(size_t n, uint a);
/**
Allocates and returns all memory available to this allocator.
Implementations that do not support this primitive should always return
`null`.
*/
void[] allocateAll();
/**
Expands a memory block in place and returns `true` if successful.
Implementations that don't support this primitive should always return
`false`.
*/
bool expand(ref void[], size_t);
/// Reallocates a memory block.
bool reallocate(ref void[], size_t);
/// Reallocates a memory block with specified alignment.
bool alignedReallocate(ref void[] b, size_t size, uint alignment);
/**
Returns $(D Ternary.yes) if the allocator owns $(D b), $(D Ternary.no) if
the allocator doesn't own $(D b), and $(D Ternary.unknown) if ownership
cannot be determined. Implementations that don't support this primitive
should always return `Ternary.unknown`.
*/
Ternary owns(void[] b);
/**
Resolves an internal pointer to the full block allocated. Implementations
that don't support this primitive should always return `Ternary.unknown`.
*/
Ternary resolveInternalPointer(const void* p, ref void[] result);
/**
Deallocates a memory block. Implementations that don't support this
primitive should always return `false`. A simple way to check that an
allocator supports deallocation is to call $(D deallocate(null)).
*/
bool deallocate(void[] b);
/**
Deallocates all memory. Implementations that don't support this primitive
should always return `false`.
*/
bool deallocateAll();
/**
Returns $(D Ternary.yes) if no memory is currently allocated from this
allocator, $(D Ternary.no) if some allocations are currently active, or
$(D Ternary.unknown) if not supported.
*/
Ternary empty();
}
/**
Dynamic shared allocator interface. Code that defines allocators shareable
across threads ultimately implements this interface. This should be used
wherever a uniform type is required for encapsulating various allocator
implementations.
Composition of allocators is not recommended at this level due to
inflexibility of dynamic interfaces and inefficiencies caused by cascaded
multiple calls. Instead, compose allocators using the static interface defined
in $(A std_experimental_allocator_building_blocks.html,
`std.experimental.allocator.building_blocks`), then adapt the composed
allocator to `ISharedAllocator` (possibly by using $(LREF CSharedAllocatorImpl) below).
Methods returning $(D Ternary) return $(D Ternary.yes) upon success,
$(D Ternary.no) upon failure, and $(D Ternary.unknown) if the primitive is not
implemented by the allocator instance.
*/
interface ISharedAllocator
{
/**
Returns the alignment offered.
*/
@property uint alignment() shared;
/**
Returns the good allocation size that guarantees zero internal
fragmentation.
*/
size_t goodAllocSize(size_t s) shared;
/**
Allocates `n` bytes of memory.
*/
void[] allocate(size_t, TypeInfo ti = null) shared;
/**
Allocates `n` bytes of memory with specified alignment `a`. Implementations
that do not support this primitive should always return `null`.
*/
void[] alignedAllocate(size_t n, uint a) shared;
/**
Allocates and returns all memory available to this allocator.
Implementations that do not support this primitive should always return
`null`.
*/
void[] allocateAll() shared;
/**
Expands a memory block in place and returns `true` if successful.
Implementations that don't support this primitive should always return
`false`.
*/
bool expand(ref void[], size_t) shared;
/// Reallocates a memory block.
bool reallocate(ref void[], size_t) shared;
/// Reallocates a memory block with specified alignment.
bool alignedReallocate(ref void[] b, size_t size, uint alignment) shared;
/**
Returns $(D Ternary.yes) if the allocator owns $(D b), $(D Ternary.no) if
the allocator doesn't own $(D b), and $(D Ternary.unknown) if ownership
cannot be determined. Implementations that don't support this primitive
should always return `Ternary.unknown`.
*/
Ternary owns(void[] b) shared;
/**
Resolves an internal pointer to the full block allocated. Implementations
that don't support this primitive should always return `Ternary.unknown`.
*/
Ternary resolveInternalPointer(const void* p, ref void[] result) shared;
/**
Deallocates a memory block. Implementations that don't support this
primitive should always return `false`. A simple way to check that an
allocator supports deallocation is to call $(D deallocate(null)).
*/
bool deallocate(void[] b) shared;
/**
Deallocates all memory. Implementations that don't support this primitive
should always return `false`.
*/
bool deallocateAll() shared;
/**
Returns $(D Ternary.yes) if no memory is currently allocated from this
allocator, $(D Ternary.no) if some allocations are currently active, or
$(D Ternary.unknown) if not supported.
*/
Ternary empty() shared;
}
private shared ISharedAllocator _processAllocator;
private IAllocator _threadAllocator;
private IAllocator setupThreadAllocator() nothrow @nogc @safe
{
/*
Forwards the `_threadAllocator` calls to the `processAllocator`
*/
static class ThreadAllocator : IAllocator
{
override @property uint alignment()
{
return processAllocator.alignment();
}
override size_t goodAllocSize(size_t s)
{
return processAllocator.goodAllocSize(s);
}
override void[] allocate(size_t n, TypeInfo ti = null)
{
return processAllocator.allocate(n, ti);
}
override void[] alignedAllocate(size_t n, uint a)
{
return processAllocator.alignedAllocate(n, a);
}
override void[] allocateAll()
{
return processAllocator.allocateAll();
}
override bool expand(ref void[] b, size_t size)
{
return processAllocator.expand(b, size);
}
override bool reallocate(ref void[] b, size_t size)
{
return processAllocator.reallocate(b, size);
}
override bool alignedReallocate(ref void[] b, size_t size, uint alignment)
{
return processAllocator.alignedReallocate(b, size, alignment);
}
override Ternary owns(void[] b)
{
return processAllocator.owns(b);
}
override Ternary resolveInternalPointer(const void* p, ref void[] result)
{
return processAllocator.resolveInternalPointer(p, result);
}
override bool deallocate(void[] b)
{
return processAllocator.deallocate(b);
}
override bool deallocateAll()
{
return processAllocator.deallocateAll();
}
override Ternary empty()
{
return processAllocator.empty();
}
}
assert(!_threadAllocator);
import std.conv : emplace;
static ulong[stateSize!(ThreadAllocator).divideRoundUp(ulong.sizeof)] _threadAllocatorState;
_threadAllocator = () @trusted { return emplace!(ThreadAllocator)(_threadAllocatorState[]); } ();
return _threadAllocator;
}
/**
Gets/sets the allocator for the current thread. This is the default allocator
that should be used for allocating thread-local memory. For allocating memory
to be shared across threads, use $(D processAllocator) (below). By default,
$(D theAllocator) ultimately fetches memory from $(D processAllocator), which
in turn uses the garbage collected heap.
*/
nothrow @safe @nogc @property IAllocator theAllocator()
{
auto p = _threadAllocator;
return p !is null ? p : setupThreadAllocator();
}
/// Ditto
nothrow @safe @nogc @property void theAllocator(IAllocator a)
{
assert(a);
_threadAllocator = a;
}
///
@system unittest
{
// Install a new allocator that is faster for 128-byte allocations.
import std.experimental.allocator.building_blocks.free_list : FreeList;
import std.experimental.allocator.gc_allocator : GCAllocator;
auto oldAllocator = theAllocator;
scope(exit) theAllocator = oldAllocator;
theAllocator = allocatorObject(FreeList!(GCAllocator, 128)());
// Use the now changed allocator to allocate an array
const ubyte[] arr = theAllocator.makeArray!ubyte(128);
assert(arr.ptr);
//...
}
/**
Gets/sets the allocator for the current process. This allocator must be used
for allocating memory shared across threads. Objects created using this
allocator can be cast to $(D shared).
*/
@property shared(ISharedAllocator) processAllocator()
{
import std.experimental.allocator.gc_allocator : GCAllocator;
import std.concurrency : initOnce;
return initOnce!_processAllocator(
sharedAllocatorObject(GCAllocator.instance));
}
/// Ditto
@property void processAllocator(shared ISharedAllocator a)
{
assert(a);
_processAllocator = a;
}
@system unittest
{
import core.exception : AssertError;
import std.exception : assertThrown;
import std.experimental.allocator.building_blocks.free_list : SharedFreeList;
import std.experimental.allocator.mallocator : Mallocator;
assert(processAllocator);
assert(theAllocator);
testAllocatorObject(processAllocator);
testAllocatorObject(theAllocator);
shared SharedFreeList!(Mallocator, chooseAtRuntime, chooseAtRuntime) sharedFL;
shared ISharedAllocator sharedFLObj = sharedAllocatorObject(sharedFL);
assert(sharedFLObj);
testAllocatorObject(sharedFLObj);
// Test processAllocator setter
shared ISharedAllocator oldProcessAllocator = processAllocator;
processAllocator = sharedFLObj;
assert(processAllocator is sharedFLObj);
testAllocatorObject(processAllocator);
testAllocatorObject(theAllocator);
assertThrown!AssertError(processAllocator = null);
// Restore initial processAllocator state
processAllocator = oldProcessAllocator;
assert(processAllocator is oldProcessAllocator);
shared ISharedAllocator indirectShFLObj = sharedAllocatorObject(&sharedFL);
testAllocatorObject(indirectShFLObj);
IAllocator indirectMallocator = allocatorObject(&Mallocator.instance);
testAllocatorObject(indirectMallocator);
}
/**
Dynamically allocates (using $(D alloc)) and then creates in the memory
allocated an object of type $(D T), using $(D args) (if any) for its
initialization. Initialization occurs in the memory allocated and is otherwise
semantically the same as $(D T(args)).
(Note that using $(D alloc.make!(T[])) creates a pointer to an (empty) array
of $(D T)s, not an array. To use an allocator to allocate and initialize an
array, use $(D alloc.makeArray!T) described below.)
Params:
T = Type of the object being created.
alloc = The allocator used for getting the needed memory. It may be an object
implementing the static interface for allocators, or an $(D IAllocator)
reference.
args = Optional arguments used for initializing the created object. If not
present, the object is default constructed.
Returns: If $(D T) is a class type, returns a reference to the created $(D T)
object. Otherwise, returns a $(D T*) pointing to the created object. In all
cases, returns $(D null) if allocation failed.
Throws: If $(D T)'s constructor throws, deallocates the allocated memory and
propagates the exception.
*/
auto make(T, Allocator, A...)(auto ref Allocator alloc, auto ref A args)
{
import std.algorithm.comparison : max;
import std.conv : emplace, emplaceRef;
auto m = alloc.allocate(max(stateSize!T, 1));
if (!m.ptr) return null;
// make can only be @safe if emplace or emplaceRef is `pure`
auto construct()
{
static if (is(T == class)) return emplace!T(m, args);
else
{
// Assume cast is safe as allocation succeeded for `stateSize!T`
auto p = () @trusted { return cast(T*) m.ptr; }();
emplaceRef(*p, args);
return p;
}
}
scope(failure)
{
static if (is(typeof(() pure { return construct(); })))
{
// Assume deallocation is safe because:
// 1) in case of failure, `m` is the only reference to this memory
// 2) `m` is known to originate from `alloc`
() @trusted { alloc.deallocate(m); }();
}
else
{
alloc.deallocate(m);
}
}
return construct();
}
///
@system unittest
{
// Dynamically allocate one integer
const int* p1 = theAllocator.make!int;
// It's implicitly initialized with its .init value
assert(*p1 == 0);
// Dynamically allocate one double, initialize to 42.5
const double* p2 = theAllocator.make!double(42.5);
assert(*p2 == 42.5);
// Dynamically allocate a struct
static struct Point
{
int x, y, z;
}
// Use the generated constructor taking field values in order
const Point* p = theAllocator.make!Point(1, 2);
assert(p.x == 1 && p.y == 2 && p.z == 0);
// Dynamically allocate a class object
static class Customer
{
uint id = uint.max;
this() {}
this(uint id) { this.id = id; }
// ...
}
Customer cust = theAllocator.make!Customer;
assert(cust.id == uint.max); // default initialized
cust = theAllocator.make!Customer(42);
assert(cust.id == 42);
// explicit passing of outer pointer
static class Outer
{
int x = 3;
class Inner
{
auto getX() { return x; }
}
}
auto outer = theAllocator.make!Outer();
auto inner = theAllocator.make!(Outer.Inner)(outer);
assert(outer.x == inner.getX);
}
@system unittest // bugzilla 15639 & 15772
{
abstract class Foo {}
class Bar: Foo {}
static assert(!is(typeof(theAllocator.make!Foo)));
static assert( is(typeof(theAllocator.make!Bar)));
}
@system unittest
{
void test(Allocator)(auto ref Allocator alloc)
{
const int* a = alloc.make!int(10);
assert(*a == 10);
struct A
{
int x;
string y;
double z;
}
A* b = alloc.make!A(42);
assert(b.x == 42);
assert(b.y is null);
import std.math : isNaN;
assert(b.z.isNaN);
b = alloc.make!A(43, "44", 45);
assert(b.x == 43);
assert(b.y == "44");
assert(b.z == 45);
static class B
{
int x;
string y;
double z;
this(int _x, string _y = null, double _z = double.init)
{
x = _x;
y = _y;
z = _z;
}
}
B c = alloc.make!B(42);
assert(c.x == 42);
assert(c.y is null);
assert(c.z.isNaN);
c = alloc.make!B(43, "44", 45);
assert(c.x == 43);
assert(c.y == "44");
assert(c.z == 45);
const parray = alloc.make!(int[]);
assert((*parray).empty);
}
import std.experimental.allocator.gc_allocator : GCAllocator;
test(GCAllocator.instance);
test(theAllocator);
}
// Attribute propagation
nothrow @safe @nogc unittest
{
import std.experimental.allocator.mallocator : Mallocator;
alias alloc = Mallocator.instance;
void test(T, Args...)(auto ref Args args)
{
auto k = alloc.make!T(args);
() @trusted { alloc.dispose(k); }();
}
test!int;
test!(int*);
test!int(0);
test!(int*)(null);
}
// should be pure with the GCAllocator
/*pure nothrow*/ @safe unittest
{
import std.experimental.allocator.gc_allocator : GCAllocator;
alias alloc = GCAllocator.instance;
void test(T, Args...)(auto ref Args args)
{
auto k = alloc.make!T(args);
(a) @trusted { a.dispose(k); }(alloc);
}
test!int();
test!(int*);
test!int(0);
test!(int*)(null);
}
// Verify that making an object by calling an impure constructor is not @safe
nothrow @safe @nogc unittest
{
import std.experimental.allocator.mallocator : Mallocator;
static struct Pure { this(int) pure nothrow @nogc @safe {} }
cast(void) Mallocator.instance.make!Pure(0);
static int g = 0;
static struct Impure { this(int) nothrow @nogc @safe {
g++;
} }
static assert(!__traits(compiles, cast(void) Mallocator.instance.make!Impure(0)));
}
// test failure with a pure, failing struct
@safe unittest
{
import std.exception : assertThrown, enforce;
// this struct can't be initialized
struct InvalidStruct
{
this(int b)
{
enforce(1 == 2);
}
}
import std.experimental.allocator.mallocator : Mallocator;
assertThrown(make!InvalidStruct(Mallocator.instance, 42));
}
// test failure with an impure, failing struct
@system unittest
{
import std.exception : assertThrown, enforce;
static int g;
struct InvalidImpureStruct
{
this(int b)
{
g++;
enforce(1 == 2);
}
}
import std.experimental.allocator.mallocator : Mallocator;
assertThrown(make!InvalidImpureStruct(Mallocator.instance, 42));
}
private void fillWithMemcpy(T)(void[] array, auto ref T filler) nothrow
{
import core.stdc.string : memcpy;
import std.algorithm.comparison : min;
if (!array.length) return;
memcpy(array.ptr, &filler, T.sizeof);
// Fill the array from the initialized portion of itself exponentially.
for (size_t offset = T.sizeof; offset < array.length; )
{
size_t extent = min(offset, array.length - offset);
memcpy(array.ptr + offset, array.ptr, extent);
offset += extent;
}
}
@system unittest
{
int[] a;
fillWithMemcpy(a, 42);
assert(a.length == 0);
a = [ 1, 2, 3, 4, 5 ];
fillWithMemcpy(a, 42);
assert(a == [ 42, 42, 42, 42, 42]);
}
private T[] uninitializedFillDefault(T)(T[] array) nothrow
{
T t = T.init;
fillWithMemcpy(array, t);
return array;
}
pure nothrow @nogc
@system unittest
{
static struct S { int x = 42; @disable this(this); }
int[5] expected = [42, 42, 42, 42, 42];
S[5] arr = void;
uninitializedFillDefault(arr);
assert((cast(int*) arr.ptr)[0 .. arr.length] == expected);
}
@system unittest
{
int[] a = [1, 2, 4];
uninitializedFillDefault(a);
assert(a == [0, 0, 0]);
}
/**
Create an array of $(D T) with $(D length) elements using $(D alloc). The array is either default-initialized, filled with copies of $(D init), or initialized with values fetched from `range`.
Params:
T = element type of the array being created
alloc = the allocator used for getting memory
length = length of the newly created array
init = element used for filling the array
range = range used for initializing the array elements
Returns:
The newly-created array, or $(D null) if either $(D length) was $(D 0) or
allocation failed.
Throws:
The first two overloads throw only if `alloc`'s primitives do. The
overloads that involve copy initialization deallocate memory and propagate the
exception if the copy operation throws.
*/
T[] makeArray(T, Allocator)(auto ref Allocator alloc, size_t length)
{
if (!length) return null;
auto m = alloc.allocate(T.sizeof * length);
if (!m.ptr) return null;
alias U = Unqual!T;
return () @trusted { return cast(T[]) uninitializedFillDefault(cast(U[]) m); }();
}
@system unittest
{
void test1(A)(auto ref A alloc)
{
int[] a = alloc.makeArray!int(0);
assert(a.length == 0 && a.ptr is null);
a = alloc.makeArray!int(5);
assert(a.length == 5);
static immutable cheatsheet = [0, 0, 0, 0, 0];
assert(a == cheatsheet);
}
void test2(A)(auto ref A alloc)
{
static struct S { int x = 42; @disable this(this); }
S[] arr = alloc.makeArray!S(5);
assert(arr.length == 5);
int[] arrInt = () @trusted { return (cast(int*) arr.ptr)[0 .. 5]; }();
static immutable res = [42, 42, 42, 42, 42];
assert(arrInt == res);
}
import std.experimental.allocator.gc_allocator : GCAllocator;
import std.experimental.allocator.mallocator : Mallocator;
(alloc) /*pure nothrow*/ @safe { test1(alloc); test2(alloc);} (GCAllocator.instance);
(alloc) nothrow @safe @nogc { test1(alloc); test2(alloc);} (Mallocator.instance);
test2(theAllocator);
}
@system unittest
{
import std.algorithm.comparison : equal;
auto a = theAllocator.makeArray!(shared int)(5);
static assert(is(typeof(a) == shared(int)[]));
assert(a.length == 5);
assert(a.equal([0, 0, 0, 0, 0]));
auto b = theAllocator.makeArray!(const int)(5);
static assert(is(typeof(b) == const(int)[]));
assert(b.length == 5);
assert(b.equal([0, 0, 0, 0, 0]));
auto c = theAllocator.makeArray!(immutable int)(5);
static assert(is(typeof(c) == immutable(int)[]));
assert(c.length == 5);
assert(c.equal([0, 0, 0, 0, 0]));
}
private enum hasPurePostblit(T) = !hasElaborateCopyConstructor!T ||
is(typeof(() pure { T.init.__xpostblit(); }));
private enum hasPureDtor(T) = !hasElaborateDestructor!T ||
is(typeof(() pure { T.init.__xdtor(); }));
// `true` when postblit and destructor of T cannot escape references to itself
private enum canSafelyDeallocPostRewind(T) = hasPurePostblit!T && hasPureDtor!T;
/// Ditto
T[] makeArray(T, Allocator)(auto ref Allocator alloc, size_t length,
auto ref T init)
{
if (!length) return null;
auto m = alloc.allocate(T.sizeof * length);
if (!m.ptr) return null;
auto result = () @trusted { return cast(T[]) m; } ();
import std.traits : hasElaborateCopyConstructor;
static if (hasElaborateCopyConstructor!T)
{
scope(failure)
{
static if (canSafelyDeallocPostRewind!T)
() @trusted { alloc.deallocate(m); } ();
else
alloc.deallocate(m);
}
size_t i = 0;
static if (hasElaborateDestructor!T)
{
scope (failure)
{
foreach (j; 0 .. i)
{
destroy(result[j]);
}
}
}
import std.conv : emplace;
for (; i < length; ++i)
{
emplace!T(&result[i], init);
}
}
else
{
alias U = Unqual!T;
() @trusted { fillWithMemcpy(cast(U[]) result, *(cast(U*) &init)); }();
}
return result;
}
///
@system unittest
{
import std.algorithm.comparison : equal;
static void test(T)()
{
T[] a = theAllocator.makeArray!T(2);
assert(a.equal([0, 0]));
a = theAllocator.makeArray!T(3, 42);
assert(a.equal([42, 42, 42]));
import std.range : only;
a = theAllocator.makeArray!T(only(42, 43, 44));
assert(a.equal([42, 43, 44]));
}
test!int();
test!(shared int)();
test!(const int)();
test!(immutable int)();
}
@system unittest
{
void test(A)(auto ref A alloc)
{
long[] a = alloc.makeArray!long(0, 42);
assert(a.length == 0 && a.ptr is null);
a = alloc.makeArray!long(5, 42);
assert(a.length == 5);
assert(a == [ 42, 42, 42, 42, 42 ]);
}
import std.experimental.allocator.gc_allocator : GCAllocator;
(alloc) /*pure nothrow*/ @safe { test(alloc); } (GCAllocator.instance);
test(theAllocator);
}
// test failure with a pure, failing struct
@safe unittest
{
import std.exception : assertThrown, enforce;
struct NoCopy
{
@disable this();
this(int b){}
// can't be copied
this(this)
{
enforce(1 == 2);
}
}
import std.experimental.allocator.mallocator : Mallocator;
assertThrown(makeArray!NoCopy(Mallocator.instance, 10, NoCopy(42)));
}
// test failure with an impure, failing struct
@system unittest
{
import std.exception : assertThrown, enforce;
static int i = 0;
struct Singleton
{
@disable this();
this(int b){}
// can't be copied
this(this)
{
enforce(i++ == 0);
}
~this()
{
i--;
}
}
import std.experimental.allocator.mallocator : Mallocator;
assertThrown(makeArray!Singleton(Mallocator.instance, 10, Singleton(42)));
}
/// Ditto
Unqual!(ElementEncodingType!R)[] makeArray(Allocator, R)(auto ref Allocator alloc, R range)
if (isInputRange!R && !isInfinite!R)
{
alias T = Unqual!(ElementEncodingType!R);
return makeArray!(T, Allocator, R)(alloc, range);
}
/// Ditto
T[] makeArray(T, Allocator, R)(auto ref Allocator alloc, R range)
if (isInputRange!R && !isInfinite!R)
{
static if (isForwardRange!R || hasLength!R)
{
static if (hasLength!R || isNarrowString!R)
immutable length = range.length;
else
immutable length = range.save.walkLength;
if (!length) return null;
auto m = alloc.allocate(T.sizeof * length);
if (!m.ptr) return null;
auto result = () @trusted { return cast(T[]) m; } ();
size_t i = 0;
scope (failure)
{
foreach (j; 0 .. i)
{
auto p = () @trusted { return cast(Unqual!T*) &result[j]; }();
destroy(p);
}
static if (canSafelyDeallocPostRewind!T)
() @trusted { alloc.deallocate(m); } ();
else
alloc.deallocate(m);
}
import std.conv : emplaceRef;
static if (isNarrowString!R || isRandomAccessRange!R)
{
foreach (j; 0 .. range.length)
{
emplaceRef!T(result[i++], range[j]);
}
}
else
{
for (; !range.empty; range.popFront, ++i)
{
emplaceRef!T(result[i], range.front);
}
}
return result;
}
else
{
// Estimated size
size_t estimated = 8;
auto m = alloc.allocate(T.sizeof * estimated);
if (!m.ptr) return null;
auto result = () @trusted { return cast(T[]) m; } ();
size_t initialized = 0;
void bailout()
{
foreach (i; 0 .. initialized + 1)
{
destroy(result[i]);
}
static if (canSafelyDeallocPostRewind!T)
() @trusted { alloc.deallocate(m); } ();
else
alloc.deallocate(m);
}
scope (failure) bailout;
for (; !range.empty; range.popFront, ++initialized)
{
if (initialized == estimated)
{
// Need to reallocate
static if (hasPurePostblit!T)
auto success = () @trusted { return alloc.reallocate(m, T.sizeof * (estimated *= 2)); } ();
else
auto success = alloc.reallocate(m, T.sizeof * (estimated *= 2));
if (!success)
{
bailout;
return null;
}
result = () @trusted { return cast(T[]) m; } ();
}
import std.conv : emplaceRef;
emplaceRef(result[initialized], range.front);
}
if (initialized < estimated)
{
// Try to shrink memory, no harm if not possible
static if (hasPurePostblit!T)
auto success = () @trusted { return alloc.reallocate(m, T.sizeof * initialized); } ();
else
auto success = alloc.reallocate(m, T.sizeof * initialized);
if (success)
result = () @trusted { return cast(T[]) m; } ();
}
return result[0 .. initialized];
}
}
@system unittest
{
void test(A)(auto ref A alloc)
{
long[] a = alloc.makeArray!long((int[]).init);
assert(a.length == 0 && a.ptr is null);
a = alloc.makeArray!long([5, 42]);
assert(a.length == 2);
assert(a == [ 5, 42]);
// we can also infer the type
auto b = alloc.makeArray([4.0, 2.0]);
static assert(is(typeof(b) == double[]));
assert(b == [4.0, 2.0]);
}
import std.experimental.allocator.gc_allocator : GCAllocator;
(alloc) pure nothrow @safe { test(alloc); } (GCAllocator.instance);
test(theAllocator);
}
// infer types for strings
@system unittest
{
void test(A)(auto ref A alloc)
{
auto c = alloc.makeArray("fooπ😜");
static assert(is(typeof(c) == char[]));
assert(c == "fooπ😜");
auto d = alloc.makeArray("fooπ😜"d);
static assert(is(typeof(d) == dchar[]));
assert(d == "fooπ😜");
auto w = alloc.makeArray("fooπ😜"w);
static assert(is(typeof(w) == wchar[]));
assert(w == "fooπ😜");
}
import std.experimental.allocator.gc_allocator : GCAllocator;
(alloc) pure nothrow @safe { test(alloc); } (GCAllocator.instance);
test(theAllocator);
}
/*pure*/ nothrow @safe unittest
{
import std.algorithm.comparison : equal;
import std.experimental.allocator.gc_allocator : GCAllocator;
import std.internal.test.dummyrange;
import std.range : iota;
foreach (DummyType; AllDummyRanges)
{
(alloc) pure nothrow @safe
{
DummyType d;
auto arr = alloc.makeArray(d);
assert(arr.length == 10);
assert(arr.equal(iota(1, 11)));
} (GCAllocator.instance);
}
}
// test failure with a pure, failing struct
@safe unittest
{
import std.exception : assertThrown, enforce;
struct NoCopy
{
int b;
@disable this();
this(int b)
{
this.b = b;
}
// can't be copied
this(this)
{
enforce(b < 3, "there can only be three elements");
}
}
import std.experimental.allocator.mallocator : Mallocator;
auto arr = [NoCopy(1), NoCopy(2), NoCopy(3)];
assertThrown(makeArray!NoCopy(Mallocator.instance, arr));
struct NoCopyRange
{
static j = 0;
bool empty()
{
return j > 5;
}
auto front()
{
return NoCopy(j);
}
void popFront()
{
j++;
}
}
assertThrown(makeArray!NoCopy(Mallocator.instance, NoCopyRange()));
}
// test failure with an impure, failing struct
@system unittest
{
import std.exception : assertThrown, enforce;
static i = 0;
static maxElements = 2;
struct NoCopy
{
int val;
@disable this();
this(int b){
this.val = i++;
}
// can't be copied
this(this)
{
enforce(i++ < maxElements, "there can only be four elements");
}
}
import std.experimental.allocator.mallocator : Mallocator;
auto arr = [NoCopy(1), NoCopy(2)];
assertThrown(makeArray!NoCopy(Mallocator.instance, arr));
// allow more copies and thus force reallocation
i = 0;
maxElements = 30;
static j = 0;
struct NoCopyRange
{
bool empty()
{
return j > 100;
}
auto front()
{
return NoCopy(1);
}
void popFront()
{
j++;
}
}
assertThrown(makeArray!NoCopy(Mallocator.instance, NoCopyRange()));
maxElements = 300;
auto arr2 = makeArray!NoCopy(Mallocator.instance, NoCopyRange());
import std.algorithm.comparison : equal;
import std.algorithm.iteration : map;
import std.range : iota;
assert(arr2.map!`a.val`.equal(iota(32, 204, 2)));
}
version(unittest)
{
private struct ForcedInputRange
{
int[]* array;
pure nothrow @safe @nogc:
bool empty() { return !array || (*array).empty; }
ref int front() { return (*array)[0]; }
void popFront() { *array = (*array)[1 .. $]; }
}
}
@system unittest
{
import std.array : array;
import std.range : iota;
int[] arr = iota(10).array;
void test(A)(auto ref A alloc)
{
ForcedInputRange r;
long[] a = alloc.makeArray!long(r);
assert(a.length == 0 && a.ptr is null);
auto arr2 = arr;
r.array = () @trusted { return &arr2; } ();
a = alloc.makeArray!long(r);
assert(a.length == 10);
assert(a == iota(10).array);
}
import std.experimental.allocator.gc_allocator : GCAllocator;
(alloc) pure nothrow @safe { test(alloc); } (GCAllocator.instance);
test(theAllocator);
}
/**
Grows $(D array) by appending $(D delta) more elements. The needed memory is
allocated using $(D alloc). The extra elements added are either default-
initialized, filled with copies of $(D init), or initialized with values
fetched from `range`.
Params:
T = element type of the array being created
alloc = the allocator used for getting memory
array = a reference to the array being grown
delta = number of elements to add (upon success the new length of $(D array) is
$(D array.length + delta))
init = element used for filling the array
range = range used for initializing the array elements
Returns:
$(D true) upon success, $(D false) if memory could not be allocated. In the
latter case $(D array) is left unaffected.
Throws:
The first two overloads throw only if `alloc`'s primitives do. The
overloads that involve copy initialization deallocate memory and propagate the
exception if the copy operation throws.
*/
bool expandArray(T, Allocator)(auto ref Allocator alloc, ref T[] array,
size_t delta)
{
if (!delta) return true;
if (array is null) return false;
immutable oldLength = array.length;
void[] buf = array;
if (!alloc.reallocate(buf, buf.length + T.sizeof * delta)) return false;
array = cast(T[]) buf;
array[oldLength .. $].uninitializedFillDefault;
return true;
}
@system unittest
{
void test(A)(auto ref A alloc)
{
auto arr = alloc.makeArray!int([1, 2, 3]);
assert(alloc.expandArray(arr, 3));
assert(arr == [1, 2, 3, 0, 0, 0]);
}
import std.experimental.allocator.gc_allocator : GCAllocator;
test(GCAllocator.instance);
test(theAllocator);
}
/// Ditto
bool expandArray(T, Allocator)(auto ref Allocator alloc, ref T[] array,
size_t delta, auto ref T init)
{
if (!delta) return true;
if (array is null) return false;
void[] buf = array;
if (!alloc.reallocate(buf, buf.length + T.sizeof * delta)) return false;
immutable oldLength = array.length;
array = cast(T[]) buf;
scope(failure) array[oldLength .. $].uninitializedFillDefault;
import std.algorithm.mutation : uninitializedFill;
array[oldLength .. $].uninitializedFill(init);
return true;
}
@system unittest
{
void test(A)(auto ref A alloc)
{
auto arr = alloc.makeArray!int([1, 2, 3]);
assert(alloc.expandArray(arr, 3, 1));
assert(arr == [1, 2, 3, 1, 1, 1]);
}
import std.experimental.allocator.gc_allocator : GCAllocator;
test(GCAllocator.instance);
test(theAllocator);
}
/// Ditto
bool expandArray(T, Allocator, R)(auto ref Allocator alloc, ref T[] array,
R range)
if (isInputRange!R)
{
if (array is null) return false;
static if (isForwardRange!R)
{
immutable delta = walkLength(range.save);
if (!delta) return true;
immutable oldLength = array.length;
// Reallocate support memory
void[] buf = array;
if (!alloc.reallocate(buf, buf.length + T.sizeof * delta))
{
return false;
}
array = cast(T[]) buf;
// At this point we're committed to the new length.
auto toFill = array[oldLength .. $];
scope (failure)
{
// Fill the remainder with default-constructed data
toFill.uninitializedFillDefault;
}
for (; !range.empty; range.popFront, toFill.popFront)
{
assert(!toFill.empty);
import std.conv : emplace;
emplace!T(&toFill.front, range.front);
}
assert(toFill.empty);
}
else
{
scope(failure)
{
// The last element didn't make it, fill with default
array[$ - 1 .. $].uninitializedFillDefault;
}
void[] buf = array;
for (; !range.empty; range.popFront)
{
if (!alloc.reallocate(buf, buf.length + T.sizeof))
{
array = cast(T[]) buf;
return false;
}
import std.conv : emplace;
emplace!T(buf[$ - T.sizeof .. $], range.front);
}
array = cast(T[]) buf;
}
return true;
}
///
@system unittest
{
auto arr = theAllocator.makeArray!int([1, 2, 3]);
assert(theAllocator.expandArray(arr, 2));
assert(arr == [1, 2, 3, 0, 0]);
import std.range : only;
assert(theAllocator.expandArray(arr, only(4, 5)));
assert(arr == [1, 2, 3, 0, 0, 4, 5]);
}
@system unittest
{
auto arr = theAllocator.makeArray!int([1, 2, 3]);
ForcedInputRange r;
int[] b = [ 1, 2, 3, 4 ];
auto temp = b;
r.array = &temp;
assert(theAllocator.expandArray(arr, r));
assert(arr == [1, 2, 3, 1, 2, 3, 4]);
}
/**
Shrinks an array by $(D delta) elements.
If $(D array.length < delta), does nothing and returns `false`. Otherwise,
destroys the last $(D array.length - delta) elements in the array and then
reallocates the array's buffer. If reallocation fails, fills the array with
default-initialized data.
Params:
T = element type of the array being created
alloc = the allocator used for getting memory
array = a reference to the array being shrunk
delta = number of elements to remove (upon success the new length of $(D array) is $(D array.length - delta))
Returns:
`true` upon success, `false` if memory could not be reallocated. In the latter
case, the slice $(D array[$ - delta .. $]) is left with default-initialized
elements.
Throws:
The first two overloads throw only if `alloc`'s primitives do. The
overloads that involve copy initialization deallocate memory and propagate the
exception if the copy operation throws.
*/
bool shrinkArray(T, Allocator)(auto ref Allocator alloc,
ref T[] array, size_t delta)
{
if (delta > array.length) return false;
// Destroy elements. If a destructor throws, fill the already destroyed
// stuff with the default initializer.
{
size_t destroyed;
scope(failure)
{
array[$ - delta .. $][0 .. destroyed].uninitializedFillDefault;
}
foreach (ref e; array[$ - delta .. $])
{
e.destroy;
++destroyed;
}
}
if (delta == array.length)
{
alloc.deallocate(array);
array = null;
return true;
}
void[] buf = array;
if (!alloc.reallocate(buf, buf.length - T.sizeof * delta))
{
// urgh, at least fill back with default
array[$ - delta .. $].uninitializedFillDefault;
return false;
}
array = cast(T[]) buf;
return true;
}
///
@system unittest
{
int[] a = theAllocator.makeArray!int(100, 42);
assert(a.length == 100);
assert(theAllocator.shrinkArray(a, 98));
assert(a.length == 2);
assert(a == [42, 42]);
}
@system unittest
{
void test(A)(auto ref A alloc)
{
long[] a = alloc.makeArray!long((int[]).init);
assert(a.length == 0 && a.ptr is null);
a = alloc.makeArray!long(100, 42);
assert(alloc.shrinkArray(a, 98));
assert(a.length == 2);
assert(a == [ 42, 42]);
}
import std.experimental.allocator.gc_allocator : GCAllocator;
test(GCAllocator.instance);
test(theAllocator);
}
/**
Destroys and then deallocates (using $(D alloc)) the object pointed to by a
pointer, the class object referred to by a $(D class) or $(D interface)
reference, or an entire array. It is assumed the respective entities had been
allocated with the same allocator.
*/
void dispose(A, T)(auto ref A alloc, T* p)
{
static if (hasElaborateDestructor!T)
{
destroy(*p);
}
alloc.deallocate((cast(void*) p)[0 .. T.sizeof]);
}
/// Ditto
void dispose(A, T)(auto ref A alloc, T p)
if (is(T == class) || is(T == interface))
{
if (!p) return;
static if (is(T == interface))
{
version(Windows)
{
import core.sys.windows.unknwn : IUnknown;
static assert(!is(T: IUnknown), "COM interfaces can't be destroyed in "
~ __PRETTY_FUNCTION__);
}
auto ob = cast(Object) p;
}
else
alias ob = p;
auto support = (cast(void*) ob)[0 .. typeid(ob).initializer.length];
destroy(p);
alloc.deallocate(support);
}
/// Ditto
void dispose(A, T)(auto ref A alloc, T[] array)
{
static if (hasElaborateDestructor!(typeof(array[0])))
{
foreach (ref e; array)
{
destroy(e);
}
}
alloc.deallocate(array);
}
@system unittest
{
static int x;
static interface I
{
void method();
}
static class A : I
{
int y;
override void method() { x = 21; }
~this() { x = 42; }
}
static class B : A
{
}
auto a = theAllocator.make!A;
a.method();
assert(x == 21);
theAllocator.dispose(a);
assert(x == 42);
B b = theAllocator.make!B;
b.method();
assert(x == 21);
theAllocator.dispose(b);
assert(x == 42);
I i = theAllocator.make!B;
i.method();
assert(x == 21);
theAllocator.dispose(i);
assert(x == 42);
int[] arr = theAllocator.makeArray!int(43);
theAllocator.dispose(arr);
}
@system unittest //bugzilla 15721
{
import std.experimental.allocator.mallocator : Mallocator;
interface Foo {}
class Bar: Foo {}
Bar bar;
Foo foo;
bar = Mallocator.instance.make!Bar;
foo = cast(Foo) bar;
Mallocator.instance.dispose(foo);
}
/**
Allocates a multidimensional array of elements of type T.
Params:
N = number of dimensions
T = element type of an element of the multidimensional arrat
alloc = the allocator used for getting memory
lengths = static array containing the size of each dimension
Returns:
An N-dimensional array with individual elements of type T.
*/
auto makeMultidimensionalArray(T, Allocator, size_t N)(auto ref Allocator alloc, size_t[N] lengths...)
{
static if (N == 1)
{
return makeArray!T(alloc, lengths[0]);
}
else
{
alias E = typeof(makeMultidimensionalArray!(T, Allocator, N - 1)(alloc, lengths[1 .. $]));
auto ret = makeArray!E(alloc, lengths[0]);
foreach (ref e; ret)
e = makeMultidimensionalArray!(T, Allocator, N - 1)(alloc, lengths[1 .. $]);
return ret;
}
}
///
@system unittest
{
import std.experimental.allocator.mallocator : Mallocator;
auto mArray = Mallocator.instance.makeMultidimensionalArray!int(2, 3, 6);
// deallocate when exiting scope
scope(exit)
{
Mallocator.instance.disposeMultidimensionalArray(mArray);
}
assert(mArray.length == 2);
foreach (lvl2Array; mArray)
{
assert(lvl2Array.length == 3);
foreach (lvl3Array; lvl2Array)
assert(lvl3Array.length == 6);
}
}
/**
Destroys and then deallocates a multidimensional array, assuming it was
created with makeMultidimensionalArray and the same allocator was used.
Params:
T = element type of an element of the multidimensional array
alloc = the allocator used for getting memory
array = the multidimensional array that is to be deallocated
*/
void disposeMultidimensionalArray(T, Allocator)(auto ref Allocator alloc, T[] array)
{
static if (isArray!T)
{
foreach (ref e; array)
disposeMultidimensionalArray(alloc, e);
}
dispose(alloc, array);
}
///
@system unittest
{
struct TestAllocator
{
import std.experimental.allocator.common : platformAlignment;
import std.experimental.allocator.mallocator : Mallocator;
alias allocator = Mallocator.instance;
private static struct ByteRange
{
void* ptr;
size_t length;
}
private ByteRange[] _allocations;
enum uint alignment = platformAlignment;
void[] allocate(size_t numBytes)
{
auto ret = allocator.allocate(numBytes);
_allocations ~= ByteRange(ret.ptr, ret.length);
return ret;
}
bool deallocate(void[] bytes)
{
import std.algorithm.mutation : remove;
import std.algorithm.searching : canFind;
bool pred(ByteRange other)
{ return other.ptr == bytes.ptr && other.length == bytes.length; }
assert(_allocations.canFind!pred);
_allocations = _allocations.remove!pred;
return allocator.deallocate(bytes);
}
~this()
{
assert(!_allocations.length);
}
}
TestAllocator allocator;
auto mArray = allocator.makeMultidimensionalArray!int(2, 3, 5, 6, 7, 2);
allocator.disposeMultidimensionalArray(mArray);
}
/**
Returns a dynamically-typed $(D CAllocator) built around a given statically-
typed allocator $(D a) of type $(D A). Passing a pointer to the allocator
creates a dynamic allocator around the allocator pointed to by the pointer,
without attempting to copy or move it. Passing the allocator by value or
reference behaves as follows.
$(UL
$(LI If $(D A) has no state, the resulting object is allocated in static
shared storage.)
$(LI If $(D A) has state and is copyable, the result will store a copy of it
within. The result itself is allocated in its own statically-typed allocator.)
$(LI If $(D A) has state and is not copyable, the result will move the
passed-in argument into the result. The result itself is allocated in its own
statically-typed allocator.)
)
*/
CAllocatorImpl!A allocatorObject(A)(auto ref A a)
if (!isPointer!A)
{
import std.conv : emplace;
static if (stateSize!A == 0)
{
enum s = stateSize!(CAllocatorImpl!A).divideRoundUp(ulong.sizeof);
static __gshared ulong[s] state;
static __gshared CAllocatorImpl!A result;
if (!result)
{
// Don't care about a few races
result = emplace!(CAllocatorImpl!A)(state[]);
}
assert(result);
return result;
}
else static if (is(typeof({ A b = a; A c = b; }))) // copyable
{
auto state = a.allocate(stateSize!(CAllocatorImpl!A));
import std.traits : hasMember;
static if (hasMember!(A, "deallocate"))
{
scope(failure) a.deallocate(state);
}
return cast(CAllocatorImpl!A) emplace!(CAllocatorImpl!A)(state);
}
else // the allocator object is not copyable
{
// This is sensitive... create on the stack and then move
enum s = stateSize!(CAllocatorImpl!A).divideRoundUp(ulong.sizeof);
ulong[s] state;
import std.algorithm.mutation : move;
emplace!(CAllocatorImpl!A)(state[], move(a));
auto dynState = a.allocate(stateSize!(CAllocatorImpl!A));
// Bitblast the object in its final destination
dynState[] = state[];
return cast(CAllocatorImpl!A) dynState.ptr;
}
}
/// Ditto
CAllocatorImpl!(A, Yes.indirect) allocatorObject(A)(A* pa)
{
assert(pa);
import std.conv : emplace;
auto state = pa.allocate(stateSize!(CAllocatorImpl!(A, Yes.indirect)));
import std.traits : hasMember;
static if (hasMember!(A, "deallocate"))
{
scope(failure) pa.deallocate(state);
}
return emplace!(CAllocatorImpl!(A, Yes.indirect))
(state, pa);
}
///
@system unittest
{
import std.experimental.allocator.mallocator : Mallocator;
IAllocator a = allocatorObject(Mallocator.instance);
auto b = a.allocate(100);
assert(b.length == 100);
assert(a.deallocate(b));
// The in-situ region must be used by pointer
import std.experimental.allocator.building_blocks.region : InSituRegion;
auto r = InSituRegion!1024();
a = allocatorObject(&r);
b = a.allocate(200);
assert(b.length == 200);
// In-situ regions can deallocate the last allocation
assert(a.deallocate(b));
}
/**
Returns a dynamically-typed $(D CSharedAllocator) built around a given statically-
typed allocator $(D a) of type $(D A). Passing a pointer to the allocator
creates a dynamic allocator around the allocator pointed to by the pointer,
without attempting to copy or move it. Passing the allocator by value or
reference behaves as follows.
$(UL
$(LI If $(D A) has no state, the resulting object is allocated in static
shared storage.)
$(LI If $(D A) has state and is copyable, the result will store a copy of it
within. The result itself is allocated in its own statically-typed allocator.)
$(LI If $(D A) has state and is not copyable, the result will move the
passed-in argument into the result. The result itself is allocated in its own
statically-typed allocator.)
)
*/
shared(CSharedAllocatorImpl!A) sharedAllocatorObject(A)(auto ref A a)
if (!isPointer!A)
{
import std.conv : emplace;
static if (stateSize!A == 0)
{
enum s = stateSize!(CSharedAllocatorImpl!A).divideRoundUp(ulong.sizeof);
static __gshared ulong[s] state;
static shared CSharedAllocatorImpl!A result;
if (!result)
{
// Don't care about a few races
result = cast(shared
CSharedAllocatorImpl!A)(emplace!(CSharedAllocatorImpl!A)(state[]));
}
assert(result);
return result;
}
else static if (is(typeof({ shared A b = a; shared A c = b; }))) // copyable
{
auto state = a.allocate(stateSize!(CSharedAllocatorImpl!A));
import std.traits : hasMember;
static if (hasMember!(A, "deallocate"))
{
scope(failure) a.deallocate(state);
}
return emplace!(shared CSharedAllocatorImpl!A)(state);
}
else // the allocator object is not copyable
{
assert(0, "Not yet implemented");
}
}
/// Ditto
shared(CSharedAllocatorImpl!(A, Yes.indirect)) sharedAllocatorObject(A)(A* pa)
{
assert(pa);
import std.conv : emplace;
auto state = pa.allocate(stateSize!(CSharedAllocatorImpl!(A, Yes.indirect)));
import std.traits : hasMember;
static if (hasMember!(A, "deallocate"))
{
scope(failure) pa.deallocate(state);
}
return emplace!(shared CSharedAllocatorImpl!(A, Yes.indirect))(state, pa);
}
/**
Implementation of `IAllocator` using `Allocator`. This adapts a
statically-built allocator type to `IAllocator` that is directly usable by
non-templated code.
Usually `CAllocatorImpl` is used indirectly by calling $(LREF theAllocator).
*/
class CAllocatorImpl(Allocator, Flag!"indirect" indirect = No.indirect)
: IAllocator
{
import std.traits : hasMember;
/**
The implementation is available as a public member.
*/
static if (indirect)
{
private Allocator* pimpl;
ref Allocator impl()
{
return *pimpl;
}
this(Allocator* pa)
{
pimpl = pa;
}
}
else
{
static if (stateSize!Allocator) Allocator impl;
else alias impl = Allocator.instance;
}
/// Returns `impl.alignment`.
override @property uint alignment()
{
return impl.alignment;
}
/**
Returns `impl.goodAllocSize(s)`.
*/
override size_t goodAllocSize(size_t s)
{
return impl.goodAllocSize(s);
}
/**
Returns `impl.allocate(s)`.
*/
override void[] allocate(size_t s, TypeInfo ti = null)
{
return impl.allocate(s);
}
/**
If `impl.alignedAllocate` exists, calls it and returns the result.
Otherwise, always returns `null`.
*/
override void[] alignedAllocate(size_t s, uint a)
{
static if (hasMember!(Allocator, "alignedAllocate"))
return impl.alignedAllocate(s, a);
else
return null;
}
/**
If `Allocator` implements `owns`, forwards to it. Otherwise, returns
`Ternary.unknown`.
*/
override Ternary owns(void[] b)
{
static if (hasMember!(Allocator, "owns")) return impl.owns(b);
else return Ternary.unknown;
}
/// Returns $(D impl.expand(b, s)) if defined, `false` otherwise.
override bool expand(ref void[] b, size_t s)
{
static if (hasMember!(Allocator, "expand"))
return impl.expand(b, s);
else
return s == 0;
}
/// Returns $(D impl.reallocate(b, s)).
override bool reallocate(ref void[] b, size_t s)
{
return impl.reallocate(b, s);
}
/// Forwards to `impl.alignedReallocate` if defined, `false` otherwise.
bool alignedReallocate(ref void[] b, size_t s, uint a)
{
static if (!hasMember!(Allocator, "alignedAllocate"))
{
return false;
}
else
{
return impl.alignedReallocate(b, s, a);
}
}
// Undocumented for now
Ternary resolveInternalPointer(const void* p, ref void[] result)
{
static if (hasMember!(Allocator, "resolveInternalPointer"))
{
return impl.resolveInternalPointer(p, result);
}
else
{
return Ternary.unknown;
}
}
/**
If `impl.deallocate` is not defined, returns `false`. Otherwise it forwards
the call.
*/
override bool deallocate(void[] b)
{
static if (hasMember!(Allocator, "deallocate"))
{
return impl.deallocate(b);
}
else
{
return false;
}
}
/**
Calls `impl.deallocateAll()` and returns the result if defined,
otherwise returns `false`.
*/
override bool deallocateAll()
{
static if (hasMember!(Allocator, "deallocateAll"))
{
return impl.deallocateAll();
}
else
{
return false;
}
}
/**
Forwards to `impl.empty()` if defined, otherwise returns `Ternary.unknown`.
*/
override Ternary empty()
{
static if (hasMember!(Allocator, "empty"))
{
return Ternary(impl.empty);
}
else
{
return Ternary.unknown;
}
}
/**
Returns `impl.allocateAll()` if present, `null` otherwise.
*/
override void[] allocateAll()
{
static if (hasMember!(Allocator, "allocateAll"))
{
return impl.allocateAll();
}
else
{
return null;
}
}
}
/**
Implementation of `ISharedAllocator` using `Allocator`. This adapts a
statically-built, shareable across threads, allocator type to `ISharedAllocator`
that is directly usable by non-templated code.
Usually `CSharedAllocatorImpl` is used indirectly by calling
$(LREF processAllocator).
*/
class CSharedAllocatorImpl(Allocator, Flag!"indirect" indirect = No.indirect)
: ISharedAllocator
{
import std.traits : hasMember;
/**
The implementation is available as a public member.
*/
static if (indirect)
{
private shared Allocator* pimpl;
ref Allocator impl() shared
{
return *pimpl;
}
this(Allocator* pa) shared
{
pimpl = pa;
}
}
else
{
static if (stateSize!Allocator) shared Allocator impl;
else alias impl = Allocator.instance;
}
/// Returns `impl.alignment`.
override @property uint alignment() shared
{
return impl.alignment;
}
/**
Returns `impl.goodAllocSize(s)`.
*/
override size_t goodAllocSize(size_t s) shared
{
return impl.goodAllocSize(s);
}
/**
Returns `impl.allocate(s)`.
*/
override void[] allocate(size_t s, TypeInfo ti = null) shared
{
return impl.allocate(s);
}
/**
If `impl.alignedAllocate` exists, calls it and returns the result.
Otherwise, always returns `null`.
*/
override void[] alignedAllocate(size_t s, uint a) shared
{
static if (hasMember!(Allocator, "alignedAllocate"))
return impl.alignedAllocate(s, a);
else
return null;
}
/**
If `Allocator` implements `owns`, forwards to it. Otherwise, returns
`Ternary.unknown`.
*/
override Ternary owns(void[] b) shared
{
static if (hasMember!(Allocator, "owns")) return impl.owns(b);
else return Ternary.unknown;
}
/// Returns $(D impl.expand(b, s)) if defined, `false` otherwise.
override bool expand(ref void[] b, size_t s) shared
{
static if (hasMember!(Allocator, "expand"))
return impl.expand(b, s);
else
return s == 0;
}
/// Returns $(D impl.reallocate(b, s)).
override bool reallocate(ref void[] b, size_t s) shared
{
return impl.reallocate(b, s);
}
/// Forwards to `impl.alignedReallocate` if defined, `false` otherwise.
bool alignedReallocate(ref void[] b, size_t s, uint a) shared
{
static if (!hasMember!(Allocator, "alignedAllocate"))
{
return false;
}
else
{
return impl.alignedReallocate(b, s, a);
}
}
// Undocumented for now
Ternary resolveInternalPointer(const void* p, ref void[] result) shared
{
static if (hasMember!(Allocator, "resolveInternalPointer"))
{
return impl.resolveInternalPointer(p, result);
}
else
{
return Ternary.unknown;
}
}
/**
If `impl.deallocate` is not defined, returns `false`. Otherwise it forwards
the call.
*/
override bool deallocate(void[] b) shared
{
static if (hasMember!(Allocator, "deallocate"))
{
return impl.deallocate(b);
}
else
{
return false;
}
}
/**
Calls `impl.deallocateAll()` and returns the result if defined,
otherwise returns `false`.
*/
override bool deallocateAll() shared
{
static if (hasMember!(Allocator, "deallocateAll"))
{
return impl.deallocateAll();
}
else
{
return false;
}
}
/**
Forwards to `impl.empty()` if defined, otherwise returns `Ternary.unknown`.
*/
override Ternary empty() shared
{
static if (hasMember!(Allocator, "empty"))
{
return Ternary(impl.empty);
}
else
{
return Ternary.unknown;
}
}
/**
Returns `impl.allocateAll()` if present, `null` otherwise.
*/
override void[] allocateAll() shared
{
static if (hasMember!(Allocator, "allocateAll"))
{
return impl.allocateAll();
}
else
{
return null;
}
}
}
// Example in intro above
@system unittest
{
// Allocate an int, initialize it with 42
int* p = theAllocator.make!int(42);
assert(*p == 42);
// Destroy and deallocate it
theAllocator.dispose(p);
// Allocate using the global process allocator
p = processAllocator.make!int(100);
assert(*p == 100);
// Destroy and deallocate
processAllocator.dispose(p);
// Create an array of 50 doubles initialized to -1.0
double[] arr = theAllocator.makeArray!double(50, -1.0);
// Check internal pointer
void[] result;
assert(theAllocator.resolveInternalPointer(null, result) == Ternary.no);
Ternary r = theAllocator.resolveInternalPointer(arr.ptr, result);
assert(result.ptr is arr.ptr && result.length >= arr.length);
// Append two zeros to it
theAllocator.expandArray(arr, 2, 0.0);
// On second thought, take that back
theAllocator.shrinkArray(arr, 2);
// Destroy and deallocate
theAllocator.dispose(arr);
}
__EOF__
/**
Stores an allocator object in thread-local storage (i.e. non-$(D shared) D
global). $(D ThreadLocal!A) is a subtype of $(D A) so it appears to implement
$(D A)'s allocator primitives.
$(D A) must hold state, otherwise $(D ThreadLocal!A) refuses instantiation. This
means e.g. $(D ThreadLocal!Mallocator) does not work because $(D Mallocator)'s
state is not stored as members of $(D Mallocator), but instead is hidden in the
C library implementation.
*/
struct ThreadLocal(A)
{
static assert(stateSize!A,
typeof(A).stringof
~ " does not have state so it cannot be used with ThreadLocal");
/**
The allocator instance.
*/
static A instance;
/**
`ThreadLocal!A` is a subtype of `A` so it appears to implement `A`'s
allocator primitives.
*/
alias instance this;
/**
`ThreadLocal` disables all constructors. The intended usage is
`ThreadLocal!A.instance`.
*/
@disable this();
/// Ditto
@disable this(this);
}
///
unittest
{
static assert(!is(ThreadLocal!Mallocator));
static assert(!is(ThreadLocal!GCAllocator));
alias ThreadLocal!(FreeList!(GCAllocator, 0, 8)) Allocator;
auto b = Allocator.instance.allocate(5);
static assert(hasMember!(Allocator, "allocate"));
}
/*
(Not public.)
A binary search tree that uses no allocation of its own. Instead, it relies on
user code to allocate nodes externally. Then $(D EmbeddedTree)'s primitives wire
the nodes appropriately.
Warning: currently $(D EmbeddedTree) is not using rebalancing, so it may
degenerate. A red-black tree implementation storing the color with one of the
pointers is planned for the future.
*/
private struct EmbeddedTree(T, alias less)
{
static struct Node
{
T payload;
Node* left, right;
}
private Node* root;
private Node* insert(Node* n, ref Node* backref)
{
backref = n;
n.left = n.right = null;
return n;
}
Node* find(Node* data)
{
for (auto n = root; n; )
{
if (less(data, n))
{
n = n.left;
}
else if (less(n, data))
{
n = n.right;
}
else
{
return n;
}
}
return null;
}
Node* insert(Node* data)
{
if (!root)
{
root = data;
data.left = data.right = null;
return root;
}
auto n = root;
for (;;)
{
if (less(data, n))
{
if (!n.left)
{
// Found insertion point
return insert(data, n.left);
}
n = n.left;
}
else if (less(n, data))
{
if (!n.right)
{
// Found insertion point
return insert(data, n.right);
}
n = n.right;
}
else
{
// Found
return n;
}
if (!n) return null;
}
}
Node* remove(Node* data)
{
auto n = root;
Node* parent = null;
for (;;)
{
if (!n) return null;
if (less(data, n))
{
parent = n;
n = n.left;
}
else if (less(n, data))
{
parent = n;
n = n.right;
}
else
{
// Found
remove(n, parent);
return n;
}
}
}
private void remove(Node* n, Node* parent)
{
assert(n);
assert(!parent || parent.left == n || parent.right == n);
Node** referrer = parent
? (parent.left == n ? &parent.left : &parent.right)
: &root;
if (!n.left)
{
*referrer = n.right;
}
else if (!n.right)
{
*referrer = n.left;
}
else
{
// Find the leftmost child in the right subtree
auto leftmost = n.right;
Node** leftmostReferrer = &n.right;
while (leftmost.left)
{
leftmostReferrer = &leftmost.left;
leftmost = leftmost.left;
}
// Unlink leftmost from there
*leftmostReferrer = leftmost.right;
// Link leftmost in lieu of n
leftmost.left = n.left;
leftmost.right = n.right;
*referrer = leftmost;
}
}
Ternary empty() const
{
return Ternary(!root);
}
void dump()
{
writeln(typeid(this), " @ ", cast(void*) &this);
dump(root, 3);
}
void dump(Node* r, uint indent)
{
write(repeat(' ', indent).array);
if (!r)
{
writeln("(null)");
return;
}
writeln(r.payload, " @ ", cast(void*) r);
dump(r.left, indent + 3);
dump(r.right, indent + 3);
}
void assertSane()
{
static bool isBST(Node* r, Node* lb, Node* ub)
{
if (!r) return true;
if (lb && !less(lb, r)) return false;
if (ub && !less(r, ub)) return false;
return isBST(r.left, lb, r) &&
isBST(r.right, r, ub);
}
if (isBST(root, null, null)) return;
dump;
assert(0);
}
}
unittest
{
alias a = GCAllocator.instance;
alias Tree = EmbeddedTree!(int, (a, b) => a.payload < b.payload);
Tree t;
assert(t.empty);
int[] vals = [ 6, 3, 9, 1, 0, 2, 8, 11 ];
foreach (v; vals)
{
auto n = new Tree.Node(v, null, null);
assert(t.insert(n));
assert(n);
t.assertSane;
}
assert(!t.empty);
foreach (v; vals)
{
Tree.Node n = { v };
assert(t.remove(&n));
t.assertSane;
}
assert(t.empty);
}
/*
$(D InternalPointersTree) adds a primitive on top of another allocator: calling
$(D resolveInternalPointer(p)) returns the block within which the internal
pointer $(D p) lies. Pointers right after the end of allocated blocks are also
considered internal.
The implementation stores three additional words with each allocation (one for
the block size and two for search management).
*/
private struct InternalPointersTree(Allocator)
{
alias Tree = EmbeddedTree!(size_t,
(a, b) => cast(void*) a + a.payload < cast(void*) b);
alias Parent = AffixAllocator!(Allocator, Tree.Node);
// Own state
private Tree blockMap;
alias alignment = Parent.alignment;
/**
The implementation is available as a public member.
*/
static if (stateSize!Parent) Parent parent;
else alias parent = Parent.instance;
/// Allocator API.
void[] allocate(size_t bytes)
{
auto r = parent.allocate(bytes);
if (!r.ptr) return r;
Tree.Node* n = &parent.prefix(r);
n.payload = bytes;
blockMap.insert(n) || assert(0);
return r;
}
/// Ditto
bool deallocate(void[] b)
{
if (!b.ptr) return;
Tree.Node* n = &parent.prefix(b);
blockMap.remove(n) || assert(false);
parent.deallocate(b);
return true;
}
/// Ditto
static if (hasMember!(Allocator, "reallocate"))
bool reallocate(ref void[] b, size_t s)
{
auto n = &parent.prefix(b);
assert(n.payload == b.length);
blockMap.remove(n) || assert(0);
if (!parent.reallocate(b, s))
{
// Failed, must reinsert the same node in the tree
assert(n.payload == b.length);
blockMap.insert(n) || assert(0);
return false;
}
// Insert the new node
n = &parent.prefix(b);
n.payload = s;
blockMap.insert(n) || assert(0);
return true;
}
/// Ditto
Ternary owns(void[] b)
{
void[] result;
return resolveInternalPointer(b.ptr, result);
}
/// Ditto
Ternary empty()
{
return Ternary(blockMap.empty);
}
/** Returns the block inside which $(D p) resides, or $(D null) if the
pointer does not belong.
*/
Ternary resolveInternalPointer(const void* p, ref void[] result)
{
// Must define a custom find
Tree.Node* find()
{
for (auto n = blockMap.root; n; )
{
if (p < n)
{
n = n.left;
}
else if (p > (cast(void*) (n + 1)) + n.payload)
{
n = n.right;
}
else
{
return n;
}
}
return null;
}
auto n = find();
if (!n) return Ternary.no;
result = (cast(void*) (n + 1))[0 .. n.payload];
return Ternary.yes;
}
}
unittest
{
InternalPointersTree!(Mallocator) a;
int[] vals = [ 6, 3, 9, 1, 2, 8, 11 ];
void[][] allox;
foreach (v; vals)
{
allox ~= a.allocate(v);
}
a.blockMap.assertSane;
foreach (b; allox)
{
void[] p;
Ternary r = a.resolveInternalPointer(b.ptr, p);
assert(p.ptr is b.ptr && p.length >= b.length);
r = a.resolveInternalPointer(b.ptr + b.length, p);
assert(p.ptr is b.ptr && p.length >= b.length);
r = a.resolveInternalPointer(b.ptr + b.length / 2, p);
assert(p.ptr is b.ptr && p.length >= b.length);
auto bogus = new void[b.length];
assert(a.resolveInternalPointer(bogus.ptr, p) == Ternary.no);
}
foreach (b; allox.randomCover)
{
a.deallocate(b);
}
assert(a.empty);
}
//version (std_allocator_benchmark)
unittest
{
static void testSpeed(A)()
{
static if (stateSize!A) A a;
else alias a = A.instance;
void[][128] bufs;
import std.random;
foreach (i; 0 .. 100_000)
{
auto j = uniform(0, bufs.length);
switch (uniform(0, 2))
{
case 0:
a.deallocate(bufs[j]);
bufs[j] = a.allocate(uniform(0, 4096));
break;
case 1:
a.deallocate(bufs[j]);
bufs[j] = null;
break;
default:
assert(0);
}
}
}
alias FList = FreeList!(GCAllocator, 0, unbounded);
alias A = Segregator!(
8, FreeList!(GCAllocator, 0, 8),
128, Bucketizer!(FList, 1, 128, 16),
256, Bucketizer!(FList, 129, 256, 32),
512, Bucketizer!(FList, 257, 512, 64),
1024, Bucketizer!(FList, 513, 1024, 128),
2048, Bucketizer!(FList, 1025, 2048, 256),
3584, Bucketizer!(FList, 2049, 3584, 512),
4072 * 1024, AllocatorList!(
(size_t n) => BitmappedBlock!(4096)(GCAllocator.instance.allocate(
max(n, 4072 * 1024)))),
GCAllocator
);
import std.datetime, std.experimental.allocator.null_allocator;
if (false) writeln(benchmark!(
testSpeed!NullAllocator,
testSpeed!Mallocator,
testSpeed!GCAllocator,
testSpeed!(ThreadLocal!A),
testSpeed!(A),
)(20)[].map!(t => t.to!("seconds", double)));
}
unittest
{
auto a = allocatorObject(Mallocator.instance);
auto b = a.allocate(100);
assert(b.length == 100);
FreeList!(GCAllocator, 0, 8) fl;
auto sa = allocatorObject(fl);
b = a.allocate(101);
assert(b.length == 101);
FallbackAllocator!(InSituRegion!(10240, 64), GCAllocator) fb;
// Doesn't work yet...
//a = allocatorObject(fb);
//b = a.allocate(102);
//assert(b.length == 102);
}
///
unittest
{
/// Define an allocator bound to the built-in GC.
IAllocator alloc = allocatorObject(GCAllocator.instance);
auto b = alloc.allocate(42);
assert(b.length == 42);
assert(alloc.deallocate(b) == Ternary.yes);
// Define an elaborate allocator and bind it to the class API.
// Note that the same variable "alloc" is used.
alias FList = FreeList!(GCAllocator, 0, unbounded);
alias A = ThreadLocal!(
Segregator!(
8, FreeList!(GCAllocator, 0, 8),
128, Bucketizer!(FList, 1, 128, 16),
256, Bucketizer!(FList, 129, 256, 32),
512, Bucketizer!(FList, 257, 512, 64),
1024, Bucketizer!(FList, 513, 1024, 128),
2048, Bucketizer!(FList, 1025, 2048, 256),
3584, Bucketizer!(FList, 2049, 3584, 512),
4072 * 1024, AllocatorList!(
(n) => BitmappedBlock!(4096)(GCAllocator.instance.allocate(
max(n, 4072 * 1024)))),
GCAllocator
)
);
auto alloc2 = allocatorObject(A.instance);
b = alloc.allocate(101);
assert(alloc.deallocate(b) == Ternary.yes);
}
|
D
|
module android.java.android.view.ActionMode_Callback_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import1 = android.java.android.view.Menu_d_interface;
import import3 = android.java.java.lang.Class_d_interface;
import import2 = android.java.android.view.MenuItem_d_interface;
import import0 = android.java.android.view.ActionMode_d_interface;
@JavaName("ActionMode$Callback")
final class ActionMode_Callback : IJavaObject {
static immutable string[] _d_canCastTo = [
];
@Import bool onCreateActionMode(import0.ActionMode, import1.Menu);
@Import bool onPrepareActionMode(import0.ActionMode, import1.Menu);
@Import bool onActionItemClicked(import0.ActionMode, import2.MenuItem);
@Import void onDestroyActionMode(import0.ActionMode);
@Import import3.Class getClass();
@Import int hashCode();
@Import bool equals(IJavaObject);
@Import @JavaName("toString") string toString_();
override string toString() { return arsd.jni.javaObjectToString(this); }
@Import void notify();
@Import void notifyAll();
@Import void wait(long);
@Import void wait(long, int);
@Import void wait();
mixin IJavaObjectImplementation!(false);
public static immutable string _javaParameterString = "Landroid/view/ActionMode$Callback;";
}
|
D
|
/home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/Node.build/StructuredDataWrapper/StructuredDataWrapper+PathIndexable.swift.o : /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredData/StructuredData.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredData/StructuredData+Polymorphic.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredDataWrapper/StructuredDataWrapper+Polymorphic.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredDataWrapper/StructuredDataWrapper+Convenience.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Core/Node.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredData/StructuredData+Equatable.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredDataWrapper/StructuredDataWrapper+Equatable.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Core/NodeRepresentable.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredData/StructuredData+PathIndexable.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredDataWrapper/StructuredDataWrapper+PathIndexable.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Core/NodeInitializable.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Convertibles/UUID+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Convertibles/Schema+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Convertibles/Date+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Convertibles/String+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Fuzzy/Optional+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Convertibles/Bool+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Convertibles/Integer+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Convertibles/UnsignedInteger+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Convertibles/SchemaWrapper+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Fuzzy/Set+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Convertibles/FloatingPoint+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Fuzzy/Array+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Fuzzy/Dictionary+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Core/NodeConvertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Number/Number.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Utilities/Identifier.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredDataWrapper/StructuredDataWrapper.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Fuzzy/FuzzyConverter.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredDataWrapper/StructuredDataWrapper+Cases.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredDataWrapper/StructuredDataWrapper+Literals.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Accessors/Getters.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Accessors/Setters.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Utilities/Errors.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Utilities/Exports.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredData/StructuredData+Init.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Core/Context.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Fuzzy/Fuzzy+Any.swift /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/libc.swiftmodule /usr/lib/swift/linux/x86_64/Glibc.swiftmodule /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/PathIndexable.swiftmodule /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/Core.swiftmodule /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/Debugging.swiftmodule /usr/lib/swift/linux/x86_64/Dispatch.swiftmodule /usr/lib/swift/linux/x86_64/Foundation.swiftmodule /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/Bits.swiftmodule /usr/lib/swift/linux/x86_64/Swift.swiftmodule /usr/lib/swift/linux/x86_64/SwiftOnoneSupport.swiftmodule /usr/lib/swift/linux/x86_64/glibc.modulemap /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/CHTTP.build/module.modulemap /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/CSQLite.build/module.modulemap
/home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/Node.build/StructuredDataWrapper+PathIndexable~partial.swiftmodule : /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredData/StructuredData.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredData/StructuredData+Polymorphic.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredDataWrapper/StructuredDataWrapper+Polymorphic.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredDataWrapper/StructuredDataWrapper+Convenience.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Core/Node.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredData/StructuredData+Equatable.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredDataWrapper/StructuredDataWrapper+Equatable.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Core/NodeRepresentable.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredData/StructuredData+PathIndexable.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredDataWrapper/StructuredDataWrapper+PathIndexable.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Core/NodeInitializable.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Convertibles/UUID+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Convertibles/Schema+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Convertibles/Date+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Convertibles/String+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Fuzzy/Optional+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Convertibles/Bool+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Convertibles/Integer+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Convertibles/UnsignedInteger+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Convertibles/SchemaWrapper+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Fuzzy/Set+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Convertibles/FloatingPoint+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Fuzzy/Array+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Fuzzy/Dictionary+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Core/NodeConvertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Number/Number.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Utilities/Identifier.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredDataWrapper/StructuredDataWrapper.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Fuzzy/FuzzyConverter.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredDataWrapper/StructuredDataWrapper+Cases.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredDataWrapper/StructuredDataWrapper+Literals.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Accessors/Getters.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Accessors/Setters.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Utilities/Errors.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Utilities/Exports.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredData/StructuredData+Init.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Core/Context.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Fuzzy/Fuzzy+Any.swift /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/libc.swiftmodule /usr/lib/swift/linux/x86_64/Glibc.swiftmodule /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/PathIndexable.swiftmodule /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/Core.swiftmodule /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/Debugging.swiftmodule /usr/lib/swift/linux/x86_64/Dispatch.swiftmodule /usr/lib/swift/linux/x86_64/Foundation.swiftmodule /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/Bits.swiftmodule /usr/lib/swift/linux/x86_64/Swift.swiftmodule /usr/lib/swift/linux/x86_64/SwiftOnoneSupport.swiftmodule /usr/lib/swift/linux/x86_64/glibc.modulemap /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/CHTTP.build/module.modulemap /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/CSQLite.build/module.modulemap
/home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/Node.build/StructuredDataWrapper+PathIndexable~partial.swiftdoc : /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredData/StructuredData.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredData/StructuredData+Polymorphic.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredDataWrapper/StructuredDataWrapper+Polymorphic.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredDataWrapper/StructuredDataWrapper+Convenience.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Core/Node.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredData/StructuredData+Equatable.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredDataWrapper/StructuredDataWrapper+Equatable.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Core/NodeRepresentable.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredData/StructuredData+PathIndexable.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredDataWrapper/StructuredDataWrapper+PathIndexable.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Core/NodeInitializable.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Convertibles/UUID+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Convertibles/Schema+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Convertibles/Date+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Convertibles/String+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Fuzzy/Optional+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Convertibles/Bool+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Convertibles/Integer+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Convertibles/UnsignedInteger+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Convertibles/SchemaWrapper+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Fuzzy/Set+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Convertibles/FloatingPoint+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Fuzzy/Array+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Fuzzy/Dictionary+Convertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Core/NodeConvertible.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Number/Number.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Utilities/Identifier.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredDataWrapper/StructuredDataWrapper.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Fuzzy/FuzzyConverter.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredDataWrapper/StructuredDataWrapper+Cases.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredDataWrapper/StructuredDataWrapper+Literals.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Accessors/Getters.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Accessors/Setters.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Utilities/Errors.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Utilities/Exports.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/StructuredData/StructuredData+Init.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Core/Context.swift /home/albertfega/Desktop/LaSalleChat/.build/checkouts/node.git-3078412886256849983/Sources/Node/Fuzzy/Fuzzy+Any.swift /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/libc.swiftmodule /usr/lib/swift/linux/x86_64/Glibc.swiftmodule /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/PathIndexable.swiftmodule /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/Core.swiftmodule /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/Debugging.swiftmodule /usr/lib/swift/linux/x86_64/Dispatch.swiftmodule /usr/lib/swift/linux/x86_64/Foundation.swiftmodule /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/Bits.swiftmodule /usr/lib/swift/linux/x86_64/Swift.swiftmodule /usr/lib/swift/linux/x86_64/SwiftOnoneSupport.swiftmodule /usr/lib/swift/linux/x86_64/glibc.modulemap /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/CHTTP.build/module.modulemap /home/albertfega/Desktop/LaSalleChat/.build/x86_64-unknown-linux/debug/CSQLite.build/module.modulemap
|
D
|
/Users/ellehcim/Desktop/IOS/Parstagram2/build/Pods.build/Debug-iphonesimulator/MessageInputBar.build/Objects-normal/x86_64/MessageInputBarDelegate.o : /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/Views/SeparatorLine.swift /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/Protocols/MessageInputBarDelegate.swift /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/Controls/InputBarButtonItem.swift /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/Protocols/InputItem.swift /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/Protocols/InputPlugin.swift /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/MessageInputBar.swift /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/Extensions/NSMutableAttributedString+Extensions.swift /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/Extensions/UIView+Extensions.swift /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/Models/NSConstraintLayoutSet.swift /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/Views/InputStackView.swift /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/Views/InputTextView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/Target\ Support\ Files/MessageInputBar/MessageInputBar-umbrella.h /Users/ellehcim/Desktop/IOS/Parstagram2/build/Pods.build/Debug-iphonesimulator/MessageInputBar.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/ellehcim/Desktop/IOS/Parstagram2/build/Pods.build/Debug-iphonesimulator/MessageInputBar.build/Objects-normal/x86_64/MessageInputBarDelegate~partial.swiftmodule : /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/Views/SeparatorLine.swift /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/Protocols/MessageInputBarDelegate.swift /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/Controls/InputBarButtonItem.swift /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/Protocols/InputItem.swift /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/Protocols/InputPlugin.swift /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/MessageInputBar.swift /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/Extensions/NSMutableAttributedString+Extensions.swift /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/Extensions/UIView+Extensions.swift /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/Models/NSConstraintLayoutSet.swift /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/Views/InputStackView.swift /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/Views/InputTextView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/Target\ Support\ Files/MessageInputBar/MessageInputBar-umbrella.h /Users/ellehcim/Desktop/IOS/Parstagram2/build/Pods.build/Debug-iphonesimulator/MessageInputBar.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/ellehcim/Desktop/IOS/Parstagram2/build/Pods.build/Debug-iphonesimulator/MessageInputBar.build/Objects-normal/x86_64/MessageInputBarDelegate~partial.swiftdoc : /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/Views/SeparatorLine.swift /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/Protocols/MessageInputBarDelegate.swift /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/Controls/InputBarButtonItem.swift /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/Protocols/InputItem.swift /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/Protocols/InputPlugin.swift /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/MessageInputBar.swift /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/Extensions/NSMutableAttributedString+Extensions.swift /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/Extensions/UIView+Extensions.swift /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/Models/NSConstraintLayoutSet.swift /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/Views/InputStackView.swift /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/MessageInputBar/Sources/Views/InputTextView.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/ellehcim/Desktop/IOS/Parstagram2/Pods/Target\ Support\ Files/MessageInputBar/MessageInputBar-umbrella.h /Users/ellehcim/Desktop/IOS/Parstagram2/build/Pods.build/Debug-iphonesimulator/MessageInputBar.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.2.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
D
|
import std.stdio;
void main()
{
writeln("Hello, World!");
}
|
D
|
/*
* Copyright (c) 2004-2008 Derelict Developers
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the names 'Derelict', 'DerelictGL', nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
* TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
module derelict.opengl.extension.nv.copy_depth_to_color;
private
{
import derelict.opengl.gltypes;
import derelict.opengl.gl;
import derelict.util.wrapper;
}
private bool enabled = false;
struct NVCopyDepthToColor
{
static bool load(char[] extString)
{
if(extString.findStr("GL_NV_copy_depth_to_color") == -1)
return false;
enabled = true;
return true;
}
static bool isEnabled()
{
return enabled;
}
}
version(DerelictGL_NoExtensionLoaders)
{
}
else
{
static this()
{
DerelictGL.registerExtensionLoader(&NVCopyDepthToColor.load);
}
}
enum : GLenum
{
GL_DEPTH_STENCIL_TO_RGBA_NV = 0x886E,
GL_DEPTH_STENCIL_TO_BGRA_NV = 0x886F,
}
|
D
|
/Users/plin2/Desktop/Tripper/build/Tripper.build/Debug-iphonesimulator/Tripper.build/Objects-normal/x86_64/ViewController.o : /Users/plin2/Desktop/Tripper/Tripper/ViewController.swift /Users/plin2/Desktop/Tripper/Tripper/AppDelegate.swift /Users/plin2/Desktop/Tripper/Tripper/DetailViewController.swift /Users/plin2/Desktop/Tripper/Tripper/VVCollectionViewCell.swift /Users/plin2/Desktop/Tripper/Tripper/InteractiveViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Base/Frameworks/GoogleMapsBase.framework/Headers/GMSCoordinateBounds.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Base/Frameworks/GoogleMapsBase.framework/Headers/GMSCompatabilityMacros.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Base/Frameworks/GoogleMapsBase.framework/Headers/GoogleMapsBase.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Base/Frameworks/GoogleMapsBase.framework/Modules/module.modulemap /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSURLTileLayer.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSTileLayer.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSSyncTileLayer.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSServices.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSPolyline.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSPolygon.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSPanoramaView.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSPanoramaService.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSPanoramaLink.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSPanoramaLayer.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSPanoramaCameraUpdate.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSPanoramaCamera.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSPanorama.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSOrientation.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSMutablePath.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSMarkerLayer.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSMarker.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSUISettings.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSMapView.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSMapView+Animation.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSMapStyle.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSMapLayer.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSIndoorLevel.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSIndoorDisplay.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSIndoorBuilding.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSGroundOverlay.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSPath.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSGeometryUtils.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSGeocoder.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSProjection.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSCoordinateBounds+GoogleMaps.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSOverlay.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSCircle.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSCameraUpdate.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSCameraPosition.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSCALayer.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSDeprecationMacros.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSAddress.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreLocation.swiftmodule /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSUserAddedPlace.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSPlacesErrors.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSPlacesClient.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSPlaceTypes.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSPlacePhotoMetadataList.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSPlacePhotoMetadata.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSPlaceLikelihoodList.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSPlaceLikelihood.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSAutocompleteViewController.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSAutocompleteTableDataSource.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSPlace.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSAutocompleteResultsViewController.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSAutocompletePrediction.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSAutocompleteMatchFragment.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSAutocompleteFilter.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSAutocompleteFetcher.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSAddressComponent.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GooglePlaces.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Modules/module.modulemap
/Users/plin2/Desktop/Tripper/build/Tripper.build/Debug-iphonesimulator/Tripper.build/Objects-normal/x86_64/ViewController~partial.swiftmodule : /Users/plin2/Desktop/Tripper/Tripper/ViewController.swift /Users/plin2/Desktop/Tripper/Tripper/AppDelegate.swift /Users/plin2/Desktop/Tripper/Tripper/DetailViewController.swift /Users/plin2/Desktop/Tripper/Tripper/VVCollectionViewCell.swift /Users/plin2/Desktop/Tripper/Tripper/InteractiveViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Base/Frameworks/GoogleMapsBase.framework/Headers/GMSCoordinateBounds.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Base/Frameworks/GoogleMapsBase.framework/Headers/GMSCompatabilityMacros.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Base/Frameworks/GoogleMapsBase.framework/Headers/GoogleMapsBase.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Base/Frameworks/GoogleMapsBase.framework/Modules/module.modulemap /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSURLTileLayer.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSTileLayer.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSSyncTileLayer.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSServices.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSPolyline.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSPolygon.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSPanoramaView.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSPanoramaService.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSPanoramaLink.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSPanoramaLayer.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSPanoramaCameraUpdate.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSPanoramaCamera.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSPanorama.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSOrientation.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSMutablePath.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSMarkerLayer.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSMarker.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSUISettings.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSMapView.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSMapView+Animation.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSMapStyle.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSMapLayer.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSIndoorLevel.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSIndoorDisplay.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSIndoorBuilding.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSGroundOverlay.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSPath.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSGeometryUtils.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSGeocoder.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSProjection.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSCoordinateBounds+GoogleMaps.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSOverlay.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSCircle.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSCameraUpdate.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSCameraPosition.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSCALayer.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSDeprecationMacros.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSAddress.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreLocation.swiftmodule /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSUserAddedPlace.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSPlacesErrors.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSPlacesClient.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSPlaceTypes.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSPlacePhotoMetadataList.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSPlacePhotoMetadata.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSPlaceLikelihoodList.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSPlaceLikelihood.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSAutocompleteViewController.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSAutocompleteTableDataSource.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSPlace.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSAutocompleteResultsViewController.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSAutocompletePrediction.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSAutocompleteMatchFragment.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSAutocompleteFilter.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSAutocompleteFetcher.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSAddressComponent.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GooglePlaces.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Modules/module.modulemap
/Users/plin2/Desktop/Tripper/build/Tripper.build/Debug-iphonesimulator/Tripper.build/Objects-normal/x86_64/ViewController~partial.swiftdoc : /Users/plin2/Desktop/Tripper/Tripper/ViewController.swift /Users/plin2/Desktop/Tripper/Tripper/AppDelegate.swift /Users/plin2/Desktop/Tripper/Tripper/DetailViewController.swift /Users/plin2/Desktop/Tripper/Tripper/VVCollectionViewCell.swift /Users/plin2/Desktop/Tripper/Tripper/InteractiveViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Base/Frameworks/GoogleMapsBase.framework/Headers/GMSCoordinateBounds.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Base/Frameworks/GoogleMapsBase.framework/Headers/GMSCompatabilityMacros.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Base/Frameworks/GoogleMapsBase.framework/Headers/GoogleMapsBase.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Base/Frameworks/GoogleMapsBase.framework/Modules/module.modulemap /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSURLTileLayer.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSTileLayer.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSSyncTileLayer.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSServices.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSPolyline.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSPolygon.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSPanoramaView.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSPanoramaService.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSPanoramaLink.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSPanoramaLayer.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSPanoramaCameraUpdate.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSPanoramaCamera.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSPanorama.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSOrientation.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSMutablePath.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSMarkerLayer.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSMarker.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSUISettings.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSMapView.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSMapView+Animation.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSMapStyle.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSMapLayer.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSIndoorLevel.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSIndoorDisplay.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSIndoorBuilding.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSGroundOverlay.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSPath.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSGeometryUtils.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSGeocoder.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSProjection.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSCoordinateBounds+GoogleMaps.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSOverlay.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSCircle.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSCameraUpdate.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSCameraPosition.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSCALayer.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSDeprecationMacros.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GMSAddress.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Headers/GoogleMaps.h /Users/plin2/Desktop/Tripper/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreLocation.swiftmodule /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSUserAddedPlace.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSPlacesErrors.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSPlacesClient.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSPlaceTypes.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSPlacePhotoMetadataList.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSPlacePhotoMetadata.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSPlaceLikelihoodList.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSPlaceLikelihood.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSAutocompleteViewController.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSAutocompleteTableDataSource.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSPlace.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSAutocompleteResultsViewController.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSAutocompletePrediction.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSAutocompleteMatchFragment.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSAutocompleteFilter.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSAutocompleteFetcher.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GMSAddressComponent.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Headers/GooglePlaces.h /Users/plin2/Desktop/Tripper/Pods/GooglePlaces/Frameworks/GooglePlaces.framework/Modules/module.modulemap
|
D
|
/**
*
* Authors: A Lynch, [email protected]
* Copyright: A Lynch, 2013
* License: GPL v2
*/
module smidgen.load_converter;
import std.string: format;
import std.stdio: writeln;
import std.array: split, replace;
import pegged.grammar;
import smidgen.parse_converter;
import smidgen.converter: Converter;
import smidgen.ast.argument: Argument, CType, ArgType;
string getNodeData(ParseTree pt) {
return strip(pt.input[pt.begin .. pt.end]);
}
private class LoadedConverter: Converter {
string[string] itemsByName;
this(ParseTree pt) {
foreach(child; pt.children) {
auto declaration = child;
auto nameNode = declaration.children[0];
string content;
if (declaration.children.length == 2) {
auto contentNode = declaration.children[1];
content = getNodeData(contentNode);
}
itemsByName[getNodeData(nameNode)] = content;
}
}
void setTypeName(string typeName) {}
string getName() {
return itemsByName["Name"];
}
string CToDInDInline(string typeName, string argumentName) const {
string code = itemsByName["CToDInDInline"];
code = code.replace("$ARGUMENTNAME", argumentName);
code = code.replace("$TYPENAME", typeName);
return code;
}
string DToCInDInline(Argument argument, string nameSuffix) const {
string code = itemsByName["DToCInDInline"];
code = code.replace("$ARGUMENTNAME", argument.name);
code = code.replace("$INCOMINGARGUMENTNAME", argument.name ~ nameSuffix);
return code;
}
string typeNameC() {
return itemsByName["TypeNameC"];
}
string typeNameD() {
return itemsByName["TypeNameD"];
}
string transferTypeC() {
return itemsByName["TransferTypeC"];
}
string CToCTransferInCFunctionName() {
return itemsByName["CToCTransferInCFunctionName"];
}
string CToCTransferInCFunction() {
return itemsByName["CToCTransferInCFunction"];
}
string CToCTransferInCFunctionSignature() {
return itemsByName["CToCTransferInCFunctionSignature"];
}
string CToCTransferInCInline(string typeName, string argumentName) {
return itemsByName["CToCTransferInCInline"];
}
string CTransferToCInCFunction() {
return itemsByName["CTransferToCInCFunction"];
}
string CTransferToCInCFunctionName() {
return itemsByName["CTransferToCInCFunctionName"];
}
string CTransferToCInCFunctionSignature() {
return itemsByName["CTransferToCInCFunctionSignature"];
}
string CTransferToCInCInline(string typeName, string argumentName) {
string code = itemsByName["CTransferToCInCInline"];
code = code.replace("$ARGUMENTNAME", argumentName);
code = code.replace("$TYPENAME", typeName);
return code;
}
string includeInHeader() {
return itemsByName["IncludeInHeader"];
}
string getDefaultValue(string sipDefaultValue) {
string code = itemsByName["SipDefaultValue"];
code = code.replace("$DEFAULTVALUE", sipDefaultValue);
return code;
}
}
Converter loadConverter(string converterData) {
converterData = "\n" ~ converterData;
ParseTree pt = GConverter(converterData);
auto converter = new LoadedConverter(pt.children[0]);
return converter;
}
|
D
|
/**
* Compiler implementation of the
* $(LINK2 http://www.dlang.org, D programming language).
*
* Copyright: Copyright (C) 1999-2018 by The D Language Foundation, All Rights Reserved
* Authors: $(LINK2 http://www.digitalmars.com, Walter Bright)
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(LINK2 https://github.com/dlang/dmd/blob/master/src/dmd/apply.d, _apply.d)
*/
module dmd.apply;
// Online documentation: https://dlang.org/phobos/dmd_apply.html
import dmd.arraytypes;
import dmd.dtemplate;
import dmd.expression;
import dmd.visitor;
/**************************************
* An Expression tree walker that will visit each Expression e in the tree,
* in depth-first evaluation order, and call fp(e,param) on it.
* fp() signals whether the walking continues with its return value:
* Returns:
* 0 continue
* 1 done
* It's a bit slower than using virtual functions, but more encapsulated and less brittle.
* Creating an iterator for this would be much more complex.
*/
private extern (C++) final class PostorderExpressionVisitor : StoppableVisitor
{
alias visit = super.visit;
public:
StoppableVisitor v;
extern (D) this(StoppableVisitor v)
{
this.v = v;
}
bool doCond(Expression e)
{
if (!stop && e)
e.accept(this);
return stop;
}
bool doCond(Expressions* e)
{
if (!e)
return false;
for (size_t i = 0; i < e.dim && !stop; i++)
doCond((*e)[i]);
return stop;
}
bool applyTo(Expression e)
{
e.accept(v);
stop = v.stop;
return true;
}
override void visit(Expression e)
{
applyTo(e);
}
override void visit(NewExp e)
{
//printf("NewExp::apply(): %s\n", toChars());
doCond(e.thisexp) || doCond(e.newargs) || doCond(e.arguments) || applyTo(e);
}
override void visit(NewAnonClassExp e)
{
//printf("NewAnonClassExp::apply(): %s\n", toChars());
doCond(e.thisexp) || doCond(e.newargs) || doCond(e.arguments) || applyTo(e);
}
override void visit(TypeidExp e)
{
doCond(isExpression(e.obj)) || applyTo(e);
}
override void visit(UnaExp e)
{
doCond(e.e1) || applyTo(e);
}
override void visit(BinExp e)
{
doCond(e.e1) || doCond(e.e2) || applyTo(e);
}
override void visit(AssertExp e)
{
//printf("CallExp::apply(apply_fp_t fp, void *param): %s\n", toChars());
doCond(e.e1) || doCond(e.msg) || applyTo(e);
}
override void visit(CallExp e)
{
//printf("CallExp::apply(apply_fp_t fp, void *param): %s\n", toChars());
doCond(e.e1) || doCond(e.arguments) || applyTo(e);
}
override void visit(ArrayExp e)
{
//printf("ArrayExp::apply(apply_fp_t fp, void *param): %s\n", toChars());
doCond(e.e1) || doCond(e.arguments) || applyTo(e);
}
override void visit(SliceExp e)
{
doCond(e.e1) || doCond(e.lwr) || doCond(e.upr) || applyTo(e);
}
override void visit(ArrayLiteralExp e)
{
doCond(e.basis) || doCond(e.elements) || applyTo(e);
}
override void visit(AssocArrayLiteralExp e)
{
doCond(e.keys) || doCond(e.values) || applyTo(e);
}
override void visit(StructLiteralExp e)
{
if (e.stageflags & stageApply)
return;
int old = e.stageflags;
e.stageflags |= stageApply;
doCond(e.elements) || applyTo(e);
e.stageflags = old;
}
override void visit(TupleExp e)
{
doCond(e.e0) || doCond(e.exps) || applyTo(e);
}
override void visit(CondExp e)
{
doCond(e.econd) || doCond(e.e1) || doCond(e.e2) || applyTo(e);
}
}
extern (C++) bool walkPostorder(Expression e, StoppableVisitor v)
{
scope PostorderExpressionVisitor pv = new PostorderExpressionVisitor(v);
e.accept(pv);
return v.stop;
}
|
D
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.