code
stringlengths 3
10M
| language
stringclasses 31
values |
|---|---|
/*
* paging.d
*
* This module implements the structures and logic associated with paging.
*
*/
module kernel.arch.x86_64.core.paging;
// Import common kernel stuff
import kernel.core.util;
import kernel.core.error;
import kernel.core.kprintf;
// Import the heap allocator, so we can allocate memory
import kernel.mem.heap;
// Import some arch-dependent modules
import kernel.arch.x86_64.linker; // want linker info
// Import information about the system
// (we need to know where the kernel is)
import kernel.system.info;
// We need to restart the console driver
import kernel.dev.console;
// Kernel Memory Map:
//
// [0xFFFF800000000000]
// - kernel
// - RAM (page table entry map)
// - kheap
// - devices
// - misc
struct Paging {
static:
public:
// The page size we are using
const auto PAGESIZE = 4096;
// This function will initialize paging and install a core page table.
ErrorVal initialize() {
// Create a new page table.
root = cast(PageLevel4*)Heap.allocPageNoMap();
PageLevel3* pl3 = cast(PageLevel3*)Heap.allocPageNoMap();
PageLevel2* pl2 = cast(PageLevel2*)Heap.allocPageNoMap();
// Initialize the structure. (Zero it)
*root = PageLevel4.init;
*pl3 = PageLevel3.init;
*pl2 = PageLevel2.init;
// Map entries 511 to the PML4
root.entries[511].pml = cast(ulong)root;
root.entries[511].present = 1;
root.entries[511].rw = 1;
pl3.entries[511].pml = cast(ulong)root;
pl3.entries[511].present = 1;
pl3.entries[511].rw = 1;
pl2.entries[511].pml = cast(ulong)root;
pl2.entries[511].present = 1;
pl2.entries[511].rw = 1;
// Map entry 510 to the next level
root.entries[510].pml = cast(ulong)pl3;
root.entries[510].present = 1;
root.entries[510].rw = 1;
pl3.entries[510].pml = cast(ulong)pl2;
pl3.entries[510].present = 1;
pl3.entries[510].rw = 1;
// The current position of the kernel space. All gets appended to this address.
heapAddress = LinkerScript.kernelVMA;
// We need to map the kernel
kernelAddress = heapAddress;
mapRegion(System.kernel.start, System.kernel.length);
void* bitmapLocation = heapAddress;
// Map Heap bitmap
mapRegion(Heap.start, Heap.length);
// We now have the kernel mapped
kernelMapped = true;
// Save the physical address for later
rootPhysical = cast(void*)root;
// Restart the console driver to look at the right place
Console.initialize();
Heap.virtualStart = bitmapLocation;
// This is the virtual address for the page table
root = cast(PageLevel4*)0xFFFFFFFF_FFFFF000;
// All is well.
return ErrorVal.Success;
}
void install() {
ulong rootAddr = cast(ulong)rootPhysical;
asm {
mov RAX, rootAddr;
mov CR3, RAX;
}
}
// This function will get the physical address that is mapped from the
// specified virtual address.
void* translateAddress(void* virtAddress)
{
ulong vAddr = cast(ulong)virtAddress;
vAddr >>= 12;
uint indexLevel1 = vAddr & 0x1ff;
vAddr >>= 9;
uint indexLevel2 = vAddr & 0x1ff;
vAddr >>= 9;
uint indexLevel3 = vAddr & 0x1ff;
vAddr >>= 9;
uint indexLevel4 = vAddr & 0x1ff;
return root.getTable(indexLevel4).getTable(indexLevel3).getTable(indexLevel2).physicalAddress(indexLevel1);
}
void translateAddress( void* virtAddress,
out ulong indexLevel1,
out ulong indexLevel2,
out ulong indexLevel3,
out ulong indexLevel4)
{
ulong vAddr = cast(ulong)virtAddress;
vAddr >>= 12;
indexLevel1 = vAddr & 0x1ff;
vAddr >>= 9;
indexLevel2 = vAddr & 0x1ff;
vAddr >>= 9;
indexLevel3 = vAddr & 0x1ff;
vAddr >>= 9;
indexLevel4 = vAddr & 0x1ff;
}
// Using heapAddress, this will add a region to the kernel space
// It returns the virtual address to this region.
void* mapRegion(void* physAddr, ulong regionLength)
{
// Sanitize inputs
// physAddr should be floored to the page boundary
// regionLength should be ceilinged to the page boundary
ulong curPhysAddr = cast(ulong)physAddr;
regionLength += (curPhysAddr % PAGESIZE);
curPhysAddr -= (curPhysAddr % PAGESIZE);
// Set the new starting address
physAddr = cast(void*)curPhysAddr;
// Get the end address
curPhysAddr += regionLength;
// Align the end address
if ((curPhysAddr % PAGESIZE) > 0)
{
curPhysAddr += PAGESIZE - (curPhysAddr % PAGESIZE);
}
// Define the end address
void* endAddr = cast(void*)curPhysAddr;
// This region will be located at the current heapAddress
void* location = heapAddress;
if (kernelMapped) {
doHeapMap(physAddr, endAddr);
}
else {
heapMap!(true)(physAddr, endAddr);
}
// Return the position of this region
return location;
}
ulong mapRegion(PageLevel4* rootTable, void* physAddr, ulong regionLength, void* virtAddr = null, bool writeable = false) {
if (virtAddr is null) {
virtAddr = physAddr;
}
// Sanitize inputs
// physAddr should be floored to the page boundary
// regionLength should be ceilinged to the page boundary
ulong curPhysAddr = cast(ulong)physAddr;
regionLength += (curPhysAddr % PAGESIZE);
curPhysAddr -= (curPhysAddr % PAGESIZE);
// Set the new starting address
physAddr = cast(void*)curPhysAddr;
// Get the end address
curPhysAddr += regionLength;
// Align the end address
if ((curPhysAddr % PAGESIZE) > 0)
{
curPhysAddr += PAGESIZE - (curPhysAddr % PAGESIZE);
}
// Define the end address
void* endAddr = cast(void*)curPhysAddr;
heapMap!(false, false)(physAddr, endAddr, virtAddr, writeable);
return regionLength;
}
PageLevel4* kernelPageTable() {
return cast(PageLevel4*)0xfffffffffffff000;
}
private:
// -- Flags -- //
bool systemMapped;
bool kernelMapped;
// -- Positions -- //
void* systemAddress;
void* kernelAddress;
void* heapAddress;
// -- Main Page Table -- //
PageLevel4* root;
void* rootPhysical;
// -- Mapping Functions -- //
template heapMap(bool initialMapping = false, bool kernelLevel = true) {
void heapMap(void* physAddr, void* endAddr, void* virtAddr = heapAddress, bool writeable = true) {
// Do the mapping
PageLevel3* pl3;
PageLevel2* pl2;
PageLevel1* pl1;
ulong indexL1, indexL2, indexL3, indexL4;
void* startAddr = physAddr;
// Find the initial page
translateAddress(virtAddr, indexL1, indexL2, indexL3, indexL4);
// From there, map the region
ulong done = 0;
for ( ; indexL4 < 512 && physAddr < endAddr ; indexL4++ )
{
// get the L3 table
static if (initialMapping) {
if (root.entries[indexL4].present) {
pl3 = cast(PageLevel3*)(root.entries[indexL4].address << 12);
}
else {
pl3 = cast(PageLevel3*)Heap.allocPageNoMap();
*pl3 = PageLevel3.init;
root.entries[indexL4].pml = cast(ulong)pl3;
root.entries[indexL4].present = 1;
root.entries[indexL4].rw = 1;
static if (!kernelLevel) {
root.entries[indexL4].us = 1;
}
}
}
else {
pl3 = root.getOrCreateTable(indexL4, !kernelLevel);
//static if (!kernelLevel) { kprintfln!("pl3 {}")(indexL4); }
}
for ( ; indexL3 < 512 ; indexL3++ )
{
// get the L2 table
static if (initialMapping) {
if (pl3.entries[indexL3].present) {
pl2 = cast(PageLevel2*)(pl3.entries[indexL3].address << 12);
}
else {
pl2 = cast(PageLevel2*)Heap.allocPageNoMap();
*pl2 = PageLevel2.init;
pl3.entries[indexL3].pml = cast(ulong)pl2;
pl3.entries[indexL3].present = 1;
pl3.entries[indexL3].rw = 1;
static if (!kernelLevel) {
pl3.entries[indexL3].us = 1;
}
}
}
else {
pl2 = pl3.getOrCreateTable(indexL3, !kernelLevel);
// static if (!kernelLevel) { kprintfln!("pl2 {}")(indexL3); }
}
for ( ; indexL2 < 512 ; indexL2++ )
{
// get the L1 table
static if (initialMapping) {
if (pl2.entries[indexL2].present) {
pl1 = cast(PageLevel1*)(pl2.entries[indexL2].address << 12);
}
else {
pl1 = cast(PageLevel1*)Heap.allocPageNoMap();
*pl1 = PageLevel1.init;
pl2.entries[indexL2].pml = cast(ulong)pl1;
pl2.entries[indexL2].present = 1;
pl2.entries[indexL2].rw = 1;
static if (!kernelLevel) {
pl2.entries[indexL2].us = 1;
}
}
}
else {
//static if (!kernelLevel) { kprintfln!("attempting pl1 {}")(indexL2); }
pl1 = pl2.getOrCreateTable(indexL2, !kernelLevel);
//static if (!kernelLevel) { kprintfln!("pl1 {}")(indexL2); }
}
for ( ; indexL1 < 512 ; indexL1++ )
{
// set the address
if (pl1.entries[indexL1].present) {
// Page already allocated
// XXX: Fail
}
pl1.entries[indexL1].pml = cast(ulong)physAddr;
pl1.entries[indexL1].present = 1;
pl1.entries[indexL1].rw = writeable;
pl1.entries[indexL1].pat = 1;
static if (!kernelLevel) {
pl1.entries[indexL1].us = 1;
}
physAddr += PAGESIZE;
done += PAGESIZE;
if (physAddr >= endAddr)
{
indexL2 = 512;
indexL3 = 512;
break;
}
}
indexL1 = 0;
}
indexL2 = 0;
}
indexL3 = 0;
}
if (indexL4 >= 512)
{
// we have depleted our table!
assert(false, "Virtual Memory depleted");
}
// Recalculate the region length
ulong regionLength = cast(ulong)endAddr - cast(ulong)startAddr;
// Relocate heap address
static if (kernelLevel) {
heapAddress += regionLength;
}
}
}
alias heapMap!(false) doHeapMap;
}
// -- Structures -- //
// The x86 implements a four level page table.
// We use the 4KB page size hierarchy
// The levels are defined here, many are the same but they need
// to be able to be typed differently so we don't make a stupid
// mistake.
struct SecondaryField {
ulong pml;
mixin(Bitfield!(pml,
"present", 1,
"rw", 1,
"us", 1,
"pwt", 1,
"pcd", 1,
"a", 1,
"ign", 1,
"mbz", 2,
"avl", 3,
"address", 41,
"available", 10,
"nx", 1));
}
struct PrimaryField {
ulong pml;
mixin(Bitfield!(pml,
"present", 1,
"rw", 1,
"us", 1,
"pwt", 1,
"pcd", 1,
"a", 1,
"d", 1,
"pat", 1,
"g", 1,
"avl", 3,
"address", 41,
"available", 10,
"nx", 1));
}
struct PageLevel4 {
SecondaryField[512] entries;
PageLevel3* getTable(uint idx) {
if (entries[idx].present == 0) {
return null;
}
// Calculate virtual address
return cast(PageLevel3*)(0xFFFFFF7F_BFE00000 + (idx << 12));
}
PageLevel3* getOrCreateTable(uint idx, bool usermode = false) {
PageLevel3* ret = getTable(idx);
if (ret is null) {
// Create Table
ret = cast(PageLevel3*)Heap.allocPageNoMap();
// Set table entry
entries[idx].pml = cast(ulong)ret;
entries[idx].present = 1;
entries[idx].rw = 1;
entries[idx].us = usermode;
// Calculate virtual address
ret = cast(PageLevel3*)(0xFFFFFF7F_BFE00000 + (idx << 12));
*ret = PageLevel3.init;
}
return ret;
}
}
struct PageLevel3 {
SecondaryField[512] entries;
PageLevel2* getTable(uint idx) {
if (entries[idx].present == 0) {
return null;
}
ulong baseAddr = cast(ulong)this;
baseAddr &= 0x1FF000;
baseAddr >>= 3;
return cast(PageLevel2*)(0xFFFFFF7F_C0000000 + ((baseAddr + idx) << 12));
}
PageLevel2* getOrCreateTable(uint idx, bool usermode = false) {
PageLevel2* ret = getTable(idx);
if (ret is null) {
// Create Table
ret = cast(PageLevel2*)Heap.allocPageNoMap();
// Set table entry
entries[idx].pml = cast(ulong)ret;
entries[idx].present = 1;
entries[idx].rw = 1;
entries[idx].us = usermode;
// Calculate virtual address
ulong baseAddr = cast(ulong)this;
baseAddr &= 0x1FF000;
baseAddr >>= 3;
ret = cast(PageLevel2*)(0xFFFFFF7F_C0000000 + ((baseAddr + idx) << 12));
*ret = PageLevel2.init;
if (usermode) { kprintfln!("creating pl3 {}")(idx); }
}
return ret;
}
}
struct PageLevel2 {
SecondaryField[512] entries;
PageLevel1* getTable(uint idx) {
// kprintfln!("getting pl2 {}?")(idx);
if (entries[idx].present == 0) {
// kprintfln!("no pl2 {}!")(idx);
return null;
}
// kprintfln!("getting pl2 {}!")(idx);
ulong baseAddr = cast(ulong)this;
baseAddr &= 0x3FFFF000;
baseAddr >>= 3;
return cast(PageLevel1*)(0xFFFFFF80_00000000 + ((baseAddr + idx) << 12));
}
PageLevel1* getOrCreateTable(uint idx, bool usermode = false) {
PageLevel1* ret = getTable(idx);
if (ret is null) {
// Create Table
// if (usermode) { kprintfln!("creating pl2 {}?")(idx); }
ret = cast(PageLevel1*)Heap.allocPageNoMap();
// Set table entry
entries[idx].pml = cast(ulong)ret;
entries[idx].present = 1;
entries[idx].rw = 1;
entries[idx].us = usermode;
// Calculate virtual address
ulong baseAddr = cast(ulong)this;
baseAddr &= 0x3FFFF000;
baseAddr >>= 3;
ret = cast(PageLevel1*)(0xFFFFFF80_00000000 + ((baseAddr + idx) << 12));
*ret = PageLevel1.init;
// if (usermode) { kprintfln!("creating pl2 {}")(idx); }
}
return ret;
}
}
struct PageLevel1 {
PrimaryField[512] entries;
void* physicalAddress(uint idx) {
return cast(void*)(entries[idx].address << 12);
}
}
|
D
|
/* THIS FILE GENERATED BY bcd.gen */
module bcd.fltk2.ColorChooser;
align(4):
public import bcd.bind;
public import bcd.fltk2.Group;
public import bcd.fltk2.Widget;
public import bcd.fltk2.Style;
public import bcd.fltk2.FL_API;
public import bcd.fltk2.Rectangle;
public import bcd.fltk2.Color;
public import bcd.fltk2.Flags;
extern (C) void _BCD_delete_N4fltk12ColorChooserE(void *);
extern (C) float _BCD__ZNK4fltk12ColorChooser1sEv(void *This);
extern (C) float _BCD__ZNK4fltk12ColorChooser1vEv(void *This);
extern (C) float _BCD__ZNK4fltk12ColorChooser1gEv(void *This);
extern (C) float _BCD__ZNK4fltk12ColorChooser1aEv(void *This);
extern (C) bool _BCD__ZNK4fltk12ColorChooser8no_valueEv(void *This);
extern (C) bool _BCD__ZN4fltk12ColorChooser8no_valueEb(void *This, bool);
extern (C) uint _BCD__ZNK4fltk12ColorChooser5valueEv(void *This);
extern (C) bool _BCD__ZN4fltk12ColorChooser5valueEj(void *This, uint);
extern (C) bool _BCD__ZN4fltk12ColorChooser3hsvEfff(void *This, float, float, float);
extern (C) bool _BCD__ZN4fltk12ColorChooser3rgbEfff(void *This, float, float, float);
extern (C) bool _BCD__ZN4fltk12ColorChooser1aEf(void *This, float);
extern (C) void _BCD__ZN4fltk12ColorChooser6hide_aEv(void *This);
extern (C) void _BCD__ZN4fltk12ColorChooser13hide_no_valueEv(void *This);
extern (C) void _BCD__ZN4fltk12ColorChooser7hsv2rgbEfffRfS1_S1_(float, float, float, float *, float *, float *);
extern (C) void _BCD__ZN4fltk12ColorChooser7rgb2hsvEfffRfS1_S1_(float, float, float, float *, float *, float *);
extern (C) void *_BCD_new__ZN4fltk12ColorChooserC1EiiiiPKc(int, int, int, int, char *);
extern (C) void _BCD__ZN4fltk12ColorChooser6layoutEv(void *This);
extern (C) float _BCD__ZN4fltk12ColorChooser7setcellEiffff(void *This, int, float, float, float, float);
extern (C) float _BCD__ZN4fltk12ColorChooser7getcellEiffff(void *This, int, float, float, float, float);
extern (C) void _BCD_RI_N4fltk12ColorChooserE(void *cd, void *dd);
extern (C) void _BCD_delete_N4fltk12ColorChooserE__ColorChooser_R(void *This);
extern (C) void *_BCD_new__ZN4fltk12ColorChooserC1EiiiiPKc_R(int, int, int, int, char *);
extern (C) int _BCD_R__ZN4fltk12ColorChooser6layoutEv__ColorChooser_R_CHECK(ColorChooser_R x) {
union dp {
void delegate() d;
struct { void *o; void *f; }
}
dp d; d.d = &x.layout;
return cast(int) (d.f != &ColorChooser.layout);
}
extern (C) void _BCD_R__ZN4fltk12ColorChooser6layoutEv__ColorChooser_R(ColorChooser_R __D_class, ) {
__D_class.layout();
}
extern (C) void _BCD_delete_N4fltk9ccCellBoxE(void *);
extern (C) void *_BCD_new__ZN4fltk9ccCellBoxC1Eiiii(int, int, int, int);
extern (C) void _BCD__ZN4fltk9ccCellBox4drawEv(void *This);
extern (C) int _BCD__ZN4fltk9ccCellBox6handleEi(void *This, int);
extern (C) void _BCD_RI_N4fltk9ccCellBoxE(void *cd, void *dd);
extern (C) void _BCD_delete_N4fltk9ccCellBoxE__ccCellBox_R(void *This);
extern (C) void *_BCD_new__ZN4fltk9ccCellBoxC1Eiiii_R(int, int, int, int);
extern (C) int _BCD_R__ZN4fltk9ccCellBox4drawEv__ccCellBox_R_CHECK(ccCellBox_R x) {
union dp {
void delegate() d;
struct { void *o; void *f; }
}
dp d; d.d = &x.draw;
return cast(int) (d.f != &ccCellBox.draw);
}
extern (C) void _BCD_R__ZN4fltk9ccCellBox4drawEv__ccCellBox_R(ccCellBox_R __D_class, ) {
__D_class.draw();
}
extern (C) int _BCD_R__ZN4fltk9ccCellBox6handleEi__ccCellBox_R_CHECK(ccCellBox_R x) {
union dp {
int delegate(int) d;
struct { void *o; void *f; }
}
dp d; d.d = &x.handle;
return cast(int) (d.f != &ccCellBox.handle);
}
extern (C) int _BCD_R__ZN4fltk9ccCellBox6handleEi__ccCellBox_R(ccCellBox_R __D_class, int _0) {
return __D_class.handle(_0);
}
extern (C) void _BCD_delete_N4fltk10ccValueBoxE(void *);
extern (C) int _BCD__ZN4fltk10ccValueBox6handleEi(void *This, int);
extern (C) void *_BCD_new__ZN4fltk10ccValueBoxC1Eiiii(int, int, int, int);
extern (C) void _BCD_RI_N4fltk10ccValueBoxE(void *cd, void *dd);
extern (C) void _BCD_delete_N4fltk10ccValueBoxE__ccValueBox_R(void *This);
extern (C) int _BCD_R__ZN4fltk10ccValueBox6handleEi__ccValueBox_R_CHECK(ccValueBox_R x) {
union dp {
int delegate(int) d;
struct { void *o; void *f; }
}
dp d; d.d = &x.handle;
return cast(int) (d.f != &ccValueBox.handle);
}
extern (C) int _BCD_R__ZN4fltk10ccValueBox6handleEi__ccValueBox_R(ccValueBox_R __D_class, int _0) {
return __D_class.handle(_0);
}
extern (C) void *_BCD_new__ZN4fltk10ccValueBoxC1Eiiii_R(int, int, int, int);
extern (C) void _BCD_delete_N4fltk8ccHueBoxE(void *);
extern (C) int _BCD__ZN4fltk8ccHueBox6handleEi(void *This, int);
extern (C) void *_BCD_new__ZN4fltk8ccHueBoxC1Eiiii(int, int, int, int);
extern (C) void _BCD_RI_N4fltk8ccHueBoxE(void *cd, void *dd);
extern (C) void _BCD_delete_N4fltk8ccHueBoxE__ccHueBox_R(void *This);
extern (C) int _BCD_R__ZN4fltk8ccHueBox6handleEi__ccHueBox_R_CHECK(ccHueBox_R x) {
union dp {
int delegate(int) d;
struct { void *o; void *f; }
}
dp d; d.d = &x.handle;
return cast(int) (d.f != &ccHueBox.handle);
}
extern (C) int _BCD_R__ZN4fltk8ccHueBox6handleEi__ccHueBox_R(ccHueBox_R __D_class, int _0) {
return __D_class.handle(_0);
}
extern (C) void *_BCD_new__ZN4fltk8ccHueBoxC1Eiiii_R(int, int, int, int);
extern (C) bool _BCD__ZN4fltk13color_chooserEPKcRj(char *, uint *);
extern (C) bool _BCD__ZN4fltk13color_chooserEPKcRhS2_S2_S2_(char *, char *, char *, char *, char *);
extern (C) bool _BCD__ZN4fltk13color_chooserEPKcRhS2_S2_(char *, char *, char *, char *);
extern (C) bool _BCD__ZN4fltk13color_chooserEPKcRfS2_S2_S2_(char *, float *, float *, float *, float *);
extern (C) bool _BCD__ZN4fltk13color_chooserEPKcRfS2_S2_(char *, float *, float *, float *);
alias void function(Widget *, int) _BCD_func__165;
alias void function(Widget *) _BCD_func__167;
alias void function(Widget *, void *) _BCD_func__171;
alias bool function() _BCD_func__376;
class ColorChooser : Group {
this(ifloat ignore) {
super(ignore);
}
this(ifloat ignore, void *x) {
super(ignore);
__C_data = x;
__C_data_owned = false;
}
~this() {
if (__C_data && __C_data_owned) _BCD_delete_N4fltk12ColorChooserE(__C_data);
__C_data = null;
}
float s() {
return _BCD__ZNK4fltk12ColorChooser1sEv(__C_data);
}
float v() {
return _BCD__ZNK4fltk12ColorChooser1vEv(__C_data);
}
float g() {
return _BCD__ZNK4fltk12ColorChooser1gEv(__C_data);
}
float a() {
return _BCD__ZNK4fltk12ColorChooser1aEv(__C_data);
}
bool no_value() {
return _BCD__ZNK4fltk12ColorChooser8no_valueEv(__C_data);
}
bool no_value(bool _0) {
return _BCD__ZN4fltk12ColorChooser8no_valueEb(__C_data, _0);
}
uint value() {
return _BCD__ZNK4fltk12ColorChooser5valueEv(__C_data);
}
bool value(uint _0) {
return _BCD__ZN4fltk12ColorChooser5valueEj(__C_data, _0);
}
bool hsv(float _0, float _1, float _2) {
return _BCD__ZN4fltk12ColorChooser3hsvEfff(__C_data, _0, _1, _2);
}
bool rgb(float _0, float _1, float _2) {
return _BCD__ZN4fltk12ColorChooser3rgbEfff(__C_data, _0, _1, _2);
}
bool a(float _0) {
return _BCD__ZN4fltk12ColorChooser1aEf(__C_data, _0);
}
void hide_a() {
_BCD__ZN4fltk12ColorChooser6hide_aEv(__C_data);
}
void hide_no_value() {
_BCD__ZN4fltk12ColorChooser13hide_no_valueEv(__C_data);
}
static void hsv2rgb(float _0, float _1, float _2, float * _3, float * _4, float * _5) {
_BCD__ZN4fltk12ColorChooser7hsv2rgbEfffRfS1_S1_(_0, _1, _2, _3, _4, _5);
}
static void rgb2hsv(float _0, float _1, float _2, float * _3, float * _4, float * _5) {
_BCD__ZN4fltk12ColorChooser7rgb2hsvEfffRfS1_S1_(_0, _1, _2, _3, _4, _5);
}
this(int _0, int _1, int _2, int _3, char * _4 = null) {
super(cast(ifloat) 0);
__C_data = _BCD_new__ZN4fltk12ColorChooserC1EiiiiPKc(_0, _1, _2, _3, _4);
__C_data_owned = true;
}
void layout() {
_BCD__ZN4fltk12ColorChooser6layoutEv(__C_data);
}
float setcell(int _0, float _1, float _2, float _3, float _4) {
return _BCD__ZN4fltk12ColorChooser7setcellEiffff(__C_data, _0, _1, _2, _3, _4);
}
float getcell(int _0, float _1, float _2, float _3, float _4) {
return _BCD__ZN4fltk12ColorChooser7getcellEiffff(__C_data, _0, _1, _2, _3, _4);
}
}
class ColorChooser_R : ColorChooser {
~this() {
if (__C_data && __C_data_owned) _BCD_delete_N4fltk12ColorChooserE__ColorChooser_R(__C_data);
__C_data = null;
}
this(int _0, int _1, int _2, int _3, char * _4 = null) {
super(cast(ifloat) 0);
__C_data = _BCD_new__ZN4fltk12ColorChooserC1EiiiiPKc_R(_0, _1, _2, _3, _4);
__C_data_owned = true;
_BCD_RI_N4fltk12ColorChooserE(__C_data, cast(void *) this);
}
}
class ccCellBox : Widget {
this(ifloat ignore) {
super(ignore);
}
this(ifloat ignore, void *x) {
super(ignore);
__C_data = x;
__C_data_owned = false;
}
~this() {
if (__C_data && __C_data_owned) _BCD_delete_N4fltk9ccCellBoxE(__C_data);
__C_data = null;
}
this(int X, int Y, int W, int H) {
super(cast(ifloat) 0);
__C_data = _BCD_new__ZN4fltk9ccCellBoxC1Eiiii(X, Y, W, H);
__C_data_owned = true;
}
void draw() {
_BCD__ZN4fltk9ccCellBox4drawEv(__C_data);
}
int handle(int _0) {
return _BCD__ZN4fltk9ccCellBox6handleEi(__C_data, _0);
}
}
class ccCellBox_R : ccCellBox {
~this() {
if (__C_data && __C_data_owned) _BCD_delete_N4fltk9ccCellBoxE__ccCellBox_R(__C_data);
__C_data = null;
}
this(int X, int Y, int W, int H) {
super(cast(ifloat) 0);
__C_data = _BCD_new__ZN4fltk9ccCellBoxC1Eiiii_R(X, Y, W, H);
__C_data_owned = true;
_BCD_RI_N4fltk9ccCellBoxE(__C_data, cast(void *) this);
}
}
class ccValueBox : Widget {
this(ifloat ignore) {
super(ignore);
}
this(ifloat ignore, void *x) {
super(ignore);
__C_data = x;
__C_data_owned = false;
}
~this() {
if (__C_data && __C_data_owned) _BCD_delete_N4fltk10ccValueBoxE(__C_data);
__C_data = null;
}
int handle(int _0) {
return _BCD__ZN4fltk10ccValueBox6handleEi(__C_data, _0);
}
this(int X, int Y, int W, int H) {
super(cast(ifloat) 0);
__C_data = _BCD_new__ZN4fltk10ccValueBoxC1Eiiii(X, Y, W, H);
__C_data_owned = true;
}
}
class ccValueBox_R : ccValueBox {
~this() {
if (__C_data && __C_data_owned) _BCD_delete_N4fltk10ccValueBoxE__ccValueBox_R(__C_data);
__C_data = null;
}
this(int X, int Y, int W, int H) {
super(cast(ifloat) 0);
__C_data = _BCD_new__ZN4fltk10ccValueBoxC1Eiiii_R(X, Y, W, H);
__C_data_owned = true;
_BCD_RI_N4fltk10ccValueBoxE(__C_data, cast(void *) this);
}
}
class ccHueBox : Widget {
this(ifloat ignore) {
super(ignore);
}
this(ifloat ignore, void *x) {
super(ignore);
__C_data = x;
__C_data_owned = false;
}
~this() {
if (__C_data && __C_data_owned) _BCD_delete_N4fltk8ccHueBoxE(__C_data);
__C_data = null;
}
int handle(int _0) {
return _BCD__ZN4fltk8ccHueBox6handleEi(__C_data, _0);
}
this(int X, int Y, int W, int H) {
super(cast(ifloat) 0);
__C_data = _BCD_new__ZN4fltk8ccHueBoxC1Eiiii(X, Y, W, H);
__C_data_owned = true;
}
}
class ccHueBox_R : ccHueBox {
~this() {
if (__C_data && __C_data_owned) _BCD_delete_N4fltk8ccHueBoxE__ccHueBox_R(__C_data);
__C_data = null;
}
this(int X, int Y, int W, int H) {
super(cast(ifloat) 0);
__C_data = _BCD_new__ZN4fltk8ccHueBoxC1Eiiii_R(X, Y, W, H);
__C_data_owned = true;
_BCD_RI_N4fltk8ccHueBoxE(__C_data, cast(void *) this);
}
}
bool color_chooser(char * name, uint * c) {
return _BCD__ZN4fltk13color_chooserEPKcRj(name, c);
}
bool color_chooser(char * name, char * r, char * g, char * b, char * a) {
return _BCD__ZN4fltk13color_chooserEPKcRhS2_S2_S2_(name, r, g, b, a);
}
bool color_chooser(char * name, char * r, char * g, char * b) {
return _BCD__ZN4fltk13color_chooserEPKcRhS2_S2_(name, r, g, b);
}
bool color_chooser(char * name, float * r, float * g, float * b, float * a) {
return _BCD__ZN4fltk13color_chooserEPKcRfS2_S2_S2_(name, r, g, b, a);
}
bool color_chooser(char * name, float * r, float * g, float * b) {
return _BCD__ZN4fltk13color_chooserEPKcRfS2_S2_(name, r, g, b);
}
|
D
|
module android.java.android.graphics.Color_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import1 = android.java.android.graphics.ColorSpace_Model_d_interface;
import import3 = android.java.android.graphics.ColorSpace_Connector_d_interface;
import import0 = android.java.android.graphics.ColorSpace_d_interface;
import import2 = android.java.android.graphics.Color_d_interface;
import import4 = android.java.java.lang.Class_d_interface;
final class Color : IJavaObject {
static immutable string[] _d_canCastTo = [
];
@Import this(arsd.jni.Default);
@Import import0.ColorSpace getColorSpace();
@Import import1.ColorSpace_Model getModel();
@Import bool isWideGamut();
@Import bool isSrgb();
@Import int getComponentCount();
@Import long pack();
@Import import2.Color convert(import0.ColorSpace);
@Import int toArgb();
@Import float red();
@Import float green();
@Import float blue();
@Import float alpha();
@Import float[] getComponents();
@Import float[] getComponents(float[]);
@Import float getComponent(int);
@Import float luminance();
@Import bool equals(IJavaObject);
@Import int hashCode();
@Import @JavaName("toString") string toString_();
override string toString() { return arsd.jni.javaObjectToString(this); }
@Import static import0.ColorSpace colorSpace(long);
@Import static float red(long);
@Import static float green(long);
@Import static float blue(long);
@Import static float alpha(long);
@Import static bool isSrgb(long);
@Import static bool isWideGamut(long);
@Import static bool isInColorSpace(long, import0.ColorSpace);
@Import static int toArgb(long);
@Import static import2.Color valueOf(int);
@Import static import2.Color valueOf(long);
@Import static import2.Color valueOf(float, float, float);
@Import static import2.Color valueOf(float, float, float, float);
@Import static import2.Color valueOf(float, float, float, float, import0.ColorSpace);
@Import static import2.Color valueOf(float, import0.ColorSpace[]);
@Import static long pack(int);
@Import static long pack(float, float, float);
@Import static long pack(float, float, float, float);
@Import static long pack(float, float, float, float, import0.ColorSpace);
@Import static long convert(int, import0.ColorSpace);
@Import static long convert(long, import0.ColorSpace);
@Import static long convert(float, float, float, float, import0.ColorSpace, import0.ColorSpace);
@Import static long convert(long, import3.ColorSpace_Connector);
@Import static long convert(float, float, float, float, import3.ColorSpace_Connector);
@Import static float luminance(long);
@Import static int alpha(int);
@Import static int red(int);
@Import static int green(int);
@Import static int blue(int);
@Import static int rgb(int, int, int);
@Import static int rgb(float, float, float);
@Import static int argb(int, int, int, int);
@Import static int argb(float, float, float, float);
@Import static float luminance(int);
@Import static int parseColor(string);
@Import static void RGBToHSV(int, int, int, float[]);
@Import static void colorToHSV(int, float[]);
@Import static int HSVToColor(float[]);
@Import static int HSVToColor(int, float[]);
@Import import4.Class getClass();
@Import void notify();
@Import void notifyAll();
@Import void wait(long);
@Import void wait(long, int);
@Import void wait();
mixin IJavaObjectImplementation!(false);
public static immutable string _javaParameterString = "Landroid/graphics/Color;";
}
|
D
|
/*
# What Is This: programming samples
# Author: Makoto Takeshita <takeshita.sample@gmail.com>
# URL: http://simplesandsamples.com
# Version: UNBORN
#
# Usage:
# 1. git clone https://github.com/takeshitamakoto/sss.git
# 2. change the directory name to easy-to-use name. (e.g. sss -> sample)
# 3. open sss/src/filename when you need any help.
#
*/
import std.stdio;
import std.conv;
void main(string[] args)
{
string filename = args[1];
byte[] a = new byte[to!(int)(args[2])];
a[0 .. a.length] = 0;
auto fout = File(filename,"wb");
fout.rawWrite(a);
}
|
D
|
module xmlrpcc.data;
import std.variant : Variant;
import std.algorithm : reduce;
import std.conv : to;
import std.string : format;
import xmlrpcc.error;
alias XmlRpcArray = Variant[];
alias XmlRpcStruct = Variant[string];
@trusted:
struct MethodCallData {
string name;
Variant[] params;
string toString() {
return name ~ "(" ~ prettyParams(params) ~ ")";
}
}
struct MethodResponseData {
bool fault;
Variant[] params;
string toString() {
return (fault ? "FAULT" : "OK") ~ ": " ~ prettyParams(params);
}
}
package string prettyParams(Variant[] params) {
return reduce!((a, b) { return a ~ (a.length ? ", " : "") ~ prettyParam(b); })("", params);
}
private string prettyParam(Variant param) {
if (param.convertsTo!string() || param.convertsTo!wstring() || param.convertsTo!dstring())
return "`" ~ to!string(param) ~ "`";
if (param.convertsTo!(const(ubyte[])))
return reduce!((a, b) { return format("%s %02x", a, b); })("hex:", param.get!(const(ubyte[]))());
if (param.convertsTo!XmlRpcArray)
return "[" ~ prettyParams(param.get!XmlRpcArray) ~ "]";
if (param.convertsTo!XmlRpcStruct) {
string output;
foreach (key, value; param.get!XmlRpcStruct) {
output ~= output ? ", " : "[";
output ~= "\"" ~ key ~ "\": " ~ prettyParam(value);
}
return output ~ "]";
}
return to!string(param);
}
version (xmlrpc_unittest) unittest {
import std.stdio;
import std.exception;
auto call = MethodCallData("method", [Variant(123), Variant(["key" : Variant(cast(ubyte[]) x"dead")]),
Variant(cast(const ubyte[]) x"cafe")]);
//writeln(call.toString());
assert(call.toString() == `method(123, ["key": hex: de ad], hex: ca fe)`);
}
|
D
|
FUNC VOID GruenErzbrocken8_S1 ()
{
var C_NPC her; her = Hlp_GetNpc(PC_Hero);
if (Hlp_GetInstanceID(self)==Hlp_GetInstanceID(her))
{
if (Npc_HasItems(hero, ItMw_2H_Axe_L_01) == 0)
{
Print ("Ohne Spitzhacke geht das nicht!");
AI_UseMob (hero, "ORE", -1);
return;
};
B_SetAivar(self, AIV_INVINCIBLE, TRUE);
PLAYER_MOBSI_PRODUCTION = MOBSI_GruenErzbrocken8;
Ai_ProcessInfos (her);
};
};
INSTANCE PC_GruenErzbrocken8_Addon_Hour (C_Info)
{
npc = PC_Hero;
nr = 2;
condition = PC_GruenErzbrocken8_Addon_Hour_Condition;
information = PC_GruenErzbrocken8_Addon_Hour_Info;
permanent = 0;
description = "Einfach mal hacken. ";
};
FUNC INT PC_GruenErzbrocken8_Addon_Hour_Condition ()
{
if (PLAYER_MOBSI_PRODUCTION == MOBSI_GruenErzbrocken8)
{
return TRUE;
};
};
FUNC VOID PC_GruenErzbrocken8_Addon_Hour_Info()
{
CreateInvItems (hero, ItMi_GreenNugget, 4);
PrintScreen ("4 grüne Erzbrocken gehackt!", -1, -1, FONT_ScreenSmall, 2);
};
INSTANCE PC_GruenErzbrocken8_End (C_Info)
{
npc = PC_Hero;
nr = 999;
condition = PC_GruenErzbrocken8_End_Condition;
information = PC_GruenErzbrocken8_End_Info;
permanent = TRUE;
description = DIALOG_ENDE;
};
FUNC INT PC_GruenErzbrocken8_End_Condition ()
{
if (PLAYER_MOBSI_PRODUCTION == MOBSI_GruenErzbrocken8)
{
return TRUE;
};
};
FUNC VOID PC_GruenErzbrocken8_End_Info()
{
B_ENDPRODUCTIONDIALOG ();
};
|
D
|
module rdm.math.matrix;
import std.math;
import std.traits;
import std.meta;
import rdm.math.vector;
import rdm.utility.meta : Iota;
alias Matrix4f = Matrix!(4, float);
public Matrix4f createPerspectiveMatrix(float fov, float aspectRatio, float zNear, float zFar)
{
Matrix4f matrix;
float ar = aspectRatio;
float tanHalfFOV = cast(float) tan(fov / 2);
float zRange = zNear - zFar;
matrix[0] = [1.0f / (tanHalfFOV * ar), 0, 0, 0];
matrix[1] = [0, 1.0f / tanHalfFOV, 0, 0];
matrix[2] = [0, 0, (-zNear - zFar) / zRange, 2 * zFar * zNear / zRange];
matrix[3] = [0, 0, 1, 0];
return matrix;
}
public Matrix4f createOrthographicMatrix(float left, float right, float top,
float bottom, float zNear, float zFar)
{
Matrix4f matrix;
float width = (right - left);
float height = (top - bottom);
float depth = (zFar - zNear);
matrix[0] = [2 / width, 0, 0, 0];
matrix[1] = [0, 2 / height, 0, 0];
matrix[2] = [0, 0, -2 / depth, 0];
matrix[3] = [-(right + left) / width, -(top + bottom) / height, -(zFar + zNear) / depth, 1];
return matrix;
}
public auto createTranslationMatrix(Vector3f trans)
{
Matrix4f translationMatrix;
translationMatrix[0] = [1, 0, 0, trans.x];
translationMatrix[1] = [0, 1, 0, trans.y];
translationMatrix[2] = [0, 0, 1, trans.z];
translationMatrix[3] = [0, 0, 0, 1];
return translationMatrix;
}
public auto createRotationMatrix(Vector3f rotation)
{
auto cos0x = cos(rotation.x);
auto sin0x = sin(rotation.x);
auto cos0y = cos(rotation.y);
auto sin0y = sin(rotation.y);
auto cos0z = cos(rotation.z);
auto sin0z = sin(rotation.z);
Matrix4f xMatrix, yMatrix, zMatrix;
xMatrix[0] = [1, 0, 0, 0];
xMatrix[1] = [0, cos0x, -sin0x, 0];
xMatrix[2] = [0, sin0x, cos0x, 0];
xMatrix[3] = [0, 0, 0, 1];
yMatrix[0] = [cos0y, 0, sin0y, 0];
yMatrix[1] = [0, 1, 0, 0];
yMatrix[2] = [-sin0y, 0, cos0y, 0];
yMatrix[3] = [0, 0, 0, 1];
zMatrix[0] = [cos0z, -sin0z, 0, 0];
zMatrix[1] = [sin0z, cos0z, 0, 0];
zMatrix[2] = [0, 0, 1, 0];
zMatrix[3] = [0, 0, 0, 1];
return (zMatrix * yMatrix * xMatrix);
}
public auto createScaleMatrix(Vector3f factor)
{
Matrix4f scaleMatrix;
scaleMatrix[0] = [factor.x, 0, 0, 0];
scaleMatrix[1] = [0, factor.y, 0, 0];
scaleMatrix[2] = [0, 0, factor.z, 0];
scaleMatrix[3] = [0, 0, 0, 1];
return scaleMatrix;
}
//extracts angles radians from the matrix's rotation
//this might be wierd cause of gimbal lock or somthing.
public Vector3f eulerAngles(ref Matrix4f matrix)
{
Vector3f result;
result[0] = atan2(-matrix[1, 2], matrix[2, 2]);
float cosYangle = sqrt(pow(matrix[0, 0], 2) + pow(matrix[0, 1], 2));
result[1] = atan2(matrix[0, 2], cosYangle);
float sinXangle = sin(result[0]);
float cosXangle = cos(result[0]);
result[2] = atan2(cosXangle * matrix[1][0] + sinXangle * matrix[2][0],
cosXangle * matrix[1, 1] + sinXangle * matrix[2, 1]);
return result;
}
//Remember that these matricies are ROW MAJOR!
//OpenGL is COLOUM MAJOR!
//when sending these matricies to the gpu set transpose to GL_TRUE.
struct Matrix(size_t Size, Type)
{
alias Matrix_t = Matrix!(Size, Type);
Type[Size][Size] m_matrix;
this(Matrix_t matrix)
{
this.m_matrix = matrix.m_matrix;
}
this(T...)(T matrix) if (T.length == Size * Size && allSatisfy!(isMatrixType, T))
{
foreach (i; Iota!(0u, T.length))
{
//Use of the Iota template makes the compiler unroll this loop at compile time.
this[cast(int) floor(cast(real) i / Size), i % Size] = matrix[i];
}
}
this(Type[Size][Size] matrix)
{
this.m_matrix = matrix;
}
this(Type[Size * Size] matrix)
{
foreach (i; Iota!(0u, Size * Size))
{
this[cast(int) floor(cast(real) i / Size), i % Size] = matrix[i];
}
}
this(Type[][] matrix)
{
assert(matrix.length == Size, "array length incorrect length for assignment to matrix");
foreach (i; Iota!(0u, Size))
{
assert(matrix[i].length == Size,
"array length incorrect length for assignment to matrix");
foreach (j; Iota!(0u, Size))
this[i, j] = matrix[i][j];
}
}
this(Type[] matrix)
{
assert(matrix.length == Size * Size,
"array length incorrect length for assignment to matrix");
foreach (i, element; Iota!(0u, Size * Size))
{
this[cast(int) floor(cast(real) i / Size), i % Size] = element;
}
}
auto opOpAssign(string op, T)(T value)
if (__traits(compiles, this.opBinary!(op)(value)))
{
auto result = this.opBinary!(op)(value); //forward to real version and store it this
return this = result;
}
auto opBinary(string op)(Matrix_t matrix) if (op == "+")
{
Matrix_t result;
foreach (i; Iota!(0u, Size))
{
foreach (j; Iota!(0u, Size))
{
result[i, j] = this[i, j] + matrix[i, j];
}
}
return result;
}
auto opBinary(string op)(Matrix_t matrix) if (op == "-")
{
Matrix_t result;
foreach (i; ota!(0u, Size))
{
foreach (j; Iota!(0u, Size))
{
result[i, j] = this[i, j] - matrix[i, j];
}
}
return result;
}
auto opBinary(string op)(Matrix_t matrix) if (op == "*")
{
Matrix_t result;
Type sumProduct;
foreach (i; Iota!(0u, Size))
{
foreach (j; Iota!(0u, Size))
{
sumProduct = 0;
foreach (k; Iota!(0u, Size))
{
sumProduct += this[i, k] * matrix[k, j];
}
result[i, j] = sumProduct;
}
}
return result;
}
auto opBinary(string op)(Type scalar) if (op == "+")
{
Matrix_t result;
foreach (i; Iota!(0u, Size))
{
foreach (j; Iota!(0u, Size))
{
this[i, j] = result[i, j] + scalar;
}
}
return result;
}
auto opBinary(string op)(Type scalar) if (op == "-")
{
Matrix_t result;
foreach (i; ota!(0u, Size))
{
foreach (j; Iota!(0u, Size))
{
result[i, j] = this[i, j] - scalar;
}
}
return result;
}
auto opBinary(string op)(Type scalar) if (op == "*")
{
Matrix_t result;
foreach (i; Iota!(0u, Size))
{
foreach (j; Iota!(0u, Size))
{
result[i, j] = this[i, j] * scalar;
}
}
return result;
}
auto opBinary(string op)(Vector!(Size - 1, Type) vector) if (op == "*")
{
Type sumProduct;
Matrix_t result;
foreach (i; Iota!(0u, Size))
{
foreach (j; Iota!(0u, Size))
{
sumProduct = 0;
foreach (k; Iota!(0u, Size - 1))
sumProduct += this[i, j] * vector[k];
result[i, j] = sumProduct;
}
}
return result;
}
auto opBinary(string op)(Vector!(Size, Type) vector) if (op == "*")
{
Type sumProduct;
Matrix_t result;
foreach (i; Iota!(0u, Size))
{
foreach (j; Iota!(0u, Size))
{
sumProduct = 0;
foreach (k; Iota!(0u, Size))
sumProduct += this[i, j] * vector[j];
result[i, j] = sumProduct;
}
}
return result;
}
auto opIndex(size_t row, size_t col) const
{
return this.m_matrix[row][col];
}
auto opIndexAssign(Type assign, size_t row, size_t col)
{
return this.m_matrix[row][col] = assign;
}
auto opIndex(size_t row) const
{
return this.m_matrix[row];
}
auto opIndexAssign(Type[Size] assign, size_t row)
{
return this.m_matrix[row] = assign;
}
auto opIndexAssign(Type[] assign, size_t row)
{
assert(Size == assign.length, "row length incorrect length for assignment to matrix");
foreach (i; Iota!(0u, Size))
this[row, i] = row;
}
auto opAssign(Matrix_t matrix)
{
this.m_matrix = matrix.m_matrix;
}
@property static auto identity(float n = 1.0f)
{
Matrix_t matrix;
foreach (i; Iota!(0u, Size))
foreach (j; Iota!(0u, Size))
if (i == j)
matrix[i, j] = n;
else
matrix[i, j] = 0;
return matrix;
}
auto transpose()
{
auto result = Matrix_t();
foreach (i; Iota!(0u, Size))
foreach (j; Iota!(0u, Size))
result[j, i] = this[i, j];
this = result;
}
Type determinant(size_t N = Size) const
{
int i, j, k, x = 0, y = 0;
Matrix_t b;
Type det = 0, flg = 1;
if (N == 1)
{
return this[0, 0];
}
else
{
det = 0;
for (k = 0; k < N; k++)
{
for (i = 0; i < N; i++)
for (j = 0; j < N; j++)
{
b[i, j] = 0;
if ((i != 0) && (j != k))
{
b[x, y] = this[i, j];
if (y < (N - 2))
{
y++;
}
else
{
y = 0;
x++;
}
}
}
det += (flg * (this[0, k] * b.determinant(N - 1)));
flg *= -1;
y = 0;
x = 0;
}
}
return det;
}
auto inverted() const
{
int i, j, p, q, x = 0, y = 0;
Matrix_t c, inv;
Type dt;
dt = determinant(Size);
for (p = 0; p < Size; p++)
for (q = 0; q < Size; q++)
{
for (i = 0; i < Size; i++)
for (j = 0; j < Size; j++)
{
c[i, j] = 0;
if ((i != p) && (j != q))
{
c[x, y] = this[i, j];
if (y < (Size - 2))
{
y++;
}
else
{
y = 0;
x++;
}
}
}
inv[q, p] = ((c.determinant(Size - 1)) * pow(-1, (p + q)));
x = 0;
y = 0;
}
for (i = 0; i < Size; i++)
{
for (j = 0; j < Size; j++)
{
inv[i, j] = (inv[i, j] / dt);
}
}
return inv;
}
string toString() const
{
import std.conv : to;
import std.array;
import std.stdio;
Appender!string result;
string[Size][Size] stringMatrix;
uint longest;
foreach (i; Iota!(0u, Size))
{
foreach (j; Iota!(0u, Size))
{
stringMatrix[i][j] = to!string(this[i, j]);
longest = stringMatrix[i][j].length > longest ? stringMatrix[i][j].length : longest;
}
}
foreach (i; Iota!(0u, Size))
{
foreach (j; Iota!(0u, Size))
{
result ~= stringMatrix[i][j] ~ replicate(" ",
longest - stringMatrix[i][j].length) ~ (j >= Size - 1 ? "" : ",");
}
result ~= '\n';
}
return result.data;
}
enum isMatrixType(T) = isImplicitlyConvertible!(T, Type);
}
enum isMatrix(T) = isInstanceOf!(Matrix, T); //This fixes a wierd bug
|
D
|
/***********************************************************************\
* dlgs.d *
* *
* Windows API header module *
* *
* Translated from MinGW Windows headers *
* by Stewart Gordon *
* *
* Placed into public domain *
\***********************************************************************/
module win32.dlgs;
private import win32.windef;
enum : ushort {
FILEOPENORD = 1536,
MULTIFILEOPENORD = 1537,
PRINTDLGORD = 1538,
PRNSETUPDLGORD = 1539,
FINDDLGORD = 1540,
REPLACEDLGORD = 1541,
FONTDLGORD = 1542,
FORMATDLGORD31 = 1543,
FORMATDLGORD30 = 1544,
PAGESETUPDLGORD = 1546
}
enum : int {
ctlFirst = 0x400,
ctlLast = 0x4ff,
chx1 = 0x410,
chx2 = 0x411,
chx3 = 0x412,
chx4 = 0x413,
chx5 = 0x414,
chx6 = 0x415,
chx7 = 0x416,
chx8 = 0x417,
chx9 = 0x418,
chx10 = 0x419,
chx11 = 0x41a,
chx12 = 0x41b,
chx13 = 0x41c,
chx14 = 0x41d,
chx15 = 0x41e,
chx16 = 0x41f,
cmb1 = 0x470,
cmb2 = 0x471,
cmb3 = 0x472,
cmb4 = 0x473,
cmb5 = 0x474,
cmb6 = 0x475,
cmb7 = 0x476,
cmb8 = 0x477,
cmb9 = 0x478,
cmb10 = 0x479,
cmb11 = 0x47a,
cmb12 = 0x47b,
cmb13 = 0x47c,
cmb14 = 0x47d,
cmb15 = 0x47e,
cmb16 = 0x47f,
edt1 = 0x480,
edt2 = 0x481,
edt3 = 0x482,
edt4 = 0x483,
edt5 = 0x484,
edt6 = 0x485,
edt7 = 0x486,
edt8 = 0x487,
edt9 = 0x488,
edt10 = 0x489,
edt11 = 0x48a,
edt12 = 0x48b,
edt13 = 0x48c,
edt14 = 0x48d,
edt15 = 0x48e,
edt16 = 0x48f,
frm1 = 0x434,
frm2 = 0x435,
frm3 = 0x436,
frm4 = 0x437,
grp1 = 0x430,
grp2 = 0x431,
grp3 = 0x432,
grp4 = 0x433,
ico1 = 0x43c,
ico2 = 0x43d,
ico3 = 0x43e,
ico4 = 0x43f,
lst1 = 0x460,
lst2 = 0x461,
lst3 = 0x462,
lst4 = 0x463,
lst5 = 0x464,
lst6 = 0x465,
lst7 = 0x466,
lst8 = 0x467,
lst9 = 0x468,
lst10 = 0x469,
lst11 = 0x46a,
lst12 = 0x46b,
lst13 = 0x46c,
lst14 = 0x46d,
lst15 = 0x46e,
lst16 = 0x46f,
psh1 = 0x400,
psh2 = 0x401,
psh3 = 0x402,
psh4 = 0x403,
psh5 = 0x404,
psh6 = 0x405,
psh7 = 0x406,
psh8 = 0x407,
psh9 = 0x408,
psh10 = 0x409,
psh11 = 0x40a,
psh12 = 0x40b,
psh13 = 0x40c,
psh14 = 0x40d,
psh15 = 0x40e,
pshHelp = 0x40e,
psh16 = 0x40f,
rad1 = 0x420,
rad2 = 0x421,
rad3 = 0x422,
rad4 = 0x423,
rad5 = 0x424,
rad6 = 0x425,
rad7 = 0x426,
rad8 = 0x427,
rad9 = 0x428,
rad10 = 0x429,
rad11 = 0x42a,
rad12 = 0x42b,
rad13 = 0x42c,
rad14 = 0x42d,
rad15 = 0x42e,
rad16 = 0x42f,
rct1 = 0x438,
rct2 = 0x439,
rct3 = 0x43a,
rct4 = 0x43b,
scr1 = 0x490,
scr2 = 0x491,
scr3 = 0x492,
scr4 = 0x493,
scr5 = 0x494,
scr6 = 0x495,
scr7 = 0x496,
scr8 = 0x497,
stc1 = 0x440,
stc2 = 0x441,
stc3 = 0x442,
stc4 = 0x443,
stc5 = 0x444,
stc6 = 0x445,
stc7 = 0x446,
stc8 = 0x447,
stc9 = 0x448,
stc10 = 0x449,
stc11 = 0x44a,
stc12 = 0x44b,
stc13 = 0x44c,
stc14 = 0x44d,
stc15 = 0x44e,
stc16 = 0x44f,
stc17 = 0x450,
stc18 = 0x451,
stc19 = 0x452,
stc20 = 0x453,
stc21 = 0x454,
stc22 = 0x455,
stc23 = 0x456,
stc24 = 0x457,
stc25 = 0x458,
stc26 = 0x459,
stc27 = 0x45a,
stc28 = 0x45b,
stc29 = 0x45c,
stc30 = 0x45d,
stc31 = 0x45e,
stc32 = 0x45f
}
struct CRGB {
ubyte bRed;
ubyte bGreen;
ubyte bBlue;
ubyte bExtra;
}
|
D
|
/Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/build/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/MainScheduler.o : /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Deprecated.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Cancelable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/ObservableType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/ObserverType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Reactive.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Date+Dispatch.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/Platform/RecursiveLock.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/CompactMap.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Errors.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/Platform/AtomicInt.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Event.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/First.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Rx.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/Platform/Platform.Linux.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.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/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/build/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.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.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/build/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/MainScheduler~partial.swiftmodule : /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Deprecated.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Cancelable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/ObservableType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/ObserverType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Reactive.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Date+Dispatch.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/Platform/RecursiveLock.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/CompactMap.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Errors.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/Platform/AtomicInt.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Event.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/First.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Rx.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/Platform/Platform.Linux.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.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/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/build/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.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.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/build/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/MainScheduler~partial.swiftdoc : /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Deprecated.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Cancelable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/ObservableType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/ObserverType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Reactive.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Date+Dispatch.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/Platform/RecursiveLock.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/CompactMap.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Errors.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/Platform/AtomicInt.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Event.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/First.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Rx.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/Platform/Platform.Linux.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.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/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/ameeradamsika/Desktop/IOS/Demo/LoginWithRxSwift/build/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.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.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
D
|
//************************************
// Shadowbeast-Skeleton PROTOTYPE
//************************************
PROTOTYPE Mst_Default_Shadowbeast_Skeleton(C_Npc)
{
//----- Monster ----
name = "Schattenläuferskelett";
guild = GIL_SHADOWBEAST_SKELETON;
aivar[AIV_MM_REAL_ID] = ID_SHADOWBEAST_SKELETON;
level = 51;
//----- Attribute ----
attribute [ATR_STRENGTH] = 580;
attribute [ATR_DEXTERITY] = 580;
attribute [ATR_HITPOINTS_MAX] = 1130;
attribute [ATR_HITPOINTS] = 1130;
attribute [ATR_MANA_MAX] = 0;
attribute [ATR_MANA] = 0;
//----- Protection ----
protection [PROT_BLUNT] = 585;
protection [PROT_EDGE] = 585;
protection [PROT_POINT] = 585;
protection [PROT_FIRE] = 585;
protection [PROT_FLY] = 585;
protection [PROT_MAGIC] = 555;
//----- Damage Types ----
damagetype = DAM_EDGE;
// damage [DAM_INDEX_BLUNT] = 0;
// damage [DAM_INDEX_EDGE] = 0;
// damage [DAM_INDEX_POINT] = 0;
// damage [DAM_INDEX_FIRE] = 0;
// damage [DAM_INDEX_FLY] = 0;
// damage [DAM_INDEX_MAGIC] = 0;
//----- Kampf-Taktik ----
fight_tactic = FAI_SHADOWBEAST;
//----- Sense & Ranges ----
senses = SENSE_HEAR | SENSE_SEE | SENSE_SMELL;
senses_range = PERC_DIST_MONSTER_ACTIVE_MAX;
aivar[AIV_MM_FollowTime] = FOLLOWTIME_MEDIUM;
aivar[AIV_MM_FollowInWater] = FALSE;
//----- Daily Routine ----
start_aistate = ZS_MM_AllScheduler;
aivar[AIV_MM_RoamStart] = OnlyRoutine;
};
//************
// Visuals
//************
func void B_SetVisuals_Shadowbeast_Skeleton()
{
Mdl_SetVisual (self, "Shadow.mds");
// Body-Mesh Body-Tex Skin-Color Head-MMS Head-Tex Teeth-Tex ARMOR
Mdl_SetVisualBody (self, "Shadowbeast_Skeleton_Body", DEFAULT, DEFAULT, "", DEFAULT, DEFAULT, -1);
};
//*****************************
// Shadowbeast_Skeleton
//*****************************
INSTANCE Shadowbeast_Skeleton (Mst_Default_Shadowbeast_Skeleton)
{
B_SetVisuals_Shadowbeast_Skeleton();
Npc_SetToFistMode(self);
};
INSTANCE Shadowbeast_Skeleton_01 (Mst_Default_Shadowbeast_Skeleton)
{
B_SetVisuals_Shadowbeast_Skeleton();
Npc_SetToFistMode(self);
B_SetSchwierigkeit(self);
};
INSTANCE Shadowbeast_Skeleton_02 (Mst_Default_Shadowbeast_Skeleton)
{
B_SetVisuals_Shadowbeast_Skeleton();
Npc_SetToFistMode(self);
B_SetSchwierigkeit(self);
};
INSTANCE Shadowbeast_Skeleton_03 (Mst_Default_Shadowbeast_Skeleton)
{
B_SetVisuals_Shadowbeast_Skeleton();
Npc_SetToFistMode(self);
B_SetSchwierigkeit(self);
};
INSTANCE Shadowbeast_Skeleton_04 (Mst_Default_Shadowbeast_Skeleton)
{
B_SetVisuals_Shadowbeast_Skeleton();
Npc_SetToFistMode(self);
B_SetSchwierigkeit(self);
};
INSTANCE Shadowbeast_Skeleton_05 (Mst_Default_Shadowbeast_Skeleton)
{
B_SetVisuals_Shadowbeast_Skeleton();
Npc_SetToFistMode(self);
B_SetSchwierigkeit(self);
};
INSTANCE Shadowbeast_Skeleton_06 (Mst_Default_Shadowbeast_Skeleton)
{
B_SetVisuals_Shadowbeast_Skeleton();
Npc_SetToFistMode(self);
B_SetSchwierigkeit(self);
};
INSTANCE Shadowbeast_Skeleton_07 (Mst_Default_Shadowbeast_Skeleton)
{
B_SetVisuals_Shadowbeast_Skeleton();
Npc_SetToFistMode(self);
B_SetSchwierigkeit(self);
};
INSTANCE Shadowbeast_Skeleton_08 (Mst_Default_Shadowbeast_Skeleton)
{
B_SetVisuals_Shadowbeast_Skeleton();
Npc_SetToFistMode(self);
B_SetSchwierigkeit(self);
};
INSTANCE Shadowbeast_Skeleton_09 (Mst_Default_Shadowbeast_Skeleton)
{
B_SetVisuals_Shadowbeast_Skeleton();
Npc_SetToFistMode(self);
B_SetSchwierigkeit(self);
};
INSTANCE Shadowbeast_Skeleton_10 (Mst_Default_Shadowbeast_Skeleton)
{
B_SetVisuals_Shadowbeast_Skeleton();
Npc_SetToFistMode(self);
B_SetSchwierigkeit(self);
};
//*****************************
// Shadowbeast_Skeleton_Angar
//*****************************
INSTANCE Shadowbeast_Skeleton_Angar (Mst_Default_Shadowbeast_Skeleton)
{
B_SetVisuals_Shadowbeast_Skeleton();
Npc_SetToFistMode(self);
};
|
D
|
/**
* Copyright: Copyright (c) 2010-2011 Jacob Carlborg. All rights reserved.
* Authors: Jacob Carlborg
* Version: Initial created: Nov 5, 2010
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0)
*/
module tests.all;
import orange.test.UnitTester;
/*
* The tests that test for XML with attributes are not completely
* reliable, due to the XML module in Phobos saves the XML
* attributes in an associative array.
*/
void main ()
{
run;
}
|
D
|
# DO NOT DELETE
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/Riostream.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RConfig.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RVersion.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/work/z/zdemirag/work/Diphoton/Oct24/exost/workdir/Nspectra/.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RooAbsReal.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RooAbsArg.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/TNamed.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/TObject.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/Rtypes.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/DllImport.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/Rtypeinfo.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/snprintf.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/strlcpy.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/TGenericClassInfo.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/TSchemaHelper.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/TStorage.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/TVersionCheck.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/Riosfwd.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/TBuffer.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/TString.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/TMathBase.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/THashList.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/TList.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/TSeqCollection.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/TCollection.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/TIterator.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/TRefArray.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/TProcessID.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/TObjArray.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RooPrintable.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RooRefCountList.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RooLinkedList.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RooLinkedListElem.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RooHashTable.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RooAbsCache.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RooLinkedListIter.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RooNameReg.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/TClass.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/TDictionary.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/Property.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/TObjString.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RooCmdArg.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RooCurve.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/TGraph.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/TAttLine.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/TAttFill.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/TAttMarker.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/TVectorFfwd.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/TVectorDfwd.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/TFitResultPtr.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RooPlotable.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/TMatrixDfwd.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RooArgSet.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RooAbsCollection.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RooErrorHandler.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RooArgList.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RooGlobalFunc.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RooRealProxy.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RooArgProxy.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RooAbsProxy.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RooAbsRealLValue.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RooNumber.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RooAbsLValue.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RooAbsBinning.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RooCategoryProxy.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RooAbsCategory.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RooCatType.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RooAbsCategoryLValue.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/TMath.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/TError.h
.wscode.4585017a-8463-11e4-9717-fa358a89beef.myWS/RooCFAuto007Func_cxx.so: /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/cintdictversion.h /afs/cern.ch/sw/lcg/app/releases/ROOT/5.34.05/x86_64-slc5-gcc43-opt/root/include/RVersion.h
RooCFAuto007Func_cxx__ROOTBUILDVERSION= 5.34/05
|
D
|
/***********************************************************************\
* rpcndr.d *
* *
* Windows API header module *
* *
* Translated from MinGW Windows headers *
* *
* Placed into public domain *
\***********************************************************************/
module win32.rpcndr;
version(Windows):
pragma(lib, "rpcrt4");
/* Translation notes:
RPC_CLIENT_ALLOC*, RPC_CLIENT_FREE* were replaced with PRPC_CLIENT_ALLOC, PRPC_CLIENT_FREE
*/
// TODO: Bitfields in MIDL_STUB_MESSAGE.
// Macros need to be converted.
const __RPCNDR_H_VERSION__= 450;
import win32.rpcnsip;
private import win32.rpc, win32.rpcdce, win32.unknwn, win32.windef;
private import win32.objidl; // for IRpcChannelBuffer, IRpcStubBuffer
private import win32.basetyps;
extern (Windows):
const uint NDR_CHAR_REP_MASK = 0xF,
NDR_INT_REP_MASK = 0xF0,
NDR_FLOAT_REP_MASK = 0xFF00,
NDR_LITTLE_ENDIAN = 0x10,
NDR_BIG_ENDIAN = 0,
NDR_IEEE_FLOAT = 0,
NDR_VAX_FLOAT = 0x100,
NDR_ASCII_CHAR = 0,
NDR_EBCDIC_CHAR = 1,
NDR_LOCAL_DATA_REPRESENTATION = 0x10,
NDR_LOCAL_ENDIAN = NDR_LITTLE_ENDIAN;
alias MIDL_user_allocate midl_user_allocate;
alias MIDL_user_free midl_user_free;
alias long hyper;
alias ulong MIDL_uhyper;
alias char small;
const cbNDRContext=20;
//MACRO #define NDRSContextValue(hContext) (&(hContext)->userContext)
//MACRO #define byte_from_ndr(source, target) { *(target) = *(*(char**)&(source)->Buffer)++; }
//MACRO #define byte_array_from_ndr(Source, LowerIndex, UpperIndex, Target) { NDRcopy ((((char *)(Target))+(LowerIndex)), (Source)->Buffer, (unsigned int)((UpperIndex)-(LowerIndex))); *(unsigned long *)&(Source)->Buffer += ((UpperIndex)-(LowerIndex)); }
//MACRO #define boolean_from_ndr(source, target) { *(target) = *(*(char**)&(source)->Buffer)++; }
//MACRO #define boolean_array_from_ndr(Source, LowerIndex, UpperIndex, Target) { NDRcopy ((((char *)(Target))+(LowerIndex)), (Source)->Buffer, (unsigned int)((UpperIndex)-(LowerIndex))); *(unsigned long *)&(Source)->Buffer += ((UpperIndex)-(LowerIndex)); }
//MACRO #define small_from_ndr(source, target) { *(target) = *(*(char**)&(source)->Buffer)++; }
//MACRO #define small_from_ndr_temp(source, target, format) { *(target) = *(*(char**)(source))++; }
//MACRO #define small_array_from_ndr(Source, LowerIndex, UpperIndex, Target) { NDRcopy ((((char *)(Target))+(LowerIndex)), (Source)->Buffer, (unsigned int)((UpperIndex)-(LowerIndex))); *(unsigned long *)&(Source)->Buffer += ((UpperIndex)-(LowerIndex)); }
//MACRO #define MIDL_ascii_strlen(string) strlen(string)
//MACRO #define MIDL_ascii_strcpy(target,source) strcpy(target,source)
//MACRO #define MIDL_memset(s,c,n) memset(s,c,n)
//MACRO #define _midl_ma1( p, cast ) *(*( cast **)&p)++
//MACRO #define _midl_ma2( p, cast ) *(*( cast **)&p)++
//MACRO #define _midl_ma4( p, cast ) *(*( cast **)&p)++
//MACRO #define _midl_ma8( p, cast ) *(*( cast **)&p)++
//MACRO #define _midl_unma1( p, cast ) *(( cast *)p)++
//MACRO #define _midl_unma2( p, cast ) *(( cast *)p)++
//MACRO #define _midl_unma3( p, cast ) *(( cast *)p)++
//MACRO #define _midl_unma4( p, cast ) *(( cast *)p)++
//MACRO #define _midl_fa2( p ) (p = (RPC_BUFPTR )((unsigned long)(p+1) & 0xfffffffe))
//MACRO #define _midl_fa4( p ) (p = (RPC_BUFPTR )((unsigned long)(p+3) & 0xfffffffc))
//MACRO #define _midl_fa8( p ) (p = (RPC_BUFPTR )((unsigned long)(p+7) & 0xfffffff8))
//MACRO #define _midl_addp( p, n ) (p += n)
//MACRO #define _midl_marsh_lhs( p, cast ) *(*( cast **)&p)++
//MACRO #define _midl_marsh_up( mp, p ) *(*(unsigned long **)&mp)++ = (unsigned long)p
//MACRO #define _midl_advmp( mp ) *(*(unsigned long **)&mp)++
//MACRO #define _midl_unmarsh_up( p ) (*(*(unsigned long **)&p)++)
//MACRO #define NdrMarshConfStringHdr( p, s, l ) (_midl_ma4( p, unsigned long) = s, _midl_ma4( p, unsigned long) = 0, _midl_ma4( p, unsigned long) = l)
//MACRO #define NdrUnMarshConfStringHdr(p, s, l) ((s=_midl_unma4(p,unsigned long), (_midl_addp(p,4)), (l=_midl_unma4(p,unsigned long))
//MACRO #define NdrMarshCCtxtHdl(pc,p) (NDRCContextMarshall( (NDR_CCONTEXT)pc, p ),p+20)
//MACRO #define NdrUnMarshCCtxtHdl(pc,p,h,drep) (NDRCContextUnmarshall((NDR_CONTEXT)pc,h,p,drep), p+20)
//MACRO #define NdrUnMarshSCtxtHdl(pc, p,drep) (pc = NdrSContextUnMarshall(p,drep ))
//MACRO #define NdrMarshSCtxtHdl(pc,p,rd) (NdrSContextMarshall((NDR_SCONTEXT)pc,p, (NDR_RUNDOWN)rd)
//MACRO #define NdrFieldOffset(s,f) (long)(& (((s *)0)->f))
//MACRO #define NdrFieldPad(s,f,p,t) (NdrFieldOffset(s,f) - NdrFieldOffset(s,p) - sizeof(t))
//MACRO #define NdrFcShort(s) (unsigned char)(s & 0xff), (unsigned char)(s >> 8)
//MACRO #define NdrFcLong(s) (unsigned char)(s & 0xff), (unsigned char)((s & 0x0000ff00) >> 8), (unsigned char)((s & 0x00ff0000) >> 16), (unsigned char)(s >> 24)
alias void * NDR_CCONTEXT;
struct tagNDR_SCONTEXT {
void*[2] pad;
void* userContext;
}
alias tagNDR_SCONTEXT * NDR_SCONTEXT;
struct SCONTEXT_QUEUE {
uint NumberOfObjects;
NDR_SCONTEXT *ArrayOfObjects;
}
alias SCONTEXT_QUEUE * PSCONTEXT_QUEUE;
struct _MIDL_STUB_MESSAGE;
struct _MIDL_STUB_DESC;
struct _FULL_PTR_XLAT_TABLES;
alias ubyte *RPC_BUFPTR;
alias uint RPC_LENGTH;
alias const(char)* PFORMAT_STRING;
struct ARRAY_INFO {
int Dimension;
uint *BufferConformanceMark;
uint *BufferVarianceMark;
uint *MaxCountArray;
uint *OffsetArray;
uint *ActualCountArray;
}
alias ARRAY_INFO * PARRAY_INFO;
RPC_BINDING_HANDLE NDRCContextBinding(NDR_CCONTEXT);
void NDRCContextMarshall(NDR_CCONTEXT,void*);
void NDRCContextUnmarshall(NDR_CCONTEXT*,RPC_BINDING_HANDLE,void*,uint);
void NDRSContextMarshall(NDR_SCONTEXT,void*,NDR_RUNDOWN);
NDR_SCONTEXT NDRSContextUnmarshall(void*pBuff,uint);
void RpcSsDestroyClientContext(void**);
void NDRcopy(void*,void*,uint);
uint MIDL_wchar_strlen(wchar *);
void MIDL_wchar_strcpy(void*,wchar *);
void char_from_ndr(PRPC_MESSAGE,ubyte*);
void char_array_from_ndr(PRPC_MESSAGE,uint,uint,ubyte*);
void short_from_ndr(PRPC_MESSAGE,ushort*);
void short_array_from_ndr(PRPC_MESSAGE,uint,uint,ushort*);
void short_from_ndr_temp(ubyte**,ushort*,uint);
void int_from_ndr(PRPC_MESSAGE,uint*);
void int_array_from_ndr(PRPC_MESSAGE,uint,uint,uint*);
void int_from_ndr_temp(ubyte**,uint*,uint);
void enum_from_ndr(PRPC_MESSAGE,uint*);
void float_from_ndr(PRPC_MESSAGE,void*);
void float_array_from_ndr(PRPC_MESSAGE,uint,uint,void*);
void double_from_ndr(PRPC_MESSAGE,void*);
void double_array_from_ndr(PRPC_MESSAGE,uint,uint,void*);
void hyper_from_ndr(PRPC_MESSAGE,hyper*);
void hyper_array_from_ndr(PRPC_MESSAGE,uint,uint,hyper*);
void hyper_from_ndr_temp(ubyte**,hyper*,uint);
void data_from_ndr(PRPC_MESSAGE,void*,char*,ubyte);
void data_into_ndr(void*,PRPC_MESSAGE,char*,ubyte);
void tree_into_ndr(void*,PRPC_MESSAGE,char*,ubyte);
void data_size_ndr(void*,PRPC_MESSAGE,char*,ubyte);
void tree_size_ndr(void*,PRPC_MESSAGE,char*,ubyte);
void tree_peek_ndr(PRPC_MESSAGE,ubyte**,char*,ubyte);
void * midl_allocate(int);
align(4):
struct MIDL_STUB_MESSAGE {
PRPC_MESSAGE RpcMsg;
ubyte *Buffer;
ubyte *BufferStart;
ubyte *BufferEnd;
ubyte *BufferMark;
uint BufferLength;
uint MemorySize;
ubyte *Memory;
int IsClient;
int ReuseBuffer;
ubyte *AllocAllNodesMemory;
ubyte *AllocAllNodesMemoryEnd;
int IgnoreEmbeddedPointers;
ubyte *PointerBufferMark;
ubyte fBufferValid;
ubyte Unused;
uint MaxCount;
uint Offset;
uint ActualCount;
void* function (uint) pfnAllocate;
void function (void*) pfnFree;
ubyte * StackTop;
ubyte * pPresentedType;
ubyte * pTransmitType;
handle_t SavedHandle;
const(_MIDL_STUB_DESC)* StubDesc;
_FULL_PTR_XLAT_TABLES *FullPtrXlatTables;
uint FullPtrRefId;
int fCheckBounds;
// FIXME:
byte bit_fields_for_D; // FIXME: Bitfields
// int fInDontFree :1;
// int fDontCallFreeInst :1;
// int fInOnlyParam :1;
// int fHasReturn :1;
uint dwDestContext;
void* pvDestContext;
NDR_SCONTEXT * SavedContextHandles;
int ParamNumber;
IRpcChannelBuffer pRpcChannelBuffer;
PARRAY_INFO pArrayInfo;
uint * SizePtrCountArray;
uint * SizePtrOffsetArray;
uint * SizePtrLengthArray;
void* pArgQueue;
uint dwStubPhase;
uint[5] w2kReserved;
}
alias MIDL_STUB_MESSAGE * PMIDL_STUB_MESSAGE;
extern (Windows) {
alias void* function (void*) GENERIC_BINDING_ROUTINE;
alias void function (void*,ubyte*) GENERIC_UNBIND_ROUTINE;
alias uint function (uint *,uint,void *) USER_MARSHAL_SIZING_ROUTINE;
alias ubyte * function (uint *,ubyte *,void *) USER_MARSHAL_MARSHALLING_ROUTINE;
alias ubyte * function (uint *,ubyte *,void *) USER_MARSHAL_UNMARSHALLING_ROUTINE;
alias void function (uint *,void *) USER_MARSHAL_FREEING_ROUTINE;
alias void function () NDR_NOTIFY_ROUTINE;
}
align:
struct GENERIC_BINDING_ROUTINE_PAIR {
GENERIC_BINDING_ROUTINE pfnBind;
GENERIC_UNBIND_ROUTINE pfnUnbind;
}
alias GENERIC_BINDING_ROUTINE_PAIR * PGENERIC_BINDING_ROUTINE_PAIR;
struct GENERIC_BINDING_INFO {
void *pObj;
uint Size;
GENERIC_BINDING_ROUTINE pfnBind;
GENERIC_UNBIND_ROUTINE pfnUnbind;
}
alias GENERIC_BINDING_INFO * PGENERIC_BINDING_INFO;
struct XMIT_ROUTINE_QUINTUPLE {
XMIT_HELPER_ROUTINE pfnTranslateToXmit;
XMIT_HELPER_ROUTINE pfnTranslateFromXmit;
XMIT_HELPER_ROUTINE pfnFreeXmit;
XMIT_HELPER_ROUTINE pfnFreeInst;
}
alias XMIT_ROUTINE_QUINTUPLE * PXMIT_ROUTINE_QUINTUPLE;
struct MALLOC_FREE_STRUCT {
void* function (uint) pfnAllocate;
void function (void*) pfnFree;
}
struct COMM_FAULT_OFFSETS {
short CommOffset;
short FaultOffset;
}
struct USER_MARSHAL_ROUTINE_QUADRUPLE {
USER_MARSHAL_SIZING_ROUTINE pfnBufferSize;
USER_MARSHAL_MARSHALLING_ROUTINE pfnMarshall;
USER_MARSHAL_UNMARSHALLING_ROUTINE pfnUnmarshall;
USER_MARSHAL_FREEING_ROUTINE pfnFree;
}
enum IDL_CS_CONVERT {
IDL_CS_NO_CONVERT,
IDL_CS_IN_PLACE_CONVERT,
IDL_CS_NEW_BUFFER_CONVERT
}
struct NDR_CS_SIZE_CONVERT_ROUTINES {
CS_TYPE_NET_SIZE_ROUTINE pfnNetSize;
CS_TYPE_TO_NETCS_ROUTINE pfnToNetCs;
CS_TYPE_LOCAL_SIZE_ROUTINE pfnLocalSize;
CS_TYPE_FROM_NETCS_ROUTINE pfnFromNetCs;
}
struct NDR_CS_ROUTINES {
NDR_CS_SIZE_CONVERT_ROUTINES *pSizeConvertRoutines;
CS_TAG_GETTING_ROUTINE *pTagGettingRoutines;
}
struct MIDL_STUB_DESC {
void* RpcInterfaceInformation;
void* function(uint) pfnAllocate;
void function (void*) pfnFree;
union _IMPLICIT_HANDLE_INFO {
handle_t *pAutoHandle;
handle_t *pPrimitiveHandle;
PGENERIC_BINDING_INFO pGenericBindingInfo;
}
_IMPLICIT_HANDLE_INFO IMPLICIT_HANDLE_INFO;
const(NDR_RUNDOWN)* apfnNdrRundownRoutines;
const(GENERIC_BINDING_ROUTINE_PAIR)* aGenericBindingRoutinePairs;
const(EXPR_EVAL)* apfnExprEval;
const(XMIT_ROUTINE_QUINTUPLE)* aXmitQuintuple;
const(char)* *pFormatTypes;
int fCheckBounds;
uint Version;
MALLOC_FREE_STRUCT *pMallocFreeStruct;
int MIDLVersion;
const(COMM_FAULT_OFFSETS)* CommFaultOffsets;
const(USER_MARSHAL_ROUTINE_QUADRUPLE)* aUserMarshalQuadruple;
const(NDR_NOTIFY_ROUTINE)* NotifyRoutineTable;
ULONG_PTR mFlags;
const(NDR_CS_ROUTINES)* CsRoutineTables;
void *Reserved4;
ULONG_PTR Reserved5;
}
alias const(MIDL_STUB_DESC)* PMIDL_STUB_DESC;
alias void * PMIDL_XMIT_TYPE;
struct MIDL_FORMAT_STRING {
short Pad;
ubyte[1] Format;
}
struct MIDL_SERVER_INFO {
PMIDL_STUB_DESC pStubDesc;
const(SERVER_ROUTINE)* DispatchTable;
PFORMAT_STRING ProcString;
const(ushort)* FmtStringOffset;
const(STUB_THUNK)* ThunkTable;
}
alias MIDL_SERVER_INFO * PMIDL_SERVER_INFO;
struct MIDL_STUBLESS_PROXY_INFO {
PMIDL_STUB_DESC pStubDesc;
PFORMAT_STRING ProcFormatString;
const(ushort)* FormatStringOffset;
}
alias MIDL_STUBLESS_PROXY_INFO *PMIDL_STUBLESS_PROXY_INFO;
union CLIENT_CALL_RETURN {
void *Pointer;
int Simple;
}
enum XLAT_SIDE {
XLAT_SERVER = 1,
XLAT_CLIENT
}
struct FULL_PTR_TO_REFID_ELEMENT {
FULL_PTR_TO_REFID_ELEMENT * Next;
void* Pointer;
uint RefId;
ubyte State;
}
alias FULL_PTR_TO_REFID_ELEMENT * PFULL_PTR_TO_REFID_ELEMENT;
struct FULL_PTR_XLAT_TABLES {
struct RefIdToPointer {
void **XlatTable;
ubyte *StateTable;
uint NumberOfEntries;
}
struct PointerToRefId {
PFULL_PTR_TO_REFID_ELEMENT *XlatTable;
uint NumberOfBuckets;
uint HashMask;
}
uint NextRefId;
XLAT_SIDE XlatSide;
}
alias FULL_PTR_XLAT_TABLES * PFULL_PTR_XLAT_TABLES;
enum STUB_PHASE {
STUB_UNMARSHAL,
STUB_CALL_SERVER,
STUB_MARSHAL,
STUB_CALL_SERVER_NO_HRESULT
}
enum PROXY_PHASE {
PROXY_CALCSIZE,
PROXY_GETBUFFER,
PROXY_MARSHAL,
PROXY_SENDRECEIVE,
PROXY_UNMARSHAL
}
alias TypeDef!(void *) RPC_SS_THREAD_HANDLE;
extern (Windows) {
alias void function (void*) NDR_RUNDOWN;
alias void function (_MIDL_STUB_MESSAGE*) EXPR_EVAL;
alias void function(PMIDL_STUB_MESSAGE) XMIT_HELPER_ROUTINE;
alias void function (RPC_BINDING_HANDLE,uint,uint,IDL_CS_CONVERT*,uint*,error_status_t*) CS_TYPE_NET_SIZE_ROUTINE;
alias void function (RPC_BINDING_HANDLE,uint,uint,IDL_CS_CONVERT*,uint*,error_status_t*) CS_TYPE_LOCAL_SIZE_ROUTINE;
alias void function (RPC_BINDING_HANDLE,uint,void*,uint,byte*,uint*,error_status_t*) CS_TYPE_TO_NETCS_ROUTINE;
alias void function (RPC_BINDING_HANDLE,uint,byte*,uint,uint,void*,uint*,error_status_t*) CS_TYPE_FROM_NETCS_ROUTINE;
alias void function (RPC_BINDING_HANDLE,int,uint*,uint*,uint*,error_status_t*) CS_TAG_GETTING_ROUTINE;
//alias void* RPC_CLIENT_ALLOC(uint);
//alias void RPC_CLIENT_FREE(void*);
alias void* function(uint) PRPC_CLIENT_ALLOC;
alias void function(void*) PRPC_CLIENT_FREE;
alias void function (PMIDL_STUB_MESSAGE) STUB_THUNK;
alias int function() SERVER_ROUTINE;
}
void NdrSimpleTypeMarshall(PMIDL_STUB_MESSAGE,ubyte*,ubyte);
ubyte * NdrPointerMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING pFormat);
ubyte * NdrSimpleStructMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
ubyte * NdrConformantStructMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
ubyte * NdrConformantVaryingStructMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
ubyte * NdrHardStructMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
ubyte * NdrComplexStructMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
ubyte * NdrFixedArrayMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
ubyte * NdrConformantArrayMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
ubyte * NdrConformantVaryingArrayMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
ubyte * NdrVaryingArrayMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
ubyte * NdrComplexArrayMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
ubyte * NdrNonConformantStringMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
ubyte * NdrConformantStringMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
ubyte * NdrEncapsulatedUnionMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
ubyte * NdrNonEncapsulatedUnionMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
ubyte * NdrByteCountPointerMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
ubyte * NdrXmitOrRepAsMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
ubyte * NdrInterfacePointerMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrClientContextMarshall(PMIDL_STUB_MESSAGE,NDR_CCONTEXT,int);
void NdrServerContextMarshall(PMIDL_STUB_MESSAGE,NDR_SCONTEXT,NDR_RUNDOWN);
void NdrSimpleTypeUnmarshall(PMIDL_STUB_MESSAGE,ubyte*,ubyte);
ubyte * NdrPointerUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
ubyte * NdrSimpleStructUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
ubyte * NdrConformantStructUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
ubyte * NdrConformantVaryingStructUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
ubyte * NdrHardStructUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
ubyte * NdrComplexStructUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
ubyte * NdrFixedArrayUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
ubyte * NdrConformantArrayUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
ubyte * NdrConformantVaryingArrayUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
ubyte * NdrVaryingArrayUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
ubyte * NdrComplexArrayUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
ubyte * NdrNonConformantStringUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
ubyte * NdrConformantStringUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
ubyte * NdrEncapsulatedUnionUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
ubyte * NdrNonEncapsulatedUnionUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
ubyte * NdrByteCountPointerUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
ubyte * NdrXmitOrRepAsUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
ubyte * NdrInterfacePointerUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
void NdrClientContextUnmarshall(PMIDL_STUB_MESSAGE,NDR_CCONTEXT*,RPC_BINDING_HANDLE);
NDR_SCONTEXT NdrServerContextUnmarshall(PMIDL_STUB_MESSAGE);
void NdrPointerBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrSimpleStructBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrConformantStructBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrConformantVaryingStructBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrHardStructBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrComplexStructBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrFixedArrayBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrConformantArrayBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrConformantVaryingArrayBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrVaryingArrayBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrComplexArrayBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrConformantStringBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrNonConformantStringBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrEncapsulatedUnionBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrNonEncapsulatedUnionBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrByteCountPointerBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrXmitOrRepAsBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrInterfacePointerBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrContextHandleSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
uint NdrPointerMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
uint NdrSimpleStructMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
uint NdrConformantStructMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
uint NdrConformantVaryingStructMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
uint NdrHardStructMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
uint NdrComplexStructMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
uint NdrFixedArrayMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
uint NdrConformantArrayMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
uint NdrConformantVaryingArrayMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
uint NdrVaryingArrayMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
uint NdrComplexArrayMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
uint NdrConformantStringMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
uint NdrNonConformantStringMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
uint NdrEncapsulatedUnionMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
uint NdrNonEncapsulatedUnionMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
uint NdrXmitOrRepAsMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
uint NdrInterfacePointerMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
void NdrPointerFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrSimpleStructFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrConformantStructFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrConformantVaryingStructFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrHardStructFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrComplexStructFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrFixedArrayFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrConformantArrayFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrConformantVaryingArrayFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrVaryingArrayFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrComplexArrayFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrEncapsulatedUnionFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrNonEncapsulatedUnionFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrByteCountPointerFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrXmitOrRepAsFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrInterfacePointerFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
void NdrConvert(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
void NdrClientInitializeNew(PRPC_MESSAGE,PMIDL_STUB_MESSAGE,PMIDL_STUB_DESC,uint);
ubyte * NdrServerInitializeNew(PRPC_MESSAGE,PMIDL_STUB_MESSAGE,PMIDL_STUB_DESC);
void NdrClientInitialize(PRPC_MESSAGE,PMIDL_STUB_MESSAGE,PMIDL_STUB_DESC,uint);
ubyte * NdrServerInitialize(PRPC_MESSAGE,PMIDL_STUB_MESSAGE,PMIDL_STUB_DESC);
ubyte * NdrServerInitializeUnmarshall(PMIDL_STUB_MESSAGE,PMIDL_STUB_DESC,PRPC_MESSAGE);
void NdrServerInitializeMarshall(PRPC_MESSAGE,PMIDL_STUB_MESSAGE);
ubyte * NdrGetBuffer(PMIDL_STUB_MESSAGE,uint,RPC_BINDING_HANDLE);
ubyte * NdrNsGetBuffer(PMIDL_STUB_MESSAGE,uint,RPC_BINDING_HANDLE);
ubyte * NdrSendReceive(PMIDL_STUB_MESSAGE,ubyte*);
ubyte * NdrNsSendReceive(PMIDL_STUB_MESSAGE,ubyte*,RPC_BINDING_HANDLE*);
void NdrFreeBuffer(PMIDL_STUB_MESSAGE);
CLIENT_CALL_RETURN NdrClientCall(PMIDL_STUB_DESC,PFORMAT_STRING,...);
int NdrStubCall(IRpcStubBuffer, IRpcChannelBuffer,PRPC_MESSAGE,uint*);
void NdrServerCall(PRPC_MESSAGE);
int NdrServerUnmarshall(IRpcChannelBuffer, PRPC_MESSAGE,PMIDL_STUB_MESSAGE,PMIDL_STUB_DESC,PFORMAT_STRING,void*);
void NdrServerMarshall(IRpcStubBuffer, IRpcChannelBuffer,PMIDL_STUB_MESSAGE,PFORMAT_STRING);
RPC_STATUS NdrMapCommAndFaultStatus(PMIDL_STUB_MESSAGE,uint*,uint*,RPC_STATUS);
int NdrSH_UPDecision(PMIDL_STUB_MESSAGE,ubyte**,RPC_BUFPTR);
int NdrSH_TLUPDecision(PMIDL_STUB_MESSAGE,ubyte**);
int NdrSH_TLUPDecisionBuffer(PMIDL_STUB_MESSAGE,ubyte**);
int NdrSH_IfAlloc(PMIDL_STUB_MESSAGE,ubyte**,uint);
int NdrSH_IfAllocRef(PMIDL_STUB_MESSAGE,ubyte**,uint);
int NdrSH_IfAllocSet(PMIDL_STUB_MESSAGE,ubyte**,uint);
RPC_BUFPTR NdrSH_IfCopy(PMIDL_STUB_MESSAGE,ubyte**,uint);
RPC_BUFPTR NdrSH_IfAllocCopy(PMIDL_STUB_MESSAGE,ubyte**,uint);
uint NdrSH_Copy(ubyte*,ubyte*,uint);
void NdrSH_IfFree(PMIDL_STUB_MESSAGE,ubyte*);
RPC_BUFPTR NdrSH_StringMarshall(PMIDL_STUB_MESSAGE,ubyte*,uint,int);
RPC_BUFPTR NdrSH_StringUnMarshall(PMIDL_STUB_MESSAGE,ubyte**,int);
void* RpcSsAllocate(uint);
void RpcSsDisableAllocate();
void RpcSsEnableAllocate();
void RpcSsFree(void*);
RPC_SS_THREAD_HANDLE RpcSsGetThreadHandle();
void RpcSsSetClientAllocFree(PRPC_CLIENT_ALLOC,PRPC_CLIENT_FREE);
void RpcSsSetThreadHandle(RPC_SS_THREAD_HANDLE);
void RpcSsSwapClientAllocFree(PRPC_CLIENT_ALLOC,PRPC_CLIENT_FREE,PRPC_CLIENT_ALLOC*,PRPC_CLIENT_FREE*);
void* RpcSmAllocate(uint,RPC_STATUS*);
RPC_STATUS RpcSmClientFree(void*);
RPC_STATUS RpcSmDestroyClientContext(void**);
RPC_STATUS RpcSmDisableAllocate();
RPC_STATUS RpcSmEnableAllocate();
RPC_STATUS RpcSmFree(void*);
RPC_SS_THREAD_HANDLE RpcSmGetThreadHandle(RPC_STATUS*);
RPC_STATUS RpcSmSetClientAllocFree(PRPC_CLIENT_ALLOC,PRPC_CLIENT_FREE);
RPC_STATUS RpcSmSetThreadHandle(RPC_SS_THREAD_HANDLE);
RPC_STATUS RpcSmSwapClientAllocFree(PRPC_CLIENT_ALLOC,PRPC_CLIENT_FREE,PRPC_CLIENT_ALLOC*,PRPC_CLIENT_FREE*);
void NdrRpcSsEnableAllocate(PMIDL_STUB_MESSAGE);
void NdrRpcSsDisableAllocate(PMIDL_STUB_MESSAGE);
void NdrRpcSmSetClientToOsf(PMIDL_STUB_MESSAGE);
void* NdrRpcSmClientAllocate(uint);
void NdrRpcSmClientFree(void*);
void* NdrRpcSsDefaultAllocate(uint);
void NdrRpcSsDefaultFree(void*);
PFULL_PTR_XLAT_TABLES NdrFullPointerXlatInit(uint,XLAT_SIDE);
void NdrFullPointerXlatFree(PFULL_PTR_XLAT_TABLES);
int NdrFullPointerQueryPointer(PFULL_PTR_XLAT_TABLES,void*,ubyte,uint*);
int NdrFullPointerQueryRefId(PFULL_PTR_XLAT_TABLES,uint,ubyte,void**);
void NdrFullPointerInsertRefId(PFULL_PTR_XLAT_TABLES,uint,void*);
int NdrFullPointerFree(PFULL_PTR_XLAT_TABLES,void*);
void* NdrAllocate(PMIDL_STUB_MESSAGE,uint);
void NdrClearOutParameters(PMIDL_STUB_MESSAGE,PFORMAT_STRING,void*);
void* NdrOleAllocate(uint);
void NdrOleFree(void*);
ubyte* NdrUserMarshalMarshall(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
ubyte* NdrUserMarshalUnmarshall(PMIDL_STUB_MESSAGE,ubyte**,PFORMAT_STRING,ubyte);
void NdrUserMarshalBufferSize(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
uint NdrUserMarshalMemorySize(PMIDL_STUB_MESSAGE,PFORMAT_STRING);
void NdrUserMarshalFree(PMIDL_STUB_MESSAGE,ubyte*,PFORMAT_STRING);
|
D
|
import std.stdio, std.algorithm, std.conv, std.array, std.string, std.math, std.typecons, std.numeric, std.container, std.range;
import core.bitop;
void get(Args...)(ref Args args)
{
import std.traits, std.meta, std.typecons;
static if (Args.length == 1) {
alias Arg = Args[0];
static if (isArray!Arg) {
static if (isSomeChar!(ElementType!Arg)) {
args[0] = readln.chomp.to!Arg;
} else {
args[0] = readln.split.to!Arg;
}
} else static if (isTuple!Arg) {
auto input = readln.split;
static foreach (i; 0..Fields!Arg.length) {
args[0][i] = input[i].to!(Fields!Arg[i]);
}
} else {
args[0] = readln.chomp.to!Arg;
}
} else {
auto input = readln.split;
assert(input.length == Args.length);
static foreach (i; 0..Args.length) {
args[i] = input[i].to!(Args[i]);
}
}
}
void get_lines(Args...)(size_t N, ref Args args)
{
import std.traits, std.range;
static foreach (i; 0..Args.length) {
static assert(isArray!(Args[i]));
args[i].length = N;
}
foreach (i; 0..N) {
static if (Args.length == 1) {
get(args[0][i]);
} else {
auto input = readln.split;
static foreach (j; 0..Args.length) {
args[j][i] = input[j].to!(ElementType!(Args[j]));
}
}
}
}
void main()
{
int N; get(N);
int[] AS; get(AS);
alias I = Tuple!(int, "i", int, "a");
auto as = new I[](2^^N);
as[0] = I(0, AS[0]);
auto bs = new I[](2^^N);
bs[0] = I(0, AS[0]);
auto res = new int[](2^^N);
foreach (x; 1..2^^N) {
auto ii = heapify!"a.a < b.a"([I(0, AS[0]), I(x, AS[x])]);
auto memo = [0: true, x: true];
int max_r;
foreach (i; 0..N) if (x & (1<<i)) {
auto y = (x & (~(1<<i)));
max_r = max(max_r, res[y | ((1<<i)-1)]);
auto a = as[y], b = bs[y];
if (a.i !in memo) {
ii.insert(a);
memo[a.i] = true;
}
if (b.i !in memo) {
ii.insert(b);
memo[b.i] = true;
}
}
as[x] = ii.front;
ii.popFront();
bs[x] = ii.front;
res[x] = max(max_r, as[x].a + bs[x].a);
}
writefln!"%(%d\n%)"(res[1..$]);
}
|
D
|
/Users/lukeporupski/Projects/Added_2/build/Added_2.build/Debug-iphonesimulator/Added_2.build/Objects-normal/x86_64/CameraViewController.o : /Users/lukeporupski/Projects/Added_2/Added_2/LFLoginController.swift /Users/lukeporupski/Projects/Added_2/Added_2/EZSwipeController.swift /Users/lukeporupski/Projects/Added_2/Added_2/CIColorExtension.swift /Users/lukeporupski/Projects/Added_2/Added_2/ExpandingMenuButton.swift /Users/lukeporupski/Projects/Added_2/Added_2/AutoCompleteTextFieldConstants.swift /Users/lukeporupski/Projects/Added_2/Added_2/FontAwesomeView.swift /Users/lukeporupski/Projects/Added_2/Added_2/CardCell.swift /Users/lukeporupski/Projects/Added_2/Added_2/SAConfettiView.swift /Users/lukeporupski/Projects/Added_2/Added_2/QRCode.swift /Users/lukeporupski/Projects/Added_2/Added_2/Enum.swift /Users/lukeporupski/Projects/Added_2/Added_2/AutoCompleteTextField.swift /Users/lukeporupski/Projects/Added_2/Added_2/CardView.swift /Users/lukeporupski/Projects/Added_2/Added_2/HistoryViewController.swift /Users/lukeporupski/Projects/Added_2/Added_2/HomeViewController.swift /Users/lukeporupski/Projects/Added_2/Added_2/ScrollViewController.swift /Users/lukeporupski/Projects/Added_2/Added_2/AutoCompleteTextFieldProtocols.swift /Users/lukeporupski/Projects/Added_2/Added_2/UIViewControllerExtension.swift /Users/lukeporupski/Projects/Added_2/Added_2/CIImageExtension.swift /Users/lukeporupski/Projects/Added_2/Added_2/AppDelegate.swift /Users/lukeporupski/Projects/Added_2/Added_2/FontAwesome.swift /Users/lukeporupski/Projects/Added_2/Added_2/CustomFlipTransition.swift /Users/lukeporupski/Projects/Added_2/Added_2/SettingsViewController.swift /Users/lukeporupski/Projects/Added_2/Added_2/UIViewExtension.swift /Users/lukeporupski/Projects/Added_2/Added_2/BackgroundVideo.swift /Users/lukeporupski/Projects/Added_2/Added_2/GuillotineMenuTransitionAnimation.swift /Users/lukeporupski/Projects/Added_2/Added_2/MainViewController.swift /Users/lukeporupski/Projects/Added_2/Added_2/ExpandingMenuItem.swift /Users/lukeporupski/Projects/Added_2/Added_2/CustomCardLayout.swift /Users/lukeporupski/Projects/Added_2/Added_2/CameraViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/lukeporupski/Projects/Added_2/Added_2/Added_2-Bridging-Header.h /Users/lukeporupski/Projects/Added_2/Added_2/StickCollectionViewFlowLayout.h /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/lukeporupski/Projects/Added_2/Added_2/SCPrimerCollectionViewCell.h /Users/lukeporupski/Projects/Added_2/Added_2/SCCornerCollectionViewCell.h /Users/lukeporupski/Projects/Added_2/Added_2/SCCornerViewController.h /Users/lukeporupski/Projects/Added_2/Added_2/SCPrimerViewController.h /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/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Users/lukeporupski/Projects/Added_2/build/Debug-iphonesimulator/BubbleTransition.framework/Modules/BubbleTransition.swiftmodule/x86_64.swiftmodule /Users/lukeporupski/Projects/Added_2/build/Debug-iphonesimulator/BubbleTransition.framework/Headers/BubbleTransition-Swift.h /Users/lukeporupski/Projects/Added_2/build/Debug-iphonesimulator/BubbleTransition.framework/Headers/BubbleTransition-umbrella.h /Users/lukeporupski/Projects/Added_2/build/Debug-iphonesimulator/BubbleTransition.framework/Modules/module.modulemap
/Users/lukeporupski/Projects/Added_2/build/Added_2.build/Debug-iphonesimulator/Added_2.build/Objects-normal/x86_64/CameraViewController~partial.swiftmodule : /Users/lukeporupski/Projects/Added_2/Added_2/LFLoginController.swift /Users/lukeporupski/Projects/Added_2/Added_2/EZSwipeController.swift /Users/lukeporupski/Projects/Added_2/Added_2/CIColorExtension.swift /Users/lukeporupski/Projects/Added_2/Added_2/ExpandingMenuButton.swift /Users/lukeporupski/Projects/Added_2/Added_2/AutoCompleteTextFieldConstants.swift /Users/lukeporupski/Projects/Added_2/Added_2/FontAwesomeView.swift /Users/lukeporupski/Projects/Added_2/Added_2/CardCell.swift /Users/lukeporupski/Projects/Added_2/Added_2/SAConfettiView.swift /Users/lukeporupski/Projects/Added_2/Added_2/QRCode.swift /Users/lukeporupski/Projects/Added_2/Added_2/Enum.swift /Users/lukeporupski/Projects/Added_2/Added_2/AutoCompleteTextField.swift /Users/lukeporupski/Projects/Added_2/Added_2/CardView.swift /Users/lukeporupski/Projects/Added_2/Added_2/HistoryViewController.swift /Users/lukeporupski/Projects/Added_2/Added_2/HomeViewController.swift /Users/lukeporupski/Projects/Added_2/Added_2/ScrollViewController.swift /Users/lukeporupski/Projects/Added_2/Added_2/AutoCompleteTextFieldProtocols.swift /Users/lukeporupski/Projects/Added_2/Added_2/UIViewControllerExtension.swift /Users/lukeporupski/Projects/Added_2/Added_2/CIImageExtension.swift /Users/lukeporupski/Projects/Added_2/Added_2/AppDelegate.swift /Users/lukeporupski/Projects/Added_2/Added_2/FontAwesome.swift /Users/lukeporupski/Projects/Added_2/Added_2/CustomFlipTransition.swift /Users/lukeporupski/Projects/Added_2/Added_2/SettingsViewController.swift /Users/lukeporupski/Projects/Added_2/Added_2/UIViewExtension.swift /Users/lukeporupski/Projects/Added_2/Added_2/BackgroundVideo.swift /Users/lukeporupski/Projects/Added_2/Added_2/GuillotineMenuTransitionAnimation.swift /Users/lukeporupski/Projects/Added_2/Added_2/MainViewController.swift /Users/lukeporupski/Projects/Added_2/Added_2/ExpandingMenuItem.swift /Users/lukeporupski/Projects/Added_2/Added_2/CustomCardLayout.swift /Users/lukeporupski/Projects/Added_2/Added_2/CameraViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/lukeporupski/Projects/Added_2/Added_2/Added_2-Bridging-Header.h /Users/lukeporupski/Projects/Added_2/Added_2/StickCollectionViewFlowLayout.h /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/lukeporupski/Projects/Added_2/Added_2/SCPrimerCollectionViewCell.h /Users/lukeporupski/Projects/Added_2/Added_2/SCCornerCollectionViewCell.h /Users/lukeporupski/Projects/Added_2/Added_2/SCCornerViewController.h /Users/lukeporupski/Projects/Added_2/Added_2/SCPrimerViewController.h /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/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Users/lukeporupski/Projects/Added_2/build/Debug-iphonesimulator/BubbleTransition.framework/Modules/BubbleTransition.swiftmodule/x86_64.swiftmodule /Users/lukeporupski/Projects/Added_2/build/Debug-iphonesimulator/BubbleTransition.framework/Headers/BubbleTransition-Swift.h /Users/lukeporupski/Projects/Added_2/build/Debug-iphonesimulator/BubbleTransition.framework/Headers/BubbleTransition-umbrella.h /Users/lukeporupski/Projects/Added_2/build/Debug-iphonesimulator/BubbleTransition.framework/Modules/module.modulemap
/Users/lukeporupski/Projects/Added_2/build/Added_2.build/Debug-iphonesimulator/Added_2.build/Objects-normal/x86_64/CameraViewController~partial.swiftdoc : /Users/lukeporupski/Projects/Added_2/Added_2/LFLoginController.swift /Users/lukeporupski/Projects/Added_2/Added_2/EZSwipeController.swift /Users/lukeporupski/Projects/Added_2/Added_2/CIColorExtension.swift /Users/lukeporupski/Projects/Added_2/Added_2/ExpandingMenuButton.swift /Users/lukeporupski/Projects/Added_2/Added_2/AutoCompleteTextFieldConstants.swift /Users/lukeporupski/Projects/Added_2/Added_2/FontAwesomeView.swift /Users/lukeporupski/Projects/Added_2/Added_2/CardCell.swift /Users/lukeporupski/Projects/Added_2/Added_2/SAConfettiView.swift /Users/lukeporupski/Projects/Added_2/Added_2/QRCode.swift /Users/lukeporupski/Projects/Added_2/Added_2/Enum.swift /Users/lukeporupski/Projects/Added_2/Added_2/AutoCompleteTextField.swift /Users/lukeporupski/Projects/Added_2/Added_2/CardView.swift /Users/lukeporupski/Projects/Added_2/Added_2/HistoryViewController.swift /Users/lukeporupski/Projects/Added_2/Added_2/HomeViewController.swift /Users/lukeporupski/Projects/Added_2/Added_2/ScrollViewController.swift /Users/lukeporupski/Projects/Added_2/Added_2/AutoCompleteTextFieldProtocols.swift /Users/lukeporupski/Projects/Added_2/Added_2/UIViewControllerExtension.swift /Users/lukeporupski/Projects/Added_2/Added_2/CIImageExtension.swift /Users/lukeporupski/Projects/Added_2/Added_2/AppDelegate.swift /Users/lukeporupski/Projects/Added_2/Added_2/FontAwesome.swift /Users/lukeporupski/Projects/Added_2/Added_2/CustomFlipTransition.swift /Users/lukeporupski/Projects/Added_2/Added_2/SettingsViewController.swift /Users/lukeporupski/Projects/Added_2/Added_2/UIViewExtension.swift /Users/lukeporupski/Projects/Added_2/Added_2/BackgroundVideo.swift /Users/lukeporupski/Projects/Added_2/Added_2/GuillotineMenuTransitionAnimation.swift /Users/lukeporupski/Projects/Added_2/Added_2/MainViewController.swift /Users/lukeporupski/Projects/Added_2/Added_2/ExpandingMenuItem.swift /Users/lukeporupski/Projects/Added_2/Added_2/CustomCardLayout.swift /Users/lukeporupski/Projects/Added_2/Added_2/CameraViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Users/lukeporupski/Projects/Added_2/Added_2/Added_2-Bridging-Header.h /Users/lukeporupski/Projects/Added_2/Added_2/StickCollectionViewFlowLayout.h /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/lukeporupski/Projects/Added_2/Added_2/SCPrimerCollectionViewCell.h /Users/lukeporupski/Projects/Added_2/Added_2/SCCornerCollectionViewCell.h /Users/lukeporupski/Projects/Added_2/Added_2/SCCornerViewController.h /Users/lukeporupski/Projects/Added_2/Added_2/SCPrimerViewController.h /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/AVFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreMedia.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreAudio.swiftmodule /Users/lukeporupski/Projects/Added_2/build/Debug-iphonesimulator/BubbleTransition.framework/Modules/BubbleTransition.swiftmodule/x86_64.swiftmodule /Users/lukeporupski/Projects/Added_2/build/Debug-iphonesimulator/BubbleTransition.framework/Headers/BubbleTransition-Swift.h /Users/lukeporupski/Projects/Added_2/build/Debug-iphonesimulator/BubbleTransition.framework/Headers/BubbleTransition-umbrella.h /Users/lukeporupski/Projects/Added_2/build/Debug-iphonesimulator/BubbleTransition.framework/Modules/module.modulemap
|
D
|
module common.containers.PriorityQueue;
import common.all;
import std.traits : isEqualityComparable, isOrderingComparable;
auto makeHighPriorityQueue(T)() { return new PriorityQueue!(T, true); }
auto makeLowPriorityQueue(T)() { return new PriorityQueue!(T, false); }
/**
* A priority queue implemented using a backing array.
* This makes the assumtion that the size is not likely to get too large since shifting data in an
* array is likely to be faster than using a tree for small to medium sized queues due to cache locality.
*
*/
final class PriorityQueue(T,bool HI) : IQueue!T
if(isOrderingComparable!T && isEqualityComparable!T)
{
private:
Array!T array;
this() {
array = new Array!T;
}
public:
bool empty() { return array.empty; }
int length() { return array.length.as!int; }
/**
* Returns the backing array in:
* High priority queue -> lowest to highest priority order.
* Low priority queue -> highest to lowest priority order.
*/
T[] asArray() { return array[]; }
/**
* Inserts the value in priority order.
*/
PriorityQueue!(T,HI) push(T value) {
insert(value);
return this;
}
/**
* When:
* High priority queue -> Pops the highest priority item.
* Low priority queue -> Pops the lowest priority item.
* Pop() is always a O(1) operation.
*/
T pop() {
throwIf(empty(), "Cannot pop empty queue");
return array.removeAt(array.length-1);
}
uint drain(T[] array) {
todo();
return 0;
}
PriorityQueue!(T,HI) clear() {
array.clear();
return this;
}
private:
void insert(T value) {
if(array.length==0) {
array.add(value);
return;
}
if(array.length==1) {
static if(HI) {
array.insertAt(array.first() < value ? 1 : 0, value);
} else {
array.insertAt(value < array.first() ? 1 : 0, value);
}
return;
}
ulong min = 0;
ulong max = array.length;
while(min<max) {
auto mid = (min+max)>>1;
auto r = array[mid];
if(r==value) {
array.insertAt(mid, value);
return;
}
static if(HI) {
if(r > value) {
max = mid;
} else {
min = mid+1;
}
} else {
if(value > r) {
max = mid;
} else {
min = mid+1;
}
}
}
array.insertAt(min, value);
}
}
|
D
|
// Copyright © 2011, Jakob Bornecrantz. All rights reserved.
// See copyright notice in src/charge/charge.d (GPLv2 only).
/**
* Source file for CommonCore.
*/
module charge.platform.core.common;
import lib.loader;
import lib.al.al;
import lib.al.loader;
import lib.ode.ode;
import lib.ode.loader;
import charge.core;
import charge.sfx.sfx;
import charge.phy.phy;
import charge.sys.logger;
import charge.sys.file;
import charge.sys.resource;
import charge.util.properties;
import charge.platform.homefolder;
class CommonCore : Core
{
protected:
// Not using mixin, because we are pretending to be Core.
static Logger l;
string settingsFile;
Properties p;
/* run time libraries */
Library ode;
Library openal;
Library alut;
/* for sound, should be move to sfx */
ALCdevice* alDevice;
ALCcontext* alContext;
bool odeLoaded; /**< did we load the ODE library */
bool openalLoaded; /**< did we load the OpenAL library */
/* name of libraries to load */
version(Windows)
{
const string[] libODEname = ["ode.dll"];
const string[] libOpenALname = ["OpenAL32.dll"];
const string[] libALUTname = ["alut.dll"];
}
else version(linux)
{
const string[] libODEname = ["libode.so"];
const string[] libOpenALname = ["libopenal.so", "libopenal.so.1"];
const string[] libALUTname = ["libalut.so"];
}
else version(darwin)
{
const string[] libODEname = ["./libode.dylib"];
const string[] libOpenALname = ["OpenAL.framework/OpenAL"];
const string[] libALUTname = ["./libalut.dylib"];
}
protected:
static this()
{
// Pretend to be the Core class when logging.
l = Logger(Core.classinfo);
}
this(coreFlag flags)
{
super(flags);
const phyFlags = coreFlag.PHY | coreFlag.AUTO;
const sfxFlags = coreFlag.SFX | coreFlag.AUTO;
initSettings();
resizeSupported = p.getBool("forceResizeEnable", defaultForceResizeEnable);
// Load libraries
if (flags & phyFlags)
loadPhy();
if (flags & sfxFlags)
loadSfx();
// Init sub system
if (flags & phyFlags)
initPhy(p);
if (flags & sfxFlags)
initSfx(p);
}
void initSubSystem(coreFlag flag)
{
const not = coreFlag.PHY | coreFlag.SFX;
if (flag & ~not)
throw new Exception("Flag not supported");
if (flag == not)
throw new Exception("More then one flag not supported");
if (flag & coreFlag.PHY) {
if (phyLoaded)
return;
flags |= coreFlag.PHY;
loadPhy();
initPhy(p);
if (phyLoaded)
return;
flags &= ~coreFlag.PHY;
throw new Exception("Could not load PHY");
}
if (flag & coreFlag.SFX) {
if (sfxLoaded)
return;
flags |= coreFlag.SFX;
loadSfx();
initSfx(p);
if (sfxLoaded)
return;
flags &= ~coreFlag.SFX;
throw new Exception("Could not load SFX");
}
}
void notLoaded(coreFlag mask, string name)
{
if (flags & mask)
l.fatal("Could not load %s, crashing bye bye!", name);
else
l.info("%s not found, this not an error.", name);
}
Properties properties()
{
return p;
}
/*
*
* Init and close functions
*
*/
void loadPhy()
{
if (odeLoaded)
return;
version(DynamicODE) {
ode = Library.loads(libODEname);
if (ode is null) {
notLoaded(coreFlag.PHY, "ODE");
} else {
loadODE(&ode.symbol);
odeLoaded = true;
}
} else {
odeLoaded = true;
}
}
void loadSfx()
{
if (openalLoaded)
return;
openal = Library.loads(libOpenALname);
alut = Library.loads(libALUTname);
if (!openal) {
notLoaded(coreFlag.SFX, "OpenAL");
} else {
openalLoaded = true;
loadAL(&openal.symbol);
}
if (!alut)
l.info("ALUT not found, this is not an error.");
else
loadALUT(&alut.symbol);
}
void initSettings()
{
settingsFile = chargeConfigFolder ~ "/settings.ini";
p = Properties(settingsFile);
if (p is null) {
l.warn("Failed to load settings useing defaults");
p = new Properties;
} else {
l.info("Settings loaded: %s", settingsFile);
}
p.addIfNotSet("w", defaultWidth);
p.addIfNotSet("h", defaultHeight);
p.addIfNotSet("fullscreen", defaultFullscreen);
p.addIfNotSet("fullscreenAutoSize", defaultFullscreenAutoSize);
p.addIfNotSet("forceResizeEnable", defaultForceResizeEnable);
}
void saveSettings()
{
auto ret = p.save(settingsFile);
if (ret)
l.info("Settings saved: %s", settingsFile);
else
l.error("Failed to save settings file %s", settingsFile);
}
/*
*
* Init and close functions for subsystems
*
*/
void initPhy(Properties p)
{
if (!odeLoaded)
return;
dInitODE2(0);
dAllocateODEDataForThread(dAllocateMaskAll);
phyLoaded = true;
}
void closePhy()
{
if (!phyLoaded)
return;
dCloseODE();
phyLoaded = false;
}
void initSfx(Properties p)
{
if (!openalLoaded)
return;
alDevice = alcOpenDevice(null);
if (alDevice) {
alContext = alcCreateContext(alDevice, null);
alcMakeContextCurrent(alContext);
sfxLoaded = true;
}
}
void closeSfx()
{
if (!openalLoaded)
return;
if (alContext)
alcDestroyContext(alContext);
if (alDevice)
alcCloseDevice(alDevice);
sfxLoaded = false;
}
}
|
D
|
module android.java.java.util.Deque;
public import android.java.java.util.Deque_d_interface;
import arsd.jni : ImportExportImpl;
mixin ImportExportImpl!Deque;
import import5 = android.java.java.util.stream.Stream;
import import1 = android.java.java.lang.Class;
import import4 = android.java.java.util.Spliterator;
import import0 = android.java.java.util.Iterator;
|
D
|
/**
URL parsing routines.
Copyright: © 2012-2017 Sönke Ludwig
License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
Authors: Sönke Ludwig
*/
module vibe.inet.url;
public import vibe.core.path;
import vibe.textfilter.urlencode;
import vibe.utils.string;
import std.array;
import std.conv;
import std.exception;
import std.string;
import std.traits : isInstanceOf;
import std.ascii : isAlpha;
/**
Represents a URL decomposed into its components.
*/
struct URL {
@safe:
private {
string m_schema;
string m_pathString;
string m_host;
ushort m_port;
string m_username;
string m_password;
string m_queryString;
string m_anchor;
}
/// Constructs a new URL object from its components.
this(string schema, string host, ushort port, InetPath path) pure
{
m_schema = schema;
m_host = host;
m_port = port;
version (Have_vibe_core) m_pathString = path.toString();
else m_pathString = urlEncode(path.toString(), "/");
}
/// ditto
this(string schema, InetPath path) pure
{
this(schema, null, 0, path);
}
version (Have_vibe_core) {
/// ditto
this(string schema, string host, ushort port, PosixPath path) pure
{
this(schema, host, port, cast(InetPath)path);
}
/// ditto
this(string schema, PosixPath path) pure
{
this(schema, null, 0, cast(InetPath)path);
}
/// ditto
this(string schema, string host, ushort port, WindowsPath path) pure
{
this(schema, host, port, cast(InetPath)path);
}
/// ditto
this(string schema, WindowsPath path) pure
{
this(schema, null, 0, cast(InetPath)path);
}
/** Constructs a "file:" URL from a native file system path.
Note that the path must be absolute. On Windows, both, paths starting
with a drive letter and UNC paths are supported.
*/
this(WindowsPath path) pure
{
import std.algorithm.iteration : map;
import std.range : chain, only, repeat;
enforce(path.absolute, "Only absolute paths can be converted to a URL.");
// treat UNC paths properly
if (path.startsWith(WindowsPath(`\\`))) {
auto segs = path.bySegment;
segs.popFront();
segs.popFront();
auto host = segs.front.name;
segs.popFront();
this("file", host, 0, InetPath(
only(InetPath.Segment("", '/'))
.chain(segs.map!(s => cast(InetPath.Segment)s))
));
} else this("file", host, 0, cast(InetPath)path);
}
/// ditto
this(PosixPath path) pure
{
enforce(path.absolute, "Only absolute paths can be converted to a URL.");
this("file", null, 0, cast(InetPath)path);
}
}
/** Constructs a URL from its string representation.
TODO: additional validation required (e.g. valid host and user names and port)
*/
this(string url_string)
{
auto str = url_string;
enforce(str.length > 0, "Empty URL.");
if( str[0] != '/' ){
auto idx = str.indexOf(':');
enforce(idx > 0, "No schema in URL:"~str);
m_schema = str[0 .. idx];
enforce(m_schema[0].isAlpha,
"Schema must start with an alphabetical char, found: " ~
m_schema[0]);
str = str[idx+1 .. $];
bool requires_host = false;
if (isDoubleSlashSchema(m_schema)) {
// proto://server/path style
enforce(str.startsWith("//"), "URL must start with proto://...");
requires_host = true;
str = str[2 .. $];
}
auto si = str.indexOf('/');
if( si < 0 ) si = str.length;
auto ai = str[0 .. si].indexOf('@');
sizediff_t hs = 0;
if( ai >= 0 ){
hs = ai+1;
auto ci = str[0 .. ai].indexOf(':');
if( ci >= 0 ){
m_username = str[0 .. ci];
m_password = str[ci+1 .. ai];
} else m_username = str[0 .. ai];
enforce(m_username.length > 0, "Empty user name in URL.");
}
m_host = str[hs .. si];
auto findPort ( string src )
{
auto pi = src.indexOf(':');
if(pi > 0) {
enforce(pi < src.length-1, "Empty port in URL.");
m_port = to!ushort(src[pi+1..$]);
}
return pi;
}
auto ip6 = m_host.indexOf('[');
if (ip6 == 0) { // [ must be first char
auto pe = m_host.indexOf(']');
if (pe > 0) {
findPort(m_host[pe..$]);
m_host = m_host[1 .. pe];
}
}
else {
auto pi = findPort(m_host);
if(pi > 0) {
m_host = m_host[0 .. pi];
}
}
enforce(!requires_host || m_schema == "file" || m_host.length > 0,
"Empty server name in URL.");
str = str[si .. $];
}
this.localURI = str;
}
/// ditto
static URL parse(string url_string)
{
return URL(url_string);
}
/// ditto
static URL fromString(string url_string)
{
return URL(url_string);
}
invariant()
{
assert(isURLEncoded(m_pathString), "Wrong URL encoding of '"~m_pathString~"'");
}
/// The schema/protocol part of the URL
@property string schema() const { return m_schema; }
/// ditto
@property void schema(string v) { m_schema = v; }
/// The url encoded path part of the URL
@property string pathString() const { return m_pathString; }
/// Set the path part of the URL. It should be properly encoded.
@property void pathString(string s)
{
enforce(isURLEncoded(s), "Wrong URL encoding of the path string '"~s~"'");
m_pathString = s;
}
/// The path part of the URL
@property InetPath path() const {
version (Have_vibe_core)
return InetPath(m_pathString);
else
return Path(urlDecode(m_pathString));
}
version (Have_vibe_core) {
/// ditto
@property void path(Path)(Path p)
if (isInstanceOf!(GenericPath, Path))
{
m_pathString = (cast(InetPath)p).toString();
}
} else {
/// ditto
@property void path(Path p)
{
m_pathString = p.toString().urlEncode("/");
}
}
/// The host part of the URL (depends on the schema)
@property string host() const pure { return m_host; }
/// ditto
@property void host(string v) { m_host = v; }
/// The port part of the URL (optional)
@property ushort port() const { return m_port ? m_port : defaultPort(m_schema); }
/// ditto
@property port(ushort v) { m_port = v; }
/// Get the default port for the given schema or 0
static ushort defaultPort(string schema) {
switch(schema){
default:
case "file": return 0;
case "http": return 80;
case "https": return 443;
case "ftp": return 21;
case "spdy": return 443;
case "sftp": return 22;
}
}
/// ditto
ushort defaultPort() const {
return defaultPort(m_schema);
}
/// The user name part of the URL (optional)
@property string username() const { return m_username; }
/// ditto
@property void username(string v) { m_username = v; }
/// The password part of the URL (optional)
@property string password() const { return m_password; }
/// ditto
@property void password(string v) { m_password = v; }
/// The query string part of the URL (optional)
@property string queryString() const { return m_queryString; }
/// ditto
@property void queryString(string v) { m_queryString = v; }
/// The anchor part of the URL (optional)
@property string anchor() const { return m_anchor; }
/// The path part plus query string and anchor
@property string localURI()
const {
auto str = appender!string();
// m_pathString is already encoded
str.put(m_pathString);
if( queryString.length ) {
str.put("?");
str.put(queryString);
}
if( anchor.length ) {
str.put("#");
str.put(anchor);
}
return str.data;
}
/// ditto
@property void localURI(string str)
{
auto ai = str.indexOf('#');
if( ai >= 0 ){
m_anchor = str[ai+1 .. $];
str = str[0 .. ai];
} else m_anchor = null;
auto qi = str.indexOf('?');
if( qi >= 0 ){
m_queryString = str[qi+1 .. $];
str = str[0 .. qi];
} else m_queryString = null;
this.pathString = str;
}
/// The URL to the parent path with query string and anchor stripped.
@property URL parentURL() const {
URL ret;
ret.schema = schema;
ret.host = host;
ret.port = port;
ret.username = username;
ret.password = password;
ret.path = path.parentPath;
return ret;
}
/// Converts this URL object to its string representation.
string toString()
const {
import std.format;
auto dst = appender!string();
dst.put(schema);
dst.put(":");
if (isDoubleSlashSchema(schema))
dst.put("//");
if (m_username.length || m_password.length) {
dst.put(username);
dst.put(':');
dst.put(password);
dst.put('@');
}
import std.algorithm : canFind;
auto ipv6 = host.canFind(":");
if ( ipv6 ) dst.put('[');
dst.put(host);
if ( ipv6 ) dst.put(']');
if( m_port > 0 ) formattedWrite(dst, ":%d", m_port);
dst.put(localURI);
return dst.data;
}
/** Converts a "file" URL back to a native file system path.
*/
NativePath toNativePath()
const {
import std.algorithm.iteration : map;
import std.range : dropOne;
enforce(this.schema == "file", "Only file:// URLs can be converted to a native path.");
version (Windows) {
if (this.host.length) {
version (Have_vibe_core) {
auto p = NativePath(this.path
.bySegment
.dropOne
.map!(s => cast(WindowsPath.Segment)s)
);
} else {
auto p = NativePath(this.path
.bySegment
.dropOne
.array,
false);
}
return NativePath(`\\`~this.host) ~ p;
}
}
return cast(NativePath)this.path;
}
bool startsWith(const URL rhs) const {
if( m_schema != rhs.m_schema ) return false;
if( m_host != rhs.m_host ) return false;
// FIXME: also consider user, port, querystring, anchor etc
version (Have_vibe_core)
return this.path.bySegment.startsWith(rhs.path.bySegment);
else return this.path.startsWith(rhs.path);
}
URL opBinary(string OP, Path)(Path rhs) const if (OP == "~" && isAnyPath!Path) { return URL(m_schema, m_host, m_port, this.path ~ rhs); }
URL opBinary(string OP, Path)(Path.Segment rhs) const if (OP == "~" && isAnyPath!Path) { return URL(m_schema, m_host, m_port, this.path ~ rhs); }
void opOpAssign(string OP, Path)(Path rhs) if (OP == "~" && isAnyPath!Path) { this.path = this.path ~ rhs; }
void opOpAssign(string OP, Path)(Path.Segment rhs) if (OP == "~" && isAnyPath!Path) { this.path = this.path ~ rhs; }
/// Tests two URLs for equality using '=='.
bool opEquals(ref const URL rhs) const {
if( m_schema != rhs.m_schema ) return false;
if( m_host != rhs.m_host ) return false;
if( m_pathString != rhs.m_pathString ) return false;
return true;
}
/// ditto
bool opEquals(const URL other) const { return opEquals(other); }
int opCmp(ref const URL rhs) const {
if( m_schema != rhs.m_schema ) return m_schema.cmp(rhs.m_schema);
if( m_host != rhs.m_host ) return m_host.cmp(rhs.m_host);
if( m_pathString != rhs.m_pathString ) return cmp(m_pathString, rhs.m_pathString);
return true;
}
}
private enum isAnyPath(P) = is(P == InetPath) || is(P == PosixPath) || is(P == WindowsPath);
private bool isDoubleSlashSchema(string schema)
@safe nothrow @nogc {
switch (schema) {
case "ftp", "http", "https", "http+unix", "https+unix":
case "spdy", "sftp", "ws", "wss", "file", "redis", "tcp":
case "rtsp", "rtsps":
return true;
default:
return false;
}
}
unittest { // IPv6
auto urlstr = "http://[2003:46:1a7b:6c01:64b:80ff:fe80:8003]:8091/abc";
auto url = URL.parse(urlstr);
assert(url.schema == "http", url.schema);
assert(url.host == "2003:46:1a7b:6c01:64b:80ff:fe80:8003", url.host);
assert(url.port == 8091);
assert(url.path == InetPath("/abc"), url.path.toString());
assert(url.toString == urlstr);
url.host = "abcd:46:1a7b:6c01:64b:80ff:fe80:8abc";
urlstr = "http://[abcd:46:1a7b:6c01:64b:80ff:fe80:8abc]:8091/abc";
assert(url.toString == urlstr);
}
unittest {
auto urlstr = "https://www.example.net/index.html";
auto url = URL.parse(urlstr);
assert(url.schema == "https", url.schema);
assert(url.host == "www.example.net", url.host);
assert(url.path == InetPath("/index.html"), url.path.toString());
assert(url.port == 443);
assert(url.toString == urlstr);
urlstr = "http://jo.doe:password@sub.www.example.net:4711/sub2/index.html?query#anchor";
url = URL.parse(urlstr);
assert(url.schema == "http", url.schema);
assert(url.username == "jo.doe", url.username);
assert(url.password == "password", url.password);
assert(url.port == 4711, to!string(url.port));
assert(url.host == "sub.www.example.net", url.host);
assert(url.path.toString() == "/sub2/index.html", url.path.toString());
assert(url.queryString == "query", url.queryString);
assert(url.anchor == "anchor", url.anchor);
assert(url.toString == urlstr);
}
unittest { // issue #1044
URL url = URL.parse("http://example.com/p?query#anchor");
assert(url.schema == "http");
assert(url.host == "example.com");
assert(url.port == 80);
assert(url.queryString == "query");
assert(url.anchor == "anchor");
assert(url.pathString == "/p");
url.localURI = "/q";
assert(url.schema == "http");
assert(url.host == "example.com");
assert(url.queryString == "");
assert(url.anchor == "");
assert(url.pathString == "/q");
url.localURI = "/q?query";
assert(url.schema == "http");
assert(url.host == "example.com");
assert(url.queryString == "query");
assert(url.anchor == "");
assert(url.pathString == "/q");
url.localURI = "/q#anchor";
assert(url.schema == "http");
assert(url.host == "example.com");
assert(url.queryString == "");
assert(url.anchor == "anchor");
assert(url.pathString == "/q");
}
//websocket unittest
unittest {
URL url = URL("ws://127.0.0.1:8080/echo");
assert(url.host == "127.0.0.1");
assert(url.port == 8080);
assert(url.localURI == "/echo");
}
//rtsp unittest
unittest {
URL url = URL("rtsp://127.0.0.1:554/echo");
assert(url.host == "127.0.0.1");
assert(url.port == 554);
assert(url.localURI == "/echo");
}
unittest {
auto p = PosixPath("/foo bar/boo oom/");
URL url = URL("http", "example.com", 0, p); // constructor test
assert(url.path == cast(InetPath)p);
url.path = p;
assert(url.path == cast(InetPath)p); // path assignement test
assert(url.pathString == "/foo%20bar/boo%20oom/");
assert(url.toString() == "http://example.com/foo%20bar/boo%20oom/");
url.pathString = "/foo%20bar/boo%2foom/";
assert(url.pathString == "/foo%20bar/boo%2foom/");
assert(url.toString() == "http://example.com/foo%20bar/boo%2foom/");
}
unittest {
auto url = URL("http://example.com/some%2bpath");
assert((cast(PosixPath)url.path).toString() == "/some+path", url.path.toString());
}
unittest {
assert(URL("file:///test").pathString == "/test");
assert(URL("file:///test").port == 0);
assert(URL("file:///test").path.toString() == "/test");
assert(URL("file://test").host == "test");
assert(URL("file://test").pathString() == "");
assert(URL("file://./test").host == ".");
assert(URL("file://./test").pathString == "/test");
assert(URL("file://./test").path.toString() == "/test");
}
unittest { // issue #1318
try {
URL("http://something/inval%id");
assert(false, "Expected to throw an exception.");
} catch (Exception e) {}
}
unittest {
assert(URL("http+unix://%2Fvar%2Frun%2Fdocker.sock").schema == "http+unix");
assert(URL("https+unix://%2Fvar%2Frun%2Fdocker.sock").schema == "https+unix");
assert(URL("http+unix://%2Fvar%2Frun%2Fdocker.sock").host == "%2Fvar%2Frun%2Fdocker.sock");
assert(URL("http+unix://%2Fvar%2Frun%2Fdocker.sock").pathString == "");
assert(URL("http+unix://%2Fvar%2Frun%2Fdocker.sock/container/json").pathString == "/container/json");
auto url = URL("http+unix://%2Fvar%2Frun%2Fdocker.sock/container/json");
assert(URL(url.toString()) == url);
}
unittest {
import vibe.data.serialization;
static assert(isStringSerializable!URL);
}
unittest { // issue #1732
auto url = URL("tcp://0.0.0.0:1234");
url.port = 4321;
assert(url.toString == "tcp://0.0.0.0:4321", url.toString);
}
unittest { // host name role in file:// URLs
auto url = URL.parse("file:///foo/bar");
assert(url.host == "");
assert(url.path == InetPath("/foo/bar"));
assert(url.toString() == "file:///foo/bar");
url = URL.parse("file://foo/bar/baz");
assert(url.host == "foo");
assert(url.path == InetPath("/bar/baz"));
assert(url.toString() == "file://foo/bar/baz");
}
unittest { // native path <-> URL conversion
import std.exception : assertThrown;
version (Have_vibe_core)
auto url = URL(NativePath("/foo/bar"));
else
auto url = URL("file", "", 0, InetPath("/foo/bar"));
assert(url.schema == "file");
assert(url.host == "");
assert(url.path == InetPath("/foo/bar"));
assert(url.toNativePath == NativePath("/foo/bar"));
assertThrown(URL("http://example.org/").toNativePath);
version (Have_vibe_core) {
assertThrown(URL(NativePath("foo/bar")));
}
}
version (Windows) unittest { // Windows drive letter paths
version (Have_vibe_core)
auto url = URL(WindowsPath(`C:\foo`));
else
auto url = URL("file", "", 0, InetPath("/C:/foo"));
assert(url.schema == "file");
assert(url.host == "");
assert(url.path == InetPath("/C:/foo"));
auto p = url.toNativePath;
p.normalize();
assert(p == WindowsPath(`C:\foo`));
}
version (Windows) unittest { // UNC paths
version (Have_vibe_core)
auto url = URL(WindowsPath(`\\server\share\path`));
else
auto url = URL("file", "server", 0, InetPath("/share/path"));
assert(url.schema == "file");
assert(url.host == "server");
assert(url.path == InetPath("/share/path"));
auto p = url.toNativePath;
p.normalize(); // convert slash to backslash if necessary
assert(p == WindowsPath(`\\server\share\path`));
}
|
D
|
// This file is part of Visual D
//
// Visual D integrates the D programming language into Visual Studio
// Copyright (c) 2010 by Rainer Schuetze, All Rights Reserved
//
// Distributed under the Boost Software License, Version 1.0.
// See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt
module visuald.build;
import visuald.comutil;
import visuald.logutil;
import visuald.chiernode;
import visuald.dproject;
import visuald.hierutil;
import visuald.hierarchy;
import visuald.fileutil;
import visuald.stringutil;
import visuald.config;
import visuald.dpackage;
import visuald.windows;
import visuald.pkgutil;
import stdext.path;
import stdext.file;
import stdext.string;
import stdext.array;
import core.stdc.stdlib;
import std.windows.charset;
import std.utf;
import std.string;
import std.file;
import std.path;
import std.conv;
import std.math;
import std.array;
import std.exception;
import std.algorithm;
import core.demangle;
import core.thread;
import core.stdc.time;
import core.stdc.string;
import std.regex;
//import stdext.fred;
import sdk.vsi.vsshell;
import sdk.vsi.vsshell80;
import sdk.vsi.vsshell90;
import xml = visuald.xmlwrap;
// threaded builds cause Visual Studio to close the solution
// version = threadedBuild;
// version = taskedBuild;
version(taskedBuild)
{
import std.parallelism;
}
// builder thread class
class CBuilderThread // : public CVsThread<CMyProjBuildableCfg>
{
public:
this(Config cfg)
{
mConfig = cfg;
// get a pointer to IVsLaunchPadFactory
m_srpIVsLaunchPadFactory = queryService!(IVsLaunchPadFactory);
}
~this()
{
}
void Dispose()
{
m_pIVsOutputWindowPane = release(m_pIVsOutputWindowPane);
m_srpIVsLaunchPadFactory = release(m_srpIVsLaunchPadFactory);
m_pIVsStatusbar = release(m_pIVsStatusbar);
}
enum Operation
{
eIdle,
eBuild,
eRebuild,
eCheckUpToDate,
eClean,
};
HRESULT Start(Operation op, IVsOutputWindowPane pIVsOutputWindowPane)
{
logCall("%s.Start(op=%s, pIVsOutputWindowPane=%s)", this, op, cast(void**) pIVsOutputWindowPane);
//mixin(LogCallMix2);
m_op = op;
m_pIVsOutputWindowPane = release(m_pIVsOutputWindowPane);
m_pIVsOutputWindowPane = addref(pIVsOutputWindowPane);
// Note that the QueryService for SID_SVsStatusbar will fail during command line build
if(!m_pIVsStatusbar)
m_pIVsStatusbar = queryService!(IVsStatusbar);
mSuccess = true;
if(op == Operation.eCheckUpToDate)
ThreadMain(); // synchronous handling needed
else
{
version(taskedBuild)
{
auto task = task((CBuilderThread t) { t.ThreadMain(); }, this);
taskPool.put(task);
}
else version(threadedBuild)
{
mThread = new Thread(&ThreadMain);
mThread.start();
}
else
ThreadMain();
}
//return super::Start(pCMyProjBuildableCfg);
return mSuccess ? S_OK : S_FALSE;
}
void Stop(BOOL fSync)
{
mixin(LogCallMix2);
m_fStopBuild = TRUE;
}
void QueryStatus(BOOL *pfDone)
{
if(pfDone)
*pfDone = (m_op == Operation.eIdle);
}
void ThreadMain()
{
mixin(LogCallMix2);
BOOL fContinue = TRUE;
BOOL fSuccessfulBuild = FALSE; // set up for Fire_BuildEnd() later on.
scope(exit)
{
version(threadedBuild)
mThread = null;
m_op = Operation.eIdle;
}
m_fStopBuild = false;
Fire_BuildBegin(fContinue);
switch (m_op)
{
default:
assert(_false);
break;
case Operation.eBuild:
fSuccessfulBuild = DoBuild();
if(!fSuccessfulBuild)
StopSolutionBuild();
break;
case Operation.eRebuild:
fSuccessfulBuild = DoClean();
if(fSuccessfulBuild)
fSuccessfulBuild = DoBuild();
if(!fSuccessfulBuild)
StopSolutionBuild();
break;
case Operation.eCheckUpToDate:
fSuccessfulBuild = DoCheckIsUpToDate();
break;
case Operation.eClean:
fSuccessfulBuild = DoClean();
break;
}
Fire_BuildEnd(fSuccessfulBuild);
mSuccess = fSuccessfulBuild != 0;
}
bool isStopped() const { return m_fStopBuild != 0; }
//////////////////////////////////////////////////////////////////////
static struct FileDep
{
CFileNode file;
string outfile;
string[] dependencies;
}
// sorts inplace
static void sortDependencies(FileDep[] filedeps)
{
for(int i = 0, j, k; i < filedeps.length; i++)
{
// sort i-th file before the first file that depends on it
for(j = 0; j < i; j++)
{
if(countUntil(filedeps[j].dependencies, filedeps[i].outfile) >= 0)
break;
}
// check whether the i-th file depends on any later file
for(k = j; k < i; k++)
{
if(countUntil(filedeps[i].dependencies, filedeps[k].outfile) >= 0)
throw new Exception("circular dependency on " ~ filedeps[i].outfile);
}
if(j < i)
{
FileDep dep = filedeps[i];
for(k = i; k > j; k--)
filedeps[k] = filedeps[k-1];
filedeps[j] = dep;
}
}
}
CFileNode[] BuildDependencyList()
{
string workdir = mConfig.GetProjectDir();
Config config = mConfig; // closure does not work with both local variables and this pointer?
FileDep[] filedeps;
CHierNode node = searchNode(mConfig.GetProjectNode(),
delegate (CHierNode n) {
if(CFileNode file = cast(CFileNode) n)
{
string tool = config.GetCompileTool(file);
if(tool == "Custom" || tool == kToolResourceCompiler || tool == kToolCpp)
{
FileDep dep;
dep.outfile = config.GetOutputFile(file);
dep.outfile = canonicalPath(makeFilenameAbsolute(dep.outfile, workdir));
dep.dependencies = config.GetDependencies(file);
foreach(ref d; dep.dependencies)
d = canonicalPath(d);
dep.file = file;
filedeps ~= dep;
}
}
return false;
});
sortDependencies(filedeps);
CFileNode[] files;
foreach(fdep; filedeps)
files ~= fdep.file;
return files;
}
unittest
{
FileDep[] deps = [
{ null, "file1", [ "file2", "file3" ] },
{ null, "file2", [ "file4", "file5" ] },
{ null, "file3", [ "file2", "file6" ] },
];
sortDependencies(deps);
assert(deps[0].outfile == "file2");
assert(deps[1].outfile == "file3");
assert(deps[2].outfile == "file1");
deps[0].dependencies ~= "file1";
try
{
sortDependencies(deps);
assert(false);
}
catch(Exception e)
{
assert(std.string.indexOf(e.msg, "circular") >= 0);
}
}
//////////////////////////////////////////////////////////////////////
bool buildCustomFile(CFileNode file, ref bool built)
{
string reason;
if(!mConfig.isUptodate(file, &reason))
{
string cmdline = mConfig.GetCompileCommand(file);
if(cmdline.length)
{
string workdir = mConfig.GetProjectDir();
string outfile = mConfig.GetOutputFile(file);
string cmdfile = makeFilenameAbsolute(outfile ~ "." ~ kCmdLogFileExtension, workdir);
showUptodateFailure(reason, outfile);
removeCachedFileTime(makeFilenameAbsolute(outfile, workdir));
HRESULT hr = RunCustomBuildBatchFile(outfile, cmdfile, cmdline, m_pIVsOutputWindowPane, this);
if (hr != S_OK)
return false; // stop compiling
}
built = true;
}
return true;
}
/** build non-D files */
bool doCustomBuilds(out bool hasCustomBuilds, out int numCustomBuilds)
{
mixin(LogCallMix2);
bool built;
// first build custom files with dependency graph
CFileNode[] files = BuildDependencyList();
foreach(file; files)
{
if(isStopped())
return false;
if(!buildCustomFile(file, built))
return false;
hasCustomBuilds = true;
if(built)
numCustomBuilds++;
}
// now build files not in the dependency graph (d files in single compilation modes)
CHierNode node = searchNode(mConfig.GetProjectNode(),
delegate (CHierNode n) {
if(CFileNode file = cast(CFileNode) n)
{
if(files.contains(file))
return false;
if(isStopped())
return true;
if(!buildCustomFile(file, built))
return true;
hasCustomBuilds = true;
if(built)
numCustomBuilds++;
}
return false;
});
return node is null;
}
bool DoBuild()
{
mixin(LogCallMix2);
beginLog();
HRESULT hr = S_FALSE;
try
{
string target = mConfig.GetTargetPath();
string msg = "Building " ~ target ~ "...\n";
if(m_pIVsOutputWindowPane)
{
ScopedBSTR bstrMsg = ScopedBSTR(msg);
m_pIVsOutputWindowPane.OutputString(bstrMsg);
}
string workdir = mConfig.GetProjectDir();
string outdir = makeFilenameAbsolute(mConfig.GetOutDir(), workdir);
if(!exists(outdir))
mkdirRecurse(outdir);
string intermediatedir = makeFilenameAbsolute(mConfig.GetIntermediateDir(), workdir);
if(!exists(intermediatedir))
mkdirRecurse(intermediatedir);
string modules_ddoc;
if(mConfig.getModulesDDocCommandLine([], modules_ddoc))
{
modules_ddoc = unquoteArgument(modules_ddoc);
modules_ddoc = mConfig.GetProjectOptions().replaceEnvironment(modules_ddoc, mConfig);
string modpath = dirName(modules_ddoc);
modpath = makeFilenameAbsolute(modpath, workdir);
if(!exists(modpath))
mkdirRecurse(modpath);
}
bool hasCustomBuilds;
int numCustomBuilds;
if(!doCustomBuilds(hasCustomBuilds, numCustomBuilds))
return false;
if(hasCustomBuilds)
if(targetIsUpToDate()) // only recheck target if custom builds exist
return true; // no need to rebuild target if custom builds did not change target dependencies
if(!mLastUptodateFailure.empty)
showUptodateFailure(mLastUptodateFailure);
string cmdline = mConfig.getCommandLine();
string cmdfile = makeFilenameAbsolute(mConfig.GetCommandLinePath(), workdir);
hr = RunCustomBuildBatchFile(target, cmdfile, cmdline, m_pIVsOutputWindowPane, this);
if(hr == S_OK && mConfig.GetProjectOptions().compilationModel == ProjectOptions.kSingleFileCompilation)
mConfig.writeLinkDependencyFile();
return (hr == S_OK);
}
catch(Exception e)
{
OutputText("Error setting up build: " ~ e.msg);
return false;
}
finally
{
endLog(hr == S_OK);
}
}
bool customFilesUpToDate()
{
CHierNode node = searchNode(mConfig.GetProjectNode(),
delegate (CHierNode n)
{
if(isStopped())
return true;
if(CFileNode file = cast(CFileNode) n)
{
if(!mConfig.isUptodate(file, null))
return true;
}
return false;
});
return node is null;
}
bool getTargetDependencies(ref string[] files)
{
string workdir = mConfig.GetProjectDir();
string deppath = makeFilenameAbsolute(mConfig.GetDependenciesPath(), workdir);
if(!std.file.exists(deppath))
return showUptodateFailure("dependency file " ~ deppath ~ " does not exist");
if(!getFilenamesFromDepFile(deppath, files))
return showUptodateFailure("dependency file " ~ deppath ~ " cannot be read");
if(mConfig.hasLinkDependencies())
{
string lnkdeppath = makeFilenameAbsolute(mConfig.GetLinkDependenciesPath(), workdir);
if(!std.file.exists(lnkdeppath))
return showUptodateFailure("link dependency file " ~ lnkdeppath ~ " does not exist");
string lnkdeps;
auto lnkdepData = cast(ubyte[])std.file.read(lnkdeppath);
if(lnkdepData.length > 1 && lnkdepData[0] == 0xFF && lnkdepData[1] == 0xFE)
{
wstring lnkdepw = cast(wstring)lnkdepData[2..$];
lnkdeps = to!string(lnkdepw);
}
else
{
auto lnkdepz = cast(string)lnkdepData ~ "\0";
int cp = GetKBCodePage();
lnkdeps = fromMBSz(lnkdepz.ptr, cp);
}
string[] lnkfiles = splitLines(lnkdeps);
foreach(lnkfile; lnkfiles)
{
if(!lnkfile.startsWith("#Command:"))
files ~= makeFilenameAbsolute(lnkfile, workdir);
}
}
return true;
}
bool DoCheckIsUpToDate()
{
mixin(LogCallMix2);
clearCachedFileTimes();
scope(exit) clearCachedFileTimes();
mLastUptodateFailure = null;
if(!customFilesUpToDate())
return false;
return targetIsUpToDate();
}
bool targetIsUpToDate()
{
string workdir = mConfig.GetProjectDir();
string cmdfile = makeFilenameAbsolute(mConfig.GetCommandLinePath(), workdir);
string cmdline = mConfig.getCommandLine();
if(!compareCommandFile(cmdfile, cmdline))
return showUptodateFailure("command line changed");
string target = makeFilenameAbsolute(mConfig.GetTargetPath(), workdir);
string oldestFile;
long targettm = getOldestFileTime( [ target ], oldestFile );
if(targettm == long.min)
return showUptodateFailure("target does not exist");
string[] files;
if(!getTargetDependencies(files))
return false;
string[] libs = mConfig.getLibsFromDependentProjects();
files ~= libs;
makeFilenamesAbsolute(files, workdir);
string newestFile;
long sourcetm = getNewestFileTime(files, newestFile);
if(targettm <= sourcetm)
return showUptodateFailure("older than " ~ newestFile);
return true;
}
bool DoClean()
{
mixin(LogCallMix2);
string[] files = mConfig.GetBuildFiles();
foreach(string file; files)
{
try
{
if(std.string.indexOf(file,'*') >= 0 || std.string.indexOf(file,'?') >= 0)
{
string dir = dirName(file);
string pattern = baseName(file);
if(isExistingDir(dir))
foreach(string f; dirEntries(dir, SpanMode.depth))
if(globMatch(f, pattern))
std.file.remove(f);
}
else if(std.file.exists(file))
std.file.remove(file);
}
catch(FileException e)
{
OutputText("cannot delete " ~ file ~ ":" ~ e.msg);
}
}
return true;
}
void OutputText(string msg)
{
wchar* wmsg = _toUTF16z(msg);
if (m_pIVsStatusbar)
{
m_pIVsStatusbar.SetText(wmsg);
}
if (m_pIVsOutputWindowPane)
{
m_pIVsOutputWindowPane.OutputString(wmsg);
m_pIVsOutputWindowPane.OutputString(cast(wchar*)"\n"w.ptr);
}
}
/+
void InternalTick(ref BOOL rfContine);
+/
void Fire_Tick(ref BOOL rfContinue)
{
rfContinue = mConfig.FFireTick() && !m_fStopBuild;
}
void Fire_BuildBegin(ref BOOL rfContinue)
{
mixin(LogCallMix2);
mConfig.FFireBuildBegin(rfContinue);
}
void Fire_BuildEnd(BOOL fSuccess)
{
mixin(LogCallMix2);
mConfig.FFireBuildEnd(fSuccess);
}
void StopSolutionBuild()
{
if(!Package.GetGlobalOptions().stopSolutionBuild)
return;
if(auto solutionBuildManager = queryService!(IVsSolutionBuildManager)())
{
OutputText("Solution build stopped.");
scope(exit) release(solutionBuildManager);
solutionBuildManager.CancelUpdateSolutionConfiguration();
}
}
bool showUptodateFailure(string msg, string target = null)
{
if(!m_pIVsOutputWindowPane)
mLastUptodateFailure = msg;
else if(Package.GetGlobalOptions().showUptodateFailure)
{
if(target.empty)
target = mConfig.GetTargetPath();
msg = target ~ " not up to date: " ~ msg;
OutputText(msg); // writeToBuildOutputPane
}
return false;
}
void beginLog()
{
mStartBuildTime = time(null);
mBuildLog = `<html><head><META HTTP-EQUIV="Content-Type" content="text/html">
</head><body><pre>
<table width=100% bgcolor=#CFCFE5><tr><td>
<font face=arial size=+3>Build Log</font>
</table>
`;
}
void addCommandLog(string target, string cmd, string output)
{
if(!mCreateLog)
return;
mBuildLog ~= "<table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2>\n";
mBuildLog ~= xml.encode("Building " ~ target);
mBuildLog ~= "\n</font></table>\n";
mBuildLog ~= "<table width=100% bgcolor=#EFEFE5><tr><td><font face=arial size=+1>\n";
mBuildLog ~= "Command Line";
mBuildLog ~= "\n</font></table>\n";
mBuildLog ~= xml.encode(cmd);
mBuildLog ~= "<table width=100% bgcolor=#EFEFE5><tr><td><font face=arial size=+1>\n";
mBuildLog ~= "Output";
mBuildLog ~= "\n</font></table>\n";
mBuildLog ~= xml.encode(output) ~ "\n";
}
void endLog(bool success)
{
if(!mCreateLog)
return;
mBuildLog ~= "</body></html>";
string workdir = mConfig.GetProjectDir();
string intdir = makeFilenameAbsolute(mConfig.GetIntermediateDir(), workdir);
string logfile = mConfig.GetBuildLogFile();
try
{
std.file.write(logfile, mBuildLog);
if(!success)
OutputText("Details saved as \"file://" ~ logfile ~ "\"");
}
catch(FileException e)
{
OutputText("cannot write " ~ logfile ~ ":" ~ e.msg);
}
if(Package.GetGlobalOptions().timeBuilds)
{
time_t now = time(null);
double duration = difftime(now, mStartBuildTime);
if(duration >= 60)
{
int min = cast(int) floor(duration / 60);
int sec = cast(int) floor(duration - 60 * min);
string tm = format("%d:%02d", min, sec);
OutputText("Build time: " ~ to!string(min) ~ ":" ~ to!string(sec) ~ " min");
}
else
OutputText("Build time: " ~ to!string(duration) ~ " s");
}
}
/+
virtual HRESULT PrepareInStartingThread(CMyProjBuildableCfg *pCMyProjBuildableCfg);
virtual HRESULT InnerThreadMain(CMyProjBuildableCfg *pBuildableCfg);
virtual void ReleaseThreadHandle();
+/
Config mConfig;
IVsLaunchPadFactory m_srpIVsLaunchPadFactory;
IStream m_pIStream_IVsOutputWindowPane;
IVsOutputWindowPane m_pIVsOutputWindowPane;
IStream m_pIStream_IVsStatusbar;
IVsStatusbar m_pIVsStatusbar;
BOOL m_fIsUpToDate;
Operation m_op;
BOOL m_fStopBuild;
HANDLE m_hEventStartSync;
time_t mStartBuildTime;
version(threadedBuild)
Thread mThread; // keep a reference to the thread to avoid it from being collected
bool mSuccess = false;
bool mCreateLog = true;
string mBuildLog;
string mLastUptodateFailure;
};
class CLaunchPadEvents : DComObject, IVsLaunchPadEvents
{
this(CBuilderThread builder)
{
m_pBuilder = builder;
}
override HRESULT QueryInterface(in IID* riid, void** pvObject)
{
if(queryInterface!(IVsLaunchPadEvents) (this, riid, pvObject))
return S_OK;
return super.QueryInterface(riid, pvObject);
}
// IVsLaunchPadEvents
override HRESULT Tick(/* [out] */ BOOL * pfCancel)
{
BOOL fContinue = TRUE;
m_pBuilder.Fire_Tick(fContinue);
*pfCancel = !fContinue;
return S_OK;
}
public:
CBuilderThread m_pBuilder;
};
string demangleText(string ln)
{
string txt;
static if(__traits(compiles, (){uint p; decodeDmdString("", p);}))
uint i;
else
int i; // until dmd 2.056
for (i = 0; i < ln.length; )
{
char ch = ln[i]; // compressed symbols are NOT utf8!
if(isAlphaNum(ch) || ch == '_')
{
string s = decodeDmdString(ln, i);
if(s.length > 3 && s[0] == '_' && s[1] == 'D' && isDigit(s[2]))
{
auto d = core.demangle.demangle(s);
txt ~= d;
}
else if(s.length > 4 && s[0] == '_' && s[1] == '_' && s[2] == 'D' && isDigit(s[3]))
{
// __moddtor/__modctor have duplicate '__'
auto d = core.demangle.demangle(s[1..$]);
if(d == s[1..$])
txt ~= s;
else
txt ~= d;
}
else
txt ~= s;
}
else
{
txt ~= ch;
i++;
}
}
return txt;
}
class CLaunchPadOutputParser : DComObject, IVsLaunchPadOutputParser
{
this(CBuilderThread builder)
{
mCompiler = builder.mConfig.GetProjectOptions().compiler;
mProjectDir = builder.mConfig.GetProjectDir();
}
override HRESULT QueryInterface(in IID* riid, void** pvObject)
{
if(queryInterface!(IVsLaunchPadOutputParser) (this, riid, pvObject))
return S_OK;
return super.QueryInterface(riid, pvObject);
}
override HRESULT ParseOutputStringForInfo(
in LPCOLESTR pszOutputString, // one line of output text
/+[out, optional]+/ BSTR *pbstrFilename, // fully-qualified file name for task list item (may be NULL)
/+[out, optional]+/ ULONG *pnLineNum, // file line number for task list item (may be NULL)
/+[out, optional]+/ ULONG *pnPriority, // priority for task list item (may be NULL)
/+[out, optional]+/ BSTR *pbstrTaskItemText, // description text for task list item (may be NULL)
/+[out, optional]+/ BSTR *pbstrHelpKeyword)
{
mixin(LogCallMix2);
string line = to_string(pszOutputString);
uint nPriority, nLineNum;
string filename, taskItemText;
if(!parseOutputStringForTaskItem(line, nPriority, filename, nLineNum, taskItemText, mCompiler))
return S_FALSE;
//if(Package.GetGlobalOptions().demangleError)
// taskItemText = demangleText(taskItemText);
filename = makeFilenameCanonical(filename, mProjectDir);
if(pnPriority)
*pnPriority = nPriority;
if(pnLineNum)
*pnLineNum = nLineNum - 1;
if(pbstrFilename)
*pbstrFilename = allocBSTR(filename);
if(pbstrTaskItemText)
*pbstrTaskItemText = allocBSTR(taskItemText);
return S_OK;
}
string mProjectDir;
int mCompiler;
}
// Runs the build commands, writing cmdfile if successful
HRESULT RunCustomBuildBatchFile(string target,
string buildfile,
string cmdline,
IVsOutputWindowPane pIVsOutputWindowPane,
CBuilderThread pBuilder)
{
logCall("RunCustomBuildBatchFile(target=\"%s\", buildfile=\"%s\")", target, buildfile);
if (cmdline.length == 0)
return S_OK;
HRESULT hr = S_OK;
// get the project root directory.
string strProjectDir = pBuilder.mConfig.GetProjectDir();
string batchFileText = insertCr(cmdline);
string output;
Package.GetGlobalOptions().addBuildPath(strProjectDir);
string cmdfile = buildfile ~ ".cmd";
assert(pBuilder.m_srpIVsLaunchPadFactory);
ComPtr!(IVsLaunchPad) srpIVsLaunchPad;
hr = pBuilder.m_srpIVsLaunchPadFactory.CreateLaunchPad(&srpIVsLaunchPad.ptr);
scope(exit) pBuilder.addCommandLog(target, cmdline, output);
if(FAILED(hr))
{
output = format("internal error: IVsLaunchPadFactory.CreateLaunchPad failed with rc=%x", hr);
return hr;
}
assert(srpIVsLaunchPad.ptr);
CLaunchPadEvents pLaunchPadEvents = newCom!CLaunchPadEvents(pBuilder);
BSTR bstrOutput;
version(none)
{
hr = srpIVsLaunchPad.ExecBatchScript(
/* [in] LPCOLESTR pszBatchFileContents */ _toUTF16z(batchFileText),
/* [in] LPCOLESTR pszWorkingDir */ _toUTF16z(strProjectDir), // may be NULL, passed on to CreateProcess (wee Win32 API for details)
/* [in] LAUNCHPAD_FLAGS lpf */ LPF_PipeStdoutToOutputWindow,
/* [in] IVsOutputWindowPane *pOutputWindowPane */ pIVsOutputWindowPane, // if LPF_PipeStdoutToOutputWindow, which pane in the output window should the output be piped to
/* [in] ULONG nTaskItemCategory */ 0, // if LPF_PipeStdoutToTaskList is specified
/* [in] ULONG nTaskItemBitmap */ 0, // if LPF_PipeStdoutToTaskList is specified
/* [in] LPCOLESTR pszTaskListSubcategory */ null, // if LPF_PipeStdoutToTaskList is specified
/* [in] IVsLaunchPadEvents *pVsLaunchPadEvents */ pLaunchPadEvents,
/* [out] BSTR *pbstrOutput */ &bstrOutput); // all output generated (may be NULL)
if(FAILED(hr))
{
output = format("internal error: IVsLaunchPad.ptr.ExecBatchScript failed with rc=%x", hr);
return hr;
}
} else {
try
{
int cp = GetKBCodePage();
const(char)*p = toMBSz(batchFileText, cp);
int plen = strlen(p);
string dir = dirName(cmdfile);
if(!std.file.exists(dir))
mkdirRecurse(dir);
std.file.write(cmdfile, p[0..plen]);
}
catch(FileException e)
{
output = format("internal error: cannot write file " ~ cmdfile);
hr = S_FALSE;
}
DWORD result;
if(IVsLaunchPad2 pad2 = qi_cast!IVsLaunchPad2(srpIVsLaunchPad))
{
CLaunchPadOutputParser pLaunchPadOutputParser = newCom!CLaunchPadOutputParser(pBuilder);
hr = pad2.ExecCommandEx(
/* [in] LPCOLESTR pszApplicationName */ _toUTF16z(getCmdPath()),
/* [in] LPCOLESTR pszCommandLine */ _toUTF16z("/Q /C " ~ quoteFilename(cmdfile)),
/* [in] LPCOLESTR pszWorkingDir */ _toUTF16z(strProjectDir), // may be NULL, passed on to CreateProcess (wee Win32 API for details)
/* [in] LAUNCHPAD_FLAGS lpf */ LPF_PipeStdoutToOutputWindow | LPF_PipeStdoutToTaskList,
/* [in] IVsOutputWindowPane *pOutputWindowPane */ pIVsOutputWindowPane, // if LPF_PipeStdoutToOutputWindow, which pane in the output window should the output be piped to
/* [in] ULONG nTaskItemCategory */ CAT_BUILDCOMPILE, // if LPF_PipeStdoutToTaskList is specified
/* [in] ULONG nTaskItemBitmap */ 0, // if LPF_PipeStdoutToTaskList is specified
/* [in] LPCOLESTR pszTaskListSubcategory */ null, // "Build"w.ptr, // if LPF_PipeStdoutToTaskList is specified
/* [in] IVsLaunchPadEvents pVsLaunchPadEvents */ pLaunchPadEvents,
/* [in] IVsLaunchPadOutputParser pOutputParser */ pLaunchPadOutputParser,
/* [out] DWORD *pdwProcessExitCode */ &result,
/* [out] BSTR *pbstrOutput */ &bstrOutput); // all output generated (may be NULL)
release(pad2);
}
else
hr = srpIVsLaunchPad.ExecCommand(
/* [in] LPCOLESTR pszApplicationName */ _toUTF16z(getCmdPath()),
/* [in] LPCOLESTR pszCommandLine */ _toUTF16z("/Q /C " ~ quoteFilename(cmdfile)),
/* [in] LPCOLESTR pszWorkingDir */ _toUTF16z(strProjectDir), // may be NULL, passed on to CreateProcess (wee Win32 API for details)
/* [in] LAUNCHPAD_FLAGS lpf */ LPF_PipeStdoutToOutputWindow | LPF_PipeStdoutToTaskList,
/* [in] IVsOutputWindowPane *pOutputWindowPane */ pIVsOutputWindowPane, // if LPF_PipeStdoutToOutputWindow, which pane in the output window should the output be piped to
/* [in] ULONG nTaskItemCategory */ CAT_BUILDCOMPILE, // if LPF_PipeStdoutToTaskList is specified
/* [in] ULONG nTaskItemBitmap */ 0, // if LPF_PipeStdoutToTaskList is specified
/* [in] LPCOLESTR pszTaskListSubcategory */ null, // "Build"w.ptr, // if LPF_PipeStdoutToTaskList is specified
/* [in] IVsLaunchPadEvents *pVsLaunchPadEvents */ pLaunchPadEvents,
/* [out] DWORD *pdwProcessExitCode */ &result,
/* [out] BSTR *pbstrOutput */ &bstrOutput); // all output generated (may be NULL)
if(FAILED(hr))
{
output = format("internal error: IVsLaunchPad.ptr.ExecCommand failed with rc=%x", hr);
return hr;
}
if(result != 0)
hr = S_FALSE;
}
// don't know how to get at the exit code, so check output string
output = strip(detachBSTR(bstrOutput));
if(hr == S_OK && _endsWith(output, "failed!"))
hr = S_FALSE;
// outputToErrorList(srpIVsLaunchPad, pBuilder, pIVsOutputWindowPane, output);
if(hr == S_OK)
{
try
{
std.file.write(buildfile, cmdline);
}
catch(FileException e)
{
output = format("internal error: cannot write file " ~ buildfile);
hr = S_FALSE;
}
}
return hr;
}
HRESULT outputToErrorList(IVsLaunchPad pad, CBuilderThread pBuilder,
IVsOutputWindowPane outPane, string output)
{
logCall("outputToErrorList(output=\"%s\")", output);
HRESULT hr;
auto prj = _toUTF16z(pBuilder.mConfig.GetProjectPath());
string[] lines = std.string.split(output, "\n");
foreach(line; lines)
{
uint nPriority, nLineNum;
string strFilename, strTaskItemText;
if(parseOutputStringForTaskItem(line, nPriority, strFilename, nLineNum, strTaskItemText, Compiler.DMD))
{
IVsOutputWindowPane2 pane2 = qi_cast!IVsOutputWindowPane2(outPane);
if(pane2)
hr = pane2.OutputTaskItemStringEx2(
"."w.ptr, // The text to write to the output window.
nPriority, // The priority: use TP_HIGH for errors.
CAT_BUILDCOMPILE, // Not used internally; pass NULL unless you want to use it for your own purposes.
null, // Not used internally; pass NULL unless you want to use it for your own purposes.
0, // Not used internally.
_toUTF16z(strFilename), // The file name for the Error List entry; may be NULL if no file is associated with the error.
nLineNum, // Zero-based line number in pszFilename.
nLineNum, // Zero-based column in pszFilename.
prj, // The unique name of the project for the Error List entry; may be NULL if no project is associated with the error.
_toUTF16z(strTaskItemText), // The text of the Error List entry.
""w.ptr); // in LPCOLESTR pszLookupKwd
else // no project or column +/
hr = outPane.OutputTaskItemStringEx(
" "w.ptr, // The text to write to the output window.
nPriority, // The priority: use TP_HIGH for errors.
CAT_BUILDCOMPILE, // Not used internally; pass NULL unless you want to use it for your own purposes.
null, // Not used internally; pass NULL unless you want to use it for your own purposes.
0, // Not used internally.
_toUTF16z(strFilename), // The file name for the Error List entry; may be NULL if no file is associated with the error.
nLineNum, // Zero-based line number in pszFilename.
_toUTF16z(strTaskItemText), // The text of the Error List entry.
""w.ptr); // in LPCOLESTR pszLookupKwd
release(pane2);
}
}
return hr;
}
bool isInitializedRE(T)(ref T re)
{
static if(__traits(compiles,re.ir))
return re.ir !is null; // stdext.fred
else
return re.captures() > 0; // std.regex
}
bool parseOutputStringForTaskItem(string outputLine, out uint nPriority,
out string filename, out uint nLineNum,
out string itemText, int compiler)
{
outputLine = strip(outputLine);
// DMD compile error
__gshared static Regex!char re1dmd, re1gdc, remixin, re2, re3, re4, re5, re6;
if(!isInitializedRE(remixin))
remixin = regex(r"^(.*?)-mixin-([0-9]+)\(([0-9]+)\):(.*)$");
auto rematch = match(outputLine, remixin);
if(!rematch.empty())
{
auto captures = rematch.captures();
filename = replace(captures[1], "\\\\", "\\");
string lineno = captures[2];
string lineno2 = captures[3];
nLineNum = to!uint(lineno);
uint nMixinLine = to!uint(lineno2) - nLineNum + 1;
itemText = "mixin(" ~ to!string(nMixinLine) ~ ") " ~ strip(captures[4]);
if(itemText.startsWith("Warning:")) // make these errors if not building with -wi?
nPriority = TP_NORMAL;
else
nPriority = TP_HIGH;
return true;
}
// exception/error when running
if(!isInitializedRE(re5))
re5 = regex(r"^[^ @]*@(.*?)\(([0-9]+)\):(.*)$");
rematch = match(outputLine, re5);
if(!rematch.empty())
{
auto captures = rematch.captures();
nPriority = TP_HIGH;
filename = replace(captures[1], "\\\\", "\\");
string lineno = captures[2];
nLineNum = to!uint(lineno);
itemText = strip(captures[3]);
return true;
}
if(!isInitializedRE(re1dmd))
re1dmd = regex(r"^(.*?)\(([0-9]+)\):(.*)$"); // replace . with [\x00-\x7f] for std.regex
if(!isInitializedRE(re1gdc))
re1gdc = regex(r"^(.*?):([0-9]+):(.*)$");
rematch = match(outputLine, compiler == Compiler.GDC ? re1gdc : re1dmd);
if(!rematch.empty())
{
auto captures = rematch.captures();
filename = replace(captures[1], "\\\\", "\\");
string lineno = captures[2];
nLineNum = to!uint(lineno);
itemText = strip(captures[3]);
if(itemText.startsWith("Warning:")) // make these errors if not building with -wi?
nPriority = TP_NORMAL;
else
nPriority = TP_HIGH;
return true;
}
// link error
if(!isInitializedRE(re2))
re2 = regex(r"^ *(Error *[0-9]+:.*)$");
rematch = match(outputLine, re2);
if(!rematch.empty())
{
nPriority = TP_HIGH;
filename = "";
nLineNum = 0;
itemText = strip(rematch.captures[1]);
return true;
}
// link error with file name
if(!isInitializedRE(re3))
re3 = regex(r"^(.*?)\(([0-9]+)\) *: *(Error *[0-9]+:.*)$");
rematch = match(outputLine, re3);
if(!rematch.empty())
{
auto captures = rematch.captures();
nPriority = TP_HIGH;
filename = replace(captures[1], "\\\\", "\\");
string lineno = captures[2];
nLineNum = to!uint(lineno);
itemText = strip(captures[3]);
return true;
}
// link warning
if(!isInitializedRE(re4))
re4 = regex(r"^ *(Warning *[0-9]+:.*)$");
rematch = match(outputLine, re4);
if(!rematch.empty())
{
nPriority = TP_NORMAL;
filename = "";
nLineNum = 0;
itemText = strip(rematch.captures[1]);
return true;
}
// entry in exception call stack
if(!isInitializedRE(re6))
re6 = regex(r"^0x[0-9a-fA-F]* in .* at (.*?)\(([0-9]+)\)(.*)$");
rematch = match(outputLine, re6);
if(!rematch.empty())
{
auto captures = rematch.captures();
nPriority = TP_LOW;
filename = replace(captures[1], "\\\\", "\\");
string lineno = captures[2];
nLineNum = to!uint(lineno);
itemText = strip(captures[3]);
return true;
}
return false;
}
unittest
{
uint nPriority, nLineNum;
string strFilename, strTaskItemText;
bool rc = parseOutputStringForTaskItem("file.d(37): huhu", nPriority, strFilename, nLineNum, strTaskItemText, Compiler.DMD);
assert(rc);
assert(strFilename == "file.d");
assert(nLineNum == 37);
assert(strTaskItemText == "huhu");
rc = parseOutputStringForTaskItem("main.d(10): Error: undefined identifier A, did you mean B?",
nPriority, strFilename, nLineNum, strTaskItemText, Compiler.DMD);
assert(rc);
assert(strFilename == "main.d");
assert(nLineNum == 10);
assert(strTaskItemText == "Error: undefined identifier A, did you mean B?");
rc = parseOutputStringForTaskItem(r"object.Exception@C:\tmp\d\forever.d(28): what?",
nPriority, strFilename, nLineNum, strTaskItemText, Compiler.DMD);
assert(rc);
assert(strFilename == r"C:\tmp\d\forever.d");
assert(nLineNum == 28);
assert(strTaskItemText == "what?");
rc = parseOutputStringForTaskItem(r"0x004020C8 in void test.__modtest() at C:\tmp\d\forever.d(34)",
nPriority, strFilename, nLineNum, strTaskItemText, Compiler.DMD);
assert(rc);
assert(strFilename == r"C:\tmp\d\forever.d");
assert(nLineNum == 34);
assert(strTaskItemText == "");
rc = parseOutputStringForTaskItem(r"D:\LuaD\luad\conversions\structs.d-mixin-36(36): Error: cast(MFVector)(*_this).x is not an lvalue",
nPriority, strFilename, nLineNum, strTaskItemText, Compiler.DMD);
assert(rc);
assert(strFilename == r"D:\LuaD\luad\conversions\structs.d");
assert(nLineNum == 36);
assert(strTaskItemText == "mixin(1) Error: cast(MFVector)(*_this).x is not an lvalue");
}
string unEscapeFilename(string file)
{
int pos = std.string.indexOf(file, '\\');
if(pos < 0)
return file;
char[] p;
int start = 0;
while(pos < file.length)
{
if(file[pos+1] == '(' || file[pos+1] == ')' || file[pos+1] == '\\')
{
p ~= file[start .. pos];
start = pos + 1;
}
int nextpos = std.string.indexOf(file[pos + 1 .. $], '\\');
if(nextpos < 0)
break;
pos += nextpos + 1;
}
p ~= file[start..$];
return assumeUnique(p);
}
string re_match_dep = r"^[A-Za-z0-9_\.]+ *\((.*)\) : p[a-z]* : [A-Za-z0-9_\.]+ \((.*)\)$";
bool getFilenamesFromDepFile(string depfile, ref string[] files)
{
// converted int[string] to byte[string] due to bug #2500
byte[string] aafiles;
int cntValid = 0;
try
{
string txt = cast(string)std.file.read(depfile);
version(slow)
{
RegExp re = new RegExp(re_match_dep);
string[] lines = splitLines(txt);
foreach(line; lines)
{
string[] match = re.exec(line);
if(match.length == 3)
{
string file1 = replace(match[1], "\\\\", "\\");
string file2 = replace(match[2], "\\\\", "\\");
aafiles[file1] = 1;
aafiles[file2] = 1;
cntValid++;
}
}
}
else
{
uint pos = 0;
uint openpos = 0;
bool skipNext = false;
bool stringImport = false;
while(pos < txt.length)
{
dchar ch = decode(txt, pos);
if(skipNext)
{
skipNext = false;
continue;
}
if(ch == '\\')
skipNext = true;
if(ch == '(')
openpos = pos;
else if(ch == ')' && openpos > 0)
{
// only check lines that import "object", these are written once per file
const string kCheck1 = " : public : object ";
const string kCheck2 = " : private : object "; // added after 2.060
const string kCheck3 = " : string : "; // string imports added after 2.064
if((pos + kCheck1.length <= txt.length && txt[pos .. pos + kCheck1.length] == kCheck1) ||
(pos + kCheck2.length <= txt.length && txt[pos .. pos + kCheck2.length] == kCheck2) ||
stringImport)
{
string file = txt[openpos .. pos-1];
file = unEscapeFilename(file);
aafiles[file] = 1;
openpos = 0;
stringImport = false;
cntValid++;
}
else if(pos + kCheck3.length <= txt.length && txt[pos .. pos + kCheck3.length] == kCheck3)
{
// wait for the next file name in () on the same line
openpos = 0;
stringImport = true;
}
}
else if(ch == '\n')
{
openpos = 0;
stringImport = false;
}
}
}
}
catch(Exception e)
{
cntValid = 0;
// file read error
}
string[] keys = aafiles.keys; // workaround for bad codegen with files ~= aafiles.keys
files ~= keys;
sort(files); // for faster file access?
return cntValid > 0;
}
version(slow)
unittest
{
string line = r"std.file (c:\\dmd\\phobos\\std\\file.d) : public : std.utf (c:\\dmd\\phobos\\std\\utf.d)";
RegExp re = new RegExp(re_match_dep);
string[] match = re.exec(line);
assert(match.length == 3);
assert(match[0] == line);
assert(match[1] == r"c:\\dmd\\phobos\\std\\file.d");
assert(match[2] == r"c:\\dmd\\phobos\\std\\utf.d");
line = r"std.file (c:\\dmd\\phobos\\std\\file.d) : public : std.utf (c:\\dmd\\phobos\\std\\utf.d):abc,def";
match = re.exec(line);
assert(match.length == 3);
assert(match[0] == line);
assert(match[1] == r"c:\\dmd\\phobos\\std\\file.d");
assert(match[2] == r"c:\\dmd\\phobos\\std\\utf.d");
}
|
D
|
module citro3d.light;
import ctru.types;
import ctru.gpu.enums;
import citro3d.lightlut;
import citro3d.types;
extern (C): nothrow: @nogc:
//-----------------------------------------------------------------------------
// Material
//-----------------------------------------------------------------------------
struct C3D_Material
{
float[3] ambient;
float[3] diffuse;
float[3] specular0;
float[3] specular1;
float[3] emission;
}
//-----------------------------------------------------------------------------
// Light environment
//-----------------------------------------------------------------------------
// Forward declarations
alias C3D_Light = C3D_Light_t;
alias C3D_LightEnv = C3D_LightEnv_t;
struct C3D_LightLutInputConf
{
uint abs;
uint select;
uint scale;
}
struct C3D_LightEnvConf
{
uint ambient;
uint numLights;
uint[2] config;
C3D_LightLutInputConf lutInput;
uint permutation;
}
enum
{
C3DF_LightEnv_Dirty = BIT(0),
C3DF_LightEnv_MtlDirty = BIT(1),
C3DF_LightEnv_LCDirty = BIT(2)
}
extern (D) auto C3DF_LightEnv_IsCP(T)(auto ref T n)
{
return BIT(18 + n);
}
enum C3DF_LightEnv_IsCP_Any = 0xFF << 18;
extern (D) auto C3DF_LightEnv_LutDirty(T)(auto ref T n)
{
return BIT(26 + n);
}
enum C3DF_LightEnv_LutDirtyAll = 0x3F << 26;
struct C3D_LightEnv_t
{
uint flags;
C3D_LightLut*[6] luts;
float[3] ambient;
C3D_Light*[8] lights;
C3D_LightEnvConf conf;
C3D_Material material;
}
void C3D_LightEnvInit(C3D_LightEnv* env);
void C3D_LightEnvBind(C3D_LightEnv* env);
void C3D_LightEnvMaterial(C3D_LightEnv* env, const(C3D_Material)* mtl);
void C3D_LightEnvAmbient(C3D_LightEnv* env, float r, float g, float b);
void C3D_LightEnvLut(C3D_LightEnv* env, GPULightLutId lutId, GPULightLutInput input, bool negative, C3D_LightLut* lut);
enum
{
GPU_SHADOW_PRIMARY = BIT(16),
GPU_SHADOW_SECONDARY = BIT(17),
GPU_INVERT_SHADOW = BIT(18),
GPU_SHADOW_ALPHA = BIT(19)
}
void C3D_LightEnvFresnel(C3D_LightEnv* env, GPUFresnelSel selector);
void C3D_LightEnvBumpMode(C3D_LightEnv* env, GPUBumpMode mode);
void C3D_LightEnvBumpSel(C3D_LightEnv* env, int texUnit);
void C3D_LightEnvShadowMode(C3D_LightEnv* env, uint mode);
void C3D_LightEnvShadowSel(C3D_LightEnv* env, int texUnit);
void C3D_LightEnvClampHighlights(C3D_LightEnv* env, bool clamp);
//-----------------------------------------------------------------------------
// Light
//-----------------------------------------------------------------------------
struct C3D_LightMatConf
{
uint specular0;
uint specular1;
uint diffuse;
uint ambient;
}
struct C3D_LightConf
{
C3D_LightMatConf material;
ushort[3] position;
ushort padding0;
ushort[3] spotDir;
ushort padding1;
uint padding2;
uint config;
uint distAttnBias;
uint distAttnScale;
}
enum
{
C3DF_Light_Enabled = BIT(0),
C3DF_Light_Dirty = BIT(1),
C3DF_Light_MatDirty = BIT(2),
//C3DF_Light_Shadow = BIT(3),
//C3DF_Light_Spot = BIT(4),
//C3DF_Light_DistAttn = BIT(5),
C3DF_Light_SPDirty = BIT(14),
C3DF_Light_DADirty = BIT(15)
}
struct C3D_Light_t
{
ushort flags;
ushort id;
C3D_LightEnv* parent;
C3D_LightLut* lut_SP;
C3D_LightLut* lut_DA;
float[3] ambient;
float[3] diffuse;
float[3] specular0;
float[3] specular1;
C3D_LightConf conf;
}
int C3D_LightInit(C3D_Light* light, C3D_LightEnv* env);
void C3D_LightEnable(C3D_Light* light, bool enable);
void C3D_LightTwoSideDiffuse(C3D_Light* light, bool enable);
void C3D_LightGeoFactor(C3D_Light* light, int id, bool enable);
void C3D_LightAmbient(C3D_Light* light, float r, float g, float b);
void C3D_LightDiffuse(C3D_Light* light, float r, float g, float b);
void C3D_LightSpecular0(C3D_Light* light, float r, float g, float b);
void C3D_LightSpecular1(C3D_Light* light, float r, float g, float b);
void C3D_LightPosition(C3D_Light* light, C3D_FVec* pos);
void C3D_LightShadowEnable(C3D_Light* light, bool enable);
void C3D_LightSpotEnable(C3D_Light* light, bool enable);
void C3D_LightSpotDir(C3D_Light* light, float x, float y, float z);
void C3D_LightSpotLut(C3D_Light* light, C3D_LightLut* lut);
void C3D_LightDistAttnEnable(C3D_Light* light, bool enable);
void C3D_LightDistAttn(C3D_Light* light, C3D_LightLutDA* lut);
pragma(inline, true)
void C3D_LightColor(C3D_Light* light, float r, float g, float b)
{
C3D_LightDiffuse(light, r, g, b);
C3D_LightSpecular0(light, r, g, b);
C3D_LightSpecular1(light, r, g, b);
}
|
D
|
// Written in the D programming language.
/**
This module declares basic data types for usage in dlangui library.
Synopsis:
----
import dlangui.core.types;
// points
Point p(5, 10);
// rectangles
Rect r(5, 13, 120, 200);
writeln(r);
// reference counted objects, useful for RAII / resource management.
class Foo : RefCountedObject {
int[] resource;
~this() {
writeln("freeing Foo resources");
}
}
{
Ref!Foo ref1;
{
Ref!Foo fooRef = new RefCountedObject();
ref1 = fooRef;
}
// RAII: will destroy object when no more references
}
----
Copyright: Vadim Lopatin, 2014
License: Boost License 1.0
Authors: Vadim Lopatin, coolreader.org@gmail.com
*/
module dlangui.core.types;
import std.algorithm;
struct Point {
int x;
int y;
this(int x0, int y0) {
x = x0;
y = y0;
}
}
struct Rect {
int left;
int top;
int right;
int bottom;
@property int middlex() { return (left + right) / 2; }
@property int middley() { return (top + bottom) / 2; }
void offset(int dx, int dy) {
left += dx;
right += dx;
top += dy;
bottom += dy;
}
/// for all fields, sets this.field to rc.field if rc.field > this.field
void setMax(Rect rc) {
if (left < rc.left)
left = rc.left;
if (right < rc.right)
right = rc.right;
if (top < rc.top)
top = rc.top;
if (bottom < rc.bottom)
bottom = rc.bottom;
}
@property int width() { return right - left; }
@property int height() { return bottom - top; }
this(int x0, int y0, int x1, int y1) {
left = x0;
top = y0;
right = x1;
bottom = y1;
}
@property bool empty() {
return right <= left || bottom <= top;
}
void moveBy(int deltax, int deltay) {
left += deltax;
right += deltax;
top += deltay;
bottom += deltay;
}
/// moves this rect to fit rc bounds, retaining the same size
void moveToFit(ref Rect rc) {
if (right > rc.right)
moveBy(rc.right - right, 0);
if (bottom > rc.bottom)
moveBy(0, rc.bottom - bottom);
if (left < rc.left)
moveBy(rc.left - left, 0);
if (top < rc.top)
moveBy(0, rc.top - top);
}
/// updates this rect to intersection with rc, returns true if result is non empty
bool intersect(Rect rc) {
if (left < rc.left)
left = rc.left;
if (top < rc.top)
top = rc.top;
if (right > rc.right)
right = rc.right;
if (bottom > rc.bottom)
bottom = rc.bottom;
return right > left && bottom > top;
}
/// returns true if this rect has nonempty intersection with rc
bool intersects(Rect rc) {
if (rc.left >= right || rc.top >= bottom || rc.right <= left || rc.bottom <= top)
return false;
return true;
}
/// returns true if point is inside of this rectangle
bool isPointInside(Point pt) {
return pt.x >= left && pt.x < right && pt.y >= top && pt.y < bottom;
}
/// returns true if point is inside of this rectangle
bool isPointInside(int x, int y) {
return x >= left && x < right && y >= top && y < bottom;
}
/// this rectangle is completely inside rc
bool isInsideOf(Rect rc) {
return left >= rc.left && right <= rc.right && top >= rc.top && bottom <= rc.bottom;
}
}
/// character glyph
align(1)
struct Glyph
{
version (USE_OPENGL) {
///< 0: unique id of glyph (for drawing in hardware accelerated scenes)
uint id;
}
///< 4: width of glyph black box
ubyte blackBoxX;
///< 5: height of glyph black box
ubyte blackBoxY;
///< 6: X origin for glyph
byte originX;
///< 7: Y origin for glyph
byte originY;
///< 8: full width of glyph
ubyte width;
///< 9: usage flag, to handle cleanup of unused glyphs
ubyte lastUsage;
///< 12: glyph data, arbitrary size
ubyte[] glyph;
}
/// base class for reference counted objects, maintains reference counter inplace.
class RefCountedObject {
protected int _refCount;
@property int refCount() const { return _refCount; }
void addRef() {
_refCount++;
}
void releaseRef() {
if (--_refCount == 0)
destroy(this);
}
~this() {}
}
struct Ref(T) { // if (T is RefCountedObject)
private T _data;
alias get this;
@property bool isNull() const { return _data is null; }
@property int refCount() const { return _data !is null ? _data.refCount : 0; }
this(T data) {
_data = data;
if (_data !is null)
_data.addRef();
}
this(this) {
if (_data !is null)
_data.addRef();
}
ref Ref opAssign(ref Ref data) {
if (data._data == _data)
return this;
if (_data !is null)
_data.releaseRef();
_data = data._data;
if (_data !is null)
_data.addRef();
return this;
}
ref Ref opAssign(Ref data) {
if (data._data == _data)
return this;
if (_data !is null)
_data.releaseRef();
_data = data._data;
if (_data !is null)
_data.addRef();
return this;
}
ref Ref opAssign(T data) {
if (data == _data)
return this;
if (_data !is null)
_data.releaseRef();
_data = data;
if (_data !is null)
_data.addRef();
return this;
}
void clear() {
if (_data !is null) {
_data.releaseRef();
_data = null;
}
}
@property T get() {
return _data;
}
@property const(T) get() const {
return _data;
}
~this() {
if (_data !is null)
_data.releaseRef();
}
}
// some utility functions
string fromStringz(const(char[]) s) {
if (s is null)
return null;
int i = 0;
while(s[i])
i++;
return cast(string)(s[0..i].dup);
}
string fromStringz(const(char*) s) {
if (s is null)
return null;
int i = 0;
while(s[i])
i++;
return cast(string)(s[0..i].dup);
}
wstring fromWStringz(const(wchar[]) s) {
if (s is null)
return null;
int i = 0;
while(s[i])
i++;
return cast(wstring)(s[0..i].dup);
}
wstring fromWStringz(const(wchar) * s) {
if (s is null)
return null;
int i = 0;
while(s[i])
i++;
return cast(wstring)(s[0..i].dup);
}
/// widget state flags - bits
enum State : uint {
/// state not specified / normal
Normal = 4, // Normal is Enabled
Pressed = 1,
Focused = 2,
Enabled = 4,
Hovered = 8, // mouse pointer is over control, buttons not pressed
Selected = 16,
Checkable = 32,
Checked = 64,
Activated = 128,
WindowFocused = 256,
Default = 512, // widget is default for form (e.g. default button will be focused on show)
Parent = 0x10000, // use parent's state
}
/// uppercase unicode character
dchar dcharToUpper(dchar ch) {
// TODO: support non-ascii letters
if (ch >= 'a' && ch <= 'z')
return ch - 'a' + 'A';
return ch;
}
version (Windows) {
immutable char PATH_DELIMITER = '\\';
} else {
immutable char PATH_DELIMITER = '/';
}
/// returns true if char ch is / or \ slash
bool isPathDelimiter(char ch) {
return ch == '/' || ch == '\\';
}
/// returns current executable path only, including last path delimiter
@property string exePath() {
import std.file;
string path = thisExePath();
int lastSlash = 0;
for (int i = 0; i < path.length; i++)
if (path[i] == PATH_DELIMITER)
lastSlash = i;
return path[0 .. lastSlash + 1];
}
/// converts path delimiters to standard for platform inplace in buffer(e.g. / to \ on windows, \ to / on posix), returns buf
char[] convertPathDelimiters(char[] buf) {
foreach(ref ch; buf) {
version (Windows) {
if (ch == '/')
ch = '\\';
} else {
if (ch == '\\')
ch = '/';
}
}
return buf;
}
/// converts path delimiters to standard for platform (e.g. / to \ on windows, \ to / on posix)
string convertPathDelimiters(string src) {
char[] buf = src.dup;
return cast(string)convertPathDelimiters(buf);
}
/// appends file path parts with proper delimiters e.g. appendPath("/home/user", ".myapp", "config") => "/home/user/.myapp/config"
string appendPath(string[] pathItems ...) {
char[] buf;
foreach (s; pathItems) {
if (buf.length && !isPathDelimiter(buf[$-1]))
buf ~= PATH_DELIMITER;
buf ~= s;
}
return convertPathDelimiters(buf).dup;
}
/// appends file path parts with proper delimiters (as well converts delimiters inside path to system) to buffer e.g. appendPath("/home/user", ".myapp", "config") => "/home/user/.myapp/config"
char[] appendPath(char[] buf, string[] pathItems ...) {
foreach (s; pathItems) {
if (buf.length && !isPathDelimiter(buf[$-1]))
buf ~= PATH_DELIMITER;
buf ~= s;
}
return convertPathDelimiters(buf);
}
|
D
|
/**
* This module provides OS specific helper function for DLL support
*
* Copyright: Copyright Digital Mars 2010 - 2010.
* License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
* Authors: Rainer Schuetze
*/
/* Copyright Digital Mars 2010 - 2010.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
module core.sys.windows.dll;
version( Windows )
{
import core.sys.windows.windows;
import core.stdc.string;
import core.runtime;
public import core.sys.windows.threadaux;
///////////////////////////////////////////////////////////////////
// support fixing implicit TLS for dynamically loaded DLLs on Windows XP
extern (C)
{
extern __gshared void* _tlsstart;
extern __gshared void* _tlsend;
extern __gshared int _tls_index;
extern __gshared void* _tls_callbacks_a;
}
extern (C) // rt.minfo
{
void rt_moduleTlsCtor();
void rt_moduleTlsDtor();
}
private:
struct dll_aux
{
// don't let symbols leak into other modules
struct LdrpTlsListEntry
{
LdrpTlsListEntry* next;
LdrpTlsListEntry* prev;
void* tlsstart;
void* tlsend;
void* ptr_tlsindex;
void* callbacks;
void* zerofill;
int tlsindex;
}
alias extern(Windows)
void* fnRtlAllocateHeap(void* HeapHandle, uint Flags, uint Size);
// find a code sequence and return the address after the sequence
static void* findCodeSequence( void* adr, int len, ref ubyte[] pattern )
{
if( !adr )
return null;
ubyte* code = cast(ubyte*) adr;
for( int p = 0; p < len; p++ )
{
if( code[ p .. p + pattern.length ] == pattern[ 0 .. $ ] )
{
ubyte* padr = code + p + pattern.length;
return padr;
}
}
return null;
}
// find a code sequence and return the (relative) address that follows
static void* findCodeReference( void* adr, int len, ref ubyte[] pattern, bool relative )
{
if( !adr )
return null;
ubyte* padr = cast(ubyte*) findCodeSequence( adr, len, pattern );
if( padr )
{
if( relative )
return padr + 4 + *cast(int*) padr;
return *cast(void**) padr;
}
return null;
}
// crawl through ntdll to find function _LdrpAllocateTls@0 and references
// to _LdrpNumberOfTlsEntries, _NtdllBaseTag and _LdrpTlsList
// LdrInitializeThunk
// -> _LdrpInitialize@12
// -> _LdrpInitializeThread@4
// -> _LdrpAllocateTls@0
// -> je chunk
// _LdrpNumberOfTlsEntries - number of entries in TlsList
// _NtdllBaseTag - tag used for RtlAllocateHeap
// _LdrpTlsList - root of the double linked list with TlsList entries
static __gshared int* pNtdllBaseTag; // remembered for reusage in addTlsData
static __gshared ubyte[] jmp_LdrpInitialize = [ 0x33, 0xED, 0xE9 ]; // xor ebp,ebp; jmp _LdrpInitialize
static __gshared ubyte[] jmp__LdrpInitialize = [ 0x5D, 0xE9 ]; // pop ebp; jmp __LdrpInitialize
static __gshared ubyte[] jmp__LdrpInitialize_xp64 = [ 0x5D, 0x90, 0x90, 0x90, 0x90, 0x90 ]; // pop ebp; nop; nop; nop; nop; nop;
static __gshared ubyte[] call_LdrpInitializeThread = [ 0xFF, 0x75, 0x08, 0xE8 ]; // push [ebp+8]; call _LdrpInitializeThread
static __gshared ubyte[] call_LdrpAllocateTls = [ 0x00, 0x00, 0xE8 ]; // jne 0xc3; call _LdrpAllocateTls
static __gshared ubyte[] call_LdrpAllocateTls_svr03 = [ 0x65, 0xfc, 0x00, 0xE8 ]; // and [ebp+fc], 0; call _LdrpAllocateTls
static __gshared ubyte[] jne_LdrpAllocateTls = [ 0x0f, 0x85 ]; // jne body_LdrpAllocateTls
static __gshared ubyte[] mov_LdrpNumberOfTlsEntries = [ 0x8B, 0x0D ]; // mov ecx, _LdrpNumberOfTlsEntries
static __gshared ubyte[] mov_NtdllBaseTag = [ 0x51, 0x8B, 0x0D ]; // push ecx; mov ecx, _NtdllBaseTag
static __gshared ubyte[] mov_NtdllBaseTag_srv03 = [ 0x50, 0xA1 ]; // push eax; mov eax, _NtdllBaseTag
static __gshared ubyte[] mov_LdrpTlsList = [ 0x8B, 0x3D ]; // mov edi, _LdrpTlsList
static LdrpTlsListEntry* addTlsListEntry( void** peb, void* tlsstart, void* tlsend, void* tls_callbacks_a, int* tlsindex )
{
HANDLE hnd = GetModuleHandleA( "NTDLL" );
assert( hnd, "cannot get module handle for ntdll" );
ubyte* fn = cast(ubyte*) GetProcAddress( hnd, "LdrInitializeThunk" );
assert( fn, "cannot find LdrInitializeThunk in ntdll" );
try
{
void* pLdrpInitialize = findCodeReference( fn, 20, jmp_LdrpInitialize, true );
void* p_LdrpInitialize = findCodeReference( pLdrpInitialize, 40, jmp__LdrpInitialize, true );
if( !p_LdrpInitialize )
p_LdrpInitialize = findCodeSequence( pLdrpInitialize, 40, jmp__LdrpInitialize_xp64 );
void* pLdrpInitializeThread = findCodeReference( p_LdrpInitialize, 200, call_LdrpInitializeThread, true );
void* pLdrpAllocateTls = findCodeReference( pLdrpInitializeThread, 40, call_LdrpAllocateTls, true );
if(!pLdrpAllocateTls)
pLdrpAllocateTls = findCodeReference( pLdrpInitializeThread, 100, call_LdrpAllocateTls_svr03, true );
void* pBodyAllocateTls = findCodeReference( pLdrpAllocateTls, 40, jne_LdrpAllocateTls, true );
int* pLdrpNumberOfTlsEntries = cast(int*) findCodeReference( pBodyAllocateTls, 60, mov_LdrpNumberOfTlsEntries, false );
pNtdllBaseTag = cast(int*) findCodeReference( pBodyAllocateTls, 30, mov_NtdllBaseTag, false );
if(!pNtdllBaseTag)
pNtdllBaseTag = cast(int*) findCodeReference( pBodyAllocateTls, 30, mov_NtdllBaseTag_srv03, false );
LdrpTlsListEntry* pLdrpTlsList = cast(LdrpTlsListEntry*)findCodeReference( pBodyAllocateTls, 80, mov_LdrpTlsList, false );
if( !pLdrpNumberOfTlsEntries || !pNtdllBaseTag || !pLdrpTlsList )
return null;
fnRtlAllocateHeap* fnAlloc = cast(fnRtlAllocateHeap*) GetProcAddress( hnd, "RtlAllocateHeap" );
if( !fnAlloc )
return null;
// allocate new TlsList entry (adding 0xC0000 to the tag is obviously a flag also usesd by
// the nt-loader, could be the result of HEAP_MAKE_TAG_FLAGS(0,HEAP_NO_SERIALIZE|HEAP_GROWABLE)
// but this is not documented in the msdn entry for RtlAlloateHeap
void* heap = peb[6];
LdrpTlsListEntry* entry = cast(LdrpTlsListEntry*) (*fnAlloc)( heap, *pNtdllBaseTag | 0xc0000, LdrpTlsListEntry.sizeof );
if( !entry )
return null;
// fill entry
entry.tlsstart = tlsstart;
entry.tlsend = tlsend;
entry.ptr_tlsindex = tlsindex;
entry.callbacks = tls_callbacks_a;
entry.zerofill = null;
entry.tlsindex = *pLdrpNumberOfTlsEntries;
// and add it to the end of TlsList
*tlsindex = *pLdrpNumberOfTlsEntries;
entry.next = pLdrpTlsList;
entry.prev = pLdrpTlsList.prev;
pLdrpTlsList.prev.next = entry;
pLdrpTlsList.prev = entry;
(*pLdrpNumberOfTlsEntries)++;
return entry;
}
catch( Exception e )
{
// assert( false, e.msg );
return null;
}
}
// reallocate TLS array and create a copy of the TLS data section
static bool addTlsData( void** teb, void* tlsstart, void* tlsend, int tlsindex )
{
try
{
HANDLE hnd = GetModuleHandleA( "NTDLL" );
assert( hnd, "cannot get module handle for ntdll" );
fnRtlAllocateHeap* fnAlloc = cast(fnRtlAllocateHeap*) GetProcAddress( hnd, "RtlAllocateHeap" );
if( !fnAlloc || !pNtdllBaseTag )
return false;
void** peb = cast(void**) teb[12];
void* heap = peb[6];
int sz = tlsend - tlsstart;
void* tlsdata = cast(void*) (*fnAlloc)( heap, *pNtdllBaseTag | 0xc0000, sz );
if( !tlsdata )
return false;
// no relocations! not even self-relocations. Windows does not do them.
core.stdc.string.memcpy( tlsdata, tlsstart, sz );
// create copy of tls pointer array
void** array = cast(void**) (*fnAlloc)( heap, *pNtdllBaseTag | 0xc0000, (tlsindex + 1) * (void*).sizeof );
if( !array )
return false;
if( tlsindex > 0 && teb[11] )
core.stdc.string.memcpy( array, teb[11], tlsindex * (void*).sizeof);
array[tlsindex] = tlsdata;
teb[11] = cast(void*) array;
// let the old array leak, in case a oncurrent thread is still relying on it
}
catch( Exception e )
{
// assert( false, e.msg );
return false;
}
return true;
}
alias bool BOOLEAN;
struct UNICODE_STRING
{
short Length;
short MaximumLength;
wchar* Buffer;
}
struct LIST_ENTRY
{
LIST_ENTRY* next;
LIST_ENTRY* prev;
}
// the following structures can be found here: http://undocumented.ntinternals.net/
struct LDR_MODULE
{
LIST_ENTRY InLoadOrderModuleList;
LIST_ENTRY InMemoryOrderModuleList;
LIST_ENTRY InInitializationOrderModuleList;
PVOID BaseAddress;
PVOID EntryPoint;
ULONG SizeOfImage;
UNICODE_STRING FullDllName;
UNICODE_STRING BaseDllName;
ULONG Flags;
SHORT LoadCount;
SHORT TlsIndex;
LIST_ENTRY HashTableEntry;
ULONG TimeDateStamp;
}
struct PEB_LDR_DATA
{
ULONG Length;
BOOLEAN Initialized;
PVOID SsHandle;
LIST_ENTRY InLoadOrderModuleList;
LIST_ENTRY InMemoryOrderModuleList;
LIST_ENTRY InInitializationOrderModuleList;
}
static LDR_MODULE* findLdrModule( HINSTANCE hInstance, void** peb )
{
PEB_LDR_DATA* ldrData = cast(PEB_LDR_DATA*) peb[3];
LIST_ENTRY* root = &ldrData.InLoadOrderModuleList;
for(LIST_ENTRY* entry = root.next; entry != root; entry = entry.next)
{
LDR_MODULE *ldrMod = cast(LDR_MODULE*) entry;
if(ldrMod.BaseAddress == hInstance)
return ldrMod;
}
return null;
}
static bool setDllTlsUsage( HINSTANCE hInstance, void** peb )
{
try
{
LDR_MODULE *thisMod = findLdrModule( hInstance, peb );
if( !thisMod )
return false;
thisMod.TlsIndex = -1; // uses TLS (not the index itself)
thisMod.LoadCount = -1; // never unload
return true;
}
catch( Exception e )
{
// assert( false, e.msg );
return false;
}
}
}
public:
/* *****************************************************
* Fix implicit thread local storage for the case when a DLL is loaded
* dynamically after process initialization.
* The link time variables are passed to allow placing this function into
* an RTL DLL itself.
* The problem is described in Bugzilla 3342 and
* http://www.nynaeve.net/?p=187, to quote from the latter:
*
* "When a DLL using implicit TLS is loaded, because the loader doesn't process the TLS
* directory, the _tls_index value is not initialized by the loader, nor is there space
* allocated for module's TLS data in the ThreadLocalStoragePointer arrays of running
* threads. The DLL continues to load, however, and things will appear to work... until the
* first access to a __declspec(thread) variable occurs, that is."
*
* _tls_index is initialized by the compiler to 0, so we can use this as a test.
*/
bool dll_fixTLS( HINSTANCE hInstance, void* tlsstart, void* tlsend, void* tls_callbacks_a, int* tlsindex )
{
/* If the OS has allocated a TLS slot for us, we don't have to do anything
* tls_index 0 means: the OS has not done anything, or it has allocated slot 0
* Vista and later Windows systems should do this correctly and not need
* this function.
*/
if( *tlsindex != 0 )
return true;
void** peb;
asm
{
mov EAX,FS:[0x30];
mov peb, EAX;
}
dll_aux.LDR_MODULE *ldrMod = dll_aux.findLdrModule( hInstance, peb );
if( !ldrMod )
return false; // not in module list, bail out
if( ldrMod.TlsIndex != 0 )
return true; // the OS has already setup TLS
dll_aux.LdrpTlsListEntry* entry = dll_aux.addTlsListEntry( peb, tlsstart, tlsend, tls_callbacks_a, tlsindex );
if( !entry )
return false;
if( !enumProcessThreads(
function (uint id, void* context) {
dll_aux.LdrpTlsListEntry* entry = cast(dll_aux.LdrpTlsListEntry*) context;
return dll_aux.addTlsData( getTEB( id ), entry.tlsstart, entry.tlsend, entry.tlsindex );
}, entry ) )
return false;
ldrMod.TlsIndex = -1; // flag TLS usage (not the index itself)
ldrMod.LoadCount = -1; // prevent unloading of the DLL,
// since XP does not keep track of used TLS entries
return true;
}
// fixup TLS storage, initialize runtime and attach to threads
// to be called from DllMain with reason DLL_PROCESS_ATTACH
bool dll_process_attach( HINSTANCE hInstance, bool attach_threads,
void* tlsstart, void* tlsend, void* tls_callbacks_a, int* tlsindex )
{
if( !dll_fixTLS( hInstance, tlsstart, tlsend, tls_callbacks_a, tlsindex ) )
return false;
Runtime.initialize();
if( !attach_threads )
return true;
// attach to all other threads
return enumProcessThreads(
function (uint id, void* context) {
if( !thread_findByAddr( id ) )
{
// if the OS has not prepared TLS for us, don't attach to the thread
if( GetTlsDataAddress( id ) )
{
thread_attachByAddr( id );
thread_moduleTlsCtor( id );
}
}
return true;
}, null );
}
// same as above, but only usable if druntime is linked statically
bool dll_process_attach( HINSTANCE hInstance, bool attach_threads = true )
{
return dll_process_attach( hInstance, attach_threads,
&_tlsstart, &_tlsend, &_tls_callbacks_a, &_tls_index );
}
// to be called from DllMain with reason DLL_PROCESS_DETACH
void dll_process_detach( HINSTANCE hInstance, bool detach_threads = true )
{
// detach from all other threads
if( detach_threads )
enumProcessThreads(
function (uint id, void* context) {
if( id != GetCurrentThreadId() && thread_findByAddr( id ) )
{
thread_moduleTlsDtor( id );
thread_detachByAddr( id );
}
return true;
}, null );
Runtime.terminate();
}
/* Make sure that tlsCtorRun is itself a tls variable
*/
static bool tlsCtorRun;
static this() { tlsCtorRun = true; }
static ~this() { tlsCtorRun = false; }
// to be called from DllMain with reason DLL_THREAD_ATTACH
bool dll_thread_attach( bool attach_thread = true, bool initTls = true )
{
// if the OS has not prepared TLS for us, don't attach to the thread
// (happened when running under x64 OS)
if( !GetTlsDataAddress( GetCurrentThreadId() ) )
return false;
if( !thread_findByAddr( GetCurrentThreadId() ) )
{
// only attach to thread and initalize it if it is not in the thread list (so it's not created by "new Thread")
if( attach_thread )
thread_attachThis();
if( initTls && !tlsCtorRun ) // avoid duplicate calls
rt_moduleTlsCtor();
}
return true;
}
// to be called from DllMain with reason DLL_THREAD_DETACH
bool dll_thread_detach( bool detach_thread = true, bool exitTls = true )
{
// if the OS has not prepared TLS for us, we did not attach to the thread
if( !GetTlsDataAddress( GetCurrentThreadId() ) )
return false;
if( thread_findByAddr( GetCurrentThreadId() ) )
{
if( exitTls && tlsCtorRun ) // avoid dtors to be run twice
rt_moduleTlsDtor();
if( detach_thread )
thread_detachThis();
}
return true;
}
}
|
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: Walter Bright, http://www.digitalmars.com
* 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/cppmanglewin.d, _cppmanglewin.d)
* Documentation: https://dlang.org/phobos/dmd_cppmanglewin.html
* Coverage: https://codecov.io/gh/dlang/dmd/src/master/src/dmd/cppmanglewin.d
*/
module dmd.cppmanglewin;
import core.stdc.string;
import core.stdc.stdio;
import dmd.arraytypes;
import dmd.cppmangle : isPrimaryDtor, isCppOperator, CppOperator;
import dmd.declaration;
import dmd.denum : isSpecialEnumIdent;
import dmd.dsymbol;
import dmd.dtemplate;
import dmd.errors;
import dmd.expression;
import dmd.func;
import dmd.globals;
import dmd.id;
import dmd.mtype;
import dmd.root.outbuffer;
import dmd.root.rootobject;
import dmd.target;
import dmd.tokens;
import dmd.typesem;
import dmd.visitor;
/* Do mangling for C++ linkage for Digital Mars C++ and Microsoft Visual C++
*/
extern (C++):
const(char)* toCppMangleMSVC(Dsymbol s)
{
scope VisualCPPMangler v = new VisualCPPMangler(!global.params.mscoff);
return v.mangleOf(s);
}
const(char)* cppTypeInfoMangleMSVC(Dsymbol s)
{
//printf("cppTypeInfoMangle(%s)\n", s.toChars());
assert(0);
}
/**
* Issues an ICE and returns true if `type` is shared or immutable
*
* Params:
* type = type to check
*
* Returns:
* true if type is shared or immutable
* false otherwise
*/
private bool checkImmutableShared(Type type)
{
if (type.isImmutable() || type.isShared())
{
error(Loc.initial, "Internal Compiler Error: `shared` or `immutable` types can not be mapped to C++ (%s)", type.toChars());
fatal();
return true;
}
return false;
}
private final class VisualCPPMangler : Visitor
{
enum VC_SAVED_TYPE_CNT = 10u;
enum VC_SAVED_IDENT_CNT = 10u;
alias visit = Visitor.visit;
const(char)*[VC_SAVED_IDENT_CNT] saved_idents;
Type[VC_SAVED_TYPE_CNT] saved_types;
// IS_NOT_TOP_TYPE: when we mangling one argument, we can call visit several times (for base types of arg type)
// but we must save only arg type:
// For example: if we have an int** argument, we should save "int**" but visit will be called for "int**", "int*", "int"
// This flag is set up by the visit(NextType, ) function and should be reset when the arg type output is finished.
// MANGLE_RETURN_TYPE: return type shouldn't be saved and substituted in arguments
// IGNORE_CONST: in some cases we should ignore CV-modifiers.
// ESCAPE: toplevel const non-pointer types need a '$$C' escape in addition to a cv qualifier.
enum Flags : int
{
IS_NOT_TOP_TYPE = 0x1,
MANGLE_RETURN_TYPE = 0x2,
IGNORE_CONST = 0x4,
IS_DMC = 0x8,
ESCAPE = 0x10,
}
alias IS_NOT_TOP_TYPE = Flags.IS_NOT_TOP_TYPE;
alias MANGLE_RETURN_TYPE = Flags.MANGLE_RETURN_TYPE;
alias IGNORE_CONST = Flags.IGNORE_CONST;
alias IS_DMC = Flags.IS_DMC;
alias ESCAPE = Flags.ESCAPE;
int flags;
OutBuffer buf;
extern (D) this(VisualCPPMangler rvl)
{
flags |= (rvl.flags & IS_DMC);
memcpy(&saved_idents, &rvl.saved_idents, (const(char)*).sizeof * VC_SAVED_IDENT_CNT);
memcpy(&saved_types, &rvl.saved_types, Type.sizeof * VC_SAVED_TYPE_CNT);
}
public:
extern (D) this(bool isdmc)
{
if (isdmc)
{
flags |= IS_DMC;
}
memset(&saved_idents, 0, (const(char)*).sizeof * VC_SAVED_IDENT_CNT);
memset(&saved_types, 0, Type.sizeof * VC_SAVED_TYPE_CNT);
}
override void visit(Type type)
{
if (checkImmutableShared(type))
return;
error(Loc.initial, "Internal Compiler Error: type `%s` can not be mapped to C++\n", type.toChars());
fatal(); //Fatal, because this error should be handled in frontend
}
override void visit(TypeNull type)
{
if (checkImmutableShared(type))
return;
buf.writestring("$$T");
flags &= ~IS_NOT_TOP_TYPE;
flags &= ~IGNORE_CONST;
}
override void visit(TypeBasic type)
{
//printf("visit(TypeBasic); is_not_top_type = %d\n", (int)(flags & IS_NOT_TOP_TYPE));
if (checkImmutableShared(type))
return;
if (type.isConst() && ((flags & IS_NOT_TOP_TYPE) || (flags & IS_DMC)))
{
if (checkTypeSaved(type))
return;
}
if ((type.ty == Tbool) && checkTypeSaved(type)) // try to replace long name with number
{
return;
}
if (!(flags & IS_DMC))
{
switch (type.ty)
{
case Tint64:
case Tuns64:
case Tint128:
case Tuns128:
case Tfloat80:
case Twchar:
if (checkTypeSaved(type))
return;
break;
default:
break;
}
}
mangleModifier(type);
switch (type.ty)
{
case Tvoid:
buf.writeByte('X');
break;
case Tint8:
buf.writeByte('C');
break;
case Tuns8:
buf.writeByte('E');
break;
case Tint16:
buf.writeByte('F');
break;
case Tuns16:
buf.writeByte('G');
break;
case Tint32:
buf.writeByte('H');
break;
case Tuns32:
buf.writeByte('I');
break;
case Tfloat32:
buf.writeByte('M');
break;
case Tint64:
buf.writestring("_J");
break;
case Tuns64:
buf.writestring("_K");
break;
case Tint128:
buf.writestring("_L");
break;
case Tuns128:
buf.writestring("_M");
break;
case Tfloat64:
buf.writeByte('N');
break;
case Tbool:
buf.writestring("_N");
break;
case Tchar:
buf.writeByte('D');
break;
case Tdchar:
buf.writeByte('I');
break;
// unsigned int
case Tfloat80:
if (flags & IS_DMC)
buf.writestring("_Z"); // DigitalMars long double
else
buf.writestring("_T"); // Intel long double
break;
case Twchar:
if (flags & IS_DMC)
buf.writestring("_Y"); // DigitalMars wchar_t
else
buf.writestring("_W"); // Visual C++ wchar_t
break;
default:
visit(cast(Type)type);
return;
}
flags &= ~IS_NOT_TOP_TYPE;
flags &= ~IGNORE_CONST;
}
override void visit(TypeVector type)
{
//printf("visit(TypeVector); is_not_top_type = %d\n", (int)(flags & IS_NOT_TOP_TYPE));
if (checkTypeSaved(type))
return;
buf.writestring("T__m128@@"); // may be better as __m128i or __m128d?
flags &= ~IS_NOT_TOP_TYPE;
flags &= ~IGNORE_CONST;
}
override void visit(TypeSArray type)
{
// This method can be called only for static variable type mangling.
//printf("visit(TypeSArray); is_not_top_type = %d\n", (int)(flags & IS_NOT_TOP_TYPE));
if (checkTypeSaved(type))
return;
// first dimension always mangled as const pointer
if (flags & IS_DMC)
buf.writeByte('Q');
else
buf.writeByte('P');
flags |= IS_NOT_TOP_TYPE;
assert(type.next);
if (type.next.ty == Tsarray)
{
mangleArray(cast(TypeSArray)type.next);
}
else
{
type.next.accept(this);
}
}
// attention: D int[1][2]* arr mapped to C++ int arr[][2][1]; (because it's more typical situation)
// There is not way to map int C++ (*arr)[2][1] to D
override void visit(TypePointer type)
{
//printf("visit(TypePointer); is_not_top_type = %d\n", (int)(flags & IS_NOT_TOP_TYPE));
if (checkImmutableShared(type))
return;
assert(type.next);
if (type.next.ty == Tfunction)
{
const(char)* arg = mangleFunctionType(cast(TypeFunction)type.next); // compute args before checking to save; args should be saved before function type
// If we've mangled this function early, previous call is meaningless.
// However we should do it before checking to save types of function arguments before function type saving.
// If this function was already mangled, types of all it arguments are save too, thus previous can't save
// anything if function is saved.
if (checkTypeSaved(type))
return;
if (type.isConst())
buf.writeByte('Q'); // const
else
buf.writeByte('P'); // mutable
buf.writeByte('6'); // pointer to a function
buf.writestring(arg);
flags &= ~IS_NOT_TOP_TYPE;
flags &= ~IGNORE_CONST;
return;
}
else if (type.next.ty == Tsarray)
{
if (checkTypeSaved(type))
return;
mangleModifier(type);
if (type.isConst() || !(flags & IS_DMC))
buf.writeByte('Q'); // const
else
buf.writeByte('P'); // mutable
if (global.params.is64bit)
buf.writeByte('E');
flags |= IS_NOT_TOP_TYPE;
mangleArray(cast(TypeSArray)type.next);
return;
}
else
{
if (checkTypeSaved(type))
return;
mangleModifier(type);
if (type.isConst())
{
buf.writeByte('Q'); // const
}
else
{
buf.writeByte('P'); // mutable
}
if (global.params.is64bit)
buf.writeByte('E');
flags |= IS_NOT_TOP_TYPE;
type.next.accept(this);
}
}
override void visit(TypeReference type)
{
//printf("visit(TypeReference); type = %s\n", type.toChars());
if (checkTypeSaved(type))
return;
if (checkImmutableShared(type))
return;
buf.writeByte('A'); // mutable
if (global.params.is64bit)
buf.writeByte('E');
flags |= IS_NOT_TOP_TYPE;
assert(type.next);
if (type.next.ty == Tsarray)
{
mangleArray(cast(TypeSArray)type.next);
}
else
{
type.next.accept(this);
}
}
override void visit(TypeFunction type)
{
const(char)* arg = mangleFunctionType(type);
if ((flags & IS_DMC))
{
if (checkTypeSaved(type))
return;
}
else
{
buf.writestring("$$A6");
}
buf.writestring(arg);
flags &= ~(IS_NOT_TOP_TYPE | IGNORE_CONST);
}
override void visit(TypeStruct type)
{
if (checkTypeSaved(type))
return;
//printf("visit(TypeStruct); is_not_top_type = %d\n", (int)(flags & IS_NOT_TOP_TYPE));
mangleModifier(type);
if (type.sym.isUnionDeclaration())
buf.writeByte('T');
else
buf.writeByte(type.cppmangle == CPPMANGLE.asClass ? 'V' : 'U');
mangleIdent(type.sym);
flags &= ~IS_NOT_TOP_TYPE;
flags &= ~IGNORE_CONST;
}
override void visit(TypeEnum type)
{
//printf("visit(TypeEnum); is_not_top_type = %d\n", (int)(flags & IS_NOT_TOP_TYPE));
const id = type.sym.ident;
string c;
if (id == Id.__c_long_double)
c = "O"; // VC++ long double
else if (id == Id.__c_long)
c = "J"; // VC++ long
else if (id == Id.__c_ulong)
c = "K"; // VC++ unsigned long
else if (id == Id.__c_longlong)
c = "_J"; // VC++ long long
else if (id == Id.__c_ulonglong)
c = "_K"; // VC++ unsigned long long
else if (id == Id.__c_wchar_t)
{
c = (flags & IS_DMC) ? "_Y" : "_W";
}
if (c.length)
{
if (checkImmutableShared(type))
return;
if (type.isConst() && ((flags & IS_NOT_TOP_TYPE) || (flags & IS_DMC)))
{
if (checkTypeSaved(type))
return;
}
mangleModifier(type);
buf.writestring(c);
}
else
{
if (checkTypeSaved(type))
return;
mangleModifier(type);
buf.writeByte('W');
switch (type.sym.memtype.ty)
{
case Tchar:
case Tint8:
buf.writeByte('0');
break;
case Tuns8:
buf.writeByte('1');
break;
case Tint16:
buf.writeByte('2');
break;
case Tuns16:
buf.writeByte('3');
break;
case Tint32:
buf.writeByte('4');
break;
case Tuns32:
buf.writeByte('5');
break;
case Tint64:
buf.writeByte('6');
break;
case Tuns64:
buf.writeByte('7');
break;
default:
visit(cast(Type)type);
break;
}
mangleIdent(type.sym);
}
flags &= ~IS_NOT_TOP_TYPE;
flags &= ~IGNORE_CONST;
}
// D class mangled as pointer to C++ class
// const(Object) mangled as Object const* const
override void visit(TypeClass type)
{
//printf("visit(TypeClass); is_not_top_type = %d\n", (int)(flags & IS_NOT_TOP_TYPE));
if (checkTypeSaved(type))
return;
if (flags & IS_NOT_TOP_TYPE)
mangleModifier(type);
if (type.isConst())
buf.writeByte('Q');
else
buf.writeByte('P');
if (global.params.is64bit)
buf.writeByte('E');
flags |= IS_NOT_TOP_TYPE;
mangleModifier(type);
buf.writeByte(type.cppmangle == CPPMANGLE.asStruct ? 'U' : 'V');
mangleIdent(type.sym);
flags &= ~IS_NOT_TOP_TYPE;
flags &= ~IGNORE_CONST;
}
const(char)* mangleOf(Dsymbol s)
{
VarDeclaration vd = s.isVarDeclaration();
FuncDeclaration fd = s.isFuncDeclaration();
if (vd)
{
mangleVariable(vd);
}
else if (fd)
{
mangleFunction(fd);
}
else
{
assert(0);
}
return buf.extractString();
}
private:
void mangleFunction(FuncDeclaration d)
{
// <function mangle> ? <qualified name> <flags> <return type> <arg list>
assert(d);
buf.writeByte('?');
mangleIdent(d);
if (d.needThis()) // <flags> ::= <virtual/protection flag> <const/volatile flag> <calling convention flag>
{
// Pivate methods always non-virtual in D and it should be mangled as non-virtual in C++
//printf("%s: isVirtualMethod = %d, isVirtual = %d, vtblIndex = %d, interfaceVirtual = %p\n",
//d.toChars(), d.isVirtualMethod(), d.isVirtual(), cast(int)d.vtblIndex, d.interfaceVirtual);
if ((d.isVirtual() && (d.vtblIndex != -1 || d.interfaceVirtual || d.overrideInterface())) || (d.isDtorDeclaration() && d.parent.isClassDeclaration() && !d.isFinal()))
{
switch (d.protection.kind)
{
case Prot.Kind.private_:
buf.writeByte('E');
break;
case Prot.Kind.protected_:
buf.writeByte('M');
break;
default:
buf.writeByte('U');
break;
}
}
else
{
switch (d.protection.kind)
{
case Prot.Kind.private_:
buf.writeByte('A');
break;
case Prot.Kind.protected_:
buf.writeByte('I');
break;
default:
buf.writeByte('Q');
break;
}
}
if (global.params.is64bit)
buf.writeByte('E');
if (d.type.isConst())
{
buf.writeByte('B');
}
else
{
buf.writeByte('A');
}
}
else if (d.isMember2()) // static function
{
// <flags> ::= <virtual/protection flag> <calling convention flag>
switch (d.protection.kind)
{
case Prot.Kind.private_:
buf.writeByte('C');
break;
case Prot.Kind.protected_:
buf.writeByte('K');
break;
default:
buf.writeByte('S');
break;
}
}
else // top-level function
{
// <flags> ::= Y <calling convention flag>
buf.writeByte('Y');
}
const(char)* args = mangleFunctionType(cast(TypeFunction)d.type, d.needThis(), d.isCtorDeclaration() || isPrimaryDtor(d));
buf.writestring(args);
}
void mangleVariable(VarDeclaration d)
{
// <static variable mangle> ::= ? <qualified name> <protection flag> <const/volatile flag> <type>
assert(d);
// fake mangling for fields to fix https://issues.dlang.org/show_bug.cgi?id=16525
if (!(d.storage_class & (STC.extern_ | STC.field | STC.gshared)))
{
d.error("Internal Compiler Error: C++ static non-__gshared non-extern variables not supported");
fatal();
}
buf.writeByte('?');
mangleIdent(d);
assert((d.storage_class & STC.field) || !d.needThis());
Dsymbol parent = d.toParent3();
while (parent && parent.isNspace())
{
parent = parent.toParent3();
}
if (parent && parent.isModule()) // static member
{
buf.writeByte('3');
}
else
{
switch (d.protection.kind)
{
case Prot.Kind.private_:
buf.writeByte('0');
break;
case Prot.Kind.protected_:
buf.writeByte('1');
break;
default:
buf.writeByte('2');
break;
}
}
char cv_mod = 0;
Type t = d.type;
if (checkImmutableShared(t))
return;
if (t.isConst())
{
cv_mod = 'B'; // const
}
else
{
cv_mod = 'A'; // mutable
}
if (t.ty != Tpointer)
t = t.mutableOf();
t.accept(this);
if ((t.ty == Tpointer || t.ty == Treference || t.ty == Tclass) && global.params.is64bit)
{
buf.writeByte('E');
}
buf.writeByte(cv_mod);
}
/**
* Computes mangling for symbols with special mangling.
* Params:
* sym = symbol to mangle
* Returns:
* mangling for special symbols,
* null if not a special symbol
*/
extern (D) static string mangleSpecialName(Dsymbol sym)
{
string mangle;
if (sym.isCtorDeclaration())
mangle = "?0";
else if (sym.isPrimaryDtor())
mangle = "?1";
else if (!sym.ident)
return null;
else if (sym.ident == Id.assign)
mangle = "?4";
else if (sym.ident == Id.eq)
mangle = "?8";
else if (sym.ident == Id.index)
mangle = "?A";
else if (sym.ident == Id.call)
mangle = "?R";
else if (sym.ident == Id.cppdtor)
mangle = "?_G";
else
return null;
return mangle;
}
/**
* Mangles an operator, if any
*
* Params:
* ti = associated template instance of the operator
* symName = symbol name
* firstTemplateArg = index if the first argument of the template (because the corresponding c++ operator is not a template)
* Returns:
* true if sym has no further mangling needed
* false otherwise
*/
bool mangleOperator(TemplateInstance ti, ref const(char)* symName, ref int firstTemplateArg)
{
auto whichOp = isCppOperator(ti.name);
final switch (whichOp)
{
case CppOperator.Unknown:
return false;
case CppOperator.Cast:
buf.writestring("?B");
return true;
case CppOperator.Assign:
symName = "?4";
return false;
case CppOperator.Eq:
symName = "?8";
return false;
case CppOperator.Index:
symName = "?A";
return false;
case CppOperator.Call:
symName = "?R";
return false;
case CppOperator.Unary:
case CppOperator.Binary:
case CppOperator.OpAssign:
TemplateDeclaration td = ti.tempdecl.isTemplateDeclaration();
assert(td);
assert(ti.tiargs.dim >= 1);
TemplateParameter tp = (*td.parameters)[0];
TemplateValueParameter tv = tp.isTemplateValueParameter();
if (!tv || !tv.valType.isString())
return false; // expecting a string argument to operators!
Expression exp = (*ti.tiargs)[0].isExpression();
StringExp str = exp.toStringExp();
switch (whichOp)
{
case CppOperator.Unary:
switch (str.peekSlice())
{
case "*": symName = "?D"; goto continue_template;
case "++": symName = "?E"; goto continue_template;
case "--": symName = "?F"; goto continue_template;
case "-": symName = "?G"; goto continue_template;
case "+": symName = "?H"; goto continue_template;
case "~": symName = "?S"; goto continue_template;
default: return false;
}
case CppOperator.Binary:
switch (str.peekSlice())
{
case ">>": symName = "?5"; goto continue_template;
case "<<": symName = "?6"; goto continue_template;
case "*": symName = "?D"; goto continue_template;
case "-": symName = "?G"; goto continue_template;
case "+": symName = "?H"; goto continue_template;
case "&": symName = "?I"; goto continue_template;
case "/": symName = "?K"; goto continue_template;
case "%": symName = "?L"; goto continue_template;
case "^": symName = "?T"; goto continue_template;
case "|": symName = "?U"; goto continue_template;
default: return false;
}
case CppOperator.OpAssign:
switch (str.peekSlice())
{
case "*": symName = "?X"; goto continue_template;
case "+": symName = "?Y"; goto continue_template;
case "-": symName = "?Z"; goto continue_template;
case "/": symName = "?_0"; goto continue_template;
case "%": symName = "?_1"; goto continue_template;
case ">>": symName = "?_2"; goto continue_template;
case "<<": symName = "?_3"; goto continue_template;
case "&": symName = "?_4"; goto continue_template;
case "|": symName = "?_5"; goto continue_template;
case "^": symName = "?_6"; goto continue_template;
default: return false;
}
default: assert(0);
}
}
continue_template:
if (ti.tiargs.dim == 1)
{
buf.writestring(symName);
return true;
}
firstTemplateArg = 1;
return false;
}
/**
* Mangles a template value
*
* Params:
* o = expression that represents the value
* tv = template value
* is_dmc_template = use DMC mangling
*/
void manlgeTemplateValue(RootObject o,TemplateValueParameter tv, Dsymbol sym,bool is_dmc_template)
{
if (!tv.valType.isintegral())
{
sym.error("Internal Compiler Error: C++ %s template value parameter is not supported", tv.valType.toChars());
fatal();
return;
}
buf.writeByte('$');
buf.writeByte('0');
Expression e = isExpression(o);
assert(e);
if (tv.valType.isunsigned())
{
mangleNumber(e.toUInteger());
}
else if (is_dmc_template)
{
// NOTE: DMC mangles everything based on
// unsigned int
mangleNumber(e.toInteger());
}
else
{
sinteger_t val = e.toInteger();
if (val < 0)
{
val = -val;
buf.writeByte('?');
}
mangleNumber(val);
}
}
/**
* Mangles a template alias parameter
*
* Params:
* o = the alias value, a symbol or expression
*/
void mangleTemplateAlias(RootObject o, Dsymbol sym)
{
Dsymbol d = isDsymbol(o);
Expression e = isExpression(o);
if (d && d.isFuncDeclaration())
{
buf.writeByte('$');
buf.writeByte('1');
mangleFunction(d.isFuncDeclaration());
}
else if (e && e.op == TOK.variable && (cast(VarExp)e).var.isVarDeclaration())
{
buf.writeByte('$');
if (flags & IS_DMC)
buf.writeByte('1');
else
buf.writeByte('E');
mangleVariable((cast(VarExp)e).var.isVarDeclaration());
}
else if (d && d.isTemplateDeclaration() && d.isTemplateDeclaration().onemember)
{
Dsymbol ds = d.isTemplateDeclaration().onemember;
if (flags & IS_DMC)
{
buf.writeByte('V');
}
else
{
if (ds.isUnionDeclaration())
{
buf.writeByte('T');
}
else if (ds.isStructDeclaration())
{
buf.writeByte('U');
}
else if (ds.isClassDeclaration())
{
buf.writeByte('V');
}
else
{
sym.error("Internal Compiler Error: C++ templates support only integral value, type parameters, alias templates and alias function parameters");
fatal();
}
}
mangleIdent(d);
}
else
{
sym.error("Internal Compiler Error: `%s` is unsupported parameter for C++ template", o.toChars());
fatal();
}
}
/**
* Mangles a template alias parameter
*
* Params:
* o = type
*/
void mangleTemplateType(RootObject o)
{
flags |= ESCAPE;
Type t = isType(o);
assert(t);
t.accept(this);
flags &= ~ESCAPE;
}
/**
* Mangles the name of a symbol
*
* Params:
* sym = symbol to mangle
* dont_use_back_reference = dont use back referencing
*/
void mangleName(Dsymbol sym, bool dont_use_back_reference)
{
//printf("mangleName('%s')\n", sym.toChars());
const(char)* name = null;
bool is_dmc_template = false;
if (string s = mangleSpecialName(sym))
{
buf.writestring(s);
return;
}
if (TemplateInstance ti = sym.isTemplateInstance())
{
auto id = ti.tempdecl.ident;
const(char)* symName = id.toChars();
int firstTemplateArg = 0;
// test for special symbols
if (mangleOperator(ti,symName,firstTemplateArg))
return;
scope VisualCPPMangler tmp = new VisualCPPMangler((flags & IS_DMC) ? true : false);
tmp.buf.writeByte('?');
tmp.buf.writeByte('$');
tmp.buf.writestring(symName);
tmp.saved_idents[0] = symName;
if (symName == id.toChars())
tmp.buf.writeByte('@');
if (flags & IS_DMC)
{
tmp.mangleIdent(sym.parent, true);
is_dmc_template = true;
}
bool is_var_arg = false;
for (size_t i = firstTemplateArg; i < ti.tiargs.dim; i++)
{
RootObject o = (*ti.tiargs)[i];
TemplateParameter tp = null;
TemplateValueParameter tv = null;
TemplateTupleParameter tt = null;
if (!is_var_arg)
{
TemplateDeclaration td = ti.tempdecl.isTemplateDeclaration();
assert(td);
tp = (*td.parameters)[i];
tv = tp.isTemplateValueParameter();
tt = tp.isTemplateTupleParameter();
}
if (tt)
{
is_var_arg = true;
tp = null;
}
if (tv)
{
tmp.manlgeTemplateValue(o, tv, sym, is_dmc_template);
}
else if (!tp || tp.isTemplateTypeParameter())
{
tmp.mangleTemplateType(o);
}
else if (tp.isTemplateAliasParameter())
{
tmp.mangleTemplateAlias(o, sym);
}
else
{
sym.error("Internal Compiler Error: C++ templates support only integral value, type parameters, alias templates and alias function parameters");
fatal();
}
}
name = tmp.buf.extractString();
}
else
{
// Not a template
name = sym.ident.toChars();
}
assert(name);
if (is_dmc_template)
{
if (checkAndSaveIdent(name))
return;
}
else
{
if (dont_use_back_reference)
{
saveIdent(name);
}
else
{
if (checkAndSaveIdent(name))
return;
}
}
buf.writestring(name);
buf.writeByte('@');
}
// returns true if name already saved
bool checkAndSaveIdent(const(char)* name)
{
foreach (i; 0 .. VC_SAVED_IDENT_CNT)
{
if (!saved_idents[i]) // no saved same name
{
saved_idents[i] = name;
break;
}
if (!strcmp(saved_idents[i], name)) // ok, we've found same name. use index instead of name
{
buf.writeByte(i + '0');
return true;
}
}
return false;
}
void saveIdent(const(char)* name)
{
foreach (i; 0 .. VC_SAVED_IDENT_CNT)
{
if (!saved_idents[i]) // no saved same name
{
saved_idents[i] = name;
break;
}
if (!strcmp(saved_idents[i], name)) // ok, we've found same name. use index instead of name
{
return;
}
}
}
void mangleIdent(Dsymbol sym, bool dont_use_back_reference = false)
{
// <qualified name> ::= <sub-name list> @
// <sub-name list> ::= <sub-name> <name parts>
// ::= <sub-name>
// <sub-name> ::= <identifier> @
// ::= ?$ <identifier> @ <template args> @
// :: <back reference>
// <back reference> ::= 0-9
// <template args> ::= <template arg> <template args>
// ::= <template arg>
// <template arg> ::= <type>
// ::= $0<encoded integral number>
//printf("mangleIdent('%s')\n", sym.toChars());
Dsymbol p = sym;
if (p.toParent3() && p.toParent3().isTemplateInstance())
{
p = p.toParent3();
}
while (p && !p.isModule())
{
mangleName(p, dont_use_back_reference);
p = p.toParent3();
if (p.toParent3() && p.toParent3().isTemplateInstance())
{
p = p.toParent3();
}
}
if (!dont_use_back_reference)
buf.writeByte('@');
}
void mangleNumber(dinteger_t num)
{
if (!num) // 0 encoded as "A@"
{
buf.writeByte('A');
buf.writeByte('@');
return;
}
if (num <= 10) // 5 encoded as "4"
{
buf.writeByte(cast(char)(num - 1 + '0'));
return;
}
char[17] buff;
buff[16] = 0;
size_t i = 16;
while (num)
{
--i;
buff[i] = num % 16 + 'A';
num /= 16;
}
buf.writestring(&buff[i]);
buf.writeByte('@');
}
bool checkTypeSaved(Type type)
{
if (flags & IS_NOT_TOP_TYPE)
return false;
if (flags & MANGLE_RETURN_TYPE)
return false;
for (uint i = 0; i < VC_SAVED_TYPE_CNT; i++)
{
if (!saved_types[i]) // no saved same type
{
saved_types[i] = type;
return false;
}
if (saved_types[i].equals(type)) // ok, we've found same type. use index instead of type
{
buf.writeByte(i + '0');
flags &= ~IS_NOT_TOP_TYPE;
flags &= ~IGNORE_CONST;
return true;
}
}
return false;
}
void mangleModifier(Type type)
{
if (flags & IGNORE_CONST)
return;
if (checkImmutableShared(type))
return;
if (type.isConst())
{
// Template parameters that are not pointers and are const need an $$C escape
// in addition to 'B' (const).
if ((flags & ESCAPE) && type.ty != Tpointer)
buf.writestring("$$CB");
else if (flags & IS_NOT_TOP_TYPE)
buf.writeByte('B'); // const
else if ((flags & IS_DMC) && type.ty != Tpointer)
buf.writestring("_O");
}
else if (flags & IS_NOT_TOP_TYPE)
buf.writeByte('A'); // mutable
flags &= ~ESCAPE;
}
void mangleArray(TypeSArray type)
{
mangleModifier(type);
size_t i = 0;
Type cur = type;
while (cur && cur.ty == Tsarray)
{
i++;
cur = cur.nextOf();
}
buf.writeByte('Y');
mangleNumber(i); // count of dimensions
cur = type;
while (cur && cur.ty == Tsarray) // sizes of dimensions
{
TypeSArray sa = cast(TypeSArray)cur;
mangleNumber(sa.dim ? sa.dim.toInteger() : 0);
cur = cur.nextOf();
}
flags |= IGNORE_CONST;
cur.accept(this);
}
const(char)* mangleFunctionType(TypeFunction type, bool needthis = false, bool noreturn = false)
{
scope VisualCPPMangler tmp = new VisualCPPMangler(this);
// Calling convention
if (global.params.is64bit) // always Microsoft x64 calling convention
{
tmp.buf.writeByte('A');
}
else
{
final switch (type.linkage)
{
case LINK.c:
tmp.buf.writeByte('A');
break;
case LINK.cpp:
if (needthis && type.parameterList.varargs != VarArg.variadic)
tmp.buf.writeByte('E'); // thiscall
else
tmp.buf.writeByte('A'); // cdecl
break;
case LINK.windows:
tmp.buf.writeByte('G'); // stdcall
break;
case LINK.pascal:
tmp.buf.writeByte('C');
break;
case LINK.d:
case LINK.default_:
case LINK.system:
case LINK.objc:
tmp.visit(cast(Type)type);
break;
}
}
tmp.flags &= ~IS_NOT_TOP_TYPE;
if (noreturn)
{
tmp.buf.writeByte('@');
}
else
{
Type rettype = type.next;
if (type.isref)
rettype = rettype.referenceTo();
flags &= ~IGNORE_CONST;
if (rettype.ty == Tstruct)
{
tmp.buf.writeByte('?');
tmp.buf.writeByte('A');
}
else if (rettype.ty == Tenum)
{
const id = rettype.toDsymbol(null).ident;
if (!isSpecialEnumIdent(id))
{
tmp.buf.writeByte('?');
tmp.buf.writeByte('A');
}
}
tmp.flags |= MANGLE_RETURN_TYPE;
rettype.accept(tmp);
tmp.flags &= ~MANGLE_RETURN_TYPE;
}
if (!type.parameterList.parameters || !type.parameterList.parameters.dim)
{
if (type.parameterList.varargs == VarArg.variadic)
tmp.buf.writeByte('Z');
else
tmp.buf.writeByte('X');
}
else
{
int mangleParameterDg(size_t n, Parameter p)
{
Type t = p.type;
if (p.storageClass & (STC.out_ | STC.ref_))
{
t = t.referenceTo();
}
else if (p.storageClass & STC.lazy_)
{
// Mangle as delegate
Type td = new TypeFunction(ParameterList(), t, LINK.d);
td = new TypeDelegate(td);
t = merge(t);
}
if (t.ty == Tsarray)
{
error(Loc.initial, "Internal Compiler Error: unable to pass static array to `extern(C++)` function.");
error(Loc.initial, "Use pointer instead.");
assert(0);
}
tmp.flags &= ~IS_NOT_TOP_TYPE;
tmp.flags &= ~IGNORE_CONST;
t.accept(tmp);
return 0;
}
Parameter._foreach(type.parameterList.parameters, &mangleParameterDg);
if (type.parameterList.varargs == VarArg.variadic)
{
tmp.buf.writeByte('Z');
}
else
{
tmp.buf.writeByte('@');
}
}
tmp.buf.writeByte('Z');
const(char)* ret = tmp.buf.extractString();
memcpy(&saved_idents, &tmp.saved_idents, (const(char)*).sizeof * VC_SAVED_IDENT_CNT);
memcpy(&saved_types, &tmp.saved_types, Type.sizeof * VC_SAVED_TYPE_CNT);
return ret;
}
}
|
D
|
module haxe.Std;
import haxe.HaxeTypes;
import IntUtil = tango.text.convert.Integer;
import tango.core.Traits;
class Std {
public static long parseInt(String v) {
// if(cast(String) v) {
// return IntUtil.parse((cast(String) v).value);
// }
// return 0;
return IntUtil.parse( v.value);
}
public static long parseInt(char[] v) {
return IntUtil.parse(v);
}
// public static bool isA(T)(Dynamic v, T type) {
//
// }
public static String string(T)(T v) {
static if(is(X == bool)) {
return v ? String("true") : String("false");
}
else static if( isIntegerType!(T) ) {
return String(Int(v).toString());
}
else {
static assert(0, "Can't convert type " ~ v.stringof);
}
}
}
|
D
|
module android.java.java.util.concurrent.atomic.AtomicBoolean_d_interface;
import arsd.jni : IJavaObjectImplementation, JavaPackageId, JavaName, IJavaObject, ImportExportImpl, JavaInterfaceMembers;
static import arsd.jni;
import import0 = android.java.java.lang.Class_d_interface;
final class AtomicBoolean : IJavaObject {
static immutable string[] _d_canCastTo = [
"java/io/Serializable",
];
@Import this(bool);
@Import this(arsd.jni.Default);
@Import bool get();
@Import bool compareAndSet(bool, bool);
@Import bool weakCompareAndSet(bool, bool);
@Import void set(bool);
@Import void lazySet(bool);
@Import bool getAndSet(bool);
@Import @JavaName("toString") string toString_();
override string toString() { return arsd.jni.javaObjectToString(this); }
@Import import0.Class getClass();
@Import int hashCode();
@Import bool equals(IJavaObject);
@Import void notify();
@Import void notifyAll();
@Import void wait(long);
@Import void wait(long, int);
@Import void wait();
mixin IJavaObjectImplementation!(false);
public static immutable string _javaParameterString = "Ljava/util/concurrent/atomic/AtomicBoolean;";
}
|
D
|
/**
#
# Copyright (c) 2018 IoTone, Inc. All rights reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this
# software and associated documentation files (the "Software"), to deal in the
# Software without restriction, including without limitation the rights to use,
# copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
# Software, and to permit persons to whom the Software is furnished to do so, subject
# to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all
# copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
# INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
# PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
# CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
# OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#
**/
module iotone.libkeccak;
import core.stdc.config;
import core.stdc.stdint;
//
// Major code debt/inspiration goes to https://github.com/coruus/keccak-tiny
// for the super minified C code library
// All data output can be hex encoded using preferred method
//
enum RET
{
OK = 0,
ERROR_INIT = -1,
ERROR_INPUT_INVALID = -2,
ERROR_FINALIZE = -3
}
nothrow extern (C)
{
int shake128(uint8_t*, size_t /* bytes */, const uint8_t*, size_t);
int shake256(uint8_t*, size_t /* bytes */, const uint8_t*, size_t);
int sha3_224(uint8_t*, size_t /* bytes */, const uint8_t*, size_t);
int sha3_256(uint8_t*, size_t /* bytes */, const uint8_t*, size_t);
int sha3_384(uint8_t*, size_t /* bytes */, const uint8_t*, size_t);
int sha3_512(uint8_t*, size_t /* bytes */, const uint8_t*, size_t);
int keccak_224(uint8_t*, size_t /* bytes */, const uint8_t*, size_t);
int keccak_256(uint8_t*, size_t /* bytes */, const uint8_t*, size_t);
int keccak_384(uint8_t*, size_t /* bytes */, const uint8_t*, size_t);
int keccak_512(uint8_t*, size_t /* bytes */, const uint8_t*, size_t);
};
unittest {
import std.stdio;
import std.string;
//
// Including simple+efficient ubyte2hex converter
// from https://forum.dlang.org/post/opsfp9hj065a2sq9@digitalmars.com
//
const char[16] hexdigits = "0123456789abcdef";
char[] hexStringT(ubyte[] d) {
char[] result;
/* No point converting an empty array now is there? */
if (d.length != 0) {
ubyte u;
uint sz = u.sizeof*2; /* number of chars required to represent one 'u' */
uint ndigits = 0;
/* pre-allocate space required. */
result = new char[sz*d.length];
/* start at end of resulting string, loop back to start. */
for(int i = cast(int)d.length-1; i >= 0; i--) {
/*this loop takes the remainder of u/16, uses it as an index
into the hexdigits array, then does u/16, repeating
till u == 0
*/
u = d[i];
for(; u; u /= 16) {
/* you can use u & 15 or u % 16 below
both give you the remainder of u/16
*/
result[result.length-1-ndigits] = hexdigits[u & 15];
ndigits++;
}
/* Pad each value with 0's */
for(; ndigits < (d.length-i)*sz; ndigits++)
result[result.length-1-ndigits] = '0';
}
}
return result;
}
ubyte[28] dataout28;
ubyte[32] dataout32;
ubyte[48] dataout48;
ubyte[56] dataout56;
ubyte[64] dataout64;
ubyte[128] dataout128;
ubyte[256] dataout256;
ubyte[] datain = cast(ubyte[])("The quick brown fox jumps over the lazy dog".dup);
ubyte[] datain2 = cast(ubyte[])("".dup);
ubyte[] datain3 = cast(ubyte[])("The quick brown fox jumps over the lazy dog.".dup);
// A basic example
shake256(dataout32.ptr, 32 /* bytes */, datain.ptr, datain.length);
assert(dataout32.length == 32);
writeln(dataout32);
// writeln(hexStringT(dataout32));
assert(hexStringT(dataout32) == "2f671343d9b2e1604dc9dcf0753e5fe15c7c64a0d283cbbf722d411a0e36f6ca");
sha3_512(dataout64.ptr, 64, datain2.ptr, datain2.length);
assert(dataout64.length == 64);
writeln(dataout64);
assert(hexStringT(dataout64) == "a69f73cca23a9ac5c8b567dc185a756e97c982164fe25859e0d1dcc1475c80a615b2123af1f5f94c11e3e9402c3ac558f500199d95b6d3e301758586281dcd26");
sha3_512(dataout64.ptr, 64, datain.ptr, datain.length);
assert(dataout64.length == 64);
writeln(dataout64);
assert(hexStringT(dataout64) == "01dedd5de4ef14642445ba5f5b97c15e47b9ad931326e4b0727cd94cefc44fff23f07bf543139939b49128caf436dc1bdee54fcb24023a08d9403f9b4bf0d450");
sha3_512(dataout64.ptr, 64, datain3.ptr, datain3.length);
assert(dataout64.length == 64);
writeln(dataout64);
assert(hexStringT(dataout64) == "18f4f4bd419603f95538837003d9d254c26c23765565162247483f65c50303597bc9ce4d289f21d1c2f1f458828e33dc442100331b35e7eb031b5d38ba6460f8");
sha3_384(dataout48.ptr, 48, datain2.ptr, datain2.length);
assert(dataout48.length == 48);
writeln(dataout48);
assert(hexStringT(dataout48) == "0c63a75b845e4f7d01107d852e4c2485c51a50aaaa94fc61995e71bbee983a2ac3713831264adb47fb6bd1e058d5f004");
sha3_384(dataout48.ptr, 48, datain.ptr, datain.length);
assert(dataout48.length == 48);
writeln(dataout48);
assert(hexStringT(dataout48) == "7063465e08a93bce31cd89d2e3ca8f602498696e253592ed26f07bf7e703cf328581e1471a7ba7ab119b1a9ebdf8be41");
sha3_384(dataout48.ptr, 48, datain3.ptr, datain3.length);
assert(dataout48.length == 48);
writeln(dataout48);
assert(hexStringT(dataout48) == "1a34d81695b622df178bc74df7124fe12fac0f64ba5250b78b99c1273d4b080168e10652894ecad5f1f4d5b965437fb9");
sha3_256(dataout32.ptr, 32, datain2.ptr, datain2.length);
assert(dataout32.length == 32);
writeln(dataout32);
assert(hexStringT(dataout32) == "a7ffc6f8bf1ed76651c14756a061d662f580ff4de43b49fa82d80a4b80f8434a");
sha3_256(dataout32.ptr, 32, datain.ptr, datain.length);
assert(dataout32.length == 32);
writeln(dataout32);
assert(hexStringT(dataout32) == "69070dda01975c8c120c3aada1b282394e7f032fa9cf32f4cb2259a0897dfc04");
sha3_256(dataout32.ptr, 32, datain3.ptr, datain3.length);
assert(dataout32.length == 32);
writeln(dataout32);
assert(hexStringT(dataout32) == "a80f839cd4f83f6c3dafc87feae470045e4eb0d366397d5c6ce34ba1739f734d");
sha3_224(dataout28.ptr, 28, datain2.ptr, datain2.length);
assert(dataout28.length == 28);
writeln(dataout28);
assert(hexStringT(dataout28) == "6b4e03423667dbb73b6e15454f0eb1abd4597f9a1b078e3f5b5a6bc7");
sha3_224(dataout28.ptr, 28, datain.ptr, datain.length);
assert(dataout28.length == 28);
writeln(dataout28);
assert(hexStringT(dataout28) == "d15dadceaa4d5d7bb3b48f446421d542e08ad8887305e28d58335795");
sha3_224(dataout28.ptr, 28, datain3.ptr, datain3.length);
assert(dataout28.length == 28);
writeln(dataout28);
assert(hexStringT(dataout28) == "2d0708903833afabdd232a20201176e8b58c5be8a6fe74265ac54db0");
shake128(dataout32.ptr, 32 /* bytes */, datain2.ptr, datain2.length);
assert(dataout32.length == 32);
writeln(dataout32);
assert(hexStringT(dataout32) == "7f9c2ba4e88f827d616045507605853ed73b8093f6efbc88eb1a6eacfa66ef26");
shake256(dataout64.ptr, 64 /* bytes */, datain2.ptr, datain2.length);
assert(dataout64.length == 64);
writeln(dataout64);
assert(hexStringT(dataout64) == "46b9dd2b0ba88d13233b3feb743eeb243fcd52ea62b81b82b50c27646ed5762fd75dc4ddd8c0f200cb05019d67b592f6fc821c49479ab48640292eacb3b7c4be");
keccak_512(dataout64.ptr, 64, datain2.ptr, datain2.length);
assert(dataout64.length == 64);
writeln(dataout64);
assert(hexStringT(dataout64) == "0eab42de4c3ceb9235fc91acffe746b29c29a8c366b7c60e4e67c466f36a4304c00fa9caf9d87976ba469bcbe06713b435f091ef2769fb160cdab33d3670680e");
keccak_512(dataout64.ptr, 64, datain.ptr, datain.length);
assert(dataout64.length == 64);
writeln(dataout64);
assert(hexStringT(dataout64) == "d135bb84d0439dbac432247ee573a23ea7d3c9deb2a968eb31d47c4fb45f1ef4422d6c531b5b9bd6f449ebcc449ea94d0a8f05f62130fda612da53c79659f609");
keccak_512(dataout64.ptr, 64, datain3.ptr, datain3.length);
assert(dataout64.length == 64);
writeln(dataout64);
assert(hexStringT(dataout64) == "ab7192d2b11f51c7dd744e7b3441febf397ca07bf812cceae122ca4ded6387889064f8db9230f173f6d1ab6e24b6e50f065b039f799f5592360a6558eb52d760");
keccak_384(dataout48.ptr, 48, datain2.ptr, datain2.length);
assert(dataout48.length == 48);
writeln(dataout48);
assert(hexStringT(dataout48) == "2c23146a63a29acf99e73b88f8c24eaa7dc60aa771780ccc006afbfa8fe2479b2dd2b21362337441ac12b515911957ff");
keccak_384(dataout48.ptr, 48, datain.ptr, datain.length);
assert(dataout48.length == 48);
writeln(dataout48);
assert(hexStringT(dataout48) == "283990fa9d5fb731d786c5bbee94ea4db4910f18c62c03d173fc0a5e494422e8a0b3da7574dae7fa0baf005e504063b3");
keccak_384(dataout48.ptr, 48, datain3.ptr, datain3.length);
assert(dataout48.length == 48);
writeln(dataout48);
assert(hexStringT(dataout48) == "9ad8e17325408eddb6edee6147f13856ad819bb7532668b605a24a2d958f88bd5c169e56dc4b2f89ffd325f6006d820b");
keccak_256(dataout32.ptr, 32 /* bytes */, datain2.ptr, datain2.length);
assert(dataout32.length == 32);
writeln(dataout32);
assert(hexStringT(dataout32) == "c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470");
keccak_256(dataout32.ptr, 32 /* bytes */, datain.ptr, datain.length);
assert(dataout32.length == 32);
writeln(dataout32);
assert(hexStringT(dataout32) == "4d741b6f1eb29cb2a9b9911c82f56fa8d73b04959d3d9d222895df6c0b28aa15");
keccak_256(dataout32.ptr, 32 /* bytes */, datain3.ptr, datain3.length);
assert(dataout32.length == 32);
writeln(dataout32);
assert(hexStringT(dataout32) == "578951e24efd62a3d63a86f7cd19aaa53c898fe287d2552133220370240b572d");
keccak_224(dataout28.ptr, 28, datain2.ptr, datain2.length);
assert(dataout28.length == 28);
writeln(dataout28);
assert(hexStringT(dataout28) == "f71837502ba8e10837bdd8d365adb85591895602fc552b48b7390abd");
keccak_224(dataout28.ptr, 28, datain.ptr, datain.length);
assert(dataout28.length == 28);
writeln(dataout28);
assert(hexStringT(dataout28) == "310aee6b30c47350576ac2873fa89fd190cdc488442f3ef654cf23fe");
keccak_224(dataout28.ptr, 28, datain3.ptr, datain3.length);
assert(dataout28.length == 28);
writeln(dataout28);
assert(hexStringT(dataout28) == "c59d4eaeac728671c635ff645014e2afa935bebffdb5fbd207ffdeab");
}
|
D
|
module dlex.caccept;
class CAccept {
/***************************************************************
Member Variables
**************************************************************/
char m_action[];
int m_action_read;
int m_line_number;
/***************************************************************
Function: CAccept
**************************************************************/
this(char action[], int action_read, int line_number) {
int elem;
m_action_read = action_read;
m_action = new char[m_action_read];
for(elem = 0; elem < m_action_read; ++elem) {
m_action[elem] = action[elem];
}
m_line_number = line_number;
}
/***************************************************************
Function: CAccept
**************************************************************/
this(CAccept accept) {
int elem;
m_action_read = accept.m_action_read;
m_action = new char[m_action_read];
for(elem = 0; elem < m_action_read; ++elem) {
m_action[elem] = accept.m_action[elem];
}
m_line_number = accept.m_line_number;
}
/***************************************************************
Function: mimic
**************************************************************/
void mimic(CAccept accept) {
int elem;
m_action_read = accept.m_action_read;
m_action = new char[m_action_read];
for(elem = 0; elem < m_action_read; ++elem) {
m_action[elem] = accept.m_action[elem];
}
}
}
|
D
|
/**
* Written in the D programming language.
* This module provides functions to uniform calculating hash values for different types
*
* Copyright: Copyright Igor Stepanov 2013-2013.
* License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
* Authors: Igor Stepanov
* Source: $(DRUNTIMESRC core/internal/_hash.d)
*/
module core.internal.hash;
import core.internal.convert;
import core.internal.traits : allSatisfy;
// If true ensure that positive zero and negative zero have the same hash.
// Historically typeid(float).getHash did this but hashOf(float) did not.
private enum floatCoalesceZeroes = true;
// If true ensure that all NaNs of the same floating point type have the same hash.
// Historically typeid(float).getHash didn't do this but hashOf(float) did.
private enum floatCoalesceNaNs = true;
// If either of the above are true then no struct or array that contains the
// representation of a floating point number may be hashed with `bytesHash`.
@nogc nothrow pure @safe unittest
{
static if (floatCoalesceZeroes)
assert(hashOf(+0.0) == hashOf(-0.0)); // Same hash for +0.0 and -0.0.
static if (floatCoalesceNaNs)
assert(hashOf(double.nan) == hashOf(-double.nan)); // Same hash for different NaN.
}
private enum hasCallableToHash(T) = __traits(compiles,
{
size_t hash = ((T* x) => (*x).toHash())(null);
});
@nogc nothrow pure @safe unittest
{
static struct S { size_t toHash() { return 4; } }
assert(hasCallableToHash!S);
assert(!hasCallableToHash!(shared const S));
}
private enum isFinalClassWithAddressBasedHash(T) = __traits(isFinalClass, T)
// Use __traits(compiles, ...) in case there are multiple overloads of `toHash`.
&& __traits(compiles, {static assert(&Object.toHash is &T.toHash);});
@nogc nothrow pure @safe unittest
{
static class C1 {}
final static class C2 : C1 {}
final static class C3 : C1 { override size_t toHash() const nothrow { return 1; }}
static assert(!isFinalClassWithAddressBasedHash!Object);
static assert(!isFinalClassWithAddressBasedHash!C1);
static assert(isFinalClassWithAddressBasedHash!C2);
static assert(!isFinalClassWithAddressBasedHash!C3);
}
/+
Is it valid to calculate a hash code for T based on the bits of its
representation? Always false for interfaces, dynamic arrays, and
associative arrays. False for all classes except final classes that do
not override `toHash`.
Note: according to the spec as of
https://github.com/dlang/dlang.org/commit/d66eff16491b0664c0fc00ba80a7aa291703f1f2
the contents of unnamed paddings between fields is undefined. Currently
this hashing implementation assumes that the padding contents (if any)
for all instances of `T` are the same. The correctness of this
assumption is yet to be verified.
+/
private template canBitwiseHash(T)
{
static if (is(T EType == enum))
enum canBitwiseHash = .canBitwiseHash!EType;
else static if (__traits(isFloating, T))
enum canBitwiseHash = !(floatCoalesceZeroes || floatCoalesceNaNs);
else static if (__traits(isScalar, T))
enum canBitwiseHash = true;
else static if (is(T == class))
{
enum canBitwiseHash = isFinalClassWithAddressBasedHash!T;
}
else static if (is(T == interface))
{
enum canBitwiseHash = false;
}
else static if (is(T == struct))
{
static if (hasCallableToHash!T || __traits(isNested, T))
enum canBitwiseHash = false;
else
enum canBitwiseHash = allSatisfy!(.canBitwiseHash, typeof(T.tupleof));
}
else static if (is(T == union))
{
// Right now we always bytewise hash unions that lack callable `toHash`.
enum canBitwiseHash = !hasCallableToHash!T;
}
else static if (is(T E : E[]))
{
static if (__traits(isStaticArray, T))
enum canBitwiseHash = (T.length == 0) || .canBitwiseHash!E;
else
enum canBitwiseHash = false;
}
else static if (__traits(isAssociativeArray, T))
{
enum canBitwiseHash = false;
}
else
{
static assert(is(T == delegate) || is(T : void) || is(T : typeof(null)),
"Internal error: unanticipated type "~T.stringof);
enum canBitwiseHash = true;
}
}
private template UnqualUnsigned(T) if (__traits(isIntegral, T))
{
static if (T.sizeof == ubyte.sizeof) alias UnqualUnsigned = ubyte;
else static if (T.sizeof == ushort.sizeof) alias UnqualUnsigned = ushort;
else static if (T.sizeof == uint.sizeof) alias UnqualUnsigned = uint;
else static if (T.sizeof == ulong.sizeof) alias UnqualUnsigned = ulong;
else static if (T.sizeof == ulong.sizeof * 2)
{
static assert(T.sizeof == ucent.sizeof);
alias UnqualUnsigned = ucent;
}
else
{
static assert(0, "No known unsigned equivalent of " ~ T.stringof);
}
static assert(UnqualUnsigned.sizeof == T.sizeof && __traits(isUnsigned, UnqualUnsigned));
}
// Overly restrictive for simplicity: has false negatives but no false positives.
private template useScopeConstPassByValue(T)
{
static if (__traits(isScalar, T))
enum useScopeConstPassByValue = true;
else static if (is(T == class) || is(T == interface))
// Overly restrictive for simplicity.
enum useScopeConstPassByValue = isFinalClassWithAddressBasedHash!T;
else static if (is(T == struct) || is(T == union))
{
// Overly restrictive for simplicity.
enum useScopeConstPassByValue = T.sizeof <= (int[]).sizeof &&
__traits(isPOD, T) && // "isPOD" just to check there's no dtor or postblit.
canBitwiseHash!T; // We can't verify toHash doesn't leak.
}
else static if (is(T : E[], E))
{
static if (!__traits(isStaticArray, T))
// Overly restrictive for simplicity.
enum useScopeConstPassByValue = .useScopeConstPassByValue!E;
else static if (T.length == 0)
enum useScopeConstPassByValue = true;
else
enum useScopeConstPassByValue = T.sizeof <= (uint[]).sizeof
&& .useScopeConstPassByValue!(typeof(T.init[0]));
}
else static if (is(T : V[K], K, V))
{
// Overly restrictive for simplicity.
enum useScopeConstPassByValue = .useScopeConstPassByValue!K
&& .useScopeConstPassByValue!V;
}
else
{
static assert(is(T == delegate) || is(T : void) || is(T : typeof(null)),
"Internal error: unanticipated type "~T.stringof);
enum useScopeConstPassByValue = true;
}
}
@safe unittest
{
static assert(useScopeConstPassByValue!int);
static assert(useScopeConstPassByValue!string);
static int ctr;
static struct S1 { ~this() { ctr++; } }
static struct S2 { this(this) { ctr++; } }
static assert(!useScopeConstPassByValue!S1,
"Don't default pass by value a struct with a non-vacuous destructor.");
static assert(!useScopeConstPassByValue!S2,
"Don't default pass by value a struct with a non-vacuous postblit.");
}
//enum hash. CTFE depends on base type
size_t hashOf(T)(scope const T val)
if (is(T EType == enum) && useScopeConstPassByValue!EType)
{
static if (is(T EType == enum)) //for EType
{
return hashOf(cast(const EType) val);
}
else
{
static assert(0);
}
}
//enum hash. CTFE depends on base type
size_t hashOf(T)(scope const T val, size_t seed)
if (is(T EType == enum) && useScopeConstPassByValue!EType)
{
static if (is(T EType == enum)) //for EType
{
return hashOf(cast(const EType) val, seed);
}
else
{
static assert(0);
}
}
//enum hash. CTFE depends on base type
size_t hashOf(T)(auto ref T val, size_t seed = 0)
if (is(T EType == enum) && !useScopeConstPassByValue!EType)
{
static if (is(T EType == enum)) //for EType
{
EType e_val = cast(EType)val;
return hashOf(e_val, seed);
}
else
{
static assert(0);
}
}
//CTFE ready (depends on base type).
size_t hashOf(T)(scope const auto ref T val, size_t seed = 0)
if (!is(T == enum) && __traits(isStaticArray, T) && canBitwiseHash!T)
{
// FIXME:
// We would like to to do this:
//
//static if (T.length == 0)
// return seed;
//else static if (T.length == 1)
// return hashOf(val[0], seed);
//else
// /+ hash like a dynamic array +/
//
// ... but that's inefficient when using a runtime TypeInfo (introduces a branch)
// and PR #2243 wants typeid(T).getHash(&val) to produce the same result as
// hashOf(val).
static if (T.length == 0)
{
return bytesHashAlignedBy!size_t((ubyte[]).init, seed);
}
static if (is(typeof(toUbyte(val)) == const(ubyte)[]))
{
return bytesHashAlignedBy!T(toUbyte(val), seed);
}
else //Other types. CTFE unsupported
{
assert(!__ctfe, "unable to compute hash of "~T.stringof~" at compile time");
return bytesHashAlignedBy!T((cast(const(ubyte)*) &val)[0 .. T.sizeof], seed);
}
}
//CTFE ready (depends on base type).
size_t hashOf(T)(auto ref T val, size_t seed = 0)
if (!is(T == enum) && __traits(isStaticArray, T) && !canBitwiseHash!T)
{
// FIXME:
// We would like to to do this:
//
//static if (T.length == 0)
// return seed;
//else static if (T.length == 1)
// return hashOf(val[0], seed);
//else
// /+ hash like a dynamic array +/
//
// ... but that's inefficient when using a runtime TypeInfo (introduces a branch)
// and PR #2243 wants typeid(T).getHash(&val) to produce the same result as
// hashOf(val).
return hashOf(val[], seed);
}
//dynamic array hash
size_t hashOf(T)(scope const T val, size_t seed = 0)
if (!is(T == enum) && !is(T : typeof(null)) && is(T S: S[]) && !__traits(isStaticArray, T)
&& !is(T == struct) && !is(T == class) && !is(T == union)
&& (__traits(isScalar, S) || canBitwiseHash!S))
{
alias ElementType = typeof(val[0]);
static if (!canBitwiseHash!ElementType)
{
size_t hash = seed;
foreach (ref o; val)
{
hash = hashOf(hashOf(o), hash); // double hashing to match TypeInfo.getHash
}
return hash;
}
else static if (is(typeof(toUbyte(val)) == const(ubyte)[]))
//ubyteble array (arithmetic types and structs without toHash) CTFE ready for arithmetic types and structs without reference fields
{
return bytesHashAlignedBy!ElementType(toUbyte(val), seed);
}
else //Other types. CTFE unsupported
{
assert(!__ctfe, "unable to compute hash of "~T.stringof~" at compile time");
return bytesHashAlignedBy!ElementType((cast(const(ubyte)*) val.ptr)[0 .. ElementType.sizeof*val.length], seed);
}
}
//dynamic array hash
size_t hashOf(T)(T val, size_t seed = 0)
if (!is(T == enum) && !is(T : typeof(null)) && is(T S: S[]) && !__traits(isStaticArray, T)
&& !is(T == struct) && !is(T == class) && !is(T == union)
&& !(__traits(isScalar, S) || canBitwiseHash!S))
{
size_t hash = seed;
foreach (ref o; val)
{
hash = hashOf(hashOf(o), hash); // double hashing because TypeInfo.getHash doesn't allow to pass seed value
}
return hash;
}
@nogc nothrow pure @safe unittest // issue 18918
{
// Check hashOf dynamic array of scalars is usable in @safe code.
const _ = hashOf("abc");
}
@nogc nothrow pure @system unittest
{
void*[] val;
const _ = hashOf(val); // Check a PR doesn't break this.
}
//arithmetic type hash
@trusted @nogc nothrow pure
size_t hashOf(T)(scope const T val) if (!is(T == enum) && __traits(isArithmetic, T)
&& __traits(isIntegral, T) && T.sizeof <= size_t.sizeof)
{
return cast(UnqualUnsigned!T) val;
}
//arithmetic type hash
@trusted @nogc nothrow pure
size_t hashOf(T)(scope const T val, size_t seed) if (!is(T == enum) && __traits(isArithmetic, T)
&& __traits(isIntegral, T) && T.sizeof <= size_t.sizeof)
{
static if (size_t.sizeof < ulong.sizeof)
{
//MurmurHash3 32-bit single round
enum uint c1 = 0xcc9e2d51;
enum uint c2 = 0x1b873593;
enum uint c3 = 0xe6546b64;
enum uint r1 = 15;
enum uint r2 = 13;
}
else
{
//Half of MurmurHash3 64-bit single round
//(omits second interleaved update)
enum ulong c1 = 0x87c37b91114253d5;
enum ulong c2 = 0x4cf5ad432745937f;
enum ulong c3 = 0x52dce729;
enum uint r1 = 31;
enum uint r2 = 27;
}
auto h = c1 * cast(UnqualUnsigned!T) val;
h = (h << r1) | (h >>> (typeof(h).sizeof * 8 - r1));
h = (h * c2) ^ seed;
h = (h << r2) | (h >>> (typeof(h).sizeof * 8 - r2));
return h * 5 + c3;
}
//arithmetic type hash
@trusted @nogc nothrow pure
size_t hashOf(T)(scope const T val, size_t seed = 0) if (!is(T == enum) && __traits(isArithmetic, T)
&& (!__traits(isIntegral, T) || T.sizeof > size_t.sizeof))
{
static if(__traits(isFloating, val))
{
static if (floatCoalesceZeroes || floatCoalesceNaNs)
{
import core.internal.traits : Unqual;
Unqual!T data = val;
// +0.0 and -0.0 become the same.
static if (floatCoalesceZeroes && is(typeof(data = 0)))
if (data == 0) data = 0;
static if (floatCoalesceZeroes && is(typeof(data = 0.0i)))
if (data == 0.0i) data = 0.0i;
static if (floatCoalesceZeroes && is(typeof(data = 0.0 + 0.0i)))
{
if (data.re == 0.0) data = 0.0 + (data.im * 1.0i);
if (data.im == 0.0i) data = data.re + 0.0i;
}
static if (floatCoalesceNaNs)
if (data != data) data = T.nan; // All NaN patterns become the same.
}
else
{
alias data = val;
}
static if (T.mant_dig == float.mant_dig && T.sizeof == uint.sizeof)
return hashOf(*cast(const uint*) &data, seed);
else static if (T.mant_dig == double.mant_dig && T.sizeof == ulong.sizeof)
return hashOf(*cast(const ulong*) &data, seed);
else
return bytesHashAlignedBy!T(toUbyte(data), seed);
}
else
{
static assert(T.sizeof > size_t.sizeof && __traits(isIntegral, T));
static foreach (i; 0 .. T.sizeof / size_t.sizeof)
seed = hashOf(cast(size_t) (val >>> (size_t.sizeof * 8 * i)), seed);
return seed;
}
}
//typeof(null) hash. CTFE supported
@trusted @nogc nothrow pure
size_t hashOf(T)(scope const T val) if (!is(T == enum) && is(T : typeof(null)))
{
return 0;
}
//typeof(null) hash. CTFE supported
@trusted @nogc nothrow pure
size_t hashOf(T)(scope const T val, size_t seed) if (!is(T == enum) && is(T : typeof(null)))
{
return hashOf(size_t(0), seed);
}
//Pointers hash. CTFE unsupported if not null
@trusted @nogc nothrow pure
size_t hashOf(T)(scope const T val)
if (!is(T == enum) && is(T V : V*) && !is(T : typeof(null))
&& !is(T == struct) && !is(T == class) && !is(T == union))
{
if(__ctfe)
{
if(val is null)
{
return 0;
}
else
{
assert(0, "Unable to calculate hash of non-null pointer at compile time");
}
}
auto addr = cast(size_t) val;
return addr ^ (addr >>> 4);
}
//Pointers hash. CTFE unsupported if not null
@trusted @nogc nothrow pure
size_t hashOf(T)(scope const T val, size_t seed)
if (!is(T == enum) && is(T V : V*) && !is(T : typeof(null))
&& !is(T == struct) && !is(T == class) && !is(T == union))
{
if(__ctfe)
{
if(val is null)
{
return hashOf(cast(size_t)0, seed);
}
else
{
assert(0, "Unable to calculate hash of non-null pointer at compile time");
}
}
return hashOf(cast(size_t)val, seed);
}
private enum _hashOfStruct =
q{
enum bool isChained = is(typeof(seed) : size_t);
static if (!isChained) enum size_t seed = 0;
static if (hasCallableToHash!T) //CTFE depends on toHash()
{
static if (isChained)
return hashOf(cast(size_t) val.toHash(), seed);
else
return val.toHash();
}
else
{
static if(__traits(hasMember, T, "toHash") && is(typeof(T.toHash) == function))
{
pragma(msg, "Warning: struct "~__traits(identifier, T)~" has method toHash, however it cannot be called with "~T.stringof~" this.");
}
static if (T.tupleof.length == 0)
{
return seed;
}
else static if ((is(T == struct) && !canBitwiseHash!T) || T.tupleof.length == 1)
{
static foreach (i, F; typeof(val.tupleof))
{
static if (i != 0)
h = hashOf(val.tupleof[i], h);
else static if (isChained)
size_t h = hashOf(val.tupleof[i], seed);
else
size_t h = hashOf(val.tupleof[i]);
}
return h;
}
else static if (is(typeof(toUbyte(val)) == const(ubyte)[]))//CTFE ready for structs without reference fields
{
return bytesHashAlignedBy!T(toUbyte(val), seed);
}
else // CTFE unsupported
{
assert(!__ctfe, "unable to compute hash of "~T.stringof);
const(ubyte)[] bytes = (() @trusted => (cast(const(ubyte)*)&val)[0 .. T.sizeof])();
return bytesHashAlignedBy!T(bytes, seed);
}
}
};
//struct or union hash
size_t hashOf(T)(scope const auto ref T val, size_t seed = 0)
if (!is(T == enum) && (is(T == struct) || is(T == union))
&& canBitwiseHash!T)
{
mixin(_hashOfStruct);
}
//struct or union hash
size_t hashOf(T)(auto ref T val)
if (!is(T == enum) && (is(T == struct) || is(T == union))
&& !canBitwiseHash!T)
{
mixin(_hashOfStruct);
}
//struct or union hash
size_t hashOf(T)(auto ref T val, size_t seed)
if (!is(T == enum) && (is(T == struct) || is(T == union))
&& !canBitwiseHash!T)
{
mixin(_hashOfStruct);
}
nothrow pure @safe unittest // issue 18925
{
// Check hashOf struct of scalar fields is usable in @safe code.
static struct S { int a; int b; }
auto h = hashOf(S.init);
}
nothrow pure @safe unittest // issue 19005
{
enum Month : ubyte
{
jan = 1
}
static struct Date
{
short _year;
Month _month;
ubyte _day;
}
Date date;
auto hash = date.hashOf;
}
//delegate hash. CTFE unsupported
@trusted @nogc nothrow pure
size_t hashOf(T)(scope const T val, size_t seed = 0) if (!is(T == enum) && is(T == delegate))
{
assert(!__ctfe, "unable to compute hash of "~T.stringof);
const(ubyte)[] bytes = (cast(const(ubyte)*)&val)[0 .. T.sizeof];
return bytesHashAlignedBy!T(bytes, seed);
}
//address-based class hash. CTFE only if null.
@nogc nothrow pure @trusted
size_t hashOf(T)(scope const T val)
if (!is(T == enum) && (is(T == interface) || is(T == class))
&& isFinalClassWithAddressBasedHash!T)
{
if (__ctfe) if (val is null) return 0;
return hashOf(cast(const void*) val);
}
//address-based class hash. CTFE only if null.
@nogc nothrow pure @trusted
size_t hashOf(T)(scope const T val, size_t seed)
if (!is(T == enum) && (is(T == interface) || is(T == class))
&& isFinalClassWithAddressBasedHash!T)
{
if (__ctfe) if (val is null) return hashOf(size_t(0), seed);
return hashOf(cast(const void*) val, seed);
}
//class or interface hash. CTFE depends on toHash
size_t hashOf(T)(T val)
if (!is(T == enum) && (is(T == interface) || is(T == class))
&& !isFinalClassWithAddressBasedHash!T)
{
static if (__traits(compiles, {size_t h = val.toHash();}))
return val ? val.toHash() : 0;
else
return val ? (cast(Object)val).toHash() : 0;
}
//class or interface hash. CTFE depends on toHash
size_t hashOf(T)(T val, size_t seed)
if (!is(T == enum) && (is(T == interface) || is(T == class))
&& !isFinalClassWithAddressBasedHash!T)
{
static if (__traits(compiles, {size_t h = val.toHash();}))
return hashOf(val ? cast(size_t) val.toHash() : size_t(0), seed);
else
return hashOf(val ? (cast(Object)val).toHash() : 0, seed);
}
//associative array hash. CTFE depends on base types
size_t hashOf(T)(T aa) if (!is(T == enum) && __traits(isAssociativeArray, T))
{
if (!aa.length) return 0;
size_t h = 0;
// The computed hash is independent of the foreach traversal order.
foreach (key, ref val; aa)
{
size_t[2] hpair;
hpair[0] = key.hashOf();
hpair[1] = val.hashOf();
h += hpair.hashOf();
}
return h;
}
//associative array hash. CTFE depends on base types
size_t hashOf(T)(T aa, size_t seed) if (!is(T == enum) && __traits(isAssociativeArray, T))
{
return hashOf(hashOf(aa), seed);
}
unittest
{
static struct Foo
{
int a = 99;
float b = 4.0;
size_t toHash() const pure @safe nothrow
{
return a;
}
}
static struct Bar
{
char c = 'x';
int a = 99;
float b = 4.0;
void* d = null;
}
static struct Boom
{
char c = 'M';
int* a = null;
}
static struct Plain
{
int a = 1;
int b = 2;
}
interface IBoo
{
void boo();
}
static class Boo: IBoo
{
override void boo()
{
}
override size_t toHash()
{
return 1;
}
}
static struct Goo
{
size_t toHash() pure @safe nothrow
{
return 1;
}
}
enum Gun: long
{
A = 99,
B = 17
}
enum double dexpr = 3.14;
enum float fexpr = 2.71;
enum wstring wsexpr = "abcdef"w;
enum string csexpr = "abcdef";
enum int iexpr = 7;
enum long lexpr = 42;
enum int[2][3] saexpr = [[1, 2], [3, 4], [5, 6]];
enum int[] daexpr = [7,8,9];
enum Foo thsexpr = Foo();
enum Bar vsexpr = Bar();
enum int[int] aaexpr = [99:2, 12:6, 45:4];
enum Gun eexpr = Gun.A;
enum cdouble cexpr = 7+4i;
enum Foo[] staexpr = [Foo(), Foo(), Foo()];
enum Bar[] vsaexpr = [Bar(), Bar(), Bar()];
enum realexpr = 7.88;
enum raexpr = [8.99L+86i, 3.12L+99i, 5.66L+12i];
enum nullexpr = null;
enum plstr = Plain();
enum plarrstr = [Plain(), Plain(), Plain()];
//No CTFE:
Boom rstructexpr = Boom();
Boom[] rstrarrexpr = [Boom(), Boom(), Boom()];
int delegate() dgexpr = (){return 78;};
void* ptrexpr = &dgexpr;
//CTFE hashes
enum h1 = dexpr.hashOf();
enum h2 = fexpr.hashOf();
enum h3 = wsexpr.hashOf();
enum h4 = csexpr.hashOf();
enum h5 = iexpr.hashOf();
enum h6 = lexpr.hashOf();
enum h7 = saexpr.hashOf();
enum h8 = daexpr.hashOf();
enum h9 = thsexpr.hashOf();
enum h10 = vsexpr.hashOf();
enum h11 = aaexpr.hashOf();
enum h12 = eexpr.hashOf();
enum h13 = cexpr.hashOf();
enum h14 = hashOf(new Boo);
enum h15 = staexpr.hashOf();
enum h16 = hashOf([new Boo, new Boo, new Boo]);
enum h17 = hashOf([cast(IBoo)new Boo, cast(IBoo)new Boo, cast(IBoo)new Boo]);
enum h18 = hashOf(cast(IBoo)new Boo);
enum h19 = vsaexpr.hashOf();
enum h20 = hashOf(cast(Foo[3])staexpr);
//BUG: cannot cast [Boo(), Boo(), Boo()][0] to object.Object at compile time
auto h21 = hashOf(cast(Boo[3])[new Boo, new Boo, new Boo]);
auto h22 = hashOf(cast(IBoo[3])[cast(IBoo)new Boo, cast(IBoo)new Boo, cast(IBoo)new Boo]);
enum h23 = hashOf(cast(Bar[3])vsaexpr);
//NO CTFE (Compute, but don't check correctness):
auto h24 = rstructexpr.hashOf();
auto h25 = rstrarrexpr.hashOf();
auto h26 = dgexpr.hashOf();
auto h27 = ptrexpr.hashOf();
enum h28 = realexpr.hashOf();
enum h29 = raexpr.hashOf();
enum h30 = nullexpr.hashOf();
enum h31 = plstr.hashOf();
enum h32 = plarrstr.hashOf();
enum h33 = hashOf(cast(Plain[3])plarrstr);
auto v1 = dexpr;
auto v2 = fexpr;
auto v3 = wsexpr;
auto v4 = csexpr;
auto v5 = iexpr;
auto v6 = lexpr;
auto v7 = saexpr;
auto v8 = daexpr;
auto v9 = thsexpr;
auto v10 = vsexpr;
auto v11 = aaexpr;
auto v12 = eexpr;
auto v13 = cexpr;
auto v14 = new Boo;
auto v15 = staexpr;
auto v16 = [new Boo, new Boo, new Boo];
auto v17 = [cast(IBoo)new Boo, cast(IBoo)new Boo, cast(IBoo)new Boo];
auto v18 = cast(IBoo)new Boo;
auto v19 = vsaexpr;
auto v20 = cast(Foo[3])staexpr;
auto v21 = cast(Boo[3])[new Boo, new Boo, new Boo];
auto v22 = cast(IBoo[3])[cast(IBoo)new Boo, cast(IBoo)new Boo, cast(IBoo)new Boo];
auto v23 = cast(Bar[3])vsaexpr;
auto v30 = null;
auto v31 = plstr;
auto v32 = plarrstr;
auto v33 = cast(Plain[3])plarrstr;
//NO CTFE:
auto v24 = rstructexpr;
auto v25 = rstrarrexpr;
auto v26 = dgexpr;
auto v27 = ptrexpr;
auto v28 = realexpr;
auto v29 = raexpr;
//runtime hashes
auto rth1 = hashOf(v1);
auto rth2 = hashOf(v2);
auto rth3 = hashOf(v3);
auto rth4 = hashOf(v4);
auto rth5 = hashOf(v5);
auto rth6 = hashOf(v6);
auto rth7 = hashOf(v7);
auto rth8 = hashOf(v8);
auto rth9 = hashOf(v9);
auto rth10 = hashOf(v10);
auto rth11 = hashOf(v11);
auto rth12 = hashOf(v12);
auto rth13 = hashOf(v13);
auto rth14 = hashOf(v14);
auto rth15 = hashOf(v15);
auto rth16 = hashOf(v16);
auto rth17 = hashOf(v17);
auto rth18 = hashOf(v18);
auto rth19 = hashOf(v19);
auto rth20 = hashOf(v20);
auto rth21 = hashOf(v21);
auto rth22 = hashOf(v22);
auto rth23 = hashOf(v23);
auto rth30 = hashOf(v30);
//NO CTFE:
auto rth24 = hashOf(v24);
auto rth25 = hashOf(v25);
auto rth26 = hashOf(v26);
auto rth27 = hashOf(v27);
auto rth28 = hashOf(v28);
auto rth29 = hashOf(v29);
auto rth31 = hashOf(v31);
auto rth32 = hashOf(v32);
auto rth33 = hashOf(v33);
assert(h1 == rth1);
assert(h2 == rth2);
assert(h3 == rth3);
assert(h4 == rth4);
assert(h5 == rth5);
assert(h6 == rth6);
assert(h7 == rth7);
assert(h8 == rth8);
assert(h9 == rth9);
assert(h10 == rth10);
assert(h11 == rth11);
assert(h12 == rth12);
assert(h13 == rth13);
assert(h14 == rth14);
assert(h15 == rth15);
assert(h16 == rth16);
assert(h17 == rth17);
assert(h18 == rth18);
assert(h19 == rth19);
assert(h20 == rth20);
assert(h21 == rth21);
assert(h22 == rth22);
assert(h23 == rth23);
/*assert(h24 == rth24);
assert(h25 == rth25);
assert(h26 == rth26);
assert(h27 == rth27);
assert(h28 == rth28);
assert(h29 == rth29);*/
assert(h30 == rth30);
assert(h31 == rth31);
assert(h32 == rth32);
assert(h33 == rth33);
assert(hashOf(null, 0) != hashOf(null, 123456789)); // issue 18932
static size_t tiHashOf(T)(T var)
{
return typeid(T).getHash(&var);
}
auto tih1 = tiHashOf(v1);
auto tih2 = tiHashOf(v2);
auto tih3 = tiHashOf(v3);
auto tih4 = tiHashOf(v4);
auto tih5 = tiHashOf(v5);
auto tih6 = tiHashOf(v6);
auto tih7 = tiHashOf(v7);
auto tih8 = tiHashOf(v8);
auto tih9 = tiHashOf(v9);
auto tih10 = tiHashOf(v10);
auto tih11 = tiHashOf(v11);
auto tih12 = tiHashOf(v12);
auto tih13 = tiHashOf(v13);
auto tih14 = tiHashOf(v14);
auto tih15 = tiHashOf(v15);
auto tih16 = tiHashOf(v16);
auto tih17 = tiHashOf(v17);
auto tih18 = tiHashOf(v18);
auto tih19 = tiHashOf(v19);
auto tih20 = tiHashOf(v20);
auto tih21 = tiHashOf(v21);
auto tih22 = tiHashOf(v22);
auto tih23 = tiHashOf(v23);
auto tih24 = tiHashOf(v24);
auto tih25 = tiHashOf(v25);
auto tih26 = tiHashOf(v26);
auto tih27 = tiHashOf(v27);
auto tih28 = tiHashOf(v28);
auto tih29 = tiHashOf(v29);
auto tih30 = tiHashOf(v30);
auto tih31 = tiHashOf(v31);
auto tih32 = tiHashOf(v32);
auto tih33 = tiHashOf(v33);
assert(tih1 == rth1);
assert(tih2 == rth2);
assert(tih3 == rth3);
assert(tih4 == rth4);
assert(tih5 == rth5);
assert(tih6 == rth6);
assert(tih7 == rth7);
assert(tih8 == rth8);
assert(tih9 == rth9);
//assert(tih10 == rth10); // need compiler-generated __xtoHash changes
assert(tih11 == rth11);
assert(tih12 == rth12);
assert(tih13 == rth13);
assert(tih14 == rth14);
assert(tih15 == rth15);
assert(tih16 == rth16);
assert(tih17 == rth17);
assert(tih18 == rth18);
//assert(tih19 == rth19); // need compiler-generated __xtoHash changes
assert(tih20 == rth20);
assert(tih21 == rth21);
assert(tih22 == rth22);
//assert(tih23 == rth23); // need compiler-generated __xtoHash changes
//assert(tih24 == rth24);
//assert(tih25 == rth25);
assert(tih26 == rth26);
assert(tih27 == rth27);
assert(tih28 == rth28);
assert(tih29 == rth29);
assert(tih30 == rth30);
assert(tih31 == rth31);
assert(tih32 == rth32);
assert(tih33 == rth33);
}
unittest // issue 15111
{
void testAlias(T)()
{
static struct Foo
{
T t;
alias t this;
}
Foo foo;
static assert(is(typeof(hashOf(foo))));
}
// was fixed
testAlias!(int[]);
testAlias!(int*);
// was not affected
testAlias!int;
testAlias!(void delegate());
testAlias!(string[string]);
testAlias!(int[8]);
}
nothrow pure @system unittest // issue 18918
{
static struct S { string array; }
auto s1 = S("abc");
auto s2 = S(s1.array.idup);
assert(hashOf(s1) == hashOf(s2));
enum e = hashOf(S("abc"));
assert(hashOf(s1) == e);
}
// MurmurHash3 was written by Austin Appleby, and is placed in the public
// domain. The author hereby disclaims copyright to this source code.
// This overload is for backwards compatibility.
@system pure nothrow @nogc
size_t bytesHash()(scope const(void)* buf, size_t len, size_t seed)
{
return bytesHashAlignedBy!ubyte((cast(const(ubyte)*) buf)[0 .. len], seed);
}
private template bytesHashAlignedBy(AlignType)
{
alias bytesHashAlignedBy = bytesHash!(AlignType.alignof >= uint.alignof);
}
//-----------------------------------------------------------------------------
// Block read - if your platform needs to do endian-swapping or can only
// handle aligned reads, do the conversion here
private uint get32bits()(scope const(ubyte)* x) @nogc nothrow pure @system
{
version(BigEndian)
{
return ((cast(uint) x[0]) << 24) | ((cast(uint) x[1]) << 16) | ((cast(uint) x[2]) << 8) | (cast(uint) x[3]);
}
else
{
return ((cast(uint) x[3]) << 24) | ((cast(uint) x[2]) << 16) | ((cast(uint) x[1]) << 8) | (cast(uint) x[0]);
}
}
/+
Params:
dataKnownToBeAligned = whether the data is known at compile time to be uint-aligned.
+/
@nogc nothrow pure @trusted
private size_t bytesHash(bool dataKnownToBeAligned)(scope const(ubyte)[] bytes, size_t seed)
{
auto len = bytes.length;
auto data = bytes.ptr;
auto nblocks = len / 4;
uint h1 = cast(uint)seed;
enum uint c1 = 0xcc9e2d51;
enum uint c2 = 0x1b873593;
enum uint c3 = 0xe6546b64;
//----------
// body
auto end_data = data+nblocks*uint.sizeof;
for(; data!=end_data; data += uint.sizeof)
{
static if (dataKnownToBeAligned)
uint k1 = __ctfe ? get32bits(data) : *(cast(const uint*) data);
else
uint k1 = get32bits(data);
k1 *= c1;
k1 = (k1 << 15) | (k1 >> (32 - 15));
k1 *= c2;
h1 ^= k1;
h1 = (h1 << 13) | (h1 >> (32 - 13));
h1 = h1*5+c3;
}
//----------
// tail
uint k1 = 0;
switch(len & 3)
{
case 3: k1 ^= data[2] << 16; goto case;
case 2: k1 ^= data[1] << 8; goto case;
case 1: k1 ^= data[0];
k1 *= c1; k1 = (k1 << 15) | (k1 >> (32 - 15)); k1 *= c2; h1 ^= k1;
goto default;
default:
}
//----------
// finalization
h1 ^= len;
// Force all bits of the hash block to avalanche.
h1 = (h1 ^ (h1 >> 16)) * 0x85ebca6b;
h1 = (h1 ^ (h1 >> 13)) * 0xc2b2ae35;
h1 ^= h1 >> 16;
return h1;
}
// Check that bytesHash works with CTFE
pure nothrow @system @nogc unittest
{
size_t ctfeHash(string x)
{
return bytesHash(x.ptr, x.length, 0);
}
enum test_str = "Sample string";
enum size_t hashVal = ctfeHash(test_str);
assert(hashVal == bytesHash(&test_str[0], test_str.length, 0));
// Detect unintended changes to bytesHash on unaligned and aligned inputs.
version(BigEndian)
{
const ubyte[7] a = [99, 4, 3, 2, 1, 5, 88];
const uint[2] b = [0x01_02_03_04, 0x05_ff_ff_ff];
}
else
{
const ubyte[7] a = [99, 1, 2, 3, 4, 5, 88];
const uint[2] b = [0x04_03_02_01, 0xff_ff_ff_05];
}
// It is okay to change the below values if you make a change
// that you expect to change the result of bytesHash.
assert(bytesHash(&a[1], a.length - 2, 0) == 2727459272);
assert(bytesHash(&b, 5, 0) == 2727459272);
assert(bytesHashAlignedBy!uint((cast(const ubyte*) &b)[0 .. 5], 0) == 2727459272);
}
|
D
|
instance GRD_224_Pacho(Npc_Default)
{
name[0] = "Pacho";
npcType = npctype_main;
guild = GIL_GRD;
level = 10;
voice = 13;
id = 224;
attribute[ATR_STRENGTH] = 35;
attribute[ATR_DEXTERITY] = 35;
attribute[ATR_MANA_MAX] = 0;
attribute[ATR_MANA] = 0;
attribute[ATR_HITPOINTS_MAX] = 160;
attribute[ATR_HITPOINTS] = 160;
Mdl_SetVisual(self,"HUMANS.MDS");
Mdl_ApplyOverlayMds(self,"Humans_Militia.mds");
Mdl_SetVisualBody(self,"hum_body_Naked0",0,3,"Hum_Head_Fighter",4,1,grd_armor_l);
B_Scale(self);
Mdl_SetModelFatness(self,0);
Npc_SetTalentSkill(self,NPC_TALENT_1H,1);
Npc_SetTalentSkill(self,NPC_TALENT_1H,1);
Npc_SetTalentSkill(self,NPC_TALENT_CROSSBOW,1);
CreateInvItem(self,ItMw_1H_Sword_01);
CreateInvItem(self,ItRw_Crossbow_01);
CreateInvItems(self,ItAmBolt,30);
CreateInvItem(self,ItFoApple);
CreateInvItems(self,ItMiNugget,10);
daily_routine = Rtn_start_224;
fight_tactic = FAI_HUMAN_Strong;
};
func void Rtn_start_224()
{
TA_SitAround(0,0,12,0,"OW_PATH_018");
TA_SitAround(12,0,24,0,"OW_PATH_018");
};
|
D
|
/*******************************************************************************
* Copyright (c) 2000, 2007 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* IBM Corporation - initial API and implementation
* Port to the D programming language:
* Frank Benoit <benoit@tionex.de>
*******************************************************************************/
module dwtx.ui.internal.forms.widgets.FormHeading;
import dwtx.ui.internal.forms.widgets.TitleRegion;
import dwtx.ui.internal.forms.widgets.FormImages;
import dwtx.ui.internal.forms.widgets.FormsResources;
import dwt.DWT;
import dwt.custom.CLabel;
import dwt.dnd.DragSourceListener;
import dwt.dnd.DropTargetListener;
import dwt.dnd.Transfer;
import dwt.events.DisposeEvent;
import dwt.events.DisposeListener;
import dwt.events.MouseEvent;
import dwt.events.MouseMoveListener;
import dwt.events.MouseTrackListener;
import dwt.graphics.Color;
import dwt.graphics.Font;
import dwt.graphics.FontMetrics;
import dwt.graphics.GC;
import dwt.graphics.Image;
import dwt.graphics.Point;
import dwt.graphics.Rectangle;
import dwt.widgets.Canvas;
import dwt.widgets.Composite;
import dwt.widgets.Control;
import dwt.widgets.Event;
import dwt.widgets.Layout;
import dwt.widgets.Listener;
import dwt.widgets.ToolBar;
import dwtx.core.runtime.Assert;
import dwtx.core.runtime.ListenerList;
import dwtx.jface.action.IMenuManager;
import dwtx.jface.action.IToolBarManager;
import dwtx.jface.action.ToolBarManager;
import dwtx.jface.dialogs.Dialog;
import dwtx.jface.dialogs.IMessageProvider;
import dwtx.jface.resource.JFaceResources;
import dwtx.ui.forms.IFormColors;
import dwtx.ui.forms.IMessage;
import dwtx.ui.forms.events.IHyperlinkListener;
import dwtx.ui.forms.widgets.Hyperlink;
import dwtx.ui.forms.widgets.ILayoutExtension;
import dwtx.ui.forms.widgets.SizeCache;
import dwtx.ui.internal.forms.IMessageToolTipManager;
import dwtx.ui.internal.forms.MessageManager;
import dwt.dwthelper.utils;
import dwtx.dwtxhelper.Collection;
/**
* Form header moved out of the form class.
*/
public class FormHeading : Canvas {
private static const int TITLE_HMARGIN = 1;
private static const int SPACING = 5;
private static const int VSPACING = 5;
private static const int HMARGIN = 6;
private static const int VMARGIN = 1;
private static const int CLIENT_MARGIN = 1;
private static const int SEPARATOR = 1 << 1;
private static const int BOTTOM_TOOLBAR = 1 << 2;
private static const int BACKGROUND_IMAGE_TILED = 1 << 3;
private static const int SEPARATOR_HEIGHT = 2;
private static const int MESSAGE_AREA_LIMIT = 50;
static IMessage[] NULL_MESSAGE_ARRAY;
public static const String COLOR_BASE_BG = "baseBg"; //$NON-NLS-1$
private Image backgroundImage;
private Image gradientImage;
Hashtable colors;
private int flags;
private GradientInfo gradientInfo;
private ToolBarManager toolBarManager;
private SizeCache toolbarCache;
private SizeCache clientCache;
private SizeCache messageCache;
private TitleRegion titleRegion;
private MessageRegion messageRegion;
private IMessageToolTipManager messageToolTipManager;
private Control headClient;
private class DefaultMessageToolTipManager :
IMessageToolTipManager {
public void createToolTip(Control control, bool imageLabel) {
}
public void update() {
String details = getMessageType() is 0 ? null : MessageManager
.createDetails(getChildrenMessages());
if (messageRegion !is null)
messageRegion.updateToolTip(details);
if (getMessageType() > 0
&& (details is null || details.length is 0))
details = getMessage();
titleRegion.updateToolTip(details);
}
}
private class GradientInfo {
Color[] gradientColors;
int[] percents;
bool vertical;
}
private class FormHeadingLayout : Layout, ILayoutExtension {
public int computeMinimumWidth(Composite composite, bool flushCache) {
return computeSize(composite, 5, DWT.DEFAULT, flushCache).x;
}
public int computeMaximumWidth(Composite composite, bool flushCache) {
return computeSize(composite, DWT.DEFAULT, DWT.DEFAULT, flushCache).x;
}
public Point computeSize(Composite composite, int wHint, int hHint,
bool flushCache) {
return layout(composite, false, 0, 0, wHint, hHint, flushCache);
}
protected void layout(Composite composite, bool flushCache) {
Rectangle rect = composite.getClientArea();
layout(composite, true, rect.x, rect.y, rect.width, rect.height,
flushCache);
}
private Point layout(Composite composite, bool move, int x, int y,
int width, int height, bool flushCache) {
Point tsize = null;
Point msize = null;
Point tbsize = null;
Point clsize = null;
if (flushCache) {
clientCache.flush();
messageCache.flush();
toolbarCache.flush();
}
if (hasToolBar()) {
ToolBar tb = toolBarManager.getControl();
toolbarCache.setControl(tb);
tbsize = toolbarCache.computeSize(DWT.DEFAULT, DWT.DEFAULT);
}
if (headClient !is null) {
clientCache.setControl(headClient);
int cwhint = width;
if (cwhint !is DWT.DEFAULT) {
cwhint -= HMARGIN * 2;
if (tbsize !is null && getToolBarAlignment() is DWT.BOTTOM)
cwhint -= tbsize.x + SPACING;
}
clsize = clientCache.computeSize(cwhint, DWT.DEFAULT);
}
int totalFlexWidth = width;
int flexWidth = totalFlexWidth;
if (totalFlexWidth !is DWT.DEFAULT) {
totalFlexWidth -= TITLE_HMARGIN * 2;
// complete right margin
if (hasToolBar() && getToolBarAlignment() is DWT.TOP
|| hasMessageRegion())
totalFlexWidth -= SPACING;
// subtract tool bar
if (hasToolBar() && getToolBarAlignment() is DWT.TOP)
totalFlexWidth -= tbsize.x + SPACING;
flexWidth = totalFlexWidth;
if (hasMessageRegion()) {
// remove message region spacing and divide by 2
flexWidth -= SPACING;
// flexWidth /= 2;
}
}
/*
* // compute text and message sizes tsize =
* titleRegion.computeSize(flexWidth, DWT.DEFAULT); if (flexWidth !is
* DWT.DEFAULT && tsize.x < flexWidth) flexWidth += flexWidth -
* tsize.x;
*
* if (hasMessageRegion()) {
* messageCache.setControl(messageRegion.getMessageControl()); msize =
* messageCache.computeSize(flexWidth, DWT.DEFAULT); int maxWidth =
* messageCache.computeSize(DWT.DEFAULT, DWT.DEFAULT).x; if
* (maxWidth < msize.x) { msize.x = maxWidth; // recompute title
* with the reclaimed width int tflexWidth = totalFlexWidth -
* SPACING - msize.x; tsize = titleRegion.computeSize(tflexWidth,
* DWT.DEFAULT); } }
*/
if (!hasMessageRegion()) {
tsize = titleRegion.computeSize(flexWidth, DWT.DEFAULT);
} else {
// Total flexible area in the first row is flexWidth.
// Try natural widths of title and
Point tsizeNatural = titleRegion.computeSize(DWT.DEFAULT,
DWT.DEFAULT);
messageCache.setControl(messageRegion.getMessageControl());
Point msizeNatural = messageCache.computeSize(DWT.DEFAULT,
DWT.DEFAULT);
// try to fit all
tsize = tsizeNatural;
msize = msizeNatural;
if (flexWidth !is DWT.DEFAULT) {
int needed = tsizeNatural.x + msizeNatural.x;
if (needed > flexWidth) {
// too big - try to limit the message
int mwidth = flexWidth - tsizeNatural.x;
if (mwidth >= MESSAGE_AREA_LIMIT) {
msize.x = mwidth;
} else {
// message is squeezed to the limit
int flex = flexWidth - MESSAGE_AREA_LIMIT;
tsize = titleRegion.computeSize(flex, DWT.DEFAULT);
msize.x = MESSAGE_AREA_LIMIT;
}
}
}
}
Point size = new Point(width, height);
if (!move) {
// compute sizes
int width1 = 2 * TITLE_HMARGIN;
width1 += tsize.x;
if (msize !is null)
width1 += SPACING + msize.x;
if (tbsize !is null && getToolBarAlignment() is DWT.TOP)
width1 += SPACING + tbsize.x;
if (msize !is null
|| (tbsize !is null && getToolBarAlignment() is DWT.TOP))
width1 += SPACING;
size.x = width1;
if (clsize !is null) {
int width2 = clsize.x;
if (tbsize !is null && getToolBarAlignment() is DWT.BOTTOM)
width2 += SPACING + tbsize.x;
width2 += 2 * HMARGIN;
size.x = Math.max(width1, width2);
}
// height, first row
size.y = tsize.y;
if (msize !is null)
size.y = Math.max(msize.y, size.y);
if (tbsize !is null && getToolBarAlignment() is DWT.TOP)
size.y = Math.max(tbsize.y, size.y);
if (size.y > 0)
size.y += VMARGIN * 2;
// add second row
int height2 = 0;
if (tbsize !is null && getToolBarAlignment() is DWT.BOTTOM)
height2 = tbsize.y;
if (clsize !is null)
height2 = Math.max(height2, clsize.y);
if (height2 > 0)
size.y += VSPACING + height2 + CLIENT_MARGIN;
// add separator
if (size.y > 0 && isSeparatorVisible())
size.y += SEPARATOR_HEIGHT;
} else {
// position controls
int xloc = x;
int yloc = y + VMARGIN;
int row1Height = tsize.y;
if (hasMessageRegion())
row1Height = Math.max(row1Height, msize.y);
if (hasToolBar() && getToolBarAlignment() is DWT.TOP)
row1Height = Math.max(row1Height, tbsize.y);
titleRegion.setBounds(xloc,
// yloc + row1Height / 2 - tsize.y / 2,
yloc, tsize.x, tsize.y);
xloc += tsize.x;
if (hasMessageRegion()) {
xloc += SPACING;
int messageOffset = 0;
if (tsize.y > 0) {
// space between title area and title text
int titleLeadingSpace = (tsize.y - titleRegion.getFontHeight()) / 2;
// space between message control and message text
int messageLeadingSpace = (msize.y - messageRegion.getFontHeight()) / 2;
// how much to offset the message so baselines align
messageOffset = (titleLeadingSpace + titleRegion.getFontBaselineHeight())
- (messageLeadingSpace + messageRegion.getFontBaselineHeight());
}
messageRegion
.getMessageControl()
.setBounds(
xloc,
tsize.y > 0 ? (yloc + messageOffset)
: (yloc + row1Height / 2 - msize.y / 2),
msize.x, msize.y);
xloc += msize.x;
}
if (toolBarManager !is null)
toolBarManager.getControl().setVisible(
!toolBarManager.isEmpty());
if (tbsize !is null && getToolBarAlignment() is DWT.TOP) {
ToolBar tbar = toolBarManager.getControl();
tbar.setBounds(x + width - 1 - tbsize.x - HMARGIN, yloc
+ row1Height - 1 - tbsize.y, tbsize.x, tbsize.y);
}
// second row
xloc = HMARGIN;
yloc += row1Height + VSPACING;
int tw = 0;
if (tbsize !is null && getToolBarAlignment() is DWT.BOTTOM) {
ToolBar tbar = toolBarManager.getControl();
tbar.setBounds(x + width - 1 - tbsize.x - HMARGIN, yloc,
tbsize.x, tbsize.y);
tw = tbsize.x + SPACING;
}
if (headClient !is null) {
int carea = width - HMARGIN * 2 - tw;
headClient.setBounds(xloc, yloc, carea, clsize.y);
}
}
return size;
}
}
this(){
toolbarCache = new SizeCache();
clientCache = new SizeCache();
messageCache = new SizeCache();
}
/* (non-Javadoc)
* @see dwt.widgets.Control#forceFocus()
*/
public bool forceFocus() {
return false;
}
private bool hasToolBar() {
return toolBarManager !is null && !toolBarManager.isEmpty();
}
private bool hasMessageRegion() {
return messageRegion !is null && !messageRegion.isEmpty();
}
private class MessageRegion {
private String message;
private int messageType;
private CLabel messageLabel;
private IMessage[] messages;
private Hyperlink messageHyperlink;
private ListenerList listeners;
private Color fg;
private int fontHeight = -1;
private int fontBaselineHeight = -1;
public this() {
}
public bool isDisposed() {
Control c = getMessageControl();
return c !is null && c.isDisposed();
}
public bool isEmpty() {
Control c = getMessageControl();
if (c is null)
return true;
return !c.getVisible();
}
public int getFontHeight() {
if (fontHeight is -1) {
Control c = getMessageControl();
if (c is null)
return 0;
GC gc = new GC(c.getDisplay());
gc.setFont(c.getFont());
fontHeight = gc.getFontMetrics().getHeight();
gc.dispose();
}
return fontHeight;
}
public int getFontBaselineHeight() {
if (fontBaselineHeight is -1) {
Control c = getMessageControl();
if (c is null)
return 0;
GC gc = new GC(c.getDisplay());
gc.setFont(c.getFont());
FontMetrics fm = gc.getFontMetrics();
fontBaselineHeight = fm.getHeight() - fm.getDescent();
gc.dispose();
}
return fontBaselineHeight;
}
public void showMessage(String newMessage, int newType,
IMessage[] messages) {
Control oldControl = getMessageControl();
int oldType = messageType;
this.message = newMessage;
this.messageType = newType;
this.messages = messages;
if (newMessage is null) {
// clearing of the message
if (oldControl !is null && oldControl.getVisible())
oldControl.setVisible(false);
return;
}
ensureControlExists();
if (needHyperlink()) {
messageHyperlink.setText(newMessage);
messageHyperlink.setHref(new ArrayWrapperObject(arraycast!(Object)(messages)));
} else {
messageLabel.setText(newMessage);
}
if (oldType !is newType)
updateForeground();
}
public void updateToolTip(String toolTip) {
Control control = getMessageControl();
if (control !is null)
control.setToolTipText(toolTip);
}
public String getMessage() {
return message;
}
public int getMessageType() {
return messageType;
}
public IMessage[] getChildrenMessages() {
return messages;
}
public String getDetailedMessage() {
Control c = getMessageControl();
if (c !is null)
return c.getToolTipText();
return null;
}
public Control getMessageControl() {
if (needHyperlink() && messageHyperlink !is null)
return messageHyperlink;
return messageLabel;
}
public Image getMessageImage() {
switch (messageType) {
case IMessageProvider.INFORMATION:
return JFaceResources.getImage(Dialog.DLG_IMG_MESSAGE_INFO);
case IMessageProvider.WARNING:
return JFaceResources.getImage(Dialog.DLG_IMG_MESSAGE_WARNING);
case IMessageProvider.ERROR:
return JFaceResources.getImage(Dialog.DLG_IMG_MESSAGE_ERROR);
default:
return null;
}
}
public void addMessageHyperlinkListener(IHyperlinkListener listener) {
if (listeners is null)
listeners = new ListenerList();
listeners.add(cast(Object)listener);
ensureControlExists();
if (messageHyperlink !is null)
messageHyperlink.addHyperlinkListener(listener);
if (listeners.size() is 1)
updateForeground();
}
private void removeMessageHyperlinkListener(IHyperlinkListener listener) {
if (listeners !is null) {
listeners.remove(cast(Object)listener);
if (messageHyperlink !is null)
messageHyperlink.removeHyperlinkListener(listener);
if (listeners.isEmpty())
listeners = null;
ensureControlExists();
if (listeners is null && !isDisposed())
updateForeground();
}
}
private void ensureControlExists() {
if (needHyperlink()) {
if (messageLabel !is null)
messageLabel.setVisible(false);
if (messageHyperlink is null) {
messageHyperlink = new Hyperlink(this.outer, DWT.NULL);
messageHyperlink.setUnderlined(true);
messageHyperlink.setText(message);
messageHyperlink.setHref(new ArrayWrapperObject(arraycast!(Object)(messages)));
Object[] llist = listeners.getListeners();
for (int i = 0; i < llist.length; i++)
messageHyperlink
.addHyperlinkListener(cast(IHyperlinkListener) llist[i]);
if (messageToolTipManager !is null)
messageToolTipManager.createToolTip(messageHyperlink, false);
} else if (!messageHyperlink.getVisible()) {
messageHyperlink.setText(message);
messageHyperlink.setHref(new ArrayWrapperObject(arraycast!(Object)(messages)));
messageHyperlink.setVisible(true);
}
} else {
// need a label
if (messageHyperlink !is null)
messageHyperlink.setVisible(false);
if (messageLabel is null) {
messageLabel = new CLabel(this.outer, DWT.NULL);
messageLabel.setText(message);
if (messageToolTipManager !is null)
messageToolTipManager.createToolTip(messageLabel, false);
} else if (!messageLabel.getVisible()) {
messageLabel.setText(message);
messageLabel.setVisible(true);
}
}
layout(true);
}
private bool needHyperlink() {
return messageType > 0 && listeners !is null;
}
public void setBackground(Color bg) {
if (messageHyperlink !is null)
messageHyperlink.setBackground(bg);
if (messageLabel !is null)
messageLabel.setBackground(bg);
}
public void setForeground(Color fg) {
this.fg = fg;
}
private void updateForeground() {
Color theFg;
switch (messageType) {
case IMessageProvider.ERROR:
theFg = getDisplay().getSystemColor(DWT.COLOR_RED);
break;
case IMessageProvider.WARNING:
theFg = getDisplay().getSystemColor(DWT.COLOR_DARK_YELLOW);
break;
default:
theFg = fg;
}
getMessageControl().setForeground(theFg);
}
}
/**
* Creates the form content control as a child of the provided parent.
*
* @param parent
* the parent widget
*/
public this(Composite parent, int style) {
colors = new Hashtable();
toolbarCache = new SizeCache();
clientCache = new SizeCache();
messageCache = new SizeCache();
messageToolTipManager = new DefaultMessageToolTipManager();
super(parent, style);
setBackgroundMode(DWT.INHERIT_DEFAULT);
addListener(DWT.Paint, new class Listener {
public void handleEvent(Event e) {
onPaint(e.gc);
}
});
addListener(DWT.Dispose, new class Listener {
public void handleEvent(Event e) {
if (gradientImage !is null) {
FormImages.getInstance().markFinished(gradientImage);
gradientImage = null;
}
}
});
addListener(DWT.Resize, new class Listener {
public void handleEvent(Event e) {
if (gradientInfo !is null
|| (backgroundImage !is null && !isBackgroundImageTiled()))
updateGradientImage();
}
});
addMouseMoveListener(new class MouseMoveListener {
public void mouseMove(MouseEvent e) {
updateTitleRegionHoverState(e);
}
});
addMouseTrackListener(new class MouseTrackListener {
public void mouseEnter(MouseEvent e) {
updateTitleRegionHoverState(e);
}
public void mouseExit(MouseEvent e) {
titleRegion.setHoverState(TitleRegion.STATE_NORMAL);
}
public void mouseHover(MouseEvent e) {
}
});
super.setLayout(new FormHeadingLayout());
titleRegion = new TitleRegion(this);
}
/**
* Fully delegates the size computation to the internal layout manager.
*/
public final Point computeSize(int wHint, int hHint, bool changed) {
return (cast(FormHeadingLayout) getLayout()).computeSize(this, wHint,
hHint, changed);
}
/**
* Prevents from changing the custom control layout.
*/
public final void setLayout(Layout layout) {
}
/**
* Returns the title text that will be rendered at the top of the form.
*
* @return the title text
*/
public String getText() {
return titleRegion.getText();
}
/**
* Returns the title image that will be rendered to the left of the title.
*
* @return the title image
* @since 3.2
*/
public Image getImage() {
return titleRegion.getImage();
}
/**
* Sets the background color of the header.
*/
public void setBackground(Color bg) {
super.setBackground(bg);
internalSetBackground(bg);
}
private void internalSetBackground(Color bg) {
titleRegion.setBackground(bg);
if (messageRegion !is null)
messageRegion.setBackground(bg);
if (toolBarManager !is null)
toolBarManager.getControl().setBackground(bg);
putColor(COLOR_BASE_BG, bg);
}
/**
* Sets the foreground color of the header.
*/
public void setForeground(Color fg) {
super.setForeground(fg);
titleRegion.setForeground(fg);
if (messageRegion !is null)
messageRegion.setForeground(fg);
}
/**
* Sets the text to be rendered at the top of the form above the body as a
* title.
*
* @param text
* the title text
*/
public void setText(String text) {
titleRegion.setText(text);
}
public void setFont(Font font) {
super.setFont(font);
titleRegion.setFont(font);
}
/**
* Sets the image to be rendered to the left of the title.
*
* @param image
* the title image or <code>null</code> to show no image.
* @since 3.2
*/
public void setImage(Image image) {
titleRegion.setImage(image);
if (messageRegion !is null)
titleRegion.updateImage(messageRegion.getMessageImage(), true);
else
titleRegion.updateImage(null, true);
}
public void setTextBackground(Color[] gradientColors, int[] percents,
bool vertical) {
if (gradientColors !is null) {
gradientInfo = new GradientInfo();
gradientInfo.gradientColors = gradientColors;
gradientInfo.percents = percents;
gradientInfo.vertical = vertical;
setBackground(null);
updateGradientImage();
} else {
// reset
gradientInfo = null;
if (gradientImage !is null) {
FormImages.getInstance().markFinished(gradientImage);
gradientImage = null;
setBackgroundImage(null);
}
}
}
public void setHeadingBackgroundImage(Image image) {
this.backgroundImage = image;
if (image !is null)
setBackground(null);
if (isBackgroundImageTiled()) {
setBackgroundImage(image);
} else
updateGradientImage();
}
public Image getHeadingBackgroundImage() {
return backgroundImage;
}
public void setBackgroundImageTiled(bool tiled) {
if (tiled)
flags |= BACKGROUND_IMAGE_TILED;
else
flags &= ~BACKGROUND_IMAGE_TILED;
setHeadingBackgroundImage(this.backgroundImage);
}
public bool isBackgroundImageTiled() {
return (flags & BACKGROUND_IMAGE_TILED) !is 0;
}
public void setBackgroundImage(Image image) {
super.setBackgroundImage(image);
if (image !is null) {
internalSetBackground(null);
}
}
/**
* Returns the tool bar manager that is used to manage tool items in the
* form's title area.
*
* @return form tool bar manager
*/
public IToolBarManager getToolBarManager() {
if (toolBarManager is null) {
toolBarManager = new ToolBarManager(DWT.FLAT);
ToolBar toolbar = toolBarManager.createControl(this);
toolbar.setBackground(getBackground());
toolbar.setForeground(getForeground());
toolbar.setCursor(FormsResources.getHandCursor());
addDisposeListener(new class DisposeListener {
public void widgetDisposed(DisposeEvent e) {
if (toolBarManager !is null) {
toolBarManager.dispose();
toolBarManager = null;
}
}
});
}
return toolBarManager;
}
/**
* Returns the menu manager that is used to manage tool items in the form's
* title area.
*
* @return form drop-down menu manager
* @since 3.3
*/
public IMenuManager getMenuManager() {
return titleRegion.getMenuManager();
}
/**
* Updates the local tool bar manager if used. Does nothing if local tool
* bar manager has not been created yet.
*/
public void updateToolBar() {
if (toolBarManager !is null)
toolBarManager.update(false);
}
private void onPaint(GC gc) {
if (!isSeparatorVisible() && getBackgroundImage() is null)
return;
Rectangle carea = getClientArea();
Image buffer = new Image(getDisplay(), carea.width, carea.height);
buffer.setBackground(getBackground());
GC igc = new GC(buffer);
igc.setBackground(getBackground());
igc.fillRectangle(0, 0, carea.width, carea.height);
if (getBackgroundImage() !is null) {
if (gradientInfo !is null)
drawBackground(igc, carea.x, carea.y, carea.width, carea.height);
else {
Image bgImage = getBackgroundImage();
Rectangle ibounds = bgImage.getBounds();
drawBackground(igc, carea.x, carea.y, ibounds.width,
ibounds.height);
}
}
if (isSeparatorVisible()) {
// bg separator
if (hasColor(IFormColors.H_BOTTOM_KEYLINE1))
igc.setForeground(getColor(IFormColors.H_BOTTOM_KEYLINE1));
else
igc.setForeground(getBackground());
igc.drawLine(carea.x, carea.height - 2, carea.x + carea.width - 1,
carea.height - 2);
if (hasColor(IFormColors.H_BOTTOM_KEYLINE2))
igc.setForeground(getColor(IFormColors.H_BOTTOM_KEYLINE2));
else
igc.setForeground(getForeground());
igc.drawLine(carea.x, carea.height - 1, carea.x + carea.width - 1,
carea.height - 1);
}
igc.dispose();
gc.drawImage(buffer, carea.x, carea.y);
buffer.dispose();
}
private void updateTitleRegionHoverState(MouseEvent e) {
Rectangle titleRect = titleRegion.getBounds();
titleRect.width += titleRect.x + 15;
titleRect.height += titleRect.y + 15;
titleRect.x = 0;
titleRect.y = 0;
if (titleRect.contains(e.x, e.y))
titleRegion.setHoverState(TitleRegion.STATE_HOVER_LIGHT);
else
titleRegion.setHoverState(TitleRegion.STATE_NORMAL);
}
private void updateGradientImage() {
Rectangle rect = getBounds();
if (gradientImage !is null) {
FormImages.getInstance().markFinished(gradientImage);
gradientImage = null;
}
if (gradientInfo !is null) {
gradientImage = FormImages.getInstance().getGradient(getDisplay(), gradientInfo.gradientColors, gradientInfo.percents,
gradientInfo.vertical ? rect.height : rect.width, gradientInfo.vertical, getColor(COLOR_BASE_BG));
} else if (backgroundImage !is null && !isBackgroundImageTiled()) {
gradientImage = new Image(getDisplay(), Math.max(rect.width, 1),
Math.max(rect.height, 1));
gradientImage.setBackground(getBackground());
GC gc = new GC(gradientImage);
gc.drawImage(backgroundImage, 0, 0);
gc.dispose();
}
setBackgroundImage(gradientImage);
}
public bool isSeparatorVisible() {
return (flags & SEPARATOR) !is 0;
}
public void setSeparatorVisible(bool addSeparator) {
if (addSeparator)
flags |= SEPARATOR;
else
flags &= ~SEPARATOR;
}
public void setToolBarAlignment(int alignment) {
if (alignment is DWT.BOTTOM)
flags |= BOTTOM_TOOLBAR;
else
flags &= ~BOTTOM_TOOLBAR;
}
public int getToolBarAlignment() {
return (flags & BOTTOM_TOOLBAR) !is 0 ? DWT.BOTTOM : DWT.TOP;
}
public void addMessageHyperlinkListener(IHyperlinkListener listener) {
ensureMessageRegionExists();
messageRegion.addMessageHyperlinkListener(listener);
}
public void removeMessageHyperlinkListener(IHyperlinkListener listener) {
if (messageRegion !is null)
messageRegion.removeMessageHyperlinkListener(listener);
}
public String getMessage() {
return messageRegion !is null ? messageRegion.getMessage() : null;
}
public int getMessageType() {
return messageRegion !is null ? messageRegion.getMessageType() : 0;
}
public IMessage[] getChildrenMessages() {
return messageRegion !is null ? messageRegion.getChildrenMessages()
: NULL_MESSAGE_ARRAY;
}
private void ensureMessageRegionExists() {
// ensure message region exists
if (messageRegion is null)
messageRegion = new MessageRegion();
}
public void showMessage(String newMessage, int type, IMessage[] messages) {
if (messageRegion is null) {
// check the trivial case
if (newMessage is null)
return;
} else if (messageRegion.isDisposed())
return;
ensureMessageRegionExists();
messageRegion.showMessage(newMessage, type, messages);
titleRegion.updateImage(messageRegion.getMessageImage(), false);
if (messageToolTipManager !is null)
messageToolTipManager.update();
layout();
redraw();
}
/**
* Tests if the form is in the 'busy' state.
*
* @return <code>true</code> if busy, <code>false</code> otherwise.
*/
public bool isBusy() {
return titleRegion.isBusy();
}
/**
* Sets the form's busy state. Busy form will display 'busy' animation in
* the area of the title image.
*
* @param busy
* the form's busy state
*/
public void setBusy(bool busy) {
if (titleRegion.setBusy(busy))
layout();
}
public Control getHeadClient() {
return headClient;
}
public void setHeadClient(Control headClient) {
if (headClient !is null)
Assert.isTrue(headClient.getParent() is this);
this.headClient = headClient;
layout();
}
public void putColor(String key, Color color) {
if (color is null)
colors.remove(key);
else
colors.put(key, color);
}
public Color getColor(String key) {
return cast(Color) colors.get(key);
}
public bool hasColor(String key) {
return colors.containsKey(key);
}
public void addDragSupport(int operations, Transfer[] transferTypes,
DragSourceListener listener) {
titleRegion.addDragSupport(operations, transferTypes, listener);
}
public void addDropSupport(int operations, Transfer[] transferTypes,
DropTargetListener listener) {
titleRegion.addDropSupport(operations, transferTypes, listener);
}
public IMessageToolTipManager getMessageToolTipManager() {
return messageToolTipManager;
}
public void setMessageToolTipManager(
IMessageToolTipManager messageToolTipManager) {
this.messageToolTipManager = messageToolTipManager;
}
}
|
D
|
/Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/Routing.build/Register/Route.swift.o : /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Utilities/Deprecated.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Routing/RouterNode.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Register/Route.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Parameter/ParameterValue.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Register/RouterOption.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Parameter/Parameter.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Routing/TrieRouter.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Utilities/RoutingError.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Parameter/Parameters.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Utilities/Exports.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Routing/RoutableComponent.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Register/PathComponent.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/Routing.build/Register/Route~partial.swiftmodule : /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Utilities/Deprecated.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Routing/RouterNode.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Register/Route.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Parameter/ParameterValue.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Register/RouterOption.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Parameter/Parameter.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Routing/TrieRouter.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Utilities/RoutingError.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Parameter/Parameters.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Utilities/Exports.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Routing/RoutableComponent.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Register/PathComponent.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/Routing.build/Register/Route~partial.swiftdoc : /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Utilities/Deprecated.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Routing/RouterNode.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Register/Route.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Parameter/ParameterValue.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Register/RouterOption.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Parameter/Parameter.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Routing/TrieRouter.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Utilities/RoutingError.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Parameter/Parameters.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Utilities/Exports.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Routing/RoutableComponent.swift /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/routing/Sources/Routing/Register/PathComponent.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIO.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/Async.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/Service.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/Core.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/Debugging.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/COperatingSystem.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOConcurrencyHelpers.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/Bits.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/NIOFoundationCompat.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/cpp_magic.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOLinux/include/ifaddrs-android.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIODarwin/include/CNIODarwin.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOAtomics/include/CNIOAtomics.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio/Sources/CNIOLinux/include/CNIOLinux.h /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOSHA1.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOOpenSSL.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CCryptoOpenSSL.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOZlib.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIODarwin.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOHTTPParser.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOAtomics.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/x86_64-apple-macosx/debug/CNIOLinux.build/module.modulemap /Users/mhassanin/Developer/CupcakeVapor/CupcakeCorner/.build/checkouts/swift-nio-zlib-support/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
D
|
module client.inputlistener;
import base.messages : BaseMessage;
import thBase.container.queue;
/**
* list of keys that change the behaviour of other keys
*/
enum ModKeys : uint {
LSHIFT= 0x0001, /// left shift
RSHIFT= 0x0002, /// right shift
LCTRL = 0x0040, /// left ctrl
RCTRL = 0x0080, /// right ctrl
LALT = 0x0100, /// left alt
RALT = 0x0200, /// right alt
LMETA = 0x0400, /// left windows key
RMETA = 0x0800, /// right windows key
NUM = 0x1000, /// num
CAPS = 0x2000, /// caps lock
MODE = 0x4000 /// mode
};
enum Keys : uint {
/* The keyboard syms have been cleverly chosen to map to ASCII */
UNKNOWN = 0,
FIRST = 0,
BACKSPACE = 8,
TAB = 9,
CLEAR = 12,
RETURN = 13,
PAUSE = 19,
ESCAPE = 27,
SPACE = 32,
EXCLAIM = 33,
QUOTEDBL = 34,
HASH = 35,
DOLLAR = 36,
AMPERSAND = 38,
QUOTE = 39,
LEFTPAREN = 40,
RIGHTPAREN = 41,
ASTERISK = 42,
PLUS = 43,
COMMA = 44,
MINUS = 45,
PERIOD = 46,
SLASH = 47,
NUMBER_0 = 48,
NUMBER_1 = 49,
NUMBER_2 = 50,
NUMBER_3 = 51,
NUMBER_4 = 52,
NUMBER_5 = 53,
NUMBER_6 = 54,
NUMBER_7 = 55,
NUMBER_8 = 56,
NUMBER_9 = 57,
COLON = 58,
SEMICOLON = 59,
LESS = 60,
EQUALS = 61,
GREATER = 62,
QUESTION = 63,
AT = 64,
/*
Skip uppercase letters
*/
LEFTBRACKET = 91,
BACKSLASH = 92,
RIGHTBRACKET = 93,
CARET = 94,
UNDERSCORE = 95,
BACKQUOTE = 96,
a = 97,
b = 98,
c = 99,
d = 100,
e = 101,
f = 102,
g = 103,
h = 104,
i = 105,
j = 106,
k = 107,
l = 108,
m = 109,
n = 110,
o = 111,
p = 112,
q = 113,
r = 114,
s = 115,
t = 116,
u = 117,
v = 118,
w = 119,
x = 120,
y = 121,
z = 122,
DELETE = 127,
/* End of ASCII mapped keysyms */
/* International keyboard syms */
WORLD_0 = 160, /* 0xA0 */
WORLD_1 = 161,
WORLD_2 = 162,
WORLD_3 = 163,
WORLD_4 = 164,
WORLD_5 = 165,
WORLD_6 = 166,
WORLD_7 = 167,
WORLD_8 = 168,
WORLD_9 = 169,
WORLD_10 = 170,
WORLD_11 = 171,
WORLD_12 = 172,
WORLD_13 = 173,
WORLD_14 = 174,
WORLD_15 = 175,
WORLD_16 = 176,
WORLD_17 = 177,
WORLD_18 = 178,
WORLD_19 = 179,
WORLD_20 = 180,
WORLD_21 = 181,
WORLD_22 = 182,
WORLD_23 = 183,
WORLD_24 = 184,
WORLD_25 = 185,
WORLD_26 = 186,
WORLD_27 = 187,
WORLD_28 = 188,
WORLD_29 = 189,
WORLD_30 = 190,
WORLD_31 = 191,
WORLD_32 = 192,
WORLD_33 = 193,
WORLD_34 = 194,
WORLD_35 = 195,
WORLD_36 = 196,
WORLD_37 = 197,
WORLD_38 = 198,
WORLD_39 = 199,
WORLD_40 = 200,
WORLD_41 = 201,
WORLD_42 = 202,
WORLD_43 = 203,
WORLD_44 = 204,
WORLD_45 = 205,
WORLD_46 = 206,
WORLD_47 = 207,
WORLD_48 = 208,
WORLD_49 = 209,
WORLD_50 = 210,
WORLD_51 = 211,
WORLD_52 = 212,
WORLD_53 = 213,
WORLD_54 = 214,
WORLD_55 = 215,
WORLD_56 = 216,
WORLD_57 = 217,
WORLD_58 = 218,
WORLD_59 = 219,
WORLD_60 = 220,
WORLD_61 = 221,
WORLD_62 = 222,
WORLD_63 = 223,
WORLD_64 = 224,
WORLD_65 = 225,
WORLD_66 = 226,
WORLD_67 = 227,
WORLD_68 = 228,
WORLD_69 = 229,
WORLD_70 = 230,
WORLD_71 = 231,
WORLD_72 = 232,
WORLD_73 = 233,
WORLD_74 = 234,
WORLD_75 = 235,
WORLD_76 = 236,
WORLD_77 = 237,
WORLD_78 = 238,
WORLD_79 = 239,
WORLD_80 = 240,
WORLD_81 = 241,
WORLD_82 = 242,
WORLD_83 = 243,
WORLD_84 = 244,
WORLD_85 = 245,
WORLD_86 = 246,
WORLD_87 = 247,
WORLD_88 = 248,
WORLD_89 = 249,
WORLD_90 = 250,
WORLD_91 = 251,
WORLD_92 = 252,
WORLD_93 = 253,
WORLD_94 = 254,
WORLD_95 = 255, /* 0xFF */
/* Numeric keypad */
KP0 = 256,
KP1 = 257,
KP2 = 258,
KP3 = 259,
KP4 = 260,
KP5 = 261,
KP6 = 262,
KP7 = 263,
KP8 = 264,
KP9 = 265,
KP_PERIOD = 266,
KP_DIVIDE = 267,
KP_MULTIPLY = 268,
KP_MINUS = 269,
KP_PLUS = 270,
KP_ENTER = 271,
KP_EQUALS = 272,
/* Arrows + Home/End pad */
UP = 273,
DOWN = 274,
RIGHT = 275,
LEFT = 276,
INSERT = 277,
HOME = 278,
END = 279,
PAGEUP = 280,
PAGEDOWN = 281,
/* Function keys */
F1 = 282,
F2 = 283,
F3 = 284,
F4 = 285,
F5 = 286,
F6 = 287,
F7 = 288,
F8 = 289,
F9 = 290,
F10 = 291,
F11 = 292,
F12 = 293,
F13 = 294,
F14 = 295,
F15 = 296,
/* Key state modifier keys */
NUMLOCK = 300,
CAPSLOCK = 301,
SCROLLOCK = 302,
RSHIFT = 303,
LSHIFT = 304,
RCTRL = 305,
LCTRL = 306,
RALT = 307,
LALT = 308,
RMETA = 309,
LMETA = 310,
LSUPER = 311, /* Left "Windows" key */
RSUPER = 312, /* Right "Windows" key */
MODE = 313, /* "Alt Gr" key */
COMPOSE = 314, /* Multi-key compose key */
/* Miscellaneous function keys */
HELP = 315,
PRINT = 316,
SYSREQ = 317,
BREAK = 318,
MENU = 319,
POWER = 320, /* Power Macintosh power key */
EURO = 321, /* Some european keyboards */
UNDO = 322, /* Atari keyboard has Undo */
/* Add any other keys here */
LAST
}
/**
* Input listener
*/
interface IInputListener {
/**
* called on mouse button click
* Params:
* device = number of the mouse device
* button = number of the mouse button
* pressed = true when pressed, false when released
* x = window coordinates x
* y = window coordinates y
*/
void OnMouseButton(ubyte device, ubyte button, bool pressed, ushort x, ushort y);
/**
* called on mouse move
* Params:
* device = number of the mouse device
* x = window coordinates x
* y = window coordiantes y
* xrel = relative x movement
* yrel = relative y movement
*/
void OnMouseMove(ubyte device, ushort x, ushort y, short xrel, short yrel);
/**
* called on keyboard key event
* Params:
* device = number of the keyboard
* pressed = true when pressed, false when released
* key = the key
* unicode = unicode char of the key pressed
* scancode = the scancode of the key
* mod = modding keys pressed, see ModKeys
*/
void OnKeyboard(ubyte device, bool pressed, uint key, ushort unicode, ubyte scancode, uint mod);
/**
* called on joystick axis event
* Params:
* device = number of the joystick
* axis = number of the axis
* value = value of the axis
*/
void OnJoyAxis(ubyte device, ubyte axis, short value);
/**
* called on joystick button event
* Params:
* device = number of the joystick
* button = number of the button
* pressed = true when pressed, false otherwise
*/
void OnJoyButton(ubyte device, ubyte button, bool pressed);
/**
* called on joystick ball event
* Params:
* device = number of the joystick
* ball = number of the ball
* xrel = relative x movement
* yrel = relative y movement
*/
void OnJoyBall(ubyte device, ubyte ball, short xrel, short yrel);
/**
* called on joystick hat (POV) movement
* Params:
* device = number of the joystick
* hat = number of the hat (POV)
* value = value
*/
void OnJoyHat(ubyte device, ubyte hat, ubyte value);
/**
* getter for the thread safe ring buffer for communication between threads
*/
@property ThreadSafeRingBuffer!() ringBuffer();
///ditto
@property shared(ThreadSafeRingBuffer!()) ringBuffer() shared;
final void OnMouseButton(ubyte device, ubyte button, bool pressed, ushort x, ushort y) shared {
//send(getTid(),MsgOnMouseButton(device,button,pressed,x,y));
this.ringBuffer.enqueue(MsgOnMouseButton(device, button, pressed, x, y));
}
final void OnMouseMove(ubyte device, ushort x, ushort y, short xrel, short yrel) shared {
//send(getTid(),MsgOnMouseMove(device,x,y,xrel,yrel));
this.ringBuffer.enqueue(MsgOnMouseMove(device, x, y, xrel, yrel));
}
final void OnKeyboard(ubyte device, bool pressed, uint key, ushort unicode, ubyte scancode, uint mod) shared {
//send(getTid(),MsgOnKeyboard(device,pressed,key,unicode,scancode,mod));
//core.stdc.stdio.printf("enqueing %d\n", pressed);
this.ringBuffer.enqueue(MsgOnKeyboard(device, pressed, key, unicode, scancode, mod));
}
final void OnJoyAxis(ubyte device, ubyte axis, short value) shared {
//send(getTid(),MsgOnJoyAxis(device,axis,value));
this.ringBuffer.enqueue(MsgOnJoyAxis(device, axis, value));
}
final void OnJoyButton(ubyte device, ubyte button, bool pressed) shared {
//send(getTid(),MsgOnJoyButton(device,button,pressed));
this.ringBuffer.enqueue(MsgOnJoyButton(device, button, pressed));
}
final void OnJoyBall(ubyte device, ubyte ball, short xrel, short yrel) shared {
//send(getTid(),MsgOnJoyBall(device,ball,xrel,yrel));
this.ringBuffer.enqueue(MsgOnJoyBall(device, ball, xrel, yrel));
}
final void OnJoyHat(ubyte device, ubyte hat, ubyte value) shared {
//send(getTid(),MsgOnJoyHat(device,hat,value));
this.ringBuffer.enqueue(MsgOnJoyHat(device, hat, value));
}
final void ProgressMessages(){
InputMessage* im = null;
while((im = this.ringBuffer.tryGet!InputMessage()) !is null)
{
final switch(im.event)
{
case InputEvent.MouseButton:
{
auto msg = cast(MsgOnMouseButton*)im;
this.OnMouseButton(msg.device,msg.button,msg.pressed,msg.x,msg.y);
this.ringBuffer.skip!MsgOnMouseButton();
}
break;
case InputEvent.MouseMove:
{
auto msg = cast(MsgOnMouseMove*)im;
this.OnMouseMove(msg.device,msg.x,msg.y,msg.xrel,msg.yrel);
this.ringBuffer.skip!MsgOnMouseMove();
}
break;
case InputEvent.Keyboard:
{
auto msg = cast(MsgOnKeyboard*)im;
//core.stdc.stdio.printf("getting %d\n", msg.pressed);
this.OnKeyboard(msg.device,msg.pressed,msg.key,msg.unicode,msg.scancode,msg.mod);
this.ringBuffer.skip!MsgOnKeyboard();
}
break;
case InputEvent.JoyAxis:
{
auto msg = cast(MsgOnJoyAxis*)im;
this.OnJoyAxis(msg.device,msg.axis,msg.value);
this.ringBuffer.skip!MsgOnJoyAxis();
}
break;
case InputEvent.JoyButton:
{
auto msg = cast(MsgOnJoyButton*)im;
this.OnJoyButton(msg.device,msg.button,msg.pressed);
this.ringBuffer.skip!MsgOnJoyButton();
}
break;
case InputEvent.JoyHat:
{
auto msg = cast(MsgOnJoyHat*)im;
this.OnJoyHat(msg.device,msg.hat,msg.value);
this.ringBuffer.skip!MsgOnJoyHat();
}
break;
case InputEvent.JoyBall:
{
auto msg = cast(MsgOnJoyBall*)im;
this.OnJoyBall(msg.device,msg.ball,msg.xrel,msg.yrel);
this.ringBuffer.skip!MsgOnJoyBall();
}
break;
}
}
}
};
/**
* dummy implementation of IInputListener, does nothing
* should be used when you only want to implement some of the event functions, but not all of them
*/
abstract class InputListenerAdapter : IInputListener {
void OnMouseButton(ubyte device, ubyte button, bool pressed, ushort x, ushort y){}
void OnMouseMove(ubyte device, ushort x, ushort y, short xrel, short yrel){}
void OnKeyboard(ubyte device, bool pressed, uint key, ushort unicode, ubyte scancode, uint mod){}
void OnJoyAxis(ubyte device, ubyte axis, short value){}
void OnJoyButton(ubyte device, ubyte button, bool pressed){}
void OnJoyBall(ubyte device, ubyte ball, short xrel, short yrel){}
void OnJoyHat(ubyte device, ubyte hat, ubyte value){}
};
enum InputEvent : uint
{
MouseButton,
MouseMove,
Keyboard,
JoyAxis,
JoyButton,
JoyBall,
JoyHat
}
struct InputMessage
{
InputEvent event;
}
struct MsgOnMouseButton {
InputMessage im;
ubyte device;
ubyte button;
bool pressed;
ushort x;
ushort y;
this(ubyte device, ubyte button, bool pressed, ushort x, ushort y){
im.event = InputEvent.MouseButton;
this.device = device;
this.button = button;
this.pressed = pressed;
this.x = x;
this.y = y;
}
}
struct MsgOnMouseMove {
InputMessage im;
ubyte device;
ushort x;
ushort y;
short xrel;
short yrel;
this(ubyte device, ushort x, ushort y, short xrel, short yrel){
im.event = InputEvent.MouseMove;
this.device = device;
this.x = x;
this.y = y;
this.xrel = xrel;
this.yrel = yrel;
}
}
struct MsgOnKeyboard {
InputMessage im;
ubyte device;
bool pressed;
uint key;
ushort unicode;
ubyte scancode;
uint mod;
this(ubyte device, bool pressed, uint key, ushort unicode, ubyte scancode, uint mod){
im.event = InputEvent.Keyboard;
this.device = device;
this.pressed = pressed;
this.key = key;
this.unicode = unicode;
this.scancode = scancode;
this.mod = mod;
}
}
struct MsgOnJoyAxis {
InputMessage im;
ubyte device;
ubyte axis;
short value;
this(ubyte device, ubyte axis, short value){
im.event = InputEvent.JoyAxis;
this.device = device;
this.axis = axis;
this.value = value;
}
}
struct MsgOnJoyButton {
InputMessage im;
ubyte device;
ubyte button;
bool pressed;
this(ubyte device, ubyte button, bool pressed){
im.event = InputEvent.JoyButton;
this.device = device;
this.button = button;
this.pressed = pressed;
}
}
struct MsgOnJoyBall {
InputMessage im;
ubyte device;
ubyte ball;
short xrel;
short yrel;
this(ubyte device, ubyte ball, short xrel, short yrel){
im.event = InputEvent.JoyBall;
this.device = device;
this.ball = ball;
this.xrel = xrel;
this.yrel = yrel;
}
}
struct MsgOnJoyHat {
InputMessage im;
ubyte device;
ubyte hat;
ubyte value;
this(ubyte device, ubyte hat, ubyte value){
im.event = InputEvent.JoyHat;
this.device = device;
this.hat = hat;
this.value = value;
}
}
|
D
|
/Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/AsyncSubject.o : /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Deprecated.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Cancelable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/ObservableType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/ObserverType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Reactive.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Date+Dispatch.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/RecursiveLock.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/CompactMap.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Errors.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/AtomicInt.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Event.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/First.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Rx.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/Platform.Linux.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/dyld.modulemap /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/AsyncSubject~partial.swiftmodule : /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Deprecated.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Cancelable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/ObservableType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/ObserverType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Reactive.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Date+Dispatch.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/RecursiveLock.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/CompactMap.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Errors.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/AtomicInt.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Event.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/First.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Rx.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/Platform.Linux.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/dyld.modulemap /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/AsyncSubject~partial.swiftdoc : /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Deprecated.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Cancelable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/ObservableType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/ObserverType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Reactive.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Date+Dispatch.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/RecursiveLock.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/CompactMap.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Errors.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/AtomicInt.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Event.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/First.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Rx.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/Platform.Linux.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/dyld.modulemap /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/AsyncSubject~partial.swiftsourceinfo : /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Deprecated.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Cancelable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/ObservableType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/ObserverType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Reactive.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Date+Dispatch.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/RecursiveLock.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/CompactMap.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Errors.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/AtomicInt.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Event.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/First.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Rx.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/Platform/Platform.Linux.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/ObjectiveC.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreImage.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Combine.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/QuartzCore.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Dispatch.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Metal.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Darwin.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Foundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreFoundation.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/CoreGraphics.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/Swift.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/UIKit.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/prebuilt-modules/SwiftOnoneSupport.swiftmodule/x86_64-apple-ios-simulator.swiftmodule /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/dyld.modulemap /Users/nalousnguyen/Documents/FinalSDK/CredifyIOS/CredifyCore/derived_data/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/mach-o/compact_unwind_encoding.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/apinotes/Dispatch.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UserNotifications.framework/Headers/UserNotifications.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
D
|
/Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Intermediates.noindex/ParseChat.build/Debug-iphonesimulator/ParseChat.build/Objects-normal/x86_64/ChatCell.o : /Users/shrijanaryal/Desktop/ios/ParseChat/ParseChat/AppDelegate.swift /Users/shrijanaryal/Desktop/ios/ParseChat/ParseChat/Views/ChatCell.swift /Users/shrijanaryal/Desktop/ios/ParseChat/ParseChat/ViewControllers/TableChatController.swift /Users/shrijanaryal/Desktop/ios/ParseChat/ParseChat/ViewControllers/LoginViewController.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/CoreLocation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFACL.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/Parse-umbrella.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/Bolts-umbrella.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFGeneric.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFCloud+Deprecated.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFile+Deprecated.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPush+Deprecated.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFUser+Deprecated.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFAnonymousUtils+Deprecated.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFObject+Deprecated.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFQuery+Deprecated.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFCloud.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFCancellationTokenSource.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFTaskCompletionSource.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFile.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFRole.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPurchase.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/Parse.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFUserAuthenticationDelegate.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFConfig.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFSubclassing.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPush.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFTask.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFCancellationToken.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPolygon.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFSession.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFRelation.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFInstallation.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFCancellationTokenRegistration.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/ParseClientConfiguration.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFDecoder.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFEncoder.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFNetworkActivityIndicatorManager.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFileUploadController.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFUser.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFExecutor.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFAnalytics.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFAnonymousUtils.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFObject+Subclass.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/Bolts.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFConstants.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFCloud+Synchronous.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFile+Synchronous.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFConfig+Synchronous.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPush+Synchronous.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFUser+Synchronous.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFObject+Synchronous.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFQuery+Synchronous.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFObject.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFProduct.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFileUploadResult.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFGeoPoint.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFQuery.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Modules/module.modulemap /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/StoreKit.framework/Headers/StoreKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Intermediates.noindex/ParseChat.build/Debug-iphonesimulator/ParseChat.build/Objects-normal/x86_64/ChatCell~partial.swiftmodule : /Users/shrijanaryal/Desktop/ios/ParseChat/ParseChat/AppDelegate.swift /Users/shrijanaryal/Desktop/ios/ParseChat/ParseChat/Views/ChatCell.swift /Users/shrijanaryal/Desktop/ios/ParseChat/ParseChat/ViewControllers/TableChatController.swift /Users/shrijanaryal/Desktop/ios/ParseChat/ParseChat/ViewControllers/LoginViewController.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/CoreLocation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFACL.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/Parse-umbrella.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/Bolts-umbrella.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFGeneric.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFCloud+Deprecated.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFile+Deprecated.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPush+Deprecated.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFUser+Deprecated.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFAnonymousUtils+Deprecated.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFObject+Deprecated.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFQuery+Deprecated.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFCloud.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFCancellationTokenSource.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFTaskCompletionSource.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFile.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFRole.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPurchase.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/Parse.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFUserAuthenticationDelegate.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFConfig.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFSubclassing.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPush.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFTask.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFCancellationToken.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPolygon.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFSession.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFRelation.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFInstallation.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFCancellationTokenRegistration.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/ParseClientConfiguration.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFDecoder.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFEncoder.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFNetworkActivityIndicatorManager.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFileUploadController.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFUser.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFExecutor.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFAnalytics.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFAnonymousUtils.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFObject+Subclass.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/Bolts.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFConstants.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFCloud+Synchronous.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFile+Synchronous.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFConfig+Synchronous.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPush+Synchronous.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFUser+Synchronous.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFObject+Synchronous.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFQuery+Synchronous.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFObject.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFProduct.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFileUploadResult.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFGeoPoint.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFQuery.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Modules/module.modulemap /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/StoreKit.framework/Headers/StoreKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Intermediates.noindex/ParseChat.build/Debug-iphonesimulator/ParseChat.build/Objects-normal/x86_64/ChatCell~partial.swiftdoc : /Users/shrijanaryal/Desktop/ios/ParseChat/ParseChat/AppDelegate.swift /Users/shrijanaryal/Desktop/ios/ParseChat/ParseChat/Views/ChatCell.swift /Users/shrijanaryal/Desktop/ios/ParseChat/ParseChat/ViewControllers/TableChatController.swift /Users/shrijanaryal/Desktop/ios/ParseChat/ParseChat/ViewControllers/LoginViewController.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/CoreLocation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFACL.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/Parse-umbrella.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/Bolts-umbrella.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFGeneric.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFCloud+Deprecated.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFile+Deprecated.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPush+Deprecated.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFUser+Deprecated.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFAnonymousUtils+Deprecated.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFObject+Deprecated.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFQuery+Deprecated.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFCloud.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFCancellationTokenSource.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFTaskCompletionSource.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFile.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFRole.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPurchase.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/Parse.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFUserAuthenticationDelegate.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFConfig.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFSubclassing.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPush.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFTask.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFCancellationToken.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPolygon.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFSession.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFRelation.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFInstallation.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFCancellationTokenRegistration.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/ParseClientConfiguration.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFDecoder.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFEncoder.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFNetworkActivityIndicatorManager.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFileUploadController.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFUser.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/BFExecutor.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFAnalytics.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFAnonymousUtils.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFObject+Subclass.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Headers/Bolts.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFConstants.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFCloud+Synchronous.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFile+Synchronous.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFConfig+Synchronous.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFPush+Synchronous.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFUser+Synchronous.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFObject+Synchronous.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFQuery+Synchronous.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFObject.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFProduct.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFFileUploadResult.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFGeoPoint.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Headers/PFQuery.h /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Parse/Parse.framework/Modules/module.modulemap /Users/shrijanaryal/Desktop/ios/ParseChat/DerivedData/ParseChat/Build/Products/Debug-iphonesimulator/Bolts/Bolts.framework/Modules/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreLocation.framework/Headers/CoreLocation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/StoreKit.framework/Headers/StoreKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
D
|
INSTANCE Mod_4026_NONE_Kuno_NW (Npc_Default)
{
// ------ NSC ------
name = "Kuno";
guild = GIL_OUT;
id = 4026;
voice = 9;
flags = 0;
npctype = NPCTYPE_MAIN;
// ------ Attribute ------
B_SetAttributesToChapter (self, 4);
// ------ Kampf-Taktik ------
fight_tactic = FAI_HUMAN_STRONG;
// ------ Equippte Waffen ------
EquipItem (self, ItMw_1h_Mil_Sword);
// ------ Inventory ------
B_CreateAmbientInv (self);
// ------ visuals ------
B_SetNpcVisual (self, MALE, "Hum_Head_Bald", 203, BodyTex_B, ITAR_Smith);
Mdl_SetModelFatness (self, 0);
Mdl_ApplyOverlayMds (self, "Humans_Relaxed.mds");
// ------ NSC-relevante Talente vergeben ------
B_GiveNpcTalents (self);
// ------ Kampf-Talente ------
B_SetFightSkills (self, 80);
// ------ TA anmelden ------
daily_routine = Rtn_Start_4026;
};
FUNC VOID Rtn_Start_4026 ()
{
TA_Stand_Eating (08,00,09,00,"WAY_PASS_MILL_07");
TA_Angeln (09,00,11,30,"WAY_PASS_MILL_05");
TA_Stand_Eating (11,30,12,00,"WAY_PASS_MILL_07");
TA_Stand_Drinking (12,00,12,30,"WAY_PASS_MILL_07");
TA_Angeln (12,30,22,00,"WAY_PASS_MILL_05");
TA_Sleep (22,00,08,00,"WAY_PASS_MILL_08");
};
|
D
|
/**
* Copyright © DiamondMVC 2018
* License: MIT (https://github.com/DiamondMVC/Diamond/blob/master/LICENSE)
* Author: Jacob Jensen (bausshf)
*/
module diamond.security.tokens.tokengenerator;
import diamond.core.apptype;
static if (isWeb)
{
/// Wrapper for a token generator.
abstract class TokenGenerator
{
protected:
/// Creates a new instance of the token generator.
this() { }
public:
/**
* Generates a token.
* Returns:
* Returns the generated token.
*/
abstract string generate();
/**
* Generates a token based on an input.
* Params:
* input = The input to generate the token based on.
* Returns:
* Returns the generated token.
*/
abstract string generate(string input);
/**
* Generates a token and passes it to the parent generator.
* Params:
* parentGenerator = The parent generator to use with the generated token.
* Returns:
* Returns the generated token.
*/
abstract string generate(TokenGenerator parentGenerator);
}
}
|
D
|
/Users/obuchiyuki/Desktop/SaftyDrive/Build/Intermediates/IBDesignables/Intermediates/SaftyDrive.build/Debug-iphonesimulator/SaftyDrive.build/Objects-normal/x86_64/PagingCellViewController.o : /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKSnackbar.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMMenu.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMTip.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKImageView.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/etc.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKColor.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKNavigationBar.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKSwitch.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKCollectionViewCell.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/PagingCellViewController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKLayer.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKActivityIndicator.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMReachability.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKEmbedMainControllerSegue.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMNavigationViewController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/PagingDataController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKEmbedDrawerControllerSegue.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKRefreshControl.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKSideDrawerViewController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKCardView.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/PagingViewController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKTextField.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKTableViewCell.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/ViewController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMAlertController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/swiftyJSON.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKLabel.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKButton.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/AppDelegate.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMHorizontalMenu.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
/Users/obuchiyuki/Desktop/SaftyDrive/Build/Intermediates/IBDesignables/Intermediates/SaftyDrive.build/Debug-iphonesimulator/SaftyDrive.build/Objects-normal/x86_64/PagingCellViewController~partial.swiftmodule : /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKSnackbar.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMMenu.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMTip.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKImageView.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/etc.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKColor.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKNavigationBar.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKSwitch.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKCollectionViewCell.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/PagingCellViewController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKLayer.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKActivityIndicator.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMReachability.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKEmbedMainControllerSegue.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMNavigationViewController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/PagingDataController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKEmbedDrawerControllerSegue.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKRefreshControl.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKSideDrawerViewController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKCardView.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/PagingViewController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKTextField.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKTableViewCell.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/ViewController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMAlertController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/swiftyJSON.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKLabel.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKButton.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/AppDelegate.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMHorizontalMenu.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
/Users/obuchiyuki/Desktop/SaftyDrive/Build/Intermediates/IBDesignables/Intermediates/SaftyDrive.build/Debug-iphonesimulator/SaftyDrive.build/Objects-normal/x86_64/PagingCellViewController~partial.swiftdoc : /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKSnackbar.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMMenu.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMTip.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKImageView.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/etc.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKColor.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKNavigationBar.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKSwitch.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKCollectionViewCell.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/PagingCellViewController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKLayer.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKActivityIndicator.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMReachability.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKEmbedMainControllerSegue.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMNavigationViewController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/PagingDataController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKEmbedDrawerControllerSegue.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKRefreshControl.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKSideDrawerViewController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKCardView.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/PagingViewController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKTextField.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKTableViewCell.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/ViewController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMAlertController.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/swiftyJSON.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKLabel.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/MK/MKButton.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/AppDelegate.swift /Users/obuchiyuki/Desktop/SaftyDrive/SaftyDrive/RMHorizontalMenu.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
|
D
|
/home/zbf/workspace/git/RTAP/target/debug/deps/lettre-0c86172ccdc47af4.rmeta: /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/lib.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/error.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/file/mod.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/file/error.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/sendmail/mod.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/sendmail/error.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/mod.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/authentication.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/client/mod.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/client/mock.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/client/net.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/commands.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/error.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/extension.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/response.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/util.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/stub/mod.rs
/home/zbf/workspace/git/RTAP/target/debug/deps/liblettre-0c86172ccdc47af4.rlib: /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/lib.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/error.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/file/mod.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/file/error.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/sendmail/mod.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/sendmail/error.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/mod.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/authentication.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/client/mod.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/client/mock.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/client/net.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/commands.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/error.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/extension.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/response.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/util.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/stub/mod.rs
/home/zbf/workspace/git/RTAP/target/debug/deps/lettre-0c86172ccdc47af4.d: /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/lib.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/error.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/file/mod.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/file/error.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/sendmail/mod.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/sendmail/error.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/mod.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/authentication.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/client/mod.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/client/mock.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/client/net.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/commands.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/error.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/extension.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/response.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/util.rs /home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/stub/mod.rs
/home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/lib.rs:
/home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/error.rs:
/home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/file/mod.rs:
/home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/file/error.rs:
/home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/sendmail/mod.rs:
/home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/sendmail/error.rs:
/home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/mod.rs:
/home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/authentication.rs:
/home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/client/mod.rs:
/home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/client/mock.rs:
/home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/client/net.rs:
/home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/commands.rs:
/home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/error.rs:
/home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/extension.rs:
/home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/response.rs:
/home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/smtp/util.rs:
/home/zbf/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/lettre-0.9.2/src/stub/mod.rs:
|
D
|
: C B L A S _ Z H E R K EXAMPLE PROGRAM DATA
2 4 :Values of n, k
0.5 1.2 :Values of alpha, beta
121 113 101 :Values of uplo, trans, order
(-3.23, 0.41) (-2.7, 1.1 )
( 4.05,-3.06) ( 5.2, 7.0 )
( 0.09, 0.77) ( 4.0, 0.88)
( 1.72, 1.13) ( 2.4, 0.21) :Values of array A
( 5.53,-4.41) ( 2.02, 0.09)
( 0.56, 0.18) :Values of array C
|
D
|
/Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/build/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/ConcurrentDispatchQueueScheduler.o : /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Deprecated.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Cancelable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObservableType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObserverType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Reactive.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/RecursiveLock.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Errors.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/AtomicInt.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Event.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/First.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Rx.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/Platform.Linux.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/Target\ Support\ Files/RxAtomic/RxAtomic-umbrella.h /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxAtomic/RxAtomic/include/RxAtomic.h /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/build/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/build/Pods.build/Debug-iphonesimulator/RxAtomic.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/build/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/ConcurrentDispatchQueueScheduler~partial.swiftmodule : /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Deprecated.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Cancelable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObservableType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObserverType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Reactive.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/RecursiveLock.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Errors.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/AtomicInt.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Event.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/First.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Rx.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/Platform.Linux.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/Target\ Support\ Files/RxAtomic/RxAtomic-umbrella.h /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxAtomic/RxAtomic/include/RxAtomic.h /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/build/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/build/Pods.build/Debug-iphonesimulator/RxAtomic.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/build/Pods.build/Debug-iphonesimulator/RxSwift.build/Objects-normal/x86_64/ConcurrentDispatchQueueScheduler~partial.swiftdoc : /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Amb.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/DistinctUntilChanged.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Deferred.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Deprecated.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Enumerated.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Maybe.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/AsMaybe.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Sequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/InfiniteSequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/ObservableType+PrimitiveSequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Debounce.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Reduce.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Range.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Merge.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Take.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Cancelable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/ScheduledDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/CompositeDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/SerialDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/BooleanDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/NopDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/AnonymousDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/SingleAssignmentDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/RefCountDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Completable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/GroupedObservable.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Single.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/AsSingle.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/TakeWhile.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SkipWhile.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Sample.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Throttle.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ShareReplayScope.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObservableType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ConnectableObservableType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObservableConvertibleType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/SchedulerType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ImmediateSchedulerType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/LockOwnerType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeConverterType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObserverType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/SubjectType.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/DisposeBase.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observers/ObserverBase.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Create.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Generate.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/Queue.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/PriorityQueue.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Reactive.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Materialize.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Dematerialize.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/AddRef.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DataStructures/Bag.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/DisposeBag.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Using.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Debug.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Catch.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Switch.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/StartWith.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/Lock.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Concurrency/AsyncLock.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/RecursiveLock.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Sink.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observers/TailRecursiveSink.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Optional.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/TakeUntil.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SkipUntil.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/WithLatestFrom.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SubscribeOn.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ObserveOn.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Scan.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/Completable+AndThen.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/RetryWhen.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/Platform.Darwin.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/SchedulerServices+Emulation.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Zip+Collection.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/CombineLatest+Collection.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/DelaySubscription.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Do.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Map.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Zip.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Skip.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Producer.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Buffer.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/CurrentThreadScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/VirtualTimeScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/OperationQueueScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/RecursiveScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/MainScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/ConcurrentMainScheduler.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Timer.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DeprecationWarner.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Filter.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Never.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observers/AnonymousObserver.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/AnyObserver.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Error.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Disposables/Disposables.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/ObservableType+Extensions.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/DispatchQueue+Extensions.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Errors.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ElementAt.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Concat.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Repeat.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/AsyncSubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/PublishSubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/BehaviorSubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Subjects/ReplaySubject.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/AtomicInt.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Event.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/SwiftSupport/SwiftSupport.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/TakeLast.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Multicast.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/CombineLatest.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/First.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Just.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Timeout.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Window.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Extensions/Bag+Rx.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Extensions/String+Rx.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Rx.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/RxMutableBox.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/Platform/Platform.Linux.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/GroupBy.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Delay.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/ToArray.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Traits/PrimitiveSequence+Zip+arity.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Zip+arity.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/CombineLatest+arity.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/Empty.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/SwitchIfEmpty.swift /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxSwift/RxSwift/Observables/DefaultIfEmpty.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/SwiftOnoneSupport.swiftmodule /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/Target\ Support\ Files/RxAtomic/RxAtomic-umbrella.h /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/Target\ Support\ Files/RxSwift/RxSwift-umbrella.h /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/Pods/RxAtomic/RxAtomic/include/RxAtomic.h /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/build/Pods.build/Debug-iphonesimulator/RxSwift.build/unextended-module.modulemap /Users/bill/Documents/ios_projects/Swift/ReferenceApps/RxDataSource_CollectionViewTest/build/Pods.build/Debug-iphonesimulator/RxAtomic.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/OpenGLES.framework/Headers/OpenGLES.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/QuartzCore.framework/Headers/QuartzCore.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Metal.framework/Headers/Metal.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/UIKit.framework/Headers/UIKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.0.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
D
|
instance DIA_Addon_BDT_10029_Buddler_EXIT(C_Info)
{
npc = BDT_10029_Addon_Buddler;
nr = 999;
condition = DIA_Addon_10029_Buddler_EXIT_Condition;
information = DIA_Addon_10029_Buddler_EXIT_Info;
permanent = TRUE;
description = Dialog_Ende;
};
func int DIA_Addon_10029_Buddler_EXIT_Condition()
{
return TRUE;
};
func void DIA_Addon_10029_Buddler_EXIT_Info()
{
AI_StopProcessInfos(self);
};
instance DIA_Addon_BDT_10029_Buddler_Hi(C_Info)
{
npc = BDT_10029_Addon_Buddler;
nr = 2;
condition = DIA_Addon_10029_Buddler_Hi_Condition;
information = DIA_Addon_10029_Buddler_Hi_Info;
permanent = TRUE;
description = "Jak je?";
};
func int DIA_Addon_10029_Buddler_Hi_Condition()
{
return TRUE;
};
func void DIA_Addon_10029_Buddler_Hi_Info()
{
AI_Output(other,self,"DIA_Addon_BDT_10029_Buddler_Hi_15_00"); //Jak je?
if(Sklaven_Flucht == FALSE)
{
AI_Output(self,other,"DIA_Addon_BDT_10029_Buddler_Hi_06_01"); //Zatímco kopeme, nebudu do ničeho zasahovat.
}
else
{
AI_Output(self,other,"DIA_Addon_BDT_10029_Buddler_Hi_06_02"); //Musím se zpět dostat do rytmu.
AI_StopProcessInfos(self);
};
};
|
D
|
/Users/esharp2/MobileSensing/CoreMotionLab/Build/Intermediates/Commotion.build/Debug-iphoneos/Commotion.build/Objects-normal/arm64/GameViewController.o : /Users/esharp2/MobileSensing/CoreMotionLab/Commotion/GameScene.swift /Users/esharp2/MobileSensing/CoreMotionLab/Commotion/GameWinScene.swift /Users/esharp2/MobileSensing/CoreMotionLab/Commotion/GameOverScene.swift /Users/esharp2/MobileSensing/CoreMotionLab/Commotion/AppDelegate.swift /Users/esharp2/MobileSensing/CoreMotionLab/Commotion/ViewController.swift /Users/esharp2/MobileSensing/CoreMotionLab/Commotion/GameViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ModelIO.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/GLKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SpriteKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks/ModelIO.framework/Headers/ModelIO.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks/GLKit.framework/Headers/GLKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks/SpriteKit.framework/Headers/SpriteKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/esharp2/MobileSensing/CoreMotionLab/Build/Intermediates/Commotion.build/Debug-iphoneos/Commotion.build/Objects-normal/arm64/GameViewController~partial.swiftmodule : /Users/esharp2/MobileSensing/CoreMotionLab/Commotion/GameScene.swift /Users/esharp2/MobileSensing/CoreMotionLab/Commotion/GameWinScene.swift /Users/esharp2/MobileSensing/CoreMotionLab/Commotion/GameOverScene.swift /Users/esharp2/MobileSensing/CoreMotionLab/Commotion/AppDelegate.swift /Users/esharp2/MobileSensing/CoreMotionLab/Commotion/ViewController.swift /Users/esharp2/MobileSensing/CoreMotionLab/Commotion/GameViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ModelIO.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/GLKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SpriteKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks/ModelIO.framework/Headers/ModelIO.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks/GLKit.framework/Headers/GLKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks/SpriteKit.framework/Headers/SpriteKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
/Users/esharp2/MobileSensing/CoreMotionLab/Build/Intermediates/Commotion.build/Debug-iphoneos/Commotion.build/Objects-normal/arm64/GameViewController~partial.swiftdoc : /Users/esharp2/MobileSensing/CoreMotionLab/Commotion/GameScene.swift /Users/esharp2/MobileSensing/CoreMotionLab/Commotion/GameWinScene.swift /Users/esharp2/MobileSensing/CoreMotionLab/Commotion/GameOverScene.swift /Users/esharp2/MobileSensing/CoreMotionLab/Commotion/AppDelegate.swift /Users/esharp2/MobileSensing/CoreMotionLab/Commotion/ViewController.swift /Users/esharp2/MobileSensing/CoreMotionLab/Commotion/GameViewController.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.apinotesc /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/ModelIO.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/simd.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/QuartzCore.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Metal.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreFoundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/GLKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SpriteKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos/arm64/SwiftOnoneSupport.swiftmodule /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks/ModelIO.framework/Headers/ModelIO.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks/CoreImage.framework/Headers/CoreImage.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks/GLKit.framework/Headers/GLKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks/SpriteKit.framework/Headers/SpriteKit.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.0.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes
|
D
|
/// A CAPTCHA generator for D services.
/// Written in the D programming language.
module dcaptcha.dcaptcha;
import std.algorithm;
import std.conv;
import std.exception;
import std.random;
import std.range;
import std.string;
import ae.utils.array;
import dcaptcha.markov;
struct CaptchaSpec
{
bool allowEasy = true;
bool allowHard = false;
bool allowStatic = false;
}
struct Challenge
{
string question, code;
string[] answers;
string hint; /// HTML!
}
/**
Goals:
- Answers should not be obvious:
- Keywords shouldn't give away the answer, e.g. `unittest { ... }`
is obviously an unit test block.
- `return 2+2` is obvious to non-programmers.
- Answers should vary considerably:
- A question which has the answer "0" much of the time is easy
to defeat simply by giving the answer "0" all of the time.
- Questions should not be Google-able:
- Search engines ignore most punctuation and math operators.
- Keywords and string literals should vary or be generic enough.
**/
Challenge getCaptcha(CaptchaSpec spec = CaptchaSpec.init)
{
string[] identifiers =
26
.iota
.map!(l => [cast(char)('a'+l)].assumeUnique())
.filter!(s => s != "l")
.array();
identifiers ~= "foo, bar, baz".split(", ");
//identifiers ~= "qux, quux, corge, grault, garply, waldo, fred, plugh, xyzzy, thud".split(", ");
enum hardFactor = 100;
int lowerFactor = spec.allowEasy ? 1 : hardFactor;
int upperFactor = spec.allowHard ? hardFactor : 1;
assert(spec.allowEasy || spec.allowHard, "No difficulty selected");
int specUniform(int lowerBound, int upperBound) { return uniform(lowerBound*lowerFactor, upperBound*upperFactor); }
string[] mathOperators = "+ - / * %".split();
Challenge challenge;
with (challenge)
[
// Identify syntax
{
if (!spec.allowStatic || !spec.allowHard)
return false;
question = "What is the name of the D language syntax feature illustrated in the following fragment of D code?";
hint = `You can find the answer in the<br><a href="http://dlang.org/spec.html">Language Reference section of dlang.org</a>.`;
// `You can find the answers in the <a href="http://dlang.org/lex.html">Lexical</a> and `
// `<a href="http://dlang.org/grammar.html">Grammar</a> language reference sections on dlang.org.`;
return
[
// lambda
{
code =
q{
(A, B) => A @ B
}.formatExample()
.replace("A", identifiers.pluck)
.replace("B", identifiers.pluck)
.replace("@", mathOperators.pluck)
;
answers = cartesianJoin(["lambda", "lambda function", "anonymous function"], ["", " literal"]);
return true;
},
// static destructor
{
string bye = ["Bye", "Goodbye", "Shutting down", "Exiting"].sample ~ ["", ".", "...", "!"].sample;
code =
q{
static ~this()
{
writeln("BYE");
}
}.formatExample()
.replace("BYE", bye)
;
answers = ["static destructor", "module destructor", "thread destructor"];
return true;
},
// nested comments
{
code =
q{
/+ A = B @ C; /+ A = X; +/ +/
}.formatExample()
.replace("A", identifiers.pluck)
.replace("B", identifiers.pluck)
.replace("C", identifiers.pluck)
.replace("X", uniform(10, 100).text)
.replace("@", mathOperators.pluck)
;
answers = cartesianJoin(["nested ", "nesting "], ["", "block "], ["comment", "comments"]);
return true;
},
// anonymous nested classes
{
code =
q{
auto A = new class O {};
}.formatExample()
.replace("A", identifiers.pluck)
.replace("O", identifiers.pluck.toUpper)
;
answers = cartesianJoin(["anonymous "], ["", "nested "], ["class", "classes"]);
return true;
},
// delimited (heredoc) strings
{
auto delimiter = ["EOF", "DELIM", "STR", "QUOT", "MARK"].sample;
code =
q{
string A = TEXT;
}.formatExample()
.replace("F", identifiers.pluck)
.replace("TEXT", `q"` ~ delimiter ~ "\n" ~ MarkovChain!2.query().join(" ").wrap(38).strip() ~ "\n" ~ delimiter ~ `"`)
;
answers = cartesianJoin(["", "multiline ", "multi-line "], ["delimited", "heredoc"], ["", " string", " strings"]);
return true;
},
// hex strings (deprecated)
/+
{
string hex;
do
hex =
uniform(3, 5)
.iota
.map!(i => "xX".sample)
.map!(f =>
[1, 2, 4].sample
.iota
.map!(j =>
format("%02" ~ f, uniform(0, 0x100))
)
.join("")
)
.join(" ");
while (hex.length > 20);
code =
q{
string A = x"CC";
}.formatExample()
.replace("A", identifiers.pluck)
.replace("CC", hex)
;
answers = cartesianJoin(["hex", "hex ", "hexadecimal "], ["string", "strings"], ["", " literal", " literals"]);
return true;
},+/
// associative arrays
{
string[] types = ["int", "string"];
code =
q{
T[U] A;
}.formatExample()
.replace("A", identifiers.pluck)
.replace("T", types.sample)
.replace("U", types.sample)
;
answers = ["AA", "associative array", "hashmap"];
return true;
},
// array slicing
{
code =
q{
A = B[X..Y];
}.formatExample()
.replace("A", identifiers.pluck)
.replace("B", identifiers.pluck)
.replace("X", uniform(0, 5).text)
.replace("Y", uniform(5, 10).text)
;
answers = cartesianJoin(["", "array "], ["slice", "slicing"]);
return true;
},
].randomCover().map!(f => f()).any();
},
// Calculate function result
// (use syntax that only programmers should be familiar with)
{
question = "What will be the return value of the following function?";
hint = `You can run D code online on <a href="https://run.dlang.io/">run.dlang.io</a>.`;
return
[
// Modulo operator (%)
{
int x, y;
do
{
x = specUniform(10, 50);
y = specUniform(x/4, x/2);
}
while (x % y == 0);
code =
q{
int F()
{
int A = X;
A %= Y;
return A;
}
}.formatExample()
.replace("F", identifiers.pluck)
.replace("A", identifiers.pluck)
.replace("X", x.text)
.replace("Y", y.text)
;
answers = [(x % y).text];
return true;
},
// Integer division, increment
{
int y = specUniform(2, 5);
int x = uniform(5, 50*upperFactor / y) * y + specUniform(1, y);
int sign = uniform(0, 2) ? -1 : 1;
code =
q{
int F()
{
int A = X, B = Y;
B@@;
A /= B;
return A;
}
}.formatExample()
.replace("F", identifiers.pluck)
.replace("A", identifiers.pluck)
.replace("B", identifiers.pluck)
.replace("X", x.text)
.replace("Y", (y - sign).text)
.replace("@", sign > 0 ? "+" : "-")
;
answers = [(x / y).text];
return true;
},
// Ternary operator + division/modulo
{
int x = specUniform(10, 50);
int y = specUniform(2, 4);
int a = specUniform(10, 50);
int b = uniform(2*lowerFactor, a/3);
int d = specUniform(5, 10);
int c = uniform(2, 50*upperFactor / d) * d + uniform(1, d);
code =
q{
int F()
{
return X % Y
? A / B
: C % D;
}
}.formatExample()
.replace("F", identifiers.pluck)
.replace("X", x.text)
.replace("Y", y.text)
.replace("A", a.text)
.replace("B", b.text)
.replace("C", c.text)
.replace("D", d.text)
;
answers = [(x % y ? a / b : c % d).text];
return true;
},
// Formatting, hexadecimal numbers
{
int n = specUniform(20, 100);
n &= ~7;
int w = uniform(2, 8);
string id = identifiers.pluck;
code =
q{
string F()
{
return format("A=%0WX", N);
}
}.formatExample()
.replace("F", identifiers.pluck)
.replace("A", id)
.replace("N", n.text)
.replace("W", w.text)
;
answers = [format("%s=%0*X", id, w, n)];
answers ~= answers.map!(s => `"`~s~`"`).array();
return true;
},
// iota+reduce - max
{
int x = specUniform(10, 100);
code =
q{
int F()
{
return iota(X).reduce!max;
}
}.formatExample()
.replace("F", identifiers.pluck)
.replace("X", x.text)
;
answers = [(x - 1).text];
return true;
},
// iota+reduce - sum
{
if (!spec.allowHard) return false;
int x = specUniform(3, 10);
code =
q{
int F()
{
return iota(X).reduce!"a+b";
}
}.formatExample()
.replace("F", identifiers.pluck)
.replace("X", x.text)
;
answers = [(iota(x).reduce!"a+b").text];
return true;
},
].randomCover().map!(f => f()).any();
},
].randomCover().map!(f => f()).any().enforce("Can't find suitable CAPTCHA");
return challenge;
}
private string[] cartesianJoin(PARTS...)(PARTS parts)
{
return cartesianProduct(parts).map!(t => join([t.expand])).array();
}
private string formatExample(string s)
{
return s
.outdent()
.strip()
.replace("\t", " ")
;
}
|
D
|
module platemaker;
public import platemaker.NetworkDisplay;
public import platemaker.PlateBound;
public import platemaker.PlateNetwork;
public import platemaker.Data;
|
D
|
/Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/KituraWebInterface.build/Routes/ClientRoutes.swift.o : /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/Sources/KituraWebInterface/Models/AcronymPersistence.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/Sources/KituraWebInterface/Models/Acronym.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/Sources/KituraWebInterface/Application/main.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/Sources/KituraWebInterface/Application/Application.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/Sources/KituraWebInterface/Routes/AcronymRoutes.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/Sources/KituraWebInterface/Routes/ClientRoutes.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/CouchDB.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/LoggerAPI.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/SwiftyJSON.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/Kitura.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/SSLService.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/KituraTemplateEngine.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/Stencil.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/KituraStencil.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/TypeDecoder.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/HeliumLogger.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/KituraContracts.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/KituraNet.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/Socket.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/PathKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/CHTTPParser/include/CHTTPParser.h /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/CHTTPParser/include/http_parser.h /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/CHTTPParser/include/utils.h /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/CHTTPParser.build/module.modulemap /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/CCurl/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/KituraWebInterface.build/ClientRoutes~partial.swiftmodule : /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/Sources/KituraWebInterface/Models/AcronymPersistence.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/Sources/KituraWebInterface/Models/Acronym.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/Sources/KituraWebInterface/Application/main.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/Sources/KituraWebInterface/Application/Application.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/Sources/KituraWebInterface/Routes/AcronymRoutes.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/Sources/KituraWebInterface/Routes/ClientRoutes.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/CouchDB.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/LoggerAPI.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/SwiftyJSON.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/Kitura.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/SSLService.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/KituraTemplateEngine.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/Stencil.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/KituraStencil.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/TypeDecoder.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/HeliumLogger.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/KituraContracts.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/KituraNet.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/Socket.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/PathKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/CHTTPParser/include/CHTTPParser.h /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/CHTTPParser/include/http_parser.h /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/CHTTPParser/include/utils.h /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/CHTTPParser.build/module.modulemap /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/CCurl/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
/Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/KituraWebInterface.build/ClientRoutes~partial.swiftdoc : /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/Sources/KituraWebInterface/Models/AcronymPersistence.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/Sources/KituraWebInterface/Models/Acronym.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/Sources/KituraWebInterface/Application/main.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/Sources/KituraWebInterface/Application/Application.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/Sources/KituraWebInterface/Routes/AcronymRoutes.swift /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/Sources/KituraWebInterface/Routes/ClientRoutes.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.apinotesc /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/CouchDB.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/ObjectiveC.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/LoggerAPI.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/SwiftyJSON.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/Kitura.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/SSLService.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/KituraTemplateEngine.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Dispatch.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/Stencil.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/KituraStencil.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreFoundation.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/TypeDecoder.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/HeliumLogger.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/CoreGraphics.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/KituraContracts.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/KituraNet.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/Socket.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/IOKit.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/PathKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/CHTTPParser/include/CHTTPParser.h /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/CHTTPParser/include/http_parser.h /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/CHTTPParser/include/utils.h /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/x86_64-apple-macosx10.10/debug/CHTTPParser.build/module.modulemap /Users/pavlosnicolaou/Documents/workshop/Kitura/KituraWebInterface/KituraWebInterface_Starter/.build/checkouts/Kitura-net.git-6847998409280116426/Sources/CCurl/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/objc/ObjectiveC.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.apinotes /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/Security.framework/Headers/Security.apinotes
|
D
|
prototype Mst_Default_Minecrawler(C_Npc)
{
name[0] = "Pe³zacz";
guild = GIL_MINECRAWLER;
aivar[AIV_IMPORTANT] = ID_MINECRAWLER;
level = 13;
attribute[ATR_STRENGTH] = 65;
attribute[ATR_DEXTERITY] = 30;
attribute[ATR_HITPOINTS_MAX] = 90;
attribute[ATR_HITPOINTS] = 90;
attribute[ATR_MANA_MAX] = 0;
attribute[ATR_MANA] = 0;
protection[PROT_BLUNT] = 55;
protection[PROT_EDGE] = 50;
protection[PROT_POINT] = 15;
protection[PROT_FIRE] = 25;
protection[PROT_FLY] = 0;
protection[PROT_MAGIC] = 0;
damagetype = DAM_EDGE;
fight_tactic = FAI_MINECRAWLER;
senses = SENSE_HEAR | SENSE_SEE | SENSE_SMELL;
senses_range = 3000;
aivar[AIV_FINDABLE] = PACKHUNTER;
aivar[AIV_PCISSTRONGER] = 1200;
aivar[AIV_BEENATTACKED] = 1200;
aivar[AIV_HIGHWAYMEN] = 1000;
aivar[AIV_HAS_ERPRESSED] = 2;
aivar[AIV_BEGGAR] = 10;
aivar[AIV_OBSERVEINTRUDER] = FALSE;
start_aistate = ZS_MM_AllScheduler;
aivar[AIV_ITEMSTATUS] = OnlyRoutine;
};
func void Set_Minecrawler_Visuals()
{
Mdl_SetVisual(self,"Crawler.mds");
Mdl_SetVisualBody(self,"Crw_Body",DEFAULT,DEFAULT,"",DEFAULT,DEFAULT,-1);
};
instance MineCrawler(Mst_Default_Minecrawler)
{
Set_Minecrawler_Visuals();
Npc_SetToFistMode(self);
};
|
D
|
/Users/liaohua/fisco-bcos/weid-rust-sample/diesel_cli/target/debug/build/serde-1999567b76b718ce/build_script_build-1999567b76b718ce: /Users/liaohua/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.126/build.rs
/Users/liaohua/fisco-bcos/weid-rust-sample/diesel_cli/target/debug/build/serde-1999567b76b718ce/build_script_build-1999567b76b718ce.d: /Users/liaohua/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.126/build.rs
/Users/liaohua/.cargo/registry/src/github.com-1ecc6299db9ec823/serde-1.0.126/build.rs:
|
D
|
module mach.io.stream.memorystream;
private:
import mach.sys.memory : memmove;
import mach.error : enforcebounds;
public:
static auto asstream(T)(T[] array, size_t pos = 0){
return MemoryStream!(!is(T == const) && !is(T == immutable))(array, pos);
}
static auto asstream(T)(T* ptr, size_t memlength, size_t pos = 0){
return MemoryStream!(!is(T == const) && !is(T == immutable))(ptr, memlength, pos);
}
/// Provides a stream interface for reading and writing data in memory.
struct MemoryStream(bool mutable){
/// The location in memory to read to and write from.
ubyte* ptr = null;
/// The size of the portion of memory to read to and write from.
size_t memlength = 0;
/// The current position of the stream in memory.
size_t pos = 0;
this(T)(T[] array, size_t pos = 0){
this(array.ptr, array.length * T.sizeof, pos);
}
this(T)(T* ptr, size_t memlength, size_t pos = 0){
this.ptr = cast(ubyte*) ptr;
this.memlength = memlength * T.sizeof;
this.pos = pos;
}
@property bool active() const{
return this.ptr !is null;
}
void close() in{assert(this.active);} body{
this.ptr = null;
this.memlength = 0;
this.pos = 0;
}
/// True when the stream's position has met or exceeded its length.
@property bool eof() const in{assert(this.active);} body{
return this.pos >= this.memlength;
}
/// The length of the stream in bytes.
@property auto length() const in{assert(this.active);} body{
return this.memlength;
}
/// The number of bytes remaining to be read or written before EOF.
@property auto remaining() const in{assert(this.active);} body{
return this.memlength - this.pos;
}
alias opDollar = length;
/// Get the current position in the stream.
@property auto position() const in{assert(this.active);} body{
return this.pos;
}
/// Set the current position in the stream.
@property void position(in size_t pos) in{
assert(this.active);
enforcebounds(pos, this);
}body{
this.pos = pos;
}
/// Reset the stream's position to its beginning.
void reset() in{assert(this.active);} body{
this.pos = 0;
}
size_t readbufferv(void* buffer, size_t size, size_t count) in{
assert(this.active);
}body{
immutable goal = count * size;
immutable cap = goal <= this.remaining ? goal : this.remaining;
immutable actual = cap % size == 0 ? cap : cap - cap % size;
memmove(buffer, this.ptr + this.pos, actual);
this.pos += actual;
return actual;
}
static if(mutable) size_t writebufferv(void* buffer, size_t size, size_t count) in{
assert(this.active);
}body{
immutable goal = count * size;
immutable cap = goal <= this.remaining ? goal : this.remaining;
immutable actual = cap % size == 0 ? cap : cap - cap % size;
memmove(this.ptr + this.pos, buffer, actual);
this.pos += actual;
return actual;
}
/// Get a byte at an index.
auto opIndex(in size_t index) in{
assert(this.active);
enforcebounds(index, this);
}body{
return this.ptr[index];
}
/// Set a byte at an index.
static if(mutable) auto opIndexAssign(in ubyte value, in size_t index) in{
assert(this.active);
enforcebounds(index, this);
}body{
return this.ptr[index] = value;
}
/// Get as a slice the stream's bytes from a low until a high index.
auto opSlice(in size_t low, in size_t high) in{
assert(low >= 0 && high >= low && high <= this.length);
}body{
return this.ptr[low .. high];
}
}
version(unittest){
private:
import mach.test;
import mach.io.stream.io;
import mach.io.stream.templates;
}
unittest{
tests("Memory stream", {
static assert(isIOStream!(MemoryStream!true));
static assert(isInputStream!(MemoryStream!false));
static assert(!isOutputStream!(MemoryStream!false));
tests("Read", {
auto stream = "Hello World".asstream;
static assert(isInputStream!(typeof(stream)));
static assert(!isOutputStream!(typeof(stream)));
testeq(stream.length, 11);
char[] buffer = new char[5];
stream.readbuffer(buffer);
testeq(buffer, "Hello");
testeq(stream.read!char, ' ');
stream.readbuffer(buffer);
testeq(buffer, "World");
});
tests("Write", {
auto data = new char[5];
auto stream = data.asstream;
static assert(isIOStream!(typeof(stream)));
stream.writebuffer("hello");
testeq(data, "hello");
stream.position = 0;
stream.write('y');
testeq(data, "yello");
});
});
}
|
D
|
/**
* Contains traits for runtime internal usage.
*
* Copyright: Copyright Digital Mars 2014 -.
* License: $(HTTP www.boost.org/LICENSE_1_0.txt, Boost License 1.0).
* Authors: Martin Nowak
* Source: $(DRUNTIMESRC core/internal/_traits.d)
*/
module core.internal.traits;
alias AliasSeq(TList...) = TList;
template Fields(T)
{
static if (is(T == struct) || is(T == union))
alias Fields = typeof(T.tupleof[0 .. $ - __traits(isNested, T)]);
else static if (is(T == class))
alias Fields = typeof(T.tupleof);
else
alias Fields = AliasSeq!T;
}
T trustedCast(T, U)(auto ref U u) @trusted pure nothrow
{
return cast(T)u;
}
template Unconst(T)
{
static if (is(T U == immutable U)) alias Unconst = U;
else static if (is(T U == inout const U)) alias Unconst = U;
else static if (is(T U == inout U)) alias Unconst = U;
else static if (is(T U == const U)) alias Unconst = U;
else alias Unconst = T;
}
/// taken from std.traits.Unqual
template Unqual(T)
{
version (none) // Error: recursive alias declaration @@@BUG1308@@@
{
static if (is(T U == const U)) alias Unqual = Unqual!U;
else static if (is(T U == immutable U)) alias Unqual = Unqual!U;
else static if (is(T U == inout U)) alias Unqual = Unqual!U;
else static if (is(T U == shared U)) alias Unqual = Unqual!U;
else alias Unqual = T;
}
else // workaround
{
static if (is(T U == immutable U)) alias Unqual = U;
else static if (is(T U == shared inout const U)) alias Unqual = U;
else static if (is(T U == shared inout U)) alias Unqual = U;
else static if (is(T U == shared const U)) alias Unqual = U;
else static if (is(T U == shared U)) alias Unqual = U;
else static if (is(T U == inout const U)) alias Unqual = U;
else static if (is(T U == inout U)) alias Unqual = U;
else static if (is(T U == const U)) alias Unqual = U;
else alias Unqual = T;
}
}
// [For internal use]
template ModifyTypePreservingTQ(alias Modifier, T)
{
static if (is(T U == immutable U)) alias ModifyTypePreservingTQ = immutable Modifier!U;
else static if (is(T U == shared inout const U)) alias ModifyTypePreservingTQ = shared inout const Modifier!U;
else static if (is(T U == shared inout U)) alias ModifyTypePreservingTQ = shared inout Modifier!U;
else static if (is(T U == shared const U)) alias ModifyTypePreservingTQ = shared const Modifier!U;
else static if (is(T U == shared U)) alias ModifyTypePreservingTQ = shared Modifier!U;
else static if (is(T U == inout const U)) alias ModifyTypePreservingTQ = inout const Modifier!U;
else static if (is(T U == inout U)) alias ModifyTypePreservingTQ = inout Modifier!U;
else static if (is(T U == const U)) alias ModifyTypePreservingTQ = const Modifier!U;
else alias ModifyTypePreservingTQ = Modifier!T;
}
@safe unittest
{
alias Intify(T) = int;
static assert(is(ModifyTypePreservingTQ!(Intify, real) == int));
static assert(is(ModifyTypePreservingTQ!(Intify, const real) == const int));
static assert(is(ModifyTypePreservingTQ!(Intify, inout real) == inout int));
static assert(is(ModifyTypePreservingTQ!(Intify, inout const real) == inout const int));
static assert(is(ModifyTypePreservingTQ!(Intify, shared real) == shared int));
static assert(is(ModifyTypePreservingTQ!(Intify, shared const real) == shared const int));
static assert(is(ModifyTypePreservingTQ!(Intify, shared inout real) == shared inout int));
static assert(is(ModifyTypePreservingTQ!(Intify, shared inout const real) == shared inout const int));
static assert(is(ModifyTypePreservingTQ!(Intify, immutable real) == immutable int));
}
// Substitute all `inout` qualifiers that appears in T to `const`
template substInout(T)
{
static if (is(T == immutable))
{
alias substInout = T;
}
else static if (is(T : shared const U, U) || is(T : const U, U))
{
// U is top-unqualified
mixin("alias substInout = "
~ (is(T == shared) ? "shared " : "")
~ (is(T == const) || is(T == inout) ? "const " : "") // substitute inout to const
~ "substInoutForm!U;");
}
else
static assert(0);
}
private template substInoutForm(T)
{
static if (is(T == struct) || is(T == class) || is(T == union) || is(T == interface))
{
alias substInoutForm = T; // prevent matching to the form of alias-this-ed type
}
else static if (is(T : V[K], K, V)) alias substInoutForm = substInout!V[substInout!K];
else static if (is(T : U[n], U, size_t n)) alias substInoutForm = substInout!U[n];
else static if (is(T : U[], U)) alias substInoutForm = substInout!U[];
else static if (is(T : U*, U)) alias substInoutForm = substInout!U*;
else alias substInoutForm = T;
}
/// used to declare an extern(D) function that is defined in a different module
template externDFunc(string fqn, T:FT*, FT) if (is(FT == function))
{
static if (is(FT RT == return) && is(FT Args == function))
{
import core.demangle : mangleFunc;
enum decl = {
string s = "extern(D) RT externDFunc(Args)";
foreach (attr; __traits(getFunctionAttributes, FT))
s ~= " " ~ attr;
return s ~ ";";
}();
pragma(mangle, mangleFunc!T(fqn)) mixin(decl);
}
else
static assert(0);
}
template staticIota(int beg, int end)
{
static if (beg + 1 >= end)
{
static if (beg >= end)
{
alias staticIota = AliasSeq!();
}
else
{
alias staticIota = AliasSeq!(+beg);
}
}
else
{
enum mid = beg + (end - beg) / 2;
alias staticIota = AliasSeq!(staticIota!(beg, mid), staticIota!(mid, end));
}
}
private struct __InoutWorkaroundStruct {}
@property T rvalueOf(T)(T val) { return val; }
@property T rvalueOf(T)(inout __InoutWorkaroundStruct = __InoutWorkaroundStruct.init);
@property ref T lvalueOf(T)(inout __InoutWorkaroundStruct = __InoutWorkaroundStruct.init);
// taken from std.traits.isAssignable
template isAssignable(Lhs, Rhs = Lhs)
{
enum isAssignable = __traits(compiles, lvalueOf!Lhs = rvalueOf!Rhs) && __traits(compiles, lvalueOf!Lhs = lvalueOf!Rhs);
}
// taken from std.traits.isInnerClass
template isInnerClass(T) if (is(T == class))
{
static if (is(typeof(T.outer)))
{
template hasOuterMember(T...)
{
static if (T.length == 0)
enum hasOuterMember = false;
else
enum hasOuterMember = T[0] == "outer" || hasOuterMember!(T[1 .. $]);
}
enum isInnerClass = __traits(isSame, typeof(T.outer), __traits(parent, T)) && !hasOuterMember!(__traits(allMembers, T));
}
else
enum isInnerClass = false;
}
template dtorIsNothrow(T)
{
enum dtorIsNothrow = is(typeof(function{T t=void;}) : void function() nothrow);
}
// taken from std.meta.allSatisfy
template allSatisfy(alias F, T...)
{
static foreach (Ti; T)
{
static if (!is(typeof(allSatisfy) == bool) && // not yet defined
!F!(Ti))
{
enum allSatisfy = false;
}
}
static if (!is(typeof(allSatisfy) == bool)) // if not yet defined
{
enum allSatisfy = true;
}
}
// taken from std.meta.anySatisfy
template anySatisfy(alias F, Ts...)
{
static foreach (T; Ts)
{
static if (!is(typeof(anySatisfy) == bool) && // not yet defined
F!T)
{
enum anySatisfy = true;
}
}
static if (!is(typeof(anySatisfy) == bool)) // if not yet defined
{
enum anySatisfy = false;
}
}
// simplified from std.traits.maxAlignment
template maxAlignment(U...)
{
static if (U.length == 0)
static assert(0);
else static if (U.length == 1)
enum maxAlignment = U[0].alignof;
else static if (U.length == 2)
enum maxAlignment = U[0].alignof > U[1].alignof ? U[0].alignof : U[1].alignof;
else
{
enum a = maxAlignment!(U[0 .. ($+1)/2]);
enum b = maxAlignment!(U[($+1)/2 .. $]);
enum maxAlignment = a > b ? a : b;
}
}
template classInstanceAlignment(T)
if (is(T == class))
{
alias classInstanceAlignment = maxAlignment!(void*, typeof(T.tupleof));
}
/// See $(REF hasElaborateMove, std,traits)
template hasElaborateMove(S)
{
static if (__traits(isStaticArray, S) && S.length)
{
enum bool hasElaborateMove = hasElaborateMove!(typeof(S.init[0]));
}
else static if (is(S == struct))
{
enum hasElaborateMove = (is(typeof(S.init.opPostMove(lvalueOf!S))) &&
!is(typeof(S.init.opPostMove(rvalueOf!S)))) ||
anySatisfy!(.hasElaborateMove, Fields!S);
}
else
{
enum bool hasElaborateMove = false;
}
}
// std.traits.hasElaborateDestructor
template hasElaborateDestructor(S)
{
static if (__traits(isStaticArray, S) && S.length)
{
enum bool hasElaborateDestructor = hasElaborateDestructor!(typeof(S.init[0]));
}
else static if (is(S == struct))
{
enum hasElaborateDestructor = __traits(hasMember, S, "__dtor")
|| anySatisfy!(.hasElaborateDestructor, Fields!S);
}
else
{
enum bool hasElaborateDestructor = false;
}
}
// std.traits.hasElaborateCopyDestructor
template hasElaborateCopyConstructor(S)
{
static if (__traits(isStaticArray, S) && S.length)
{
enum bool hasElaborateCopyConstructor = hasElaborateCopyConstructor!(typeof(S.init[0]));
}
else static if (is(S == struct))
{
enum hasElaborateCopyConstructor = __traits(hasCopyConstructor, S) || __traits(hasPostblit, S);
}
else
{
enum bool hasElaborateCopyConstructor = false;
}
}
@safe unittest
{
static struct S
{
int x;
this(return scope ref typeof(this) rhs) { }
this(int x, int y) {}
}
static assert(hasElaborateCopyConstructor!S);
static struct S2
{
int x;
this(int x, int y) {}
}
static assert(!hasElaborateCopyConstructor!S2);
static struct S3
{
int x;
this(return scope ref typeof(this) rhs, int x = 42) { }
this(int x, int y) {}
}
static assert(hasElaborateCopyConstructor!S3);
}
template hasElaborateAssign(S)
{
static if (__traits(isStaticArray, S) && S.length)
{
enum bool hasElaborateAssign = hasElaborateAssign!(typeof(S.init[0]));
}
else static if (is(S == struct))
{
enum hasElaborateAssign = is(typeof(S.init.opAssign(rvalueOf!S))) ||
is(typeof(S.init.opAssign(lvalueOf!S))) ||
anySatisfy!(.hasElaborateAssign, Fields!S);
}
else
{
enum bool hasElaborateAssign = false;
}
}
template hasIndirections(T)
{
static if (is(T == struct) || is(T == union))
enum hasIndirections = anySatisfy!(.hasIndirections, Fields!T);
else static if (__traits(isStaticArray, T) && is(T : E[N], E, size_t N))
enum hasIndirections = is(E == void) ? true : hasIndirections!E;
else static if (isFunctionPointer!T)
enum hasIndirections = false;
else
enum hasIndirections = isPointer!T || isDelegate!T || isDynamicArray!T ||
__traits(isAssociativeArray, T) || is (T == class) || is(T == interface);
}
template hasUnsharedIndirections(T)
{
static if (is(T == struct) || is(T == union))
enum hasUnsharedIndirections = anySatisfy!(.hasUnsharedIndirections, Fields!T);
else static if (is(T : E[N], E, size_t N))
enum hasUnsharedIndirections = is(E == void) ? false : hasUnsharedIndirections!E;
else static if (isFunctionPointer!T)
enum hasUnsharedIndirections = false;
else static if (isPointer!T)
enum hasUnsharedIndirections = !is(T : shared(U)*, U);
else static if (isDynamicArray!T)
enum hasUnsharedIndirections = !is(T : shared(V)[], V);
else static if (is(T == class) || is(T == interface))
enum hasUnsharedIndirections = !is(T : shared(W), W);
else
enum hasUnsharedIndirections = isDelegate!T || __traits(isAssociativeArray, T); // TODO: how to handle these?
}
enum bool isAggregateType(T) = is(T == struct) || is(T == union) ||
is(T == class) || is(T == interface);
enum bool isPointer(T) = is(T == U*, U) && !isAggregateType!T;
enum bool isDynamicArray(T) = is(DynamicArrayTypeOf!T) && !isAggregateType!T;
template OriginalType(T)
{
template Impl(T)
{
static if (is(T U == enum)) alias Impl = OriginalType!U;
else alias Impl = T;
}
alias OriginalType = ModifyTypePreservingTQ!(Impl, T);
}
template DynamicArrayTypeOf(T)
{
static if (is(AliasThisTypeOf!T AT) && !is(AT[] == AT))
alias X = DynamicArrayTypeOf!AT;
else
alias X = OriginalType!T;
static if (is(Unqual!X : E[], E) && !is(typeof({ enum n = X.length; })))
alias DynamicArrayTypeOf = X;
else
static assert(0, T.stringof ~ " is not a dynamic array");
}
private template AliasThisTypeOf(T)
if (isAggregateType!T)
{
alias members = __traits(getAliasThis, T);
static if (members.length == 1)
alias AliasThisTypeOf = typeof(__traits(getMember, T.init, members[0]));
else
static assert(0, T.stringof~" does not have alias this type");
}
template isFunctionPointer(T...)
if (T.length == 1)
{
static if (is(T[0] U) || is(typeof(T[0]) U))
{
static if (is(U F : F*) && is(F == function))
enum bool isFunctionPointer = true;
else
enum bool isFunctionPointer = false;
}
else
enum bool isFunctionPointer = false;
}
template isDelegate(T...)
if (T.length == 1)
{
static if (is(typeof(& T[0]) U : U*) && is(typeof(& T[0]) U == delegate))
{
// T is a (nested) function symbol.
enum bool isDelegate = true;
}
else static if (is(T[0] W) || is(typeof(T[0]) W))
{
// T is an expression or a type. Take the type of it and examine.
enum bool isDelegate = is(W == delegate);
}
else
enum bool isDelegate = false;
}
// std.meta.Filter
template Filter(alias pred, TList...)
{
static if (TList.length == 0)
{
alias Filter = AliasSeq!();
}
else static if (TList.length == 1)
{
static if (pred!(TList[0]))
alias Filter = AliasSeq!(TList[0]);
else
alias Filter = AliasSeq!();
}
/* The next case speeds up compilation by reducing
* the number of Filter instantiations
*/
else static if (TList.length == 2)
{
static if (pred!(TList[0]))
{
static if (pred!(TList[1]))
alias Filter = AliasSeq!(TList[0], TList[1]);
else
alias Filter = AliasSeq!(TList[0]);
}
else
{
static if (pred!(TList[1]))
alias Filter = AliasSeq!(TList[1]);
else
alias Filter = AliasSeq!();
}
}
else
{
alias Filter =
AliasSeq!(
Filter!(pred, TList[ 0 .. $/2]),
Filter!(pred, TList[$/2 .. $ ]));
}
}
// std.meta.staticMap
template staticMap(alias F, T...)
{
static if (T.length == 0)
{
alias staticMap = AliasSeq!();
}
else static if (T.length == 1)
{
alias staticMap = AliasSeq!(F!(T[0]));
}
/* Cases 2 to 8 improve compile performance by reducing
* the number of recursive instantiations of staticMap
*/
else static if (T.length == 2)
{
alias staticMap = AliasSeq!(F!(T[0]), F!(T[1]));
}
else static if (T.length == 3)
{
alias staticMap = AliasSeq!(F!(T[0]), F!(T[1]), F!(T[2]));
}
else static if (T.length == 4)
{
alias staticMap = AliasSeq!(F!(T[0]), F!(T[1]), F!(T[2]), F!(T[3]));
}
else static if (T.length == 5)
{
alias staticMap = AliasSeq!(F!(T[0]), F!(T[1]), F!(T[2]), F!(T[3]), F!(T[4]));
}
else static if (T.length == 6)
{
alias staticMap = AliasSeq!(F!(T[0]), F!(T[1]), F!(T[2]), F!(T[3]), F!(T[4]), F!(T[5]));
}
else static if (T.length == 7)
{
alias staticMap = AliasSeq!(F!(T[0]), F!(T[1]), F!(T[2]), F!(T[3]), F!(T[4]), F!(T[5]), F!(T[6]));
}
else static if (T.length == 8)
{
alias staticMap = AliasSeq!(F!(T[0]), F!(T[1]), F!(T[2]), F!(T[3]), F!(T[4]), F!(T[5]), F!(T[6]), F!(T[7]));
}
else
{
alias staticMap =
AliasSeq!(
staticMap!(F, T[ 0 .. $/2]),
staticMap!(F, T[$/2 .. $ ]));
}
}
// std.exception.assertCTFEable
version (CoreUnittest) package(core)
void assertCTFEable(alias dg)()
{
static assert({ cast(void) dg(); return true; }());
cast(void) dg();
}
// std.traits.FunctionTypeOf
/*
Get the function type from a callable object `func`.
Using builtin `typeof` on a property function yields the types of the
property value, not of the property function itself. Still,
`FunctionTypeOf` is able to obtain function types of properties.
Note:
Do not confuse function types with function pointer types; function types are
usually used for compile-time reflection purposes.
*/
template FunctionTypeOf(func...)
if (func.length == 1 /*&& isCallable!func*/)
{
static if (is(typeof(& func[0]) Fsym : Fsym*) && is(Fsym == function) || is(typeof(& func[0]) Fsym == delegate))
{
alias FunctionTypeOf = Fsym; // HIT: (nested) function symbol
}
else static if (is(typeof(& func[0].opCall) Fobj == delegate))
{
alias FunctionTypeOf = Fobj; // HIT: callable object
}
else static if (is(typeof(& func[0].opCall) Ftyp : Ftyp*) && is(Ftyp == function))
{
alias FunctionTypeOf = Ftyp; // HIT: callable type
}
else static if (is(func[0] T) || is(typeof(func[0]) T))
{
static if (is(T == function))
alias FunctionTypeOf = T; // HIT: function
else static if (is(T Fptr : Fptr*) && is(Fptr == function))
alias FunctionTypeOf = Fptr; // HIT: function pointer
else static if (is(T Fdlg == delegate))
alias FunctionTypeOf = Fdlg; // HIT: delegate
else
static assert(0);
}
else
static assert(0);
}
@safe unittest
{
class C
{
int value() @property { return 0; }
}
static assert(is( typeof(C.value) == int ));
static assert(is( FunctionTypeOf!(C.value) == function ));
}
@system unittest
{
int test(int a);
int propGet() @property;
int propSet(int a) @property;
int function(int) test_fp;
int delegate(int) test_dg;
static assert(is( typeof(test) == FunctionTypeOf!(typeof(test)) ));
static assert(is( typeof(test) == FunctionTypeOf!test ));
static assert(is( typeof(test) == FunctionTypeOf!test_fp ));
static assert(is( typeof(test) == FunctionTypeOf!test_dg ));
alias int GetterType() @property;
alias int SetterType(int) @property;
static assert(is( FunctionTypeOf!propGet == GetterType ));
static assert(is( FunctionTypeOf!propSet == SetterType ));
interface Prop { int prop() @property; }
Prop prop;
static assert(is( FunctionTypeOf!(Prop.prop) == GetterType ));
static assert(is( FunctionTypeOf!(prop.prop) == GetterType ));
class Callable { int opCall(int) { return 0; } }
auto call = new Callable;
static assert(is( FunctionTypeOf!call == typeof(test) ));
struct StaticCallable { static int opCall(int) { return 0; } }
StaticCallable stcall_val;
StaticCallable* stcall_ptr;
static assert(is( FunctionTypeOf!stcall_val == typeof(test) ));
static assert(is( FunctionTypeOf!stcall_ptr == typeof(test) ));
interface Overloads
{
void test(string);
real test(real);
int test(int);
int test() @property;
}
alias ov = __traits(getVirtualFunctions, Overloads, "test");
alias F_ov0 = FunctionTypeOf!(ov[0]);
alias F_ov1 = FunctionTypeOf!(ov[1]);
alias F_ov2 = FunctionTypeOf!(ov[2]);
alias F_ov3 = FunctionTypeOf!(ov[3]);
static assert(is(F_ov0* == void function(string)));
static assert(is(F_ov1* == real function(real)));
static assert(is(F_ov2* == int function(int)));
static assert(is(F_ov3* == int function() @property));
alias F_dglit = FunctionTypeOf!((int a){ return a; });
static assert(is(F_dglit* : int function(int)));
}
// std.traits.ReturnType
/*
Get the type of the return value from a function,
a pointer to function, a delegate, a struct
with an opCall, a pointer to a struct with an opCall,
or a class with an `opCall`. Please note that $(D_KEYWORD ref)
is not part of a type, but the attribute of the function
(see template $(LREF functionAttributes)).
*/
template ReturnType(func...)
if (func.length == 1 /*&& isCallable!func*/)
{
static if (is(FunctionTypeOf!func R == return))
alias ReturnType = R;
else
static assert(0, "argument has no return type");
}
//
@safe unittest
{
int foo();
ReturnType!foo x; // x is declared as int
}
@safe unittest
{
struct G
{
int opCall (int i) { return 1;}
}
alias ShouldBeInt = ReturnType!G;
static assert(is(ShouldBeInt == int));
G g;
static assert(is(ReturnType!g == int));
G* p;
alias pg = ReturnType!p;
static assert(is(pg == int));
class C
{
int opCall (int i) { return 1;}
}
static assert(is(ReturnType!C == int));
C c;
static assert(is(ReturnType!c == int));
class Test
{
int prop() @property { return 0; }
}
alias R_Test_prop = ReturnType!(Test.prop);
static assert(is(R_Test_prop == int));
alias R_dglit = ReturnType!((int a) { return a; });
static assert(is(R_dglit == int));
}
// std.traits.Parameters
/*
Get, as a tuple, the types of the parameters to a function, a pointer
to function, a delegate, a struct with an `opCall`, a pointer to a
struct with an `opCall`, or a class with an `opCall`.
*/
template Parameters(func...)
if (func.length == 1 /*&& isCallable!func*/)
{
static if (is(FunctionTypeOf!func P == function))
alias Parameters = P;
else
static assert(0, "argument has no parameters");
}
//
@safe unittest
{
int foo(int, long);
void bar(Parameters!foo); // declares void bar(int, long);
void abc(Parameters!foo[1]); // declares void abc(long);
}
@safe unittest
{
int foo(int i, bool b) { return 0; }
static assert(is(Parameters!foo == AliasSeq!(int, bool)));
static assert(is(Parameters!(typeof(&foo)) == AliasSeq!(int, bool)));
struct S { real opCall(real r, int i) { return 0.0; } }
S s;
static assert(is(Parameters!S == AliasSeq!(real, int)));
static assert(is(Parameters!(S*) == AliasSeq!(real, int)));
static assert(is(Parameters!s == AliasSeq!(real, int)));
class Test
{
int prop() @property { return 0; }
}
alias P_Test_prop = Parameters!(Test.prop);
static assert(P_Test_prop.length == 0);
alias P_dglit = Parameters!((int a){});
static assert(P_dglit.length == 1);
static assert(is(P_dglit[0] == int));
}
// Return `true` if `Type` has `member` that evaluates to `true` in a static if condition
enum isTrue(Type, string member) = __traits(compiles, { static if (__traits(getMember, Type, member)) {} else static assert(0); });
unittest
{
static struct T
{
enum a = true;
enum b = false;
enum c = 1;
enum d = 45;
enum e = "true";
enum f = "";
enum g = null;
alias h = bool;
}
static assert( isTrue!(T, "a"));
static assert(!isTrue!(T, "b"));
static assert( isTrue!(T, "c"));
static assert( isTrue!(T, "d"));
static assert( isTrue!(T, "e"));
static assert( isTrue!(T, "f"));
static assert(!isTrue!(T, "g"));
static assert(!isTrue!(T, "h"));
}
|
D
|
/**
* Contains a bitfield used by the GC.
*
* Copyright: Copyright Digital Mars 2005 - 2009.
* License: <a href="http://www.boost.org/LICENSE_1_0.txt">Boost License 1.0</a>.
* Authors: Walter Bright, David Friedman, Sean Kelly
*/
/* Copyright Digital Mars 2005 - 2009.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
module gc.gcbits;
private
{
import core.bitop;
import core.stdc.string;
import core.stdc.stdlib;
extern (C) void onOutOfMemoryError();
}
version (DigitalMars)
{
version = bitops;
}
else version (GNU)
{
// use the unoptimized version
}
else version (D_InlineAsm_X86)
{
version = Asm86;
}
struct GCBits
{
alias size_t wordtype;
enum BITS_PER_WORD = (wordtype.sizeof * 8);
enum BITS_SHIFT = (wordtype.sizeof == 8 ? 6 : 5);
enum BITS_MASK = (BITS_PER_WORD - 1);
enum BITS_1 = cast(wordtype)1;
wordtype* data = null;
size_t nwords = 0; // allocated words in data[] excluding sentinals
size_t nbits = 0; // number of bits in data[] excluding sentinals
void Dtor()
{
if (data)
{
free(data);
data = null;
}
}
invariant()
{
if (data)
{
assert(nwords * data[0].sizeof * 8 >= nbits);
}
}
void alloc(size_t nbits)
{
this.nbits = nbits;
nwords = (nbits + (BITS_PER_WORD - 1)) >> BITS_SHIFT;
data = cast(typeof(data[0])*)calloc(nwords + 2, data[0].sizeof);
if (!data)
onOutOfMemoryError();
}
wordtype test(size_t i)
in
{
assert(i < nbits);
}
body
{
version (none)
{
return core.bitop.bt(data + 1, i); // this is actually slower! don't use
}
else
{
//return (cast(bit *)(data + 1))[i];
return data[1 + (i >> BITS_SHIFT)] & (BITS_1 << (i & BITS_MASK));
}
}
void set(size_t i)
in
{
assert(i < nbits);
}
body
{
//(cast(bit *)(data + 1))[i] = 1;
data[1 + (i >> BITS_SHIFT)] |= (BITS_1 << (i & BITS_MASK));
}
void clear(size_t i)
in
{
assert(i < nbits);
}
body
{
//(cast(bit *)(data + 1))[i] = 0;
data[1 + (i >> BITS_SHIFT)] &= ~(BITS_1 << (i & BITS_MASK));
}
wordtype testClear(size_t i)
{
version (bitops)
{
return core.bitop.btr(data + 1, i); // this is faster!
}
else version (Asm86)
{
asm
{
naked ;
mov EAX,data[EAX] ;
mov ECX,i-4[ESP] ;
btr 4[EAX],ECX ;
sbb EAX,EAX ;
ret 4 ;
}
}
else
{
//result = (cast(bit *)(data + 1))[i];
//(cast(bit *)(data + 1))[i] = 0;
auto p = &data[1 + (i >> BITS_SHIFT)];
auto mask = (BITS_1 << (i & BITS_MASK));
auto result = *p & mask;
*p &= ~mask;
return result;
}
}
wordtype testSet(size_t i)
{
version (bitops)
{
return core.bitop.bts(data + 1, i); // this is faster!
}
else version (Asm86)
{
asm
{
naked ;
mov EAX,data[EAX] ;
mov ECX,i-4[ESP] ;
bts 4[EAX],ECX ;
sbb EAX,EAX ;
ret 4 ;
}
}
else
{
//result = (cast(bit *)(data + 1))[i];
//(cast(bit *)(data + 1))[i] = 0;
auto p = &data[1 + (i >> BITS_SHIFT)];
auto mask = (BITS_1 << (i & BITS_MASK));
auto result = *p & mask;
*p |= mask;
return result;
}
}
void zero()
{
memset(data + 1, 0, nwords * wordtype.sizeof);
}
void copy(GCBits *f)
in
{
assert(nwords == f.nwords);
}
body
{
memcpy(data + 1, f.data + 1, nwords * wordtype.sizeof);
}
wordtype* base()
in
{
assert(data);
}
body
{
return data + 1;
}
}
unittest
{
GCBits b;
b.alloc(786);
assert(b.test(123) == 0);
assert(b.testClear(123) == 0);
b.set(123);
assert(b.test(123) != 0);
assert(b.testClear(123) != 0);
assert(b.test(123) == 0);
b.set(785);
b.set(0);
assert(b.test(785) != 0);
assert(b.test(0) != 0);
b.zero();
assert(b.test(785) == 0);
assert(b.test(0) == 0);
GCBits b2;
b2.alloc(786);
b2.set(38);
b.copy(&b2);
assert(b.test(38) != 0);
b2.Dtor();
b.Dtor();
}
|
D
|
/Users/jimallan/Downloads/starter/location-track-server/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.build/lock.swift.o : /Users/jimallan/Downloads/starter/location-track-server/.build/checkouts/swift-nio.git-6105345694714423636/Sources/NIOConcurrencyHelpers/lock.swift /Users/jimallan/Downloads/starter/location-track-server/.build/checkouts/swift-nio.git-6105345694714423636/Sources/NIOConcurrencyHelpers/atomics.swift /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/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/jimallan/Downloads/starter/location-track-server/.build/checkouts/swift-nio.git-6105345694714423636/Sources/CNIOAtomics/include/cpp_magic.h /Users/jimallan/Downloads/starter/location-track-server/.build/checkouts/swift-nio.git-6105345694714423636/Sources/CNIOAtomics/include/c-atomics.h /Users/jimallan/Downloads/starter/location-track-server/.build/checkouts/swift-nio-zlib-support.git--8656613645092558840/module.modulemap /Users/jimallan/Downloads/starter/location-track-server/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/jimallan/Downloads/starter/location-track-server/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/jimallan/Downloads/starter/location-track-server/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/jimallan/Downloads/starter/location-track-server/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/jimallan/Downloads/starter/location-track-server/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/jimallan/Downloads/starter/location-track-server/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/jimallan/Downloads/starter/location-track-server/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes
/Users/jimallan/Downloads/starter/location-track-server/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.build/lock~partial.swiftmodule : /Users/jimallan/Downloads/starter/location-track-server/.build/checkouts/swift-nio.git-6105345694714423636/Sources/NIOConcurrencyHelpers/lock.swift /Users/jimallan/Downloads/starter/location-track-server/.build/checkouts/swift-nio.git-6105345694714423636/Sources/NIOConcurrencyHelpers/atomics.swift /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/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/jimallan/Downloads/starter/location-track-server/.build/checkouts/swift-nio.git-6105345694714423636/Sources/CNIOAtomics/include/cpp_magic.h /Users/jimallan/Downloads/starter/location-track-server/.build/checkouts/swift-nio.git-6105345694714423636/Sources/CNIOAtomics/include/c-atomics.h /Users/jimallan/Downloads/starter/location-track-server/.build/checkouts/swift-nio-zlib-support.git--8656613645092558840/module.modulemap /Users/jimallan/Downloads/starter/location-track-server/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/jimallan/Downloads/starter/location-track-server/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/jimallan/Downloads/starter/location-track-server/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/jimallan/Downloads/starter/location-track-server/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/jimallan/Downloads/starter/location-track-server/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/jimallan/Downloads/starter/location-track-server/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/jimallan/Downloads/starter/location-track-server/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes
/Users/jimallan/Downloads/starter/location-track-server/.build/x86_64-apple-macosx10.10/debug/NIOConcurrencyHelpers.build/lock~partial.swiftdoc : /Users/jimallan/Downloads/starter/location-track-server/.build/checkouts/swift-nio.git-6105345694714423636/Sources/NIOConcurrencyHelpers/lock.swift /Users/jimallan/Downloads/starter/location-track-server/.build/checkouts/swift-nio.git-6105345694714423636/Sources/NIOConcurrencyHelpers/atomics.swift /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/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/macosx/x86_64/SwiftOnoneSupport.swiftmodule /Users/jimallan/Downloads/starter/location-track-server/.build/checkouts/swift-nio.git-6105345694714423636/Sources/CNIOAtomics/include/cpp_magic.h /Users/jimallan/Downloads/starter/location-track-server/.build/checkouts/swift-nio.git-6105345694714423636/Sources/CNIOAtomics/include/c-atomics.h /Users/jimallan/Downloads/starter/location-track-server/.build/checkouts/swift-nio-zlib-support.git--8656613645092558840/module.modulemap /Users/jimallan/Downloads/starter/location-track-server/.build/x86_64-apple-macosx10.10/debug/CNIOSHA1.build/module.modulemap /Users/jimallan/Downloads/starter/location-track-server/.build/x86_64-apple-macosx10.10/debug/CNIOOpenSSL.build/module.modulemap /Users/jimallan/Downloads/starter/location-track-server/.build/x86_64-apple-macosx10.10/debug/CNIOZlib.build/module.modulemap /Users/jimallan/Downloads/starter/location-track-server/.build/x86_64-apple-macosx10.10/debug/CNIODarwin.build/module.modulemap /Users/jimallan/Downloads/starter/location-track-server/.build/x86_64-apple-macosx10.10/debug/CNIOHTTPParser.build/module.modulemap /Users/jimallan/Downloads/starter/location-track-server/.build/x86_64-apple-macosx10.10/debug/CNIOAtomics.build/module.modulemap /Users/jimallan/Downloads/starter/location-track-server/.build/x86_64-apple-macosx10.10/debug/CNIOLinux.build/module.modulemap /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/Darwin.apinotes
|
D
|
/Users/darius/Documents/xcode/Uzduotis/build/Uzduotis.build/Release-iphonesimulator/Uzduotis.build/Objects-normal/x86_64/AppDelegate.o : /Users/darius/Documents/xcode/Uzduotis/Uzduotis/Seniunijos+CoreDataProperties.swift /Users/darius/Documents/xcode/Uzduotis/Uzduotis/DataTableViewController.swift /Users/darius/Documents/xcode/Uzduotis/Uzduotis/ViewController.swift /Users/darius/Documents/xcode/Uzduotis/Uzduotis/Seniunijos.swift /Users/darius/Documents/xcode/Uzduotis/Uzduotis/Duomenys.swift /Users/darius/Documents/xcode/Uzduotis/Uzduotis/Duomenys+CoreDataProperties.swift /Users/darius/Documents/xcode/Uzduotis/Uzduotis/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/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/CoreData.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
/Users/darius/Documents/xcode/Uzduotis/build/Uzduotis.build/Release-iphonesimulator/Uzduotis.build/Objects-normal/x86_64/AppDelegate~partial.swiftmodule : /Users/darius/Documents/xcode/Uzduotis/Uzduotis/Seniunijos+CoreDataProperties.swift /Users/darius/Documents/xcode/Uzduotis/Uzduotis/DataTableViewController.swift /Users/darius/Documents/xcode/Uzduotis/Uzduotis/ViewController.swift /Users/darius/Documents/xcode/Uzduotis/Uzduotis/Seniunijos.swift /Users/darius/Documents/xcode/Uzduotis/Uzduotis/Duomenys.swift /Users/darius/Documents/xcode/Uzduotis/Uzduotis/Duomenys+CoreDataProperties.swift /Users/darius/Documents/xcode/Uzduotis/Uzduotis/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/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/CoreData.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
/Users/darius/Documents/xcode/Uzduotis/build/Uzduotis.build/Release-iphonesimulator/Uzduotis.build/Objects-normal/x86_64/AppDelegate~partial.swiftdoc : /Users/darius/Documents/xcode/Uzduotis/Uzduotis/Seniunijos+CoreDataProperties.swift /Users/darius/Documents/xcode/Uzduotis/Uzduotis/DataTableViewController.swift /Users/darius/Documents/xcode/Uzduotis/Uzduotis/ViewController.swift /Users/darius/Documents/xcode/Uzduotis/Uzduotis/Seniunijos.swift /Users/darius/Documents/xcode/Uzduotis/Uzduotis/Duomenys.swift /Users/darius/Documents/xcode/Uzduotis/Uzduotis/Duomenys+CoreDataProperties.swift /Users/darius/Documents/xcode/Uzduotis/Uzduotis/AppDelegate.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/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/CoreData.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule
|
D
|
module dlangide.tools.d.deditortool;
import dlangide.tools.editortool;
import dlangide.tools.d.dcdinterface;
import dlangide.ui.dsourceedit;
import dlangui.widgets.editors;
import dlangide.ui.frame;
import std.stdio;
import std.string;
import std.utf;
import dlangui.core.logger;
import std.conv;
// TODO: async operation in background thread
// TODO: effective caretPositionToByteOffset/byteOffsetToCaret impl
class DEditorTool : EditorTool
{
this(IDEFrame frame) {
super(frame);
}
~this() {
cancelGoToDefinition();
cancelGetDocComments();
cancelGetCompletions();
}
static bool isIdentChar(char ch) {
return ch == '_' || (ch >= 'a' && ch <='z') || (ch >= 'A' && ch <='Z') || ((ch & 0x80) != 0);
}
static bool isAtWord(string content, size_t byteOffset) {
if (byteOffset >= content.length)
return false;
if (isIdentChar(content[byteOffset]))
return true;
if (byteOffset > 0 && isIdentChar(content[byteOffset - 1]))
return true;
if (byteOffset + 1 < content.length && isIdentChar(content[byteOffset + 1]))
return true;
return false;
}
DCDTask _getDocCommentsTask;
override void getDocComments(DSourceEdit editor, TextPosition caretPosition, void delegate(string[]) callback) {
cancelGetDocComments();
string[] importPaths = editor.importPaths(_frame.settings);
string content = toUTF8(editor.text);
auto byteOffset = caretPositionToByteOffset(content, caretPosition);
if (!isAtWord(content, byteOffset))
return;
_getDocCommentsTask = _frame.dcdInterface.getDocComments(editor.window, importPaths, editor.filename, content, byteOffset, delegate(DocCommentsResultSet output) {
if(output.result == DCDResult.SUCCESS) {
auto doc = output.docComments;
Log.d("Doc comments: ", doc);
if (doc.length)
callback(doc);
_getDocCommentsTask = null;
}
});
}
override void cancelGetDocComments() {
if (_getDocCommentsTask) {
Log.d("Cancelling getDocComments()");
_getDocCommentsTask.cancel();
_getDocCommentsTask = null;
}
}
override void cancelGoToDefinition() {
if (_goToDefinitionTask) {
Log.d("Cancelling goToDefinition()");
_goToDefinitionTask.cancel();
_goToDefinitionTask = null;
}
}
override void cancelGetCompletions() {
if (_getCompletionsTask) {
Log.d("Cancelling getCompletions()");
_getCompletionsTask.cancel();
_getCompletionsTask = null;
}
}
DCDTask _goToDefinitionTask;
override void goToDefinition(DSourceEdit editor, TextPosition caretPosition) {
cancelGoToDefinition();
string[] importPaths = editor.importPaths(_frame.settings);
string content = toUTF8(editor.text);
auto byteOffset = caretPositionToByteOffset(content, caretPosition);
_goToDefinitionTask = _frame.dcdInterface.goToDefinition(editor.window, importPaths, editor.filename, content, byteOffset, delegate(FindDeclarationResultSet output) {
// handle result
switch(output.result) {
//TODO: Show dialog
case DCDResult.FAIL:
case DCDResult.NO_RESULT:
editor.setFocus();
break;
case DCDResult.SUCCESS:
auto fileName = output.fileName;
if(fileName.indexOf("stdin") == 0) {
Log.d("Declaration is in current file. Jumping to it.");
} else {
//Must open file first to get the content for finding the correct caret position.
if (!_frame.openSourceFile(to!string(fileName)))
break;
if (_frame.currentEditor.parent)
_frame.currentEditor.parent.layout(_frame.currentEditor.parent.pos);
content = toUTF8(_frame.currentEditor.text);
}
auto target = to!int(output.offset);
auto destPos = byteOffsetToCaret(content, target);
_frame.currentEditor.setCaretPos(destPos.line,destPos.pos, true, true);
_frame.currentEditor.setFocus();
_frame.cursorHistory.PushNewPosition();
break;
default:
break;
}
_goToDefinitionTask = null;
});
}
DCDTask _getCompletionsTask;
override void getCompletions(DSourceEdit editor, TextPosition caretPosition, void delegate(dstring[] completions, string[] icons, CompletionTypes type) callback) {
cancelGetCompletions();
string[] importPaths = editor.importPaths(_frame.settings);
string content = toUTF8(editor.text);
auto byteOffset = caretPositionToByteOffset(content, caretPosition);
_getCompletionsTask = _frame.dcdInterface.getCompletions(editor.window, importPaths, editor.filename, content, byteOffset, delegate(CompletionResultSet output) {
string[] icons;
dstring[] labels;
foreach(index, label; output.output) {
string iconId;
char ch = label.kind;
switch(ch) {
case 'c': // - class name
iconId = "symbol-class";
break;
case 'i': // - interface name
iconId = "symbol-interface";
break;
case 's': // - struct name
iconId = "symbol-struct";
break;
case 'u': // - union name
iconId = "symbol-union";
break;
case 'v': // - variable name
iconId = "symbol-var";
break;
case 'm': // - member variable name
iconId = "symbol-membervar";
break;
case 'k': // - keyword, built-in version, scope statement
iconId = "symbol-keyword";
break;
case 'f': // - function or method
iconId = "symbol-function";
break;
case 'g': // - enum name
iconId = "symbol-enum";
break;
case 'e': // - enum member
iconId = "symbol-enum";
break;
case 'P': // - package name
iconId = "symbol-package";
break;
case 'M': // - module name
iconId = "symbol-module";
break;
case 'a': // - array
iconId = "symbol-array";
break;
case 'A': // - associative array
iconId = "symbol-array";
break;
case 'l': // - alias name
iconId = "symbol-alias";
break;
case 't': // - template name
iconId = "symbol-template";
break;
case 'T': // - mixin template name
iconId = "symbol-mixintemplate";
break;
default:
iconId = "symbol-other";
break;
}
icons ~= iconId;
labels ~= label.name;
}
callback(labels, icons, output.type);
_getCompletionsTask = null;
});
}
private:
}
/// convert caret position to byte offset in utf8 content
int caretPositionToByteOffset(string content, TextPosition caretPosition) {
auto line = 0;
auto pos = 0;
auto bytes = 0;
foreach(c; content) {
if(line == caretPosition.line) {
if(pos >= caretPosition.pos)
break;
if ((c & 0xC0) != 0x80)
pos++;
} else if (line > caretPosition.line) {
break;
}
bytes++;
if(c == '\n') {
line++;
pos = 0;
}
}
return bytes;
}
/// convert byte offset in utf8 content to caret position
TextPosition byteOffsetToCaret(string content, int byteOffset) {
int bytes = 0;
int line = 0;
int pos = 0;
TextPosition textPos;
foreach(c; content) {
if(bytes >= byteOffset) {
//We all good.
textPos.line = line;
textPos.pos = pos;
return textPos;
}
bytes++;
if(c == '\n')
{
line++;
pos = 0;
}
else {
if ((c & 0xC0) != 0x80)
pos++;
}
}
return textPos;
}
|
D
|
module engine.framework.input;
public:
import engine.framework.input.action;
import engine.framework.input.singleton;
|
D
|
/**
* Windows API header module
*
* Translated from MinGW API for MS-Windows 3.10
*
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(DRUNTIMESRC src/core/sys/windows/_basetyps.d)
*/
module core.sys.windows.basetyps;
version (Windows):
private import core.sys.windows.windef, core.sys.windows.basetsd;
align(1) struct GUID { // size is 16
align(1):
DWORD Data1;
WORD Data2;
WORD Data3;
BYTE[8] Data4;
}
alias GUID UUID, /*IID, CLSID, */FMTID, uuid_t;
alias IID = const(GUID);
alias CLSID = const(GUID);
alias GUID* LPGUID, LPCLSID, LPIID;
alias const(GUID)* LPCGUID, REFGUID, REFIID, REFCLSID, REFFMTID;
alias uint error_status_t, PROPID;
|
D
|
// ************************************************************
// EXIT
// ************************************************************
INSTANCE DIA_Addon_Greg_EXIT(C_INFO)
{
npc = PIR_1320_Addon_Greg;
nr = 999;
condition = DIA_Addon_Greg_EXIT_Condition;
information = DIA_Addon_Greg_EXIT_Info;
permanent = TRUE;
description = DIALOG_ENDE;
};
FUNC INT DIA_Addon_Greg_EXIT_Condition()
{
return TRUE;
};
FUNC VOID DIA_Addon_Greg_EXIT_Info()
{
AI_StopProcessInfos (self);
};
// ************************************************************
// PICK POCKET
// ************************************************************
INSTANCE DIA_Addon_Greg_PICKPOCKET (C_INFO)
{
npc = PIR_1320_Addon_Greg;
nr = 900;
condition = DIA_Addon_Greg_PICKPOCKET_Condition;
information = DIA_Addon_Greg_PICKPOCKET_Info;
permanent = TRUE;
description = Pickpocket_120;
};
FUNC INT DIA_Addon_Greg_PICKPOCKET_Condition()
{
C_Beklauen (111, 666);
};
FUNC VOID DIA_Addon_Greg_PICKPOCKET_Info()
{
Info_ClearChoices (DIA_Addon_Greg_PICKPOCKET);
Info_AddChoice (DIA_Addon_Greg_PICKPOCKET, DIALOG_BACK ,DIA_Addon_Greg_PICKPOCKET_BACK);
Info_AddChoice (DIA_Addon_Greg_PICKPOCKET, DIALOG_PICKPOCKET ,DIA_Addon_Greg_PICKPOCKET_DoIt);
};
func void DIA_Addon_Greg_PICKPOCKET_DoIt()
{
B_Beklauen ();
Info_ClearChoices (DIA_Addon_Greg_PICKPOCKET);
};
func void DIA_Addon_Greg_PICKPOCKET_BACK()
{
Info_ClearChoices (DIA_Addon_Greg_PICKPOCKET);
};
// ************************************************************
// Hallo - (Greg Is Back)
// ************************************************************
INSTANCE DIA_Addon_Greg_ImNew(C_INFO)
{
npc = PIR_1320_Addon_Greg;
nr = 1;
condition = DIA_Addon_Greg_ImNew_Condition;
information = DIA_Addon_Greg_ImNew_Info;
permanent = FALSE;
important = TRUE;
};
FUNC INT DIA_Addon_Greg_ImNew_Condition()
{
return TRUE;
};
FUNC VOID DIA_Addon_Greg_ImNew_Info()
{
AI_Output (self,other,"DIA_Addon_Greg_Hello_01_00"); //(hrozivę) Hej ty. Co dęláš v mé chatrči?
AI_Output (other,self,"DIA_Addon_Greg_Hello_15_01"); //Já ...
AI_Output (self,other,"DIA_Addon_Greg_Hello_01_02"); //(zuâivę) Odejdu jen na pár dní a každý si myslí, že si může dęlat co chce.
//AI_Output (other,self,"DIA_Addon_Greg_ImNew_15_00"); //Ich bin der Neue.
//AI_Output (self,other,"DIA_Addon_Greg_ImNew_01_01"); //(zynisch) So so, du bist der Neue.
//AI_Output (self,other,"DIA_Addon_Greg_ImNew_01_02"); //Hier entscheide immer noch ICH, wer bei uns mitmacht.
AI_Output (self,other,"DIA_Addon_Greg_ImNew_01_03"); //Co se tady vlastnę dęje?
AI_Output (self,other,"DIA_Addon_Greg_ImNew_01_04"); //Co, palisáda ještę není dokončena? Kaŕon je oplývající potvorama a každý má pohodu!!!
GregIsBack = TRUE;
if (!Npc_IsDead (Francis))
{
AI_TurnToNpc (self, Francis);
AI_Output (self,other,"DIA_Addon_Greg_ImNew_01_05"); //(âve) Je to všechno, co jsi udęlal Francisi?
if (C_BodyStateContains (Francis, BS_SIT))
{
AI_Output (self,other,"DIA_Addon_Greg_ImNew_01_06"); //(âve) Jdi z mé lavice, HNED!
};
};
Npc_ExchangeRoutine (self,"HOME");
AI_TurnToNpc (self, other);
AI_Output (self,other,"DIA_Addon_Greg_ImNew_01_07"); //A TY? Co jsi TY dęlal?
Info_ClearChoices (DIA_Addon_Greg_ImNew);
Info_AddChoice (DIA_Addon_Greg_ImNew, "Nic moc.", DIA_Addon_Greg_ImNew_nich );
if (
(Npc_IsDead(BeachLurker1))
&& (Npc_IsDead(BeachLurker2))
&& (Npc_IsDead(BeachLurker3))
&& (Npc_IsDead(BeachWaran1))
&& (Npc_IsDead(BeachWaran2))
&& (Npc_IsDead(BeachShadowbeast1))
&& (Npc_IsDead(BeachShadowbeast1))
&& (MIS_Addon_MorganLurker != 0 )
)
|| (C_TowerBanditsDead() == TRUE)
{
Info_AddChoice (DIA_Addon_Greg_ImNew, "Pracoval.", DIA_Addon_Greg_ImNew_turm );
};
};
// ------------------------------------------------------------------
func void B_UseRakeBilanz ()
{
if (MIS_Addon_Greg_RakeCave == LOG_RUNNING)
&& (Greg_SuchWeiter == TRUE)
{
AI_Output (self, other, "DIA_Addon_Greg_UseRakeBilanz_01_00"); //Nevęâil jsem ani na chvíly, že bys na mnę zapomnęl.
AI_Output (self, other, "DIA_Addon_Greg_UseRakeBilanz_01_01"); //Ty vęci męly hodnotu nękolika stovek zlaăáků, které jsem ukryl v Khorinisu.
AI_Output (self, other, "DIA_Addon_Greg_UseRakeBilanz_01_02"); //Ty jsi je prostę všechny vzal, co?
AI_Output (self, other, "DIA_Addon_Greg_UseRakeBilanz_01_03"); //Budeš si muset odpracovat dluh.
}
else
{
AI_Output (self, other, "DIA_Addon_Greg_UseRakeBilanz_01_04"); //Od teë poznáš, co to znamená práce.
};
if (!Npc_IsDead (Francis))
{
Npc_ExchangeRoutine (Francis,"GREGISBACK");
AI_StartState (Francis, ZS_Saw, 1, "ADW_PIRATECAMP_BEACH_19"); //HACK - REDUNDANT!!!
Francis_ausgeschissen = TRUE;
};
Info_ClearChoices (DIA_Addon_Greg_ImNew);
};
// --------------------------------------------------------------------
func void DIA_Addon_Greg_ImNew_nich ()
{
AI_Output (other, self, "DIA_Addon_Greg_ImNew_nich_15_00"); //Nic moc.
AI_Output (self, other, "DIA_Addon_Greg_ImNew_nich_01_01"); //To nevadí. Najdu pro tebe nęco vhodného, chlapče.
B_UseRakeBilanz ();
};
func void DIA_Addon_Greg_ImNew_turm ()
{
AI_Output (other, self, "DIA_Addon_Greg_ImNew_turm_15_00"); //Pracoval.
AI_Output (self, other, "DIA_Addon_Greg_ImNew_turm_01_01"); //Tak takhle? Co?
if (C_TowerBanditsDead() == TRUE)
{
AI_Output (other, self, "DIA_Addon_Greg_ImNew_turm_15_02"); //Dostal jsem bandity z vęže.
};
if (Npc_IsDead(BeachLurker1))
&& (Npc_IsDead(BeachLurker2))
&& (Npc_IsDead(BeachLurker3))
&& (Npc_IsDead(BeachWaran1))
&& (Npc_IsDead(BeachWaran2))
&& (Npc_IsDead(BeachShadowbeast1))
&& (MIS_Addon_MorganLurker != 0)
{
AI_Output (other, self, "DIA_Addon_Greg_ImNew_turm_15_03"); //Pláž na severu je vyčištęná od potvor.
};
AI_Output (self, other, "DIA_Addon_Greg_ImNew_turm_01_04"); //Dobrá. To je začátek.
B_UseRakeBilanz ();
};
// ************************************************************
// JoinPirates
// ************************************************************
INSTANCE DIA_Addon_Greg_JoinPirates(C_INFO)
{
npc = PIR_1320_Addon_Greg;
nr = 5;
condition = DIA_Addon_Greg_JoinPirates_Condition;
information = DIA_Addon_Greg_JoinPirates_Info;
permanent = FALSE;
description = "Co mám dęlat?";
};
FUNC INT DIA_Addon_Greg_JoinPirates_Condition()
{
if (Npc_KnowsInfo (other,DIA_Addon_Greg_ImNew) == TRUE)
{
return TRUE;
};
};
FUNC VOID DIA_Addon_Greg_JoinPirates_Info()
{
AI_Output (other,self,"DIA_Addon_Greg_JoinPirates_15_00"); //Co mám dęlat?
AI_Output (self,other,"DIA_Addon_Greg_JoinPirates_01_01"); //První ze všeho musíme do tohohle místa vnést trochu života.
if ((Npc_IsDead(Morgan))== FALSE)
{
AI_Output (self,other,"DIA_Addon_Greg_JoinPirates_01_02"); //Morgan, ten líný blb, bude poslán âezat fošny.
};
AI_Output (self,other,"DIA_Addon_Greg_JoinPirates_01_03"); //TY se postaráš o Morganovu práci a vyčístíš kaŕon od tęch krvelačných potvor.
MIS_Addon_Greg_ClearCanyon = LOG_RUNNING;
Log_CreateTopic (TOPIC_Addon_ClearCanyon,LOG_MISSION);
Log_SetTopicStatus (TOPIC_Addon_ClearCanyon,LOG_RUNNING);
B_LogEntry (TOPIC_Addon_ClearCanyon,"Greg chce, abych vzal Morganův ůkol a vyčistil kaŕon od potvor.");
Info_ClearChoices (DIA_Addon_Greg_JoinPirates);
Info_AddChoice (DIA_Addon_Greg_JoinPirates,"Pak tedy jdu.",DIA_Addon_Greg_JoinPirates_Leave);
if (((Npc_IsDead(Brandon))== FALSE)
|| ((Npc_IsDead(Matt))== FALSE))
{
Info_AddChoice (DIA_Addon_Greg_JoinPirates,"Mám to udęlat sám?",DIA_Addon_Greg_JoinPirates_Compadres);
};
Info_AddChoice (DIA_Addon_Greg_JoinPirates,"Jaké potvory?",DIA_Addon_Greg_JoinPirates_ClearCanyon);
};
FUNC VOID DIA_Addon_Greg_JoinPirates_Leave()
{
AI_Output (other,self,"DIA_Addon_Greg_JoinPirates_Leave_15_00"); //Pak tedy jdu.
AI_Output (self,other,"DIA_Addon_Greg_JoinPirates_Leave_01_01"); //Drž se. Teë jsi jeden z nás.
AI_Output (self,other,"DIA_Addon_Greg_JoinPirates_Leave_01_02"); //Vem si nęjaké lepší oblečení na lov.
AI_Output (self,other,"DIA_Addon_Greg_JoinPirates_Leave_01_03"); //Tady je jedno z našich brnęní. Vypadá to, že ti sedne.
CreateInvItems (self, ItAr_Pir_M_Addon, 1);
B_GiveInvItems (self, other, ItAr_Pir_M_Addon, 1);
AI_EquipArmor(hero,ItAr_Pir_M_Addon);
AI_Output (self,other,"DIA_Addon_Greg_JoinPirates_Leave_01_04"); //A neflákej se s tím, jasné?
Info_ClearChoices (DIA_Addon_Greg_JoinPirates);
};
FUNC VOID DIA_Addon_Greg_JoinPirates_Compadres()
{
AI_Output (other,self ,"DIA_Addon_Greg_JoinPirates_Compadres_15_00"); //Mám to udęlat sám?
AI_Output (self ,other,"DIA_Addon_Greg_JoinPirates_Compadres_01_01"); //Vem si pár chlapů, pokud chceš.
AI_Output (self ,other,"DIA_Addon_Greg_JoinPirates_Compadres_01_02"); //Męli by radši vydęlávat mzdu, než se tady celý den poflakovat.
B_LogEntry (TOPIC_Addon_ClearCanyon,"Greg âekl, že si můžu vzít na pomoc pár chlapů.");
};
FUNC VOID DIA_Addon_Greg_JoinPirates_ClearCanyon()
{
AI_Output (other,self ,"DIA_Addon_Greg_JoinPirates_ClearCanyon_15_00"); //Jaké potvory?
AI_Output (self ,other,"DIA_Addon_Greg_JoinPirates_ClearCanyon_01_01"); //Bâitvy z kaŕonu se dotávají každým dnem blíže k táboru.
AI_Output (self ,other,"DIA_Addon_Greg_JoinPirates_ClearCanyon_01_02"); //Nechci, aby byl nękterý z mých chlapů snęden.
B_LogEntry (TOPIC_Addon_ClearCanyon,"Jdeme jenom po bâitvách.");
};
// ************************************************************
// Wegen dem Canyon...
// ************************************************************
INSTANCE DIA_Addon_Greg_AboutCanyon(C_INFO)
{
npc = PIR_1320_Addon_Greg;
nr = 5;
condition = DIA_Addon_Greg_AboutCanyon_Condition;
information = DIA_Addon_Greg_AboutCanyon_Info;
permanent = TRUE;
description = "O práci v kaŕonu ...";
};
FUNC INT DIA_Addon_Greg_AboutCanyon_Condition()
{
if (MIS_Addon_Greg_ClearCanyon == LOG_RUNNING)
{
return TRUE;
};
};
FUNC VOID DIA_Addon_Greg_AboutCanyon_Info()
{
AI_Output (other,self ,"DIA_Addon_Greg_AboutCanyon_15_00"); //O práci v kaŕonu ...
AI_Output (self ,other,"DIA_Addon_Greg_AboutCanyon_01_01"); //Ano, co je s tím?
Info_ClearChoices (DIA_Addon_Greg_AboutCanyon);
if (C_AllCanyonRazorDead() == FALSE)
{
Info_AddChoice (DIA_Addon_Greg_AboutCanyon,DIALOG_BACK,DIA_Addon_Greg_AboutCanyon_Back);
if (((Npc_IsDead(Brandon))== FALSE)
|| ((Npc_IsDead(Matt))== FALSE))
{
Info_AddChoice (DIA_Addon_Greg_AboutCanyon,"Kdo mi může pomoct?",DIA_Addon_Greg_AboutCanyon_Compadres);
};
Info_AddChoice (DIA_Addon_Greg_AboutCanyon,"Které nestvůry mám zabít?",DIA_Addon_Greg_AboutCanyon_Job);
}
else
{
Info_AddChoice (DIA_Addon_Greg_AboutCanyon,"Zabil jsem všechny bâitvy.",DIA_Addon_Greg_AboutCanyon_RazorsDead);
};
};
FUNC VOID DIA_Addon_Greg_AboutCanyon_Back()
{
Info_ClearChoices (DIA_Addon_Greg_AboutCanyon);
};
FUNC VOID DIA_Addon_Greg_AboutCanyon_Compadres()
{
AI_Output (other,self ,"DIA_Addon_Greg_AboutCanyon_Compadres_15_00"); //Kdo mi může pomoci?
AI_Output (self ,other,"DIA_Addon_Greg_AboutCanyon_Compadres_01_01"); //Vezmi s sebou pár chlapů.
AI_Output (self ,other,"DIA_Addon_Greg_AboutCanyon_Compadres_01_02"); //Stejnak jenom mrhají časem.
Info_ClearChoices (DIA_Addon_Greg_AboutCanyon);
};
FUNC VOID DIA_Addon_Greg_AboutCanyon_Job()
{
AI_Output (other,self ,"DIA_Addon_Greg_AboutCanyon_Job_15_00"); //Které potvory mám zabít?
AI_Output (self ,other,"DIA_Addon_Greg_AboutCanyon_Job_01_01"); //Zabij bâitvy! Zbytek toho zvęâince je neškodný.
Info_ClearChoices (DIA_Addon_Greg_AboutCanyon);
};
FUNC VOID DIA_Addon_Greg_AboutCanyon_RazorsDead()
{
AI_Output (other,self ,"DIA_Addon_Greg_AboutCanyon_RazorsDead_15_00"); //Zabil jsem všechny bâitvy.
AI_Output (self ,other,"DIA_Addon_Greg_AboutCanyon_RazorsDead_01_01"); //Velmi dobâe. Vypadá to, že jsi docela užitečný.
B_LogEntry (TOPIC_Addon_ClearCanyon,"Greg vypadá, že je trochu ohromený tím, že jsem zabil všechny bâitvy v kaŕonu.");
MIS_Addon_Greg_ClearCanyon = LOG_SUCCESS;
B_Addon_PiratesGoHome();
B_GivePlayerXP (XP_ADDON_CLEARCANYON);
Info_ClearChoices (DIA_Addon_Greg_AboutCanyon);
};
// ************************************************************
// BanditArmor
// ************************************************************
INSTANCE DIA_Addon_Greg_BanditArmor(C_INFO)
{
npc = PIR_1320_Addon_Greg;
nr = 5;
condition = DIA_Addon_Greg_BanditArmor_Condition;
information = DIA_Addon_Greg_BanditArmor_Info;
permanent = TRUE;
description = "Potâebuji brnęní banditů.";
};
FUNC INT DIA_Addon_Greg_BanditArmor_Condition()
{
if (MIS_Greg_ScoutBandits == FALSE)
{
return TRUE;
};
};
FUNC VOID DIA_Addon_Greg_BanditArmor_Info()
{
AI_Output (other,self,"DIA_Addon_Greg_BanditArmor_15_00"); //Potâebuji brnęní banditů.
if (MIS_Addon_Greg_ClearCanyon != LOG_SUCCESS)
{
AI_Output (self,other,"DIA_Addon_Greg_BanditArmor_01_01"); //Buë nejdâív užitečný. Poté si o tom můžeme promluvit.
if (MIS_Addon_Greg_ClearCanyon == LOG_RUNNING)
{
AI_Output (self,other,"DIA_Addon_Greg_BanditArmor_01_02"); //Nejdâív zabij všechny bâitvy v kaŕonu!
};
B_LogEntry (TOPIC_Addon_BDTRuestung,"Greg po mę chce, abych mu pomohl dostat tábor na nohy. Poté si můžeme promluvit o brnęní.");
}
else
{
AI_Output (self,other,"DIA_Addon_Greg_BanditArmor_01_03"); //Jsi opravdu docela dobrý.
AI_Output (self,other,"DIA_Addon_Greg_BanditArmor_01_04"); //Vlastnę chci, aby Bones použil tu zbroj ke špehování banditů.
AI_Output (self,other,"DIA_Addon_Greg_BanditArmor_01_05"); //Ale bude lepší, když ten úkol dám TOBĘ.
AI_Output (self,other,"DIA_Addon_Greg_BanditArmor_01_06"); //Máš vętší šanci se odtamtud dostat v jednom kuse.
AI_Output (self,other,"DIA_Addon_Greg_BanditArmor_01_07"); //Promluv si s Bonesem. Dá ti brnęní. Vezmi ho, a vydej se do tábora banditů.
AI_Output (self,other,"DIA_Addon_Greg_BanditArmor_01_08"); //Musím vędęt, proč se ti bastardi dostali do údolí, jako první.
AI_Output (other,self,"DIA_Addon_Greg_BanditArmor_15_09"); //Ano, ano kapitáne!
B_LogEntry (TOPIC_Addon_BDTRuestung,"Teë, když jsem skoncoval s bâitvami, můžu si vybrat brnęní u Bonese.");
Log_CreateTopic (TOPIC_Addon_ScoutBandits,LOG_MISSION);
Log_SetTopicStatus (TOPIC_Addon_ScoutBandits,LOG_RUNNING);
B_LogEntry (TOPIC_Addon_ScoutBandits,"Mám pro Grega zjistit, proč bandité pâišli do údolí.");
MIS_Greg_ScoutBandits = LOG_RUNNING;
};
};
///////////////////////////////////////////////////////////////////////
// Info Auftraege2
///////////////////////////////////////////////////////////////////////
instance DIA_Addon_Greg_Auftraege2 (C_INFO)
{
npc = PIR_1320_Addon_Greg;
nr = 5;
condition = DIA_Addon_Greg_Auftraege2_Condition;
information = DIA_Addon_Greg_Auftraege2_Info;
description = "Je tady ještę nęco, co mám udęlat?";
};
func int DIA_Addon_Greg_Auftraege2_Condition ()
{
if (MIS_Greg_ScoutBandits != 0)
&& (
(C_TowerBanditsDead() == FALSE)
|| (
(Npc_IsDead(BeachLurker1)== FALSE)
&& (Npc_IsDead(BeachLurker2)== FALSE)
&& (Npc_IsDead(BeachLurker3)== FALSE)
&& (Npc_IsDead(BeachWaran1)== FALSE)
&& (Npc_IsDead(BeachWaran2)== FALSE)
&& (Npc_IsDead(BeachShadowbeast1)== FALSE)
)
)
{
return TRUE;
};
};
func void DIA_Addon_Greg_Auftraege2_Info ()
{
AI_Output (other, self, "DIA_Addon_Greg_Auftraege2_15_00"); //Je tady ještę nęco, co mám udęlat?
if (Npc_IsDead(BeachLurker1)== FALSE)
&& (Npc_IsDead(BeachLurker2)== FALSE)
&& (Npc_IsDead(BeachLurker3)== FALSE)
&& (Npc_IsDead(BeachWaran1)== FALSE)
&& (Npc_IsDead(BeachWaran2)== FALSE)
&& (Npc_IsDead(BeachShadowbeast1)== FALSE)
{
AI_Output (self, other, "DIA_Addon_Greg_Auftraege2_01_01"); //Západní pláž je stále plná potvor.
AI_Output (self, other, "DIA_Addon_Greg_Auftraege2_01_02"); //Morgan opravdu nepohne ani prstem.
Log_CreateTopic (TOPIC_Addon_MorganBeach,LOG_MISSION);
Log_SetTopicStatus (TOPIC_Addon_MorganBeach,LOG_RUNNING);
B_LogEntry (TOPIC_Addon_MorganBeach,"Greg chce, abych se postaral o pláž. Je plná nestvůr a potâebuje vyčistit.");
MIS_Addon_MorganLurker = LOG_RUNNING;
};
if (C_TowerBanditsDead() == FALSE)
{
AI_Output (self, other, "DIA_Addon_Greg_Auftraege2_01_03"); //V jižní vęži na skalách jsou stále bandité.
AI_Output (self, other, "DIA_Addon_Greg_Auftraege2_01_04"); //Vlastnę, Francis byl povęâen, aby se o to postaral.
Log_CreateTopic (TOPIC_Addon_BanditsTower,LOG_MISSION);
Log_SetTopicStatus (TOPIC_Addon_BanditsTower,LOG_RUNNING);
B_LogEntry (TOPIC_Addon_BanditsTower,"Greg chce, abych vyhnal bandity z vęže na východ od tábora.");
MIS_Henry_FreeBDTTower = LOG_RUNNING;
};
AI_Output (self, other, "DIA_Addon_Greg_Auftraege2_01_05"); //Jestli chceš, můžeš na to dohlédnout.
};
///////////////////////////////////////////////////////////////////////
// Info Sauber2
///////////////////////////////////////////////////////////////////////
instance DIA_Addon_Greg_Sauber2 (C_INFO)
{
npc = PIR_1320_Addon_Greg;
nr = 5;
condition = DIA_Addon_Greg_Sauber2_Condition;
information = DIA_Addon_Greg_Sauber2_Info;
description = "Severní pláž je vyčištęná.";
};
func int DIA_Addon_Greg_Sauber2_Condition ()
{
if (Npc_KnowsInfo (other, DIA_Addon_Greg_Auftraege2))
&& (Npc_IsDead(BeachLurker1))
&& (Npc_IsDead(BeachLurker2))
&& (Npc_IsDead(BeachLurker3))
&& (Npc_IsDead(BeachWaran1))
&& (Npc_IsDead(BeachWaran2))
&& (Npc_IsDead(BeachShadowbeast1))
{
return TRUE;
};
};
func void DIA_Addon_Greg_Sauber2_Info ()
{
AI_Output (other, self, "DIA_Addon_Greg_Sauber2_15_00"); //Severní pláž je vyčištęná.
AI_Output (self, other, "DIA_Addon_Greg_Sauber2_01_01"); //Velmi dobâe. Tady je odmęna.
CreateInvItems (self, ItMi_Gold, 200);
B_GiveInvItems (self, other, ItMi_Gold, 200);
B_LogEntry (TOPIC_Addon_MorganBeach,"Ohlásil jsem vyčištęní severní pláže Gregovi.");
MIS_Addon_MorganLurker = LOG_SUCCESS;
B_GivePlayerXP (XP_Addon_Morgan_LurkerPlatt);
};
///////////////////////////////////////////////////////////////////////
// Info BanditPlatt2
///////////////////////////////////////////////////////////////////////
instance DIA_Addon_Greg_BanditPlatt2 (C_INFO)
{
npc = PIR_1320_Addon_Greg;
nr = 5;
condition = DIA_Addon_Greg_BanditPlatt2_Condition;
information = DIA_Addon_Greg_BanditPlatt2_Info;
description = "Bandité z vęže jsou pryč.";
};
func int DIA_Addon_Greg_BanditPlatt2_Condition ()
{
if (Npc_KnowsInfo (other, DIA_Addon_Greg_Auftraege2))
&& (C_TowerBanditsDead() == TRUE)
{
return TRUE;
};
};
func void DIA_Addon_Greg_BanditPlatt2_Info ()
{
AI_Output (other, self, "DIA_Addon_Greg_BanditPlatt2_15_00"); //Bandité z vęže jsou pryč.
AI_Output (self, other, "DIA_Addon_Greg_BanditPlatt2_01_01"); //Skvęlé. To byla dobrá práce. Tady je tvůj plat.
CreateInvItems (self, ItMi_Gold, 200);
B_GiveInvItems (self, other, ItMi_Gold, 200);
B_LogEntry (TOPIC_Addon_BanditsTower,"Bandité z vęže jsou mrtví. Greg je s tím velmi spokojený.");
MIS_Henry_FreeBDTTower = LOG_SUCCESS;
B_GivePlayerXP (XP_Addon_Henry_FreeBDTTower);
};
// ************************************************************
// BanditGoldmine
// ************************************************************
INSTANCE DIA_Addon_Greg_BanditGoldmine(C_INFO)
{
npc = PIR_1320_Addon_Greg;
nr = 5;
condition = DIA_Addon_Greg_BanditGoldmine_Condition;
information = DIA_Addon_Greg_BanditGoldmine_Info;
permanent = TRUE;
description = "Bandité nalezli zlatý důl.";
};
FUNC INT DIA_Addon_Greg_BanditGoldmine_Condition()
{
if (SC_KnowsRavensGoldmine == TRUE)
&& (MIS_Greg_ScoutBandits == LOG_RUNNING)
{
return TRUE;
};
};
FUNC VOID DIA_Addon_Greg_BanditGoldmine_Info()
{
AI_Output (other,self,"DIA_Addon_Greg_BanditGoldmine_15_00"); //Bandité nalezli zlatý důl.
AI_Output (self,other,"DIA_Addon_Greg_BanditGoldmine_01_01"); //Vędęl jsem to! TO je to, proč sem pâišli.
AI_Output (self,other,"DIA_Addon_Greg_BanditGoldmine_01_02"); //Nikdo nebude dobrovolnę žít v té nestvůrami zamoâené bažinę.
AI_Output (self,other,"DIA_Addon_Greg_BanditGoldmine_01_03"); //Dobrá práce, tady nęco máš.
B_GiveInvItems (self,other,ItRi_Addon_STR_01,1);
B_LogEntry (TOPIC_Addon_ScoutBandits,"Informoval jsem Grega o zlatém dole.");
MIS_Greg_ScoutBandits = LOG_SUCCESS;
B_GivePlayerXP (XP_Greg_ScoutBandits);
};
// ************************************************************
// Wer bist du
// ************************************************************
INSTANCE DIA_Addon_Greg_WhoAreYou(C_INFO)
{
npc = PIR_1320_Addon_Greg;
nr = 2;
condition = DIA_Addon_Greg_WhoAreYou_Condition;
information = DIA_Addon_Greg_WhoAreYou_Info;
permanent = FALSE;
description = "Kdo jsi?";
};
FUNC INT DIA_Addon_Greg_WhoAreYou_Condition()
{
if (PlayerTalkedToGregNW == FALSE)//Joly:WAR VOHER npc_gLOBAL -> GREG_NW
&& (SC_MeetsGregTime == 0)//Joly:zur sicherheit
{
return TRUE;
};
};
FUNC VOID DIA_Addon_Greg_WhoAreYou_Info()
{
AI_Output (other,self ,"DIA_Addon_Greg_WhoAreYou_15_00"); //Kdo jsi?
AI_Output (self ,other,"DIA_Addon_Greg_WhoAreYou_01_01"); //Jsem Greg, velitel tohoto tábora.
AI_Output (self ,other,"DIA_Addon_Greg_WhoAreYou_01_02"); //Šăastný?
};
// ************************************************************
// NiceToSeeYou
// ************************************************************
INSTANCE DIA_Addon_Greg_NiceToSeeYou(C_INFO)
{
npc = PIR_1320_Addon_Greg;
nr = 5;
condition = DIA_Addon_Greg_NiceToSeeYou_Condition;
information = DIA_Addon_Greg_NiceToSeeYou_Info;
permanent = FALSE;
description = "Jak jsi se sem vlasnę dostal?";
};
FUNC INT DIA_Addon_Greg_NiceToSeeYou_Condition()
{
if (PlayerTalkedToGregNW == TRUE)
&& (MIS_Greg_ScoutBandits == 0)
{
return TRUE;
};
};
FUNC VOID DIA_Addon_Greg_NiceToSeeYou_Info()
{
AI_Output (other,self ,"DIA_Addon_Greg_NiceToSeeYou_15_00"); //Jak jsi se sem vlasnę dostal?
AI_Output (self ,other,"DIA_Addon_Greg_NiceToSeeYou_01_01"); //Nečekal jsi, že mę tu uvidíš, he?
AI_Output (self ,other,"DIA_Addon_Greg_NiceToSeeYou_01_02"); //Jenom si to vyjasnęme. Jsem Greg a tohle je můj tábor.
AI_Output (self ,other,"DIA_Addon_Greg_NiceToSeeYou_01_03"); //Šăastný?
};
// ************************************************************
// Story
// ************************************************************
INSTANCE DIA_Addon_Greg_Story(C_INFO)
{
npc = PIR_1320_Addon_Greg;
nr = 99;
condition = DIA_Addon_Greg_Story_Condition;
information = DIA_Addon_Greg_Story_Info;
permanent = TRUE;
description = "Je tady ještę jedna vęc, kterou chci vędęt.";
};
FUNC INT DIA_Addon_Greg_Story_Condition()
{
if ((Npc_KnowsInfo (other,DIA_Addon_Greg_WhoAreYou) == TRUE)
|| (Npc_KnowsInfo (other,DIA_Addon_Greg_NiceToSeeYou) == TRUE))
&& (MIS_Greg_ScoutBandits != 0)
{
return TRUE;
};
};
FUNC VOID DIA_Addon_Greg_Story_Info()
{
AI_Output (other,self ,"DIA_Addon_Greg_Story_15_00"); //Je tady ještę jedna vęc, kterou chci vędęt.
AI_Output (self ,other,"DIA_Addon_Greg_Story_01_01"); //Co to je?
Info_ClearChoices (DIA_Addon_Greg_Story);
Info_AddChoice (DIA_Addon_Greg_Story,DIALOG_BACK,DIA_Addon_Greg_Story_Back);
Info_AddChoice (DIA_Addon_Greg_Story,"Jak jsi se sem dostal?",DIA_Addon_Greg_Story_Way);
Info_AddChoice (DIA_Addon_Greg_Story,"Kde máš loë?",DIA_Addon_Greg_Story_Ship);
if (RavenIsDead == FALSE)
{
Info_AddChoice (DIA_Addon_Greg_Story,"Co víš o Ravenovi?",DIA_Addon_Greg_Story_Raven);
};
};
FUNC VOID DIA_Addon_Greg_Story_Back()
{
Info_ClearChoices (DIA_Addon_Greg_Story);
};
FUNC VOID DIA_Addon_Greg_Story_Way()
{
AI_Output (other,self ,"DIA_Addon_Greg_Story_Way_15_00"); //Jak jsi se sem dostal?
AI_Output (self ,other,"DIA_Addon_Greg_Story_Way_01_01"); //Našel jsem tunel. Ve staré pyramidę. Byl hlídaný pár mágy.
AI_Output (self ,other,"DIA_Addon_Greg_Story_Way_01_02"); //Ti slepý zasvęcenci o mę nezavadili ani pohledem.
AI_Output (self ,other,"DIA_Addon_Greg_Story_Way_01_03"); //Nejdâív jsem si myslel, že to je jen pohâební síŕ a chtęl jsem se mrknou, jestli tam není nęco cenného.
AI_Output (self ,other,"DIA_Addon_Greg_Story_Way_01_04"); //Zíral jsem víc než málo, když jsem vyšel ve svém milovaném údolí.
AI_Output (self ,other,"DIA_Addon_Greg_Story_Way_01_05"); //Začal jsem si myslet, že jsem uniknul domobranę na zbytek svého života.
};
FUNC VOID DIA_Addon_Greg_Story_Ship()
{
AI_Output (other,self ,"DIA_Addon_Greg_Story_Ship_15_00"); //Kde je tvoje loë?
AI_Output (self ,other,"DIA_Addon_Greg_Story_Ship_01_01"); //Nebudeš tomu vęâit. Žádná loë mezi pevninou a ostrovem nebyla v dohledu celé męsíce.
AI_Output (self ,other,"DIA_Addon_Greg_Story_Ship_01_02"); //Celé męsíce! - A první loë, která pâipluje je plnę obsazená válečná loë krále.
AI_Output (self ,other,"DIA_Addon_Greg_Story_Ship_01_03"); //Plná paladinů od spodku až po vršek stožáru.
AI_Output (other,self ,"DIA_Addon_Greg_Story_Ship_15_04"); //To je to, čemu já âíkám smůla.
AI_Output (self ,other,"DIA_Addon_Greg_Story_Ship_01_05"); //Můžeš to âíci znova. Stahlo nás to jako nic. Jsem jediný, kdo to zvládl na bâeh.
};
FUNC VOID DIA_Addon_Greg_Story_Raven()
{
AI_Output (other,self ,"DIA_Addon_Greg_Story_Raven_15_00"); //Co víš o Ravenovi?
AI_Output (self ,other,"DIA_Addon_Greg_Story_Raven_01_01"); //Vím, že byl rudný baron. Velký číslo v kolonii.
AI_Output (self ,other,"DIA_Addon_Greg_Story_Raven_01_02"); //Nevím, proč je tady, nebo proč ho lidé následují.
AI_Output (self ,other,"DIA_Addon_Greg_Story_Raven_01_03"); //Ale jsem si jistý, že nęco chystá. Není typ, který by se schoval v bažinę.
};
///////////////////////////////////////////////////////////////////////
// Info RavenDead
///////////////////////////////////////////////////////////////////////
instance DIA_Addon_Greg_RavenDead (C_INFO)
{
npc = PIR_1320_Addon_Greg;
nr = 2;
condition = DIA_Addon_Greg_RavenDead_Condition;
information = DIA_Addon_Greg_RavenDead_Info;
description = "Raven patâí minulosti.";
};
func int DIA_Addon_Greg_RavenDead_Condition ()
{
if (RavenIsDead == TRUE)
{
return TRUE;
};
};
func void DIA_Addon_Greg_RavenDead_Info ()
{
AI_Output (other, self, "DIA_Addon_Greg_RavenDead_15_00"); //Raven patâí minulosti.
AI_Output (self, other, "DIA_Addon_Greg_RavenDead_01_01"); //Úžasné! To jsem nečekal. Načapal jsi ho se staženejma kalhotama, co?
AI_Output (self, other, "DIA_Addon_Greg_RavenDead_01_02"); //Za to ti dám 500 zlaăáků.
CreateInvItems (self, ItMi_Gold, 500);
B_GiveInvItems (self, other, ItMi_Gold, 500);
AI_Output (self, other, "DIA_Addon_Greg_RavenDead_01_03"); //Jsi opravdový ničitel zla. To je dobâe.
B_GivePlayerXP (XP_ADDON_GregRavenLohn);
};
|
D
|
/Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/DerivedData/RecipeMadness/Build/Intermediates/RecipeMadness.build/Debug-iphonesimulator/RecipeMadness.build/Objects-normal/x86_64/AppDelegate.o : /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/Utility.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/TabBarController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/LaunchController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/AddRecipeIngredientController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/PlanMealController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/ShoppingCell.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeIngredient.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/Ingredient.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/RecipeBookController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/MealCalendarViewCell.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/MealCalendar.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/AppDelegate.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/EditMealPlanController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/ShoppingRecipeCell.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/HomeViewController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/MealCalendarController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/TempIngredient.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/Recipe.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/IngredientController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/DBmanager.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/EditRecipeController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/ShoppingList.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/IngedientViewCell.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/ShoppingListController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/RecipeCellTableViewCell.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/RecipePicker.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreData.swiftmodule
/Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/DerivedData/RecipeMadness/Build/Intermediates/RecipeMadness.build/Debug-iphonesimulator/RecipeMadness.build/Objects-normal/x86_64/AppDelegate~partial.swiftmodule : /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/Utility.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/TabBarController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/LaunchController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/AddRecipeIngredientController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/PlanMealController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/ShoppingCell.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeIngredient.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/Ingredient.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/RecipeBookController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/MealCalendarViewCell.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/MealCalendar.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/AppDelegate.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/EditMealPlanController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/ShoppingRecipeCell.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/HomeViewController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/MealCalendarController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/TempIngredient.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/Recipe.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/IngredientController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/DBmanager.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/EditRecipeController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/ShoppingList.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/IngedientViewCell.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/ShoppingListController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/RecipeCellTableViewCell.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/RecipePicker.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreData.swiftmodule
/Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/DerivedData/RecipeMadness/Build/Intermediates/RecipeMadness.build/Debug-iphonesimulator/RecipeMadness.build/Objects-normal/x86_64/AppDelegate~partial.swiftdoc : /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/Utility.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/TabBarController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/LaunchController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/AddRecipeIngredientController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/PlanMealController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/ShoppingCell.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeIngredient.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/Ingredient.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/RecipeBookController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/MealCalendarViewCell.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/MealCalendar.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/AppDelegate.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/EditMealPlanController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/ShoppingRecipeCell.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/HomeViewController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/MealCalendarController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/TempIngredient.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/Recipe.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/IngredientController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/DBmanager.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/EditRecipeController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/ShoppingList.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/IngedientViewCell.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/ShoppingListController.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/RecipeCellTableViewCell.swift /Users/dineshkumardhanekula/Downloads/tejesh143-recipe-madness-164b1d439b39/RecipeMadness/RecipePicker.swift /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Swift.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/UIKit.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Foundation.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Darwin.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/Dispatch.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/ObjectiveC.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreGraphics.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreImage.swiftmodule /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/x86_64/CoreData.swiftmodule
|
D
|
int main(string[] args)
{
import std.algorithm : max, maxElement, splitter;
import std.array : appender;
import std.conv : to;
import std.range : take;
import std.stdio;
if (args.length < 4)
{
writefln ("synopsis: %s filename keyfield valuefield", args[0]);
return 1;
}
string filename = args[1];
size_t keyFieldIndex = args[2].to!size_t;
size_t valueFieldIndex = args[3].to!size_t;
size_t maxFieldIndex = max(keyFieldIndex, valueFieldIndex);
string delim = "\t";
long[string] sumByKey;
auto fields = appender!(char[][])();
foreach(line; filename.File.byLine)
{
fields.clear;
fields.put(line.splitter(delim).take(maxFieldIndex + 1));
if (maxFieldIndex < fields.data.length)
{
char[] key = fields.data[keyFieldIndex];
long fieldValue = fields.data[valueFieldIndex].to!long;
if (auto sumValuePtr = key in sumByKey) *sumValuePtr += fieldValue;
else sumByKey[key.to!string] = fieldValue;
}
}
if (sumByKey.length == 0) writeln("No entries");
else
{
auto maxEntry = sumByKey.byKeyValue.maxElement!"a.value";
writeln("max_key: ", maxEntry.key, " sum: ", maxEntry.value);
}
return 0;
}
|
D
|
module UnrealScript.UnrealEd.GameStatsDBUploader;
import ScriptClasses;
import UnrealScript.Helpers;
import UnrealScript.Engine.GameplayEventsHandler;
extern(C++) interface GameStatsDBUploader : GameplayEventsHandler
{
public extern(D):
private static __gshared ScriptClass mStaticClass;
@property final static ScriptClass StaticClass() { mixin(MGSCC("Class UnrealEd.GameStatsDBUploader")); }
private static __gshared GameStatsDBUploader mDefaultProperties;
@property final static GameStatsDBUploader DefaultProperties() { mixin(MGDPC("GameStatsDBUploader", "GameStatsDBUploader UnrealEd.Default__GameStatsDBUploader")); }
}
|
D
|
var int jora_itemsgiven_chapter_1;
var int jora_itemsgiven_chapter_2;
var int jora_itemsgiven_chapter_3;
var int jora_itemsgiven_chapter_4;
var int jora_itemsgiven_chapter_5;
var int jora_itemsgiven_chapter_6;
func void b_givetradeinv_jora(var C_NPC slf)
{
if((KAPITEL >= 1) && (JORA_ITEMSGIVEN_CHAPTER_1 == FALSE))
{
CreateInvItems(slf,itmi_gold,100);
CreateInvItems(slf,itsc_light,1);
CreateInvItems(slf,itpl_health_herb_01,2);
CreateInvItems(slf,itpl_mushroom_01,3);
CreateInvItems(slf,itfomutton,8);
CreateInvItems(slf,itmw_richtstab,1);
CreateInvItems(slf,itmw_shortsword3,1);
CreateInvItems(slf,itrw_bow_l_01,1);
CreateInvItems(slf,itrw_arrow,30);
CreateInvItems(slf,itrw_bolt,30);
JORA_ITEMSGIVEN_CHAPTER_1 = TRUE;
};
if((KAPITEL >= 2) && (JORA_ITEMSGIVEN_CHAPTER_2 == FALSE))
{
CreateInvItems(slf,itmi_gold,100);
CreateInvItems(slf,itmiswordraw,1);
CreateInvItems(slf,itpl_health_herb_01,3);
CreateInvItems(slf,itpl_mushroom_02,2);
CreateInvItems(slf,itfo_fishsoup,3);
CreateInvItems(slf,itmw_morgenstern,1);
CreateInvItems(slf,itrw_crossbow_l_02,1);
CreateInvItems(slf,itrw_arrow,60);
CreateInvItems(slf,itrw_bolt,60);
JORA_ITEMSGIVEN_CHAPTER_2 = TRUE;
};
if((KAPITEL >= 3) && (JORA_ITEMSGIVEN_CHAPTER_3 == FALSE))
{
CreateInvItems(slf,itmi_gold,100);
CreateInvItems(slf,itfo_wine,1);
CreateInvItems(slf,itpl_mana_herb_01,4);
CreateInvItems(slf,itpl_health_herb_02,3);
CreateInvItems(slf,itmw_rabenschnabel,1);
CreateInvItems(slf,itrw_bow_m_01,1);
CreateInvItems(slf,itrw_arrow,60);
CreateInvItems(slf,itrw_bolt,60);
JORA_ITEMSGIVEN_CHAPTER_3 = TRUE;
};
if((KAPITEL >= 4) && (JORA_ITEMSGIVEN_CHAPTER_4 == FALSE))
{
CreateInvItems(slf,itmi_gold,150);
CreateInvItems(slf,itmi_rockcrystal,1);
CreateInvItems(slf,itpl_mana_herb_02,4);
CreateInvItems(slf,itpl_health_herb_03,5);
CreateInvItems(slf,itmw_folteraxt,1);
CreateInvItems(slf,itrw_bow_m_04,1);
CreateInvItems(slf,itrw_arrow,60);
CreateInvItems(slf,itrw_bolt,60);
JORA_ITEMSGIVEN_CHAPTER_4 = TRUE;
};
if((KAPITEL >= 5) && (JORA_ITEMSGIVEN_CHAPTER_5 == FALSE))
{
CreateInvItems(slf,itmi_gold,200);
CreateInvItems(slf,itmi_coal,3);
CreateInvItems(slf,itmi_pitch,2);
CreateInvItems(slf,itpl_health_herb_03,5);
CreateInvItems(slf,itpl_mana_herb_03,5);
CreateInvItems(slf,itrw_arrow,160);
CreateInvItems(slf,itrw_bolt,160);
JORA_ITEMSGIVEN_CHAPTER_5 = TRUE;
};
if((KAPITEL >= 6) && (JORA_ITEMSGIVEN_CHAPTER_6 == FALSE))
{
CreateInvItems(slf,itmi_gold,300);
CreateInvItems(slf,itmi_coal,3);
CreateInvItems(slf,itmi_pitch,2);
CreateInvItems(slf,itpl_health_herb_03,10);
CreateInvItems(slf,itpl_mana_herb_03,10);
CreateInvItems(slf,itrw_arrow,30);
CreateInvItems(slf,itrw_bolt,30);
JORA_ITEMSGIVEN_CHAPTER_6 = TRUE;
};
};
|
D
|
module tooling.app;
import std.stdio;
import tooling.CxxImplement;
import tooling.CxxMerge;
import tooling.CxxSortFunctions;
int main(string[] args)
{
try
{
if (args.length > 1)
{
switch (args[1])
{
case "implement":
return implementMain(args);
case "merge":
return mergeMain(args);
case "sort":
return sortFunctionsMain(args);
default:
break;
}
}
}
catch (Exception e)
{
stderr.writeln(e.msg);
return 1;
}
printHelp();
return 0;
}
/**
* Prints help message
*/
void printHelp()
{
stdout.writeln(`
C++ tooling.
Usage:
tooling cmd [options]
Commands:
implement
Given a C++ header/source file pair, add missing stub functions to the source file
merge
Merge any number of C++ files into one, preserving the namespace structure
sort
Sort C++ functions by name, preserving the namespace structure of the file
Options are command specific.
`);
}
|
D
|
/**
* Compiler implementation of the
* $(LINK2 http://www.dlang.org, D programming language).
*
* Copyright: Copyright (C) 1994-1998 by Symantec
* Copyright (c) 2000-2017 by Digital Mars, All Rights Reserved
* Authors: $(LINK2 http://www.digitalmars.com, Walter Bright)
* License: backendlicense.txt
* Source: $(DMDSRC backend/_obj.d)
*/
module ddmd.backend.obj;
/* Interface to object file format
*/
import ddmd.backend.cdef;
import ddmd.backend.cc;
import ddmd.backend.code;
import ddmd.backend.el;
import ddmd.backend.outbuf;
extern (C++):
version (Windows)
{
class Obj
{
public:
static Obj init(Outbuffer *, const(char)* filename, const(char)* csegname);
void initfile(const(char)* filename, const(char)* csegname, const(char)* modname);
void termfile();
void term(const(char)* objfilename);
size_t mangle(Symbol *s,char *dest);
void _import(elem *e);
void linnum(Srcpos srcpos, int seg, targ_size_t offset);
int codeseg(char *name,int suffix);
void dosseg();
void startaddress(Symbol *);
bool includelib(const(char)* );
bool allowZeroSize();
void exestr(const(char)* p);
void user(const(char)* p);
void compiler();
void wkext(Symbol *,Symbol *);
void lzext(Symbol *,Symbol *);
void _alias(const(char)* n1,const(char)* n2);
void theadr(const(char)* modname);
void segment_group(targ_size_t codesize, targ_size_t datasize, targ_size_t cdatasize, targ_size_t udatasize);
void staticctor(Symbol *s,int dtor,int seg);
void staticdtor(Symbol *s);
void funcptr(Symbol *s);
void ehtables(Symbol *sfunc,targ_size_t size,Symbol *ehsym);
void ehsections();
void moduleinfo(Symbol *scc);
int comdat(Symbol *);
int comdatsize(Symbol *, targ_size_t symsize);
int readonly_comdat(Symbol *s);
void setcodeseg(int seg);
seg_data *tlsseg();
seg_data *tlsseg_bss();
seg_data *tlsseg_data();
static int fardata(char *name, targ_size_t size, targ_size_t *poffset);
void export_symbol(Symbol *s, uint argsize);
void pubdef(int seg, Symbol *s, targ_size_t offset);
void pubdefsize(int seg, Symbol *s, targ_size_t offset, targ_size_t symsize);
int external_def(const(char)* );
int data_start(Symbol *sdata, targ_size_t datasize, int seg);
int external(Symbol *);
int common_block(Symbol *s, targ_size_t size, targ_size_t count);
int common_block(Symbol *s, int flag, targ_size_t size, targ_size_t count);
void lidata(int seg, targ_size_t offset, targ_size_t count);
void write_zeros(seg_data *pseg, targ_size_t count);
void write_byte(seg_data *pseg, uint _byte);
void write_bytes(seg_data *pseg, uint nbytes, void *p);
void _byte(int seg, targ_size_t offset, uint _byte);
uint bytes(int seg, targ_size_t offset, uint nbytes, void *p);
void ledata(int seg, targ_size_t offset, targ_size_t data, uint lcfd, uint idx1, uint idx2);
void write_long(int seg, targ_size_t offset, uint data, uint lcfd, uint idx1, uint idx2);
void reftodatseg(int seg, targ_size_t offset, targ_size_t val, uint targetdatum, int flags);
void reftofarseg(int seg, targ_size_t offset, targ_size_t val, int farseg, int flags);
void reftocodeseg(int seg, targ_size_t offset, targ_size_t val);
int reftoident(int seg, targ_size_t offset, Symbol *s, targ_size_t val, int flags);
void far16thunk(Symbol *s);
void fltused();
int data_readonly(char *p, int len, int *pseg);
int data_readonly(char *p, int len);
int string_literal_segment(uint sz);
Symbol *sym_cdata(tym_t, char *, int);
void func_start(Symbol *sfunc);
void func_term(Symbol *sfunc);
void write_pointerRef(Symbol* s, uint off);
int jmpTableSegment(Symbol* s);
Symbol *tlv_bootstrap();
static void gotref(Symbol *s);
int seg_debugT(); // where the symbolic debug type data goes
}
class MsCoffObj : Obj
{
public:
static MsCoffObj init(Outbuffer *, const(char)* filename, const(char)* csegname);
override void initfile(const(char)* filename, const(char)* csegname, const(char)* modname);
override void termfile();
override void term(const(char)* objfilename);
// size_t mangle(Symbol *s,char *dest);
// void _import(elem *e);
override void linnum(Srcpos srcpos, int seg, targ_size_t offset);
override int codeseg(char *name,int suffix);
// void dosseg();
override void startaddress(Symbol *);
override bool includelib(const(char)* );
override bool allowZeroSize();
override void exestr(const(char)* p);
override void user(const(char)* p);
override void compiler();
override void wkext(Symbol *,Symbol *);
// void lzext(Symbol *,Symbol *);
override void _alias(const(char)* n1,const(char)* n2);
// void theadr(const(char)* modname);
// void segment_group(targ_size_t codesize, targ_size_t datasize, targ_size_t cdatasize, targ_size_t udatasize);
override void staticctor(Symbol *s,int dtor,int seg);
override void staticdtor(Symbol *s);
override void funcptr(Symbol *s);
override void ehtables(Symbol *sfunc,targ_size_t size,Symbol *ehsym);
override void ehsections();
override void moduleinfo(Symbol *scc);
override int comdat(Symbol *);
override int comdatsize(Symbol *, targ_size_t symsize);
override int readonly_comdat(Symbol *s);
override void setcodeseg(int seg);
override seg_data *tlsseg();
override seg_data *tlsseg_bss();
override seg_data *tlsseg_data();
override void export_symbol(Symbol *s, uint argsize);
override void pubdef(int seg, Symbol *s, targ_size_t offset);
override void pubdefsize(int seg, Symbol *s, targ_size_t offset, targ_size_t symsize);
// int external(const(char)* );
override int external_def(const(char)* );
override int data_start(Symbol *sdata, targ_size_t datasize, int seg);
override int external(Symbol *);
override int common_block(Symbol *s, targ_size_t size, targ_size_t count);
override int common_block(Symbol *s, int flag, targ_size_t size, targ_size_t count);
override void lidata(int seg, targ_size_t offset, targ_size_t count);
override void write_zeros(seg_data *pseg, targ_size_t count);
override void write_byte(seg_data *pseg, uint _byte);
override void write_bytes(seg_data *pseg, uint nbytes, void *p);
override void _byte(int seg, targ_size_t offset, uint _byte);
override uint bytes(int seg, targ_size_t offset, uint nbytes, void *p);
// void ledata(int seg, targ_size_t offset, targ_size_t data, uint lcfd, uint idx1, uint idx2);
// void write_long(int seg, targ_size_t offset, uint data, uint lcfd, uint idx1, uint idx2);
override void reftodatseg(int seg, targ_size_t offset, targ_size_t val, uint targetdatum, int flags);
// void reftofarseg(int seg, targ_size_t offset, targ_size_t val, int farseg, int flags);
override void reftocodeseg(int seg, targ_size_t offset, targ_size_t val);
override int reftoident(int seg, targ_size_t offset, Symbol *s, targ_size_t val, int flags);
override void far16thunk(Symbol *s);
override void fltused();
override int data_readonly(char *p, int len, int *pseg);
override int data_readonly(char *p, int len);
override int string_literal_segment(uint sz);
override Symbol *sym_cdata(tym_t, char *, int);
static uint addstr(Outbuffer *strtab, const(char)* );
override void func_start(Symbol *sfunc);
override void func_term(Symbol *sfunc);
override void write_pointerRef(Symbol* s, uint off);
override int jmpTableSegment(Symbol* s);
static int getsegment(const(char)* sectname, uint flags);
static int getsegment2( uint shtidx);
static uint addScnhdr(const(char)* scnhdr_name, uint flags);
static void addrel(int seg, targ_size_t offset, Symbol *targsym,
uint targseg, int rtype, int val);
// static void addrel(int seg, targ_size_t offset, uint type,
// uint symidx, targ_size_t val);
static int seg_pdata();
static int seg_xdata();
static int seg_pdata_comdat(Symbol *sfunc);
static int seg_xdata_comdat(Symbol *sfunc);
static int seg_debugS();
override int seg_debugT();
static int seg_debugS_comdat(Symbol *sfunc);
override Symbol *tlv_bootstrap();
}
}
else version (Posix)
{
class Obj
{
public:
static Obj init(Outbuffer *, const(char)* filename, const(char)* csegname);
static void initfile(const(char)* filename, const(char)* csegname, const(char)* modname);
static void termfile();
static void term(const(char)* objfilename);
static size_t mangle(Symbol *s,char *dest);
static void _import(elem *e);
static void linnum(Srcpos srcpos, int seg, targ_size_t offset);
static int codeseg(char *name,int suffix);
static void dosseg();
static void startaddress(Symbol *);
static bool includelib(const(char)* );
static bool allowZeroSize();
static void exestr(const(char)* p);
static void user(const(char)* p);
static void compiler();
static void wkext(Symbol *,Symbol *);
static void lzext(Symbol *,Symbol *);
static void _alias(const(char)* n1,const(char)* n2);
static void theadr(const(char)* modname);
static void segment_group(targ_size_t codesize, targ_size_t datasize, targ_size_t cdatasize, targ_size_t udatasize);
static void staticctor(Symbol *s,int dtor,int seg);
static void staticdtor(Symbol *s);
static void funcptr(Symbol *s);
static void ehtables(Symbol *sfunc,targ_size_t size,Symbol *ehsym);
static void ehsections();
static void moduleinfo(Symbol *scc);
int comdat(Symbol *);
static int comdatsize(Symbol *, targ_size_t symsize);
int readonly_comdat(Symbol *s);
static void setcodeseg(int seg);
seg_data *tlsseg();
seg_data *tlsseg_bss();
static seg_data *tlsseg_data();
static int fardata(char *name, targ_size_t size, targ_size_t *poffset);
static void export_symbol(Symbol *s, uint argsize);
static void pubdef(int seg, Symbol *s, targ_size_t offset);
static void pubdefsize(int seg, Symbol *s, targ_size_t offset, targ_size_t symsize);
static int external_def(const(char)* );
static int data_start(Symbol *sdata, targ_size_t datasize, int seg);
static int external(Symbol *);
static int common_block(Symbol *s, targ_size_t size, targ_size_t count);
static int common_block(Symbol *s, int flag, targ_size_t size, targ_size_t count);
static void lidata(int seg, targ_size_t offset, targ_size_t count);
static void write_zeros(seg_data *pseg, targ_size_t count);
static void write_byte(seg_data *pseg, uint _byte);
static void write_bytes(seg_data *pseg, uint nbytes, void *p);
static void _byte(int seg, targ_size_t offset, uint _byte);
static uint bytes(int seg, targ_size_t offset, uint nbytes, void *p);
static void ledata(int seg, targ_size_t offset, targ_size_t data, uint lcfd, uint idx1, uint idx2);
static void write_long(int seg, targ_size_t offset, uint data, uint lcfd, uint idx1, uint idx2);
static void reftodatseg(int seg, targ_size_t offset, targ_size_t val, uint targetdatum, int flags);
static void reftofarseg(int seg, targ_size_t offset, targ_size_t val, int farseg, int flags);
static void reftocodeseg(int seg, targ_size_t offset, targ_size_t val);
static int reftoident(int seg, targ_size_t offset, Symbol *s, targ_size_t val, int flags);
static void far16thunk(Symbol *s);
static void fltused();
static int data_readonly(char *p, int len, int *pseg);
static int data_readonly(char *p, int len);
static int string_literal_segment(uint sz);
static Symbol *sym_cdata(tym_t, char *, int);
static void func_start(Symbol *sfunc);
static void func_term(Symbol *sfunc);
static void write_pointerRef(Symbol* s, uint off);
static int jmpTableSegment(Symbol* s);
static Symbol *tlv_bootstrap();
static void gotref(Symbol *s);
static uint addstr(Outbuffer *strtab, const(char)* );
static Symbol *getGOTsym();
static void refGOTsym();
}
version (OSX)
{
class MachObj : Obj
{
public:
static int getsegment(const(char)* sectname, const(char)* segname,
int _align, int flags);
static void addrel(int seg, targ_size_t offset, Symbol *targsym,
uint targseg, int rtype, int val = 0);
}
class MachObj64 : MachObj
{
public:
override seg_data *tlsseg();
override seg_data *tlsseg_bss();
}
}
else
{
class ElfObj : Obj
{
public:
static int getsegment(const(char)* name, const(char)* suffix,
int type, int flags, int _align);
static void addrel(int seg, targ_size_t offset, uint type,
uint symidx, targ_size_t val);
static size_t writerel(int targseg, size_t offset, uint type,
uint symidx, targ_size_t val);
}
}
}
else
static assert(0, "unsupported version");
extern __gshared Obj objmod;
|
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 vtkExtractTemporalFieldData;
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 vtkTableAlgorithm;
class vtkExtractTemporalFieldData : vtkTableAlgorithm.vtkTableAlgorithm {
private void* swigCPtr;
public this(void* cObject, bool ownCObject) {
super(vtkd_im.vtkExtractTemporalFieldData_Upcast(cObject), ownCObject);
swigCPtr = cObject;
}
public static void* swigGetCPtr(vtkExtractTemporalFieldData 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 vtkExtractTemporalFieldData New() {
void* cPtr = vtkd_im.vtkExtractTemporalFieldData_New();
vtkExtractTemporalFieldData ret = (cPtr is null) ? null : new vtkExtractTemporalFieldData(cPtr, false);
return ret;
}
public static int IsTypeOf(string type) {
auto ret = vtkd_im.vtkExtractTemporalFieldData_IsTypeOf((type ? std.string.toStringz(type) : null));
return ret;
}
public static vtkExtractTemporalFieldData SafeDownCast(vtkObjectBase.vtkObjectBase o) {
void* cPtr = vtkd_im.vtkExtractTemporalFieldData_SafeDownCast(vtkObjectBase.vtkObjectBase.swigGetCPtr(o));
vtkExtractTemporalFieldData ret = (cPtr is null) ? null : new vtkExtractTemporalFieldData(cPtr, false);
return ret;
}
public vtkExtractTemporalFieldData NewInstance() const {
void* cPtr = vtkd_im.vtkExtractTemporalFieldData_NewInstance(cast(void*)swigCPtr);
vtkExtractTemporalFieldData ret = (cPtr is null) ? null : new vtkExtractTemporalFieldData(cPtr, false);
return ret;
}
alias vtkTableAlgorithm.vtkTableAlgorithm.NewInstance NewInstance;
public int GetNumberOfTimeSteps() {
auto ret = vtkd_im.vtkExtractTemporalFieldData_GetNumberOfTimeSteps(cast(void*)swigCPtr);
return ret;
}
}
|
D
|
module formoshlep;
public import formoshlep.platform;
public import formoshlep.widget;
public import dlangui.widgets.widget: Widget;
|
D
|
//https://www.reddit.com/r/dailyprogrammer/comments/np3sio/20210531_challenge_392_intermediate_pancake_sort/
import std.stdio : writeln;
import std.range : take, retro, chain, drop;
import std.algorithm : reverse, maxIndex, isSorted;
void main()
{
}
unittest
{
import std.algorithm : equal;
int[] input = [3, 2, 4, 1];
input.pancakeSort();
assert(input.isSorted);
input = [23, 10, 20, 11, 12, 6, 7];
input.pancakeSort();
assert(input.isSorted);
input = [3, 1, 2, 1];
input.pancakeSort();
assert(input.isSorted);
}
void pancakeSort(int[] input)
{
ulong currentIndex = input.length;
while(currentIndex > 0)
{
auto maxIndex = input[0 .. currentIndex].maxIndex;
flipFrontInPlace(input, maxIndex + 1);
flipFrontInPlace(input, currentIndex);
currentIndex--;
}
}
auto flipFront(R)(R input, int n)
{
return input.take(n).retro.chain(input.drop(n));
}
unittest
{
import std.algorithm : equal;
assert(flipFront([0, 1, 2, 3, 4], 2).equal([1, 0, 2, 3, 4]));
assert(flipFront([0, 1, 2, 3, 4], 3).equal([2, 1, 0, 3, 4]));
assert(flipFront([0, 1, 2, 3, 4], 5).equal([4, 3, 2, 1, 0]));
assert(flipFront([1, 2, 2, 2], 3).equal([2, 2, 1, 2]));
}
void flipFrontInPlace(R)(R input, ulong n)
{
input[0 .. n].reverse();
}
unittest
{
import std.algorithm : equal;
auto input = [0, 1, 2, 3, 4];
flipFrontInPlace(input, 2);
assert(input.equal([1, 0, 2, 3, 4]));
input = [0, 1, 2, 3, 4];
flipFrontInPlace(input, 3);
assert(input.equal([2, 1, 0, 3, 4]));
input = [0, 1, 2, 3, 4];
flipFrontInPlace(input, 5);
assert(input.equal([4, 3, 2, 1, 0]));
input = [1, 2, 2, 2];
flipFrontInPlace(input, 3);
assert(input.equal([2, 2, 1, 2]));
}
|
D
|
/*
* Licensed under the GNU Lesser General Public License Version 3
*
* This library is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the license, or
* (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
// generated automatically - do not change
module gio.FileMonitor;
private import gi.gio;
public import gi.giotypes;
private import gio.File;
private import gio.FileIF;
private import gobject.ObjectG;
private import gobject.Signals;
/**
* Monitors a file or directory for changes.
*
* To obtain a #GFileMonitor for a file or directory, use
* g_file_monitor(), g_file_monitor_file(), or
* g_file_monitor_directory().
*
* To get informed about changes to the file or directory you are
* monitoring, connect to the #GFileMonitor::changed signal. The
* signal will be emitted in the
* [thread-default main context][g-main-context-push-thread-default]
* of the thread that the monitor was created in
* (though if the global default main context is blocked, this may
* cause notifications to be blocked even if the thread-default
* context is still running).
*/
public class FileMonitor : ObjectG
{
/** the main GObject struct */
protected GFileMonitor* gFileMonitor;
/** Get the main GObject struct */
public GFileMonitor* getFileMonitorStruct()
{
return gFileMonitor;
}
/** the main GObject struct as a void* */
protected override void* getStruct()
{
return cast(void*)gFileMonitor;
}
protected override void setStruct(GObject* obj)
{
gFileMonitor = cast(GFileMonitor*)obj;
super.setStruct(obj);
}
/**
* Sets our main struct and passes it to the parent class.
*/
public this (GFileMonitor* gFileMonitor, bool ownedRef = false)
{
this.gFileMonitor = gFileMonitor;
super(cast(GObject*)gFileMonitor, ownedRef);
}
/** */
public static GType getType()
{
return g_file_monitor_get_type();
}
/**
* Cancels a file monitor.
*
* Return: always %TRUE
*/
public bool cancel()
{
return g_file_monitor_cancel(gFileMonitor) != 0;
}
/** */
public void emitEvent(FileIF child, FileIF otherFile, GFileMonitorEvent eventType)
{
g_file_monitor_emit_event(gFileMonitor, (child is null) ? null : child.getFileStruct(), (otherFile is null) ? null : otherFile.getFileStruct(), eventType);
}
/**
* Returns whether the monitor is canceled.
*
* Return: %TRUE if monitor is canceled. %FALSE otherwise.
*/
public bool isCancelled()
{
return g_file_monitor_is_cancelled(gFileMonitor) != 0;
}
/**
* Sets the rate limit to which the @monitor will report
* consecutive change events to the same file.
*
* Params:
* limitMsecs = a non-negative integer with the limit in milliseconds
* to poll for changes
*/
public void setRateLimit(int limitMsecs)
{
g_file_monitor_set_rate_limit(gFileMonitor, limitMsecs);
}
int[string] connectedSignals;
void delegate(FileIF, FileIF, GFileMonitorEvent, FileMonitor)[] onChangedListeners;
/**
* Emitted when @file has been changed.
*
* If using %G_FILE_MONITOR_WATCH_RENAMES on a directory monitor, and
* the information is available (and if supported by the backend),
* @event_type may be %G_FILE_MONITOR_EVENT_RENAMED,
* %G_FILE_MONITOR_EVENT_MOVED_IN or %G_FILE_MONITOR_EVENT_MOVED_OUT.
*
* In all cases @file will be a child of the monitored directory. For
* renames, @file will be the old name and @other_file is the new
* name. For "moved in" events, @file is the name of the file that
* appeared and @other_file is the old name that it was moved from (in
* another directory). For "moved out" events, @file is the name of
* the file that used to be in this directory and @other_file is the
* name of the file at its new location.
*
* It makes sense to treat %G_FILE_MONITOR_EVENT_MOVED_IN as
* equivalent to %G_FILE_MONITOR_EVENT_CREATED and
* %G_FILE_MONITOR_EVENT_MOVED_OUT as equivalent to
* %G_FILE_MONITOR_EVENT_DELETED, with extra information.
* %G_FILE_MONITOR_EVENT_RENAMED is equivalent to a delete/create
* pair. This is exactly how the events will be reported in the case
* that the %G_FILE_MONITOR_WATCH_RENAMES flag is not in use.
*
* If using the deprecated flag %G_FILE_MONITOR_SEND_MOVED flag and @event_type is
* #G_FILE_MONITOR_EVENT_MOVED, @file will be set to a #GFile containing the
* old path, and @other_file will be set to a #GFile containing the new path.
*
* In all the other cases, @other_file will be set to #NULL.
*
* Params:
* file = a #GFile.
* otherFile = a #GFile or #NULL.
* eventType = a #GFileMonitorEvent.
*/
void addOnChanged(void delegate(FileIF, FileIF, GFileMonitorEvent, FileMonitor) dlg, ConnectFlags connectFlags=cast(ConnectFlags)0)
{
if ( "changed" !in connectedSignals )
{
Signals.connectData(
this,
"changed",
cast(GCallback)&callBackChanged,
cast(void*)this,
null,
connectFlags);
connectedSignals["changed"] = 1;
}
onChangedListeners ~= dlg;
}
extern(C) static void callBackChanged(GFileMonitor* filemonitorStruct, GFile* file, GFile* otherFile, GFileMonitorEvent eventType, FileMonitor _filemonitor)
{
foreach ( void delegate(FileIF, FileIF, GFileMonitorEvent, FileMonitor) dlg; _filemonitor.onChangedListeners )
{
dlg(ObjectG.getDObject!(File, FileIF)(file), ObjectG.getDObject!(File, FileIF)(otherFile), eventType, _filemonitor);
}
}
}
|
D
|
/******************************************************************//**
* \file statistics/LUdecomposition.d
* \brief LUdecomposition, LUsolve and LUinvert
*
* <i>Copyright (c) 1991-2012</i> Ritsert C. Jansen, Danny Arends, Pjotr Prins, Karl W. Broman<br>
* Last modified May, 2012<br>
* First written 1991<br>
* Written in the D Programming Language (http://www.digitalmars.com/d)
**********************************************************************/
module qtl.core.mqm.LUdecomposition;
import std.stdio;
import std.math;
import qtl.core.mqm.errors, qtl.core.mqm.matrix;
double[] calculateParameters(size_t nv, size_t ns, in double[][] xt, in double[] w, in double[] y){
int d=0;
double xtwj;
double[][] XtWX = newmatrix!double(nv, nv, 0.0);
double[] XtWY = newvector!double(nv, 0.0);
int[] indx = newvector!int(nv, 0);
for(size_t i=0; i < ns; i++){
for(size_t j=0; j < nv; j++){
xtwj = xt[j][i] * w[i];
XtWY[j] += xtwj * y[i];
for(size_t jj=0; jj <= j; jj++){
XtWX[j][jj] += xtwj * xt[jj][i];
}
}
}
LUdecompose(XtWX, nv, indx, &d);
LUsolve(XtWX, nv, indx, XtWY);
return XtWY;
}
bool LUdecompose(double[][] m, int dim, int[] ndx, int *d) {
int r, c, rowmax, i;
double max, temp, sum;
double[] swap = newvector!double(dim,0.0);
double[] scale = newvector!double(dim,0.0);
*d=1;
for(r = 0; r < dim; r++) {
for(max=0.0, c=0; c < dim; c++){
if((temp=fabs(m[r][c])) > max){
max=temp;
}
}
if(max==0.0) error("ERROR: Singular matrix");
scale[r]=1.0/max;
}
for(c = 0; c < dim; c++){
for(r = 0; r < c; r++){
for(sum=m[r][c], i=0; i < r; i++) sum-= m[r][i]*m[i][c];
m[r][c]=sum;
}
for(max = 0.0, rowmax = c, r = c; r < dim; r++){
for(sum=m[r][c], i=0; i < c; i++) sum-= m[r][i]*m[i][c];
m[r][c]=sum;
if((temp=scale[r]*fabs(sum)) > max){
max=temp;
rowmax=r;
}
}
if(max == 0.0) error("ERROR: Singular matrix");
if(rowmax != c){
swap=m[rowmax];
m[rowmax]=m[c];
m[c]=swap;
scale[rowmax]=scale[c];
(*d)= -(*d);
}
ndx[c]=rowmax;
temp=1.0/m[c][c];
for(r = (c+1); r < dim; r++){ m[r][c]*=temp; }
}
return true;
}
void LUsolve(in double[][] lu, int dim, in int[] ndx, double[] b) {
int r, c;
double sum;
for(r = 0; r < dim; r++){
sum=b[ndx[r]];
b[ndx[r]]=b[r];
for (c=0; c<r; c++) sum-= lu[r][c]*b[c];
b[r]=sum;
}
for(r = (dim-1); r > -1; r--){
sum=b[r];
for(c=r+1; c<dim; c++) sum-= lu[r][c]*b[c];
b[r]=sum/lu[r][r];
}
}
|
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_6_BeT-6291813957.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</availablePage>
</pageList>
<sashModel currentSelection="//@sashModel/@windows.0/@children.0">
<windows>
<children xsi:type="di:TabFolder">
<children>
<emfPageIdentifier href="VAR_6_BeT-6291813957.notation#_copSALmGEeKQQp7P9cQvNQ"/>
</children>
</children>
</windows>
</sashModel>
</di:SashWindowsMngr>
|
D
|
# FIXED
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/source/F2837xD_GlobalVariableDefs.c
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_device.h
F2837xD_GlobalVariableDefs.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.6.LTS/include/assert.h
F2837xD_GlobalVariableDefs.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.6.LTS/include/linkage.h
F2837xD_GlobalVariableDefs.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.6.LTS/include/stdarg.h
F2837xD_GlobalVariableDefs.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.6.LTS/include/stdbool.h
F2837xD_GlobalVariableDefs.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.6.LTS/include/stddef.h
F2837xD_GlobalVariableDefs.obj: C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.6.LTS/include/stdint.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_adc.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_analogsubsys.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_cla.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_cmpss.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_cputimer.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_dac.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_dcsm.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_dma.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_ecap.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_emif.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_epwm.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_epwm_xbar.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_eqep.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_flash.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_gpio.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_i2c.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_input_xbar.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_ipc.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_mcbsp.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_memconfig.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_nmiintrupt.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_output_xbar.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_piectrl.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_pievect.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_sci.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_sdfm.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_spi.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_sysctrl.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_upp.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_xbar.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_xint.h
F2837xD_GlobalVariableDefs.obj: C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_can.h
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/source/F2837xD_GlobalVariableDefs.c:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_device.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.6.LTS/include/assert.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.6.LTS/include/linkage.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.6.LTS/include/stdarg.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.6.LTS/include/stdbool.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.6.LTS/include/stddef.h:
C:/ti/ccsv7/tools/compiler/ti-cgt-c2000_16.9.6.LTS/include/stdint.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_adc.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_analogsubsys.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_cla.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_cmpss.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_cputimer.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_dac.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_dcsm.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_dma.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_ecap.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_emif.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_epwm.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_epwm_xbar.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_eqep.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_flash.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_gpio.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_i2c.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_input_xbar.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_ipc.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_mcbsp.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_memconfig.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_nmiintrupt.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_output_xbar.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_piectrl.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_pievect.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_sci.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_sdfm.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_spi.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_sysctrl.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_upp.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_xbar.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_xint.h:
C:/ti/controlSUITE/device_support/F2837xD/v210/F2837xD_headers/include/F2837xD_can.h:
|
D
|
# FIXED
atan2PU.obj: C:/Users/a0272561/Repositories/cs30_controlsuite/libs/math/CLAmath/CLAMATH_VERSION/examples/2837x_atan2PU/cpu01/atan2PU.cla
atan2PU.obj: C:/Users/a0272561/Repositories/cs30_controlsuite/libs/math/CLAmath/CLAMATH_VERSION/include/CLAMath.h
atan2PU.obj: C:/Users/a0272561/Repositories/cs30_controlsuite/libs/math/CLAmath/CLAMATH_VERSION/examples/2837x_atan2PU/cpu01/CLAShared.h
C:/Users/a0272561/Repositories/cs30_controlsuite/libs/math/CLAmath/CLAMATH_VERSION/examples/2837x_atan2PU/cpu01/atan2PU.cla:
C:/Users/a0272561/Repositories/cs30_controlsuite/libs/math/CLAmath/CLAMATH_VERSION/include/CLAMath.h:
C:/Users/a0272561/Repositories/cs30_controlsuite/libs/math/CLAmath/CLAMATH_VERSION/examples/2837x_atan2PU/cpu01/CLAShared.h:
|
D
|
/**
* D header file to interface with the Linux epoll API (http://man7.org/linux/man-pages/man7/epoll.7.html).
* Available since Linux 2.6
*
* Copyright: Copyright Adil Baig 2012.
* License : $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Authors : Adil Baig (github.com/adilbaig)
*/
module core.sys.linux.epoll;
version (linux):
extern (C):
@system:
nothrow:
enum
{
EPOLL_CLOEXEC = 0x80000,
EPOLL_NONBLOCK = 0x800
}
enum
{
EPOLLIN = 0x001,
EPOLLPRI = 0x002,
EPOLLOUT = 0x004,
EPOLLRDNORM = 0x040,
EPOLLRDBAND = 0x080,
EPOLLWRNORM = 0x100,
EPOLLWRBAND = 0x200,
EPOLLMSG = 0x400,
EPOLLERR = 0x008,
EPOLLHUP = 0x010,
EPOLLRDHUP = 0x2000, // since Linux 2.6.17
EPOLLONESHOT = 1u << 30,
EPOLLET = 1u << 31
}
/* Valid opcodes ( "op" parameter ) to issue to epoll_ctl(). */
enum
{
EPOLL_CTL_ADD = 1, // Add a file descriptor to the interface.
EPOLL_CTL_DEL = 2, // Remove a file descriptor from the interface.
EPOLL_CTL_MOD = 3, // Change file descriptor epoll_event structure.
}
struct epoll_event
{
align(1):
uint events;
epoll_data_t data;
};
union epoll_data_t
{
void *ptr;
int fd;
uint u32;
ulong u64;
};
int epoll_create (int size);
int epoll_create1 (int flags);
int epoll_ctl (int epfd, int op, int fd, epoll_event *event);
int epoll_wait (int epfd, epoll_event *events, int maxevents, int timeout);
|
D
|
PLONG PLAT ED95 KD LOMAGAGE HIMAGAGE SLAT SLONG RESULTNO DP DM WT ROCKTYPE
322.100006 68 3.70000005 44.7999992 80 100 -36.4000015 149.899994 5723 6.0999999 6.0999999 0.510017938 sediments, redbeds
340 40 5 0 80 100 -33.7999992 150.699997 1768 10 10 0.497979734 intrusives
325 55 5 0 80 100 -33.9000015 151.300003 1766 10 10 0.497979734 intrusives, basalt
329.5 49.5 11.6000004 23.6000004 100 120 -23 150.5 8586 19.7000008 21.3999996 0.395771458 extrusives
330.100006 45.9000015 3.9000001 600 80 100 -33.7999992 150.800003 83 7.5999999 7.5999999 0.508382418 intrusives, breccia
307.200012 48.0999985 3.4000001 228.600006 80 100 -33.7000008 150.800003 82 6.19999981 6.19999981 0.512319131 intrusives, basalts, breccias
342.100006 57.7000008 19.5 40.7999992 80 100 -33.7999992 151.100006 87 35.5999985 35.5999985 0.239778679 intrusives, breccia
322.399994 60.7000008 8.19999981 35.2999992 90 110 -33.7999992 150.899994 85 13.3999996 13.3999996 0.480602712 intrusives, dolerite
317 54 8 63 80 100 -34.5 150.300003 8442 12.3999996 12.8999996 0.458714237 intrusives, dolerite
338.200012 55.2000008 5.9000001 238.800003 80 100 -35.2999992 150.399994 240 10.6000004 10.6000004 0.487780352 intrusives, porphyry
319.399994 59.0999985 2.29999995 300.799988 80 100 -33.7000008 151.100006 238 4.19999981 4.19999981 0.519156636 extrusives
328 45 10 30.8999996 100 120 -22.5 149.300003 8407 18 19 0.425368701 extrusives,intrusives
338 55.9000015 6.5 42 90 110 -35.2999992 150.5 766 11.6999998 12.3000002 0.505191955 intrusives, porphyry
335.600006 61 4 0 80 120 -31.1000004 152.5 7562 6.9000001 6.9000001 0.507534559 sediments, sandstones, siltstones
328.799988 50.7000008 8.19999981 0 80 120 -31.5 152.5 7560 15.3999996 15.3999996 0.455602712 extrusives, basalts
342.299988 68.5999985 5.9000001 131.600006 99 146 -30.9652004 142.628098 9341 8.19999981 9.89999962 0.484056948 sediments, sandstones
306.700012 57.4000015 7.69999981 76.0999985 80 100 -33.5999985 149 1106 12.8000002 14.1000004 0.463277622 sediments, extrusives
323.399994 57.2999992 1.89999998 642.900024 80 100 -33.5 151.5 1097 3.5999999 3.5999999 0.521004935 sediments, redbeds
140.800003 47.5999985 11.1000004 33.9000015 100 146 -9.30000019 125.599998 1210 10.1999998 15 0.391111636 sediments
346 61 9 41.2000008 35 100 -31.3999996 138.600006 1170 13 15 0.425327413 sediments
333 45 9 16.5 35 100 -30.3999996 139.399994 1161 17 18 0.425327413 sediments, tillite
317 57 5 200 35 100 -30.5 139.300003 1165 9 10 0.480672042 sediments, redbeds
329 58 25 4.0999999 35 100 -30.2000008 139 1166 41.5999985 45.5999985 0.132368412 sediments, sandstone, tillite
223 26 13 14.8000002 35 100 -30.2999992 139.5 1157 26 26 0.351146086 extrusives
318 56 5 47 90 100 -36.2999992 150 1848 9 9 0.522979734 intrusives
269 40 30.996521 0 50 300 -32.5999985 151.5 1868 0 0 0.0631177871 extrusives, andesites
102 19.8999996 21.7000008 18.7999992 65 245 -32 116 1944 28.1000004 28.1000004 0.181151537 intrusives
341 49 6.4000001 142 90 105 -33.4000015 115.599998 1932 10 10 0.523165376 extrusives, basalts
331 23 4.80000019 81 100 160 -34 151 1594 9.30000019 9.39999962 0.483377648 intrusives
324 51 3.29999995 960 65 100 -34 151 1591 6.0999999 6.4000001 0.502330951 intrusives
272 66 4.80000019 191 60 100 -33.7000008 151.100006 1592 5.80000019 7.4000001 0.487544315 intrusives
|
D
|
/**
* Compiler implementation of the
* $(LINK2 http://www.dlang.org, D programming language).
*
* Copyright: Copyright (c) 1999-2016 by Digital Mars, All Rights Reserved
* Authors: $(LINK2 http://www.digitalmars.com, Walter Bright)
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(DMDSRC _mtype.d)
*/
module ddmd.mtype;
import core.checkedint;
import core.stdc.stdarg;
import core.stdc.stdio;
import core.stdc.stdlib;
import core.stdc.string;
import ddmd.access;
import ddmd.aggregate;
import ddmd.aliasthis;
import ddmd.arrayop;
import ddmd.arraytypes;
import ddmd.gluelayer;
import ddmd.complex;
import ddmd.dcast;
import ddmd.dclass;
import ddmd.declaration;
import ddmd.denum;
import ddmd.dimport;
import ddmd.dmangle;
import ddmd.dscope;
import ddmd.dstruct;
import ddmd.dsymbol;
import ddmd.dtemplate;
import ddmd.errors;
import ddmd.expression;
import ddmd.func;
import ddmd.globals;
import ddmd.hdrgen;
import ddmd.id;
import ddmd.identifier;
import ddmd.imphint;
import ddmd.init;
import ddmd.opover;
import ddmd.root.ctfloat;
import ddmd.root.outbuffer;
import ddmd.root.rmem;
import ddmd.root.rootobject;
import ddmd.root.stringtable;
import ddmd.sideeffect;
import ddmd.target;
import ddmd.tokens;
import ddmd.visitor;
enum LOGDOTEXP = 0; // log ::dotExp()
enum LOGDEFAULTINIT = 0; // log ::defaultInit()
extern (C++) __gshared int Tsize_t = Tuns32;
extern (C++) __gshared int Tptrdiff_t = Tint32;
enum SIZE_INVALID = (~cast(d_uns64)0); // error return from size() functions
/***************************
* Return !=0 if modfrom can be implicitly converted to modto
*/
bool MODimplicitConv(MOD modfrom, MOD modto) pure nothrow @nogc @safe
{
if (modfrom == modto)
return true;
//printf("MODimplicitConv(from = %x, to = %x)\n", modfrom, modto);
auto X(T, U)(T m, U n)
{
return ((m << 4) | n);
}
switch (X(modfrom & ~MODshared, modto & ~MODshared))
{
case X(0, MODconst):
case X(MODwild, MODconst):
case X(MODwild, MODwildconst):
case X(MODwildconst, MODconst):
return (modfrom & MODshared) == (modto & MODshared);
case X(MODimmutable, MODconst):
case X(MODimmutable, MODwildconst):
return true;
default:
return false;
}
}
/***************************
* Return MATCHexact or MATCHconst if a method of type '() modfrom' can call a method of type '() modto'.
*/
MATCH MODmethodConv(MOD modfrom, MOD modto) pure nothrow @nogc @safe
{
if (modfrom == modto)
return MATCHexact;
if (MODimplicitConv(modfrom, modto))
return MATCHconst;
auto X(T, U)(T m, U n)
{
return ((m << 4) | n);
}
switch (X(modfrom, modto))
{
case X(0, MODwild):
case X(MODimmutable, MODwild):
case X(MODconst, MODwild):
case X(MODwildconst, MODwild):
case X(MODshared, MODshared | MODwild):
case X(MODshared | MODimmutable, MODshared | MODwild):
case X(MODshared | MODconst, MODshared | MODwild):
case X(MODshared | MODwildconst, MODshared | MODwild):
return MATCHconst;
default:
return MATCHnomatch;
}
}
/***************************
* Merge mod bits to form common mod.
*/
MOD MODmerge(MOD mod1, MOD mod2) pure nothrow @nogc @safe
{
if (mod1 == mod2)
return mod1;
//printf("MODmerge(1 = %x, 2 = %x)\n", mod1, mod2);
MOD result = 0;
if ((mod1 | mod2) & MODshared)
{
// If either type is shared, the result will be shared
result |= MODshared;
mod1 &= ~MODshared;
mod2 &= ~MODshared;
}
if (mod1 == 0 || mod1 == MODmutable || mod1 == MODconst || mod2 == 0 || mod2 == MODmutable || mod2 == MODconst)
{
// If either type is mutable or const, the result will be const.
result |= MODconst;
}
else
{
// MODimmutable vs MODwild
// MODimmutable vs MODwildconst
// MODwild vs MODwildconst
assert(mod1 & MODwild || mod2 & MODwild);
result |= MODwildconst;
}
return result;
}
/*********************************
* Store modifier name into buf.
*/
void MODtoBuffer(OutBuffer* buf, MOD mod)
{
switch (mod)
{
case 0:
break;
case MODimmutable:
buf.writestring(Token.toString(TOKimmutable));
break;
case MODshared:
buf.writestring(Token.toString(TOKshared));
break;
case MODshared | MODconst:
buf.writestring(Token.toString(TOKshared));
buf.writeByte(' ');
goto case; /+ fall through +/
case MODconst:
buf.writestring(Token.toString(TOKconst));
break;
case MODshared | MODwild:
buf.writestring(Token.toString(TOKshared));
buf.writeByte(' ');
goto case; /+ fall through +/
case MODwild:
buf.writestring(Token.toString(TOKwild));
break;
case MODshared | MODwildconst:
buf.writestring(Token.toString(TOKshared));
buf.writeByte(' ');
goto case; /+ fall through +/
case MODwildconst:
buf.writestring(Token.toString(TOKwild));
buf.writeByte(' ');
buf.writestring(Token.toString(TOKconst));
break;
default:
assert(0);
}
}
/*********************************
* Return modifier name.
*/
char* MODtoChars(MOD mod)
{
OutBuffer buf;
buf.reserve(16);
MODtoBuffer(&buf, mod);
return buf.extractString();
}
/************************************
* Convert MODxxxx to STCxxx
*/
StorageClass ModToStc(uint mod) pure nothrow @nogc @safe
{
StorageClass stc = 0;
if (mod & MODimmutable)
stc |= STCimmutable;
if (mod & MODconst)
stc |= STCconst;
if (mod & MODwild)
stc |= STCwild;
if (mod & MODshared)
stc |= STCshared;
return stc;
}
/************************************
* Strip all parameter's idenfiers and their default arguments for merging types.
* If some of parameter types or return type are function pointer, delegate, or
* the types which contains either, then strip also from them.
*/
private Type stripDefaultArgs(Type t)
{
static Parameters* stripParams(Parameters* parameters)
{
Parameters* params = parameters;
if (params && params.dim > 0)
{
foreach (i; 0 .. params.dim)
{
Parameter p = (*params)[i];
Type ta = stripDefaultArgs(p.type);
if (ta != p.type || p.defaultArg || p.ident)
{
if (params == parameters)
{
params = new Parameters();
params.setDim(parameters.dim);
foreach (j; 0 .. params.dim)
(*params)[j] = (*parameters)[j];
}
(*params)[i] = new Parameter(p.storageClass, ta, null, null);
}
}
}
return params;
}
if (t is null)
return t;
if (t.ty == Tfunction)
{
TypeFunction tf = cast(TypeFunction)t;
Type tret = stripDefaultArgs(tf.next);
Parameters* params = stripParams(tf.parameters);
if (tret == tf.next && params == tf.parameters)
goto Lnot;
tf = cast(TypeFunction)tf.copy();
tf.parameters = params;
tf.next = tret;
//printf("strip %s\n <- %s\n", tf->toChars(), t->toChars());
t = tf;
}
else if (t.ty == Ttuple)
{
TypeTuple tt = cast(TypeTuple)t;
Parameters* args = stripParams(tt.arguments);
if (args == tt.arguments)
goto Lnot;
t = t.copy();
(cast(TypeTuple)t).arguments = args;
}
else if (t.ty == Tenum)
{
// TypeEnum::nextOf() may be != NULL, but it's not necessary here.
goto Lnot;
}
else
{
Type tn = t.nextOf();
Type n = stripDefaultArgs(tn);
if (n == tn)
goto Lnot;
t = t.copy();
(cast(TypeNext)t).next = n;
}
//printf("strip %s\n", t->toChars());
Lnot:
return t;
}
enum TFLAGSintegral = 1;
enum TFLAGSfloating = 2;
enum TFLAGSunsigned = 4;
enum TFLAGSreal = 8;
enum TFLAGSimaginary = 0x10;
enum TFLAGScomplex = 0x20;
private Expression semanticLength(Scope* sc, TupleDeclaration tup, Expression exp)
{
ScopeDsymbol sym = new ArrayScopeSymbol(sc, tup);
sym.parent = sc.scopesym;
sc = sc.push(sym);
sc = sc.startCTFE();
exp = exp.semantic(sc);
sc = sc.endCTFE();
sc.pop();
return exp;
}
/**************************
* This evaluates exp while setting length to be the number
* of elements in the tuple t.
*/
private Expression semanticLength(Scope* sc, Type t, Expression exp)
{
if (t.ty == Ttuple)
{
ScopeDsymbol sym = new ArrayScopeSymbol(sc, cast(TypeTuple)t);
sym.parent = sc.scopesym;
sc = sc.push(sym);
sc = sc.startCTFE();
exp = exp.semantic(sc);
sc = sc.endCTFE();
sc.pop();
}
else
{
sc = sc.startCTFE();
exp = exp.semantic(sc);
sc = sc.endCTFE();
}
return exp;
}
enum ENUMTY : int
{
Tarray, // slice array, aka T[]
Tsarray, // static array, aka T[dimension]
Taarray, // associative array, aka T[type]
Tpointer,
Treference,
Tfunction,
Tident,
Tclass,
Tstruct,
Tenum,
Tdelegate,
Tnone,
Tvoid,
Tint8,
Tuns8,
Tint16,
Tuns16,
Tint32,
Tuns32,
Tint64,
Tuns64,
Tfloat32,
Tfloat64,
Tfloat80,
Timaginary32,
Timaginary64,
Timaginary80,
Tcomplex32,
Tcomplex64,
Tcomplex80,
Tbool,
Tchar,
Twchar,
Tdchar,
Terror,
Tinstance,
Ttypeof,
Ttuple,
Tslice,
Treturn,
Tnull,
Tvector,
Tint128,
Tuns128,
TMAX,
}
alias Tarray = ENUMTY.Tarray;
alias Tsarray = ENUMTY.Tsarray;
alias Taarray = ENUMTY.Taarray;
alias Tpointer = ENUMTY.Tpointer;
alias Treference = ENUMTY.Treference;
alias Tfunction = ENUMTY.Tfunction;
alias Tident = ENUMTY.Tident;
alias Tclass = ENUMTY.Tclass;
alias Tstruct = ENUMTY.Tstruct;
alias Tenum = ENUMTY.Tenum;
alias Tdelegate = ENUMTY.Tdelegate;
alias Tnone = ENUMTY.Tnone;
alias Tvoid = ENUMTY.Tvoid;
alias Tint8 = ENUMTY.Tint8;
alias Tuns8 = ENUMTY.Tuns8;
alias Tint16 = ENUMTY.Tint16;
alias Tuns16 = ENUMTY.Tuns16;
alias Tint32 = ENUMTY.Tint32;
alias Tuns32 = ENUMTY.Tuns32;
alias Tint64 = ENUMTY.Tint64;
alias Tuns64 = ENUMTY.Tuns64;
alias Tfloat32 = ENUMTY.Tfloat32;
alias Tfloat64 = ENUMTY.Tfloat64;
alias Tfloat80 = ENUMTY.Tfloat80;
alias Timaginary32 = ENUMTY.Timaginary32;
alias Timaginary64 = ENUMTY.Timaginary64;
alias Timaginary80 = ENUMTY.Timaginary80;
alias Tcomplex32 = ENUMTY.Tcomplex32;
alias Tcomplex64 = ENUMTY.Tcomplex64;
alias Tcomplex80 = ENUMTY.Tcomplex80;
alias Tbool = ENUMTY.Tbool;
alias Tchar = ENUMTY.Tchar;
alias Twchar = ENUMTY.Twchar;
alias Tdchar = ENUMTY.Tdchar;
alias Terror = ENUMTY.Terror;
alias Tinstance = ENUMTY.Tinstance;
alias Ttypeof = ENUMTY.Ttypeof;
alias Ttuple = ENUMTY.Ttuple;
alias Tslice = ENUMTY.Tslice;
alias Treturn = ENUMTY.Treturn;
alias Tnull = ENUMTY.Tnull;
alias Tvector = ENUMTY.Tvector;
alias Tint128 = ENUMTY.Tint128;
alias Tuns128 = ENUMTY.Tuns128;
alias TMAX = ENUMTY.TMAX;
alias TY = ubyte;
enum MODFlags : int
{
MODconst = 1, // type is const
MODimmutable = 4, // type is immutable
MODshared = 2, // type is shared
MODwild = 8, // type is wild
MODwildconst = (MODwild | MODconst), // type is wild const
MODmutable = 0x10, // type is mutable (only used in wildcard matching)
}
alias MODconst = MODFlags.MODconst;
alias MODimmutable = MODFlags.MODimmutable;
alias MODshared = MODFlags.MODshared;
alias MODwild = MODFlags.MODwild;
alias MODwildconst = MODFlags.MODwildconst;
alias MODmutable = MODFlags.MODmutable;
alias MOD = ubyte;
/***********************************************************
*/
extern (C++) abstract class Type : RootObject
{
TY ty;
MOD mod; // modifiers MODxxxx
char* deco;
/* These are cached values that are lazily evaluated by constOf(), immutableOf(), etc.
* They should not be referenced by anybody but mtype.c.
* They can be NULL if not lazily evaluated yet.
* Note that there is no "shared immutable", because that is just immutable
* Naked == no MOD bits
*/
Type cto; // MODconst ? naked version of this type : const version
Type ito; // MODimmutable ? naked version of this type : immutable version
Type sto; // MODshared ? naked version of this type : shared mutable version
Type scto; // MODshared | MODconst ? naked version of this type : shared const version
Type wto; // MODwild ? naked version of this type : wild version
Type wcto; // MODwildconst ? naked version of this type : wild const version
Type swto; // MODshared | MODwild ? naked version of this type : shared wild version
Type swcto; // MODshared | MODwildconst ? naked version of this type : shared wild const version
Type pto; // merged pointer to this type
Type rto; // reference to this type
Type arrayof; // array of this type
TypeInfoDeclaration vtinfo; // TypeInfo object for this Type
type* ctype; // for back end
extern (C++) static __gshared Type tvoid;
extern (C++) static __gshared Type tint8;
extern (C++) static __gshared Type tuns8;
extern (C++) static __gshared Type tint16;
extern (C++) static __gshared Type tuns16;
extern (C++) static __gshared Type tint32;
extern (C++) static __gshared Type tuns32;
extern (C++) static __gshared Type tint64;
extern (C++) static __gshared Type tuns64;
extern (C++) static __gshared Type tint128;
extern (C++) static __gshared Type tuns128;
extern (C++) static __gshared Type tfloat32;
extern (C++) static __gshared Type tfloat64;
extern (C++) static __gshared Type tfloat80;
extern (C++) static __gshared Type timaginary32;
extern (C++) static __gshared Type timaginary64;
extern (C++) static __gshared Type timaginary80;
extern (C++) static __gshared Type tcomplex32;
extern (C++) static __gshared Type tcomplex64;
extern (C++) static __gshared Type tcomplex80;
extern (C++) static __gshared Type tbool;
extern (C++) static __gshared Type tchar;
extern (C++) static __gshared Type twchar;
extern (C++) static __gshared Type tdchar;
// Some special types
extern (C++) static __gshared Type tshiftcnt;
extern (C++) static __gshared Type tvoidptr; // void*
extern (C++) static __gshared Type tstring; // immutable(char)[]
extern (C++) static __gshared Type twstring; // immutable(wchar)[]
extern (C++) static __gshared Type tdstring; // immutable(dchar)[]
extern (C++) static __gshared Type tvalist; // va_list alias
extern (C++) static __gshared Type terror; // for error recovery
extern (C++) static __gshared Type tnull; // for null type
extern (C++) static __gshared Type tsize_t; // matches size_t alias
extern (C++) static __gshared Type tptrdiff_t; // matches ptrdiff_t alias
extern (C++) static __gshared Type thash_t; // matches hash_t alias
extern (C++) static __gshared ClassDeclaration dtypeinfo;
extern (C++) static __gshared ClassDeclaration typeinfoclass;
extern (C++) static __gshared ClassDeclaration typeinfointerface;
extern (C++) static __gshared ClassDeclaration typeinfostruct;
extern (C++) static __gshared ClassDeclaration typeinfopointer;
extern (C++) static __gshared ClassDeclaration typeinfoarray;
extern (C++) static __gshared ClassDeclaration typeinfostaticarray;
extern (C++) static __gshared ClassDeclaration typeinfoassociativearray;
extern (C++) static __gshared ClassDeclaration typeinfovector;
extern (C++) static __gshared ClassDeclaration typeinfoenum;
extern (C++) static __gshared ClassDeclaration typeinfofunction;
extern (C++) static __gshared ClassDeclaration typeinfodelegate;
extern (C++) static __gshared ClassDeclaration typeinfotypelist;
extern (C++) static __gshared ClassDeclaration typeinfoconst;
extern (C++) static __gshared ClassDeclaration typeinfoinvariant;
extern (C++) static __gshared ClassDeclaration typeinfoshared;
extern (C++) static __gshared ClassDeclaration typeinfowild;
extern (C++) static __gshared TemplateDeclaration rtinfo;
extern (C++) static __gshared Type[TMAX] basic;
extern (C++) static __gshared StringTable stringtable;
extern (C++) static __gshared ubyte[TMAX] sizeTy = ()
{
ubyte[TMAX] sizeTy = __traits(classInstanceSize, TypeBasic);
sizeTy[Tsarray] = __traits(classInstanceSize, TypeSArray);
sizeTy[Tarray] = __traits(classInstanceSize, TypeDArray);
sizeTy[Taarray] = __traits(classInstanceSize, TypeAArray);
sizeTy[Tpointer] = __traits(classInstanceSize, TypePointer);
sizeTy[Treference] = __traits(classInstanceSize, TypeReference);
sizeTy[Tfunction] = __traits(classInstanceSize, TypeFunction);
sizeTy[Tdelegate] = __traits(classInstanceSize, TypeDelegate);
sizeTy[Tident] = __traits(classInstanceSize, TypeIdentifier);
sizeTy[Tinstance] = __traits(classInstanceSize, TypeInstance);
sizeTy[Ttypeof] = __traits(classInstanceSize, TypeTypeof);
sizeTy[Tenum] = __traits(classInstanceSize, TypeEnum);
sizeTy[Tstruct] = __traits(classInstanceSize, TypeStruct);
sizeTy[Tclass] = __traits(classInstanceSize, TypeClass);
sizeTy[Ttuple] = __traits(classInstanceSize, TypeTuple);
sizeTy[Tslice] = __traits(classInstanceSize, TypeSlice);
sizeTy[Treturn] = __traits(classInstanceSize, TypeReturn);
sizeTy[Terror] = __traits(classInstanceSize, TypeError);
sizeTy[Tnull] = __traits(classInstanceSize, TypeNull);
sizeTy[Tvector] = __traits(classInstanceSize, TypeVector);
return sizeTy;
}();
final extern (D) this(TY ty)
{
this.ty = ty;
}
const(char)* kind() const
{
assert(false); // should be overridden
}
final Type copy()
{
Type t = cast(Type)mem.xmalloc(sizeTy[ty]);
memcpy(cast(void*)t, cast(void*)this, sizeTy[ty]);
return t;
}
Type syntaxCopy()
{
print();
fprintf(stderr, "ty = %d\n", ty);
assert(0);
}
override bool equals(RootObject o)
{
Type t = cast(Type)o;
//printf("Type::equals(%s, %s)\n", toChars(), t->toChars());
// deco strings are unique
// and semantic() has been run
if (this == o || ((t && deco == t.deco) && deco !is null))
{
//printf("deco = '%s', t->deco = '%s'\n", deco, t->deco);
return true;
}
//if (deco && t && t->deco) printf("deco = '%s', t->deco = '%s'\n", deco, t->deco);
return false;
}
final bool equivalent(Type t)
{
return immutableOf().equals(t.immutableOf());
}
// kludge for template.isType()
override final int dyncast()
{
return DYNCAST_TYPE;
}
/*******************************
* Covariant means that 'this' can substitute for 't',
* i.e. a pure function is a match for an impure type.
* Returns:
* 0 types are distinct
* 1 this is covariant with t
* 2 arguments match as far as overloading goes,
* but types are not covariant
* 3 cannot determine covariance because of forward references
* *pstc STCxxxx which would make it covariant
*/
final int covariant(Type t, StorageClass* pstc = null)
{
version (none)
{
printf("Type::covariant(t = %s) %s\n", t.toChars(), toChars());
printf("deco = %p, %p\n", deco, t.deco);
// printf("ty = %d\n", next->ty);
printf("mod = %x, %x\n", mod, t.mod);
}
if (pstc)
*pstc = 0;
StorageClass stc = 0;
int inoutmismatch = 0;
TypeFunction t1;
TypeFunction t2;
if (equals(t))
return 1; // covariant
if (ty != Tfunction || t.ty != Tfunction)
goto Ldistinct;
t1 = cast(TypeFunction)this;
t2 = cast(TypeFunction)t;
if (t1.varargs != t2.varargs)
goto Ldistinct;
if (t1.parameters && t2.parameters)
{
size_t dim = Parameter.dim(t1.parameters);
if (dim != Parameter.dim(t2.parameters))
goto Ldistinct;
for (size_t i = 0; i < dim; i++)
{
Parameter fparam1 = Parameter.getNth(t1.parameters, i);
Parameter fparam2 = Parameter.getNth(t2.parameters, i);
if (!fparam1.type.equals(fparam2.type))
{
goto Ldistinct;
}
const(StorageClass) sc = STCref | STCin | STCout | STClazy;
if ((fparam1.storageClass & sc) != (fparam2.storageClass & sc))
inoutmismatch = 1;
// We can add scope, but not subtract it
if (!(fparam1.storageClass & STCscope) && (fparam2.storageClass & STCscope))
inoutmismatch = 1;
// We can subtract return, but not add it
if ((fparam1.storageClass & STCreturn) && !(fparam2.storageClass & STCreturn))
inoutmismatch = 1;
}
}
else if (t1.parameters != t2.parameters)
{
size_t dim1 = !t1.parameters ? 0 : t1.parameters.dim;
size_t dim2 = !t2.parameters ? 0 : t2.parameters.dim;
if (dim1 || dim2)
goto Ldistinct;
}
// The argument lists match
if (inoutmismatch)
goto Lnotcovariant;
if (t1.linkage != t2.linkage)
goto Lnotcovariant;
{
// Return types
Type t1n = t1.next;
Type t2n = t2.next;
if (!t1n || !t2n) // happens with return type inference
goto Lnotcovariant;
if (t1n.equals(t2n))
goto Lcovariant;
if (t1n.ty == Tclass && t2n.ty == Tclass)
{
/* If same class type, but t2n is const, then it's
* covariant. Do this test first because it can work on
* forward references.
*/
if ((cast(TypeClass)t1n).sym == (cast(TypeClass)t2n).sym && MODimplicitConv(t1n.mod, t2n.mod))
goto Lcovariant;
// If t1n is forward referenced:
ClassDeclaration cd = (cast(TypeClass)t1n).sym;
if (cd._scope)
cd.semantic(null);
if (!cd.isBaseInfoComplete())
{
return 3; // forward references
}
}
if (t1n.ty == Tstruct && t2n.ty == Tstruct)
{
if ((cast(TypeStruct)t1n).sym == (cast(TypeStruct)t2n).sym && MODimplicitConv(t1n.mod, t2n.mod))
goto Lcovariant;
}
else if (t1n.ty == t2n.ty && t1n.implicitConvTo(t2n))
goto Lcovariant;
else if (t1n.ty == Tnull && t1n.implicitConvTo(t2n) && t1n.size() == t2n.size())
goto Lcovariant;
}
goto Lnotcovariant;
Lcovariant:
if (t1.isref != t2.isref)
goto Lnotcovariant;
// We can subtract 'return' from 'this', but cannot add it
if (t1.isreturn && !t2.isreturn)
goto Lnotcovariant;
/* Can convert mutable to const
*/
if (!MODimplicitConv(t2.mod, t1.mod))
{
version (none)
{
//stop attribute inference with const
// If adding 'const' will make it covariant
if (MODimplicitConv(t2.mod, MODmerge(t1.mod, MODconst)))
stc |= STCconst;
else
goto Lnotcovariant;
}
else
{
goto Ldistinct;
}
}
/* Can convert pure to impure, nothrow to throw, and nogc to gc
*/
if (!t1.purity && t2.purity)
stc |= STCpure;
if (!t1.isnothrow && t2.isnothrow)
stc |= STCnothrow;
if (!t1.isnogc && t2.isnogc)
stc |= STCnogc;
/* Can convert safe/trusted to system
*/
if (t1.trust <= TRUSTsystem && t2.trust >= TRUSTtrusted)
{
// Should we infer trusted or safe? Go with safe.
stc |= STCsafe;
}
if (stc)
{
if (pstc)
*pstc = stc;
goto Lnotcovariant;
}
//printf("\tcovaraint: 1\n");
return 1;
Ldistinct:
//printf("\tcovaraint: 0\n");
return 0;
Lnotcovariant:
//printf("\tcovaraint: 2\n");
return 2;
}
/********************************
* For pretty-printing a type.
*/
final override const(char)* toChars()
{
OutBuffer buf;
buf.reserve(16);
HdrGenState hgs;
hgs.fullQual = (ty == Tclass && !mod);
.toCBuffer(this, &buf, null, &hgs);
return buf.extractString();
}
final char* toPrettyChars(bool QualifyTypes = false)
{
OutBuffer buf;
buf.reserve(16);
HdrGenState hgs;
hgs.fullQual = QualifyTypes;
.toCBuffer(this, &buf, null, &hgs);
return buf.extractString();
}
static void _init()
{
stringtable._init(14000);
// Set basic types
static __gshared TY* basetab =
[
Tvoid,
Tint8,
Tuns8,
Tint16,
Tuns16,
Tint32,
Tuns32,
Tint64,
Tuns64,
Tint128,
Tuns128,
Tfloat32,
Tfloat64,
Tfloat80,
Timaginary32,
Timaginary64,
Timaginary80,
Tcomplex32,
Tcomplex64,
Tcomplex80,
Tbool,
Tchar,
Twchar,
Tdchar,
Terror
];
for (size_t i = 0; basetab[i] != Terror; i++)
{
Type t = new TypeBasic(basetab[i]);
t = t.merge();
basic[basetab[i]] = t;
}
basic[Terror] = new TypeError();
tvoid = basic[Tvoid];
tint8 = basic[Tint8];
tuns8 = basic[Tuns8];
tint16 = basic[Tint16];
tuns16 = basic[Tuns16];
tint32 = basic[Tint32];
tuns32 = basic[Tuns32];
tint64 = basic[Tint64];
tuns64 = basic[Tuns64];
tint128 = basic[Tint128];
tuns128 = basic[Tuns128];
tfloat32 = basic[Tfloat32];
tfloat64 = basic[Tfloat64];
tfloat80 = basic[Tfloat80];
timaginary32 = basic[Timaginary32];
timaginary64 = basic[Timaginary64];
timaginary80 = basic[Timaginary80];
tcomplex32 = basic[Tcomplex32];
tcomplex64 = basic[Tcomplex64];
tcomplex80 = basic[Tcomplex80];
tbool = basic[Tbool];
tchar = basic[Tchar];
twchar = basic[Twchar];
tdchar = basic[Tdchar];
tshiftcnt = tint32;
terror = basic[Terror];
tnull = basic[Tnull];
tnull = new TypeNull();
tnull.deco = tnull.merge().deco;
tvoidptr = tvoid.pointerTo();
tstring = tchar.immutableOf().arrayOf();
twstring = twchar.immutableOf().arrayOf();
tdstring = tdchar.immutableOf().arrayOf();
tvalist = Target.va_listType();
if (global.params.isLP64)
{
Tsize_t = Tuns64;
Tptrdiff_t = Tint64;
}
else
{
Tsize_t = Tuns32;
Tptrdiff_t = Tint32;
}
tsize_t = basic[Tsize_t];
tptrdiff_t = basic[Tptrdiff_t];
thash_t = tsize_t;
}
final d_uns64 size()
{
return size(Loc());
}
d_uns64 size(Loc loc)
{
error(loc, "no size for type %s", toChars());
return SIZE_INVALID;
}
uint alignsize()
{
return cast(uint)size(Loc());
}
Type semantic(Loc loc, Scope* sc)
{
if (ty == Tint128 || ty == Tuns128)
{
error(loc, "cent and ucent types not implemented");
return terror;
}
return merge();
}
final Type trySemantic(Loc loc, Scope* sc)
{
//printf("+trySemantic(%s) %d\n", toChars(), global.errors);
uint errors = global.startGagging();
Type t = semantic(loc, sc);
if (global.endGagging(errors) || t.ty == Terror) // if any errors happened
{
t = null;
}
//printf("-trySemantic(%s) %d\n", toChars(), global.errors);
return t;
}
/************************************
*/
final Type merge()
{
if (ty == Terror)
return this;
if (ty == Ttypeof)
return this;
if (ty == Tident)
return this;
if (ty == Tinstance)
return this;
if (ty == Taarray && !(cast(TypeAArray)this).index.merge().deco)
return this;
if (ty != Tenum && nextOf() && !nextOf().deco)
return this;
//printf("merge(%s)\n", toChars());
Type t = this;
assert(t);
if (!deco)
{
OutBuffer buf;
buf.reserve(32);
mangleToBuffer(this, &buf);
StringValue* sv = stringtable.update(cast(char*)buf.data, buf.offset);
if (sv.ptrvalue)
{
t = cast(Type)sv.ptrvalue;
debug
{
if (!t.deco)
printf("t = %s\n", t.toChars());
}
assert(t.deco);
//printf("old value, deco = '%s' %p\n", t->deco, t->deco);
}
else
{
sv.ptrvalue = cast(char*)(t = stripDefaultArgs(t));
deco = t.deco = cast(char*)sv.toDchars();
//printf("new value, deco = '%s' %p\n", t->deco, t->deco);
}
}
return t;
}
/*************************************
* This version does a merge even if the deco is already computed.
* Necessary for types that have a deco, but are not merged.
*/
final Type merge2()
{
//printf("merge2(%s)\n", toChars());
Type t = this;
assert(t);
if (!t.deco)
return t.merge();
StringValue* sv = stringtable.lookup(t.deco, strlen(t.deco));
if (sv && sv.ptrvalue)
{
t = cast(Type)sv.ptrvalue;
assert(t.deco);
}
else
assert(0);
return t;
}
/*********************************
* Store this type's modifier name into buf.
*/
final void modToBuffer(OutBuffer* buf)
{
if (mod)
{
buf.writeByte(' ');
MODtoBuffer(buf, mod);
}
}
/*********************************
* Return this type's modifier name.
*/
final char* modToChars()
{
OutBuffer buf;
buf.reserve(16);
modToBuffer(&buf);
return buf.extractString();
}
/** For each active modifier (MODconst, MODimmutable, etc) call fp with a
void* for the work param and a string representation of the attribute. */
final int modifiersApply(void* param, int function(void*, const(char)*) fp)
{
immutable ubyte[4] modsArr = [MODconst, MODimmutable, MODwild, MODshared];
foreach (modsarr; modsArr)
{
if (mod & modsarr)
{
if (int res = fp(param, MODtoChars(modsarr)))
return res;
}
}
return 0;
}
bool isintegral()
{
return false;
}
// real, imaginary, or complex
bool isfloating()
{
return false;
}
bool isreal()
{
return false;
}
bool isimaginary()
{
return false;
}
bool iscomplex()
{
return false;
}
bool isscalar()
{
return false;
}
bool isunsigned()
{
return false;
}
bool isscope()
{
return false;
}
bool isString()
{
return false;
}
/**************************
* When T is mutable,
* Given:
* T a, b;
* Can we bitwise assign:
* a = b;
* ?
*/
bool isAssignable()
{
return true;
}
/**************************
* Returns true if T can be converted to boolean value.
*/
bool isBoolean()
{
return isscalar();
}
/*********************************
* Check type to see if it is based on a deprecated symbol.
*/
void checkDeprecated(Loc loc, Scope* sc)
{
Dsymbol s = toDsymbol(sc);
if (s)
s.checkDeprecated(loc, sc);
}
final bool isConst() const
{
return (mod & MODconst) != 0;
}
final bool isImmutable() const
{
return (mod & MODimmutable) != 0;
}
final bool isMutable() const
{
return (mod & (MODconst | MODimmutable | MODwild)) == 0;
}
final bool isShared() const
{
return (mod & MODshared) != 0;
}
final bool isSharedConst() const
{
return (mod & (MODshared | MODconst)) == (MODshared | MODconst);
}
final bool isWild() const
{
return (mod & MODwild) != 0;
}
final bool isWildConst() const
{
return (mod & MODwildconst) == MODwildconst;
}
final bool isSharedWild() const
{
return (mod & (MODshared | MODwild)) == (MODshared | MODwild);
}
final bool isNaked() const
{
return mod == 0;
}
/********************************
* Return a copy of this type with all attributes null-initialized.
* Useful for creating a type with different modifiers.
*/
final Type nullAttributes()
{
uint sz = sizeTy[ty];
Type t = cast(Type)mem.xmalloc(sz);
memcpy(cast(void*)t, cast(void*)this, sz);
// t->mod = NULL; // leave mod unchanged
t.deco = null;
t.arrayof = null;
t.pto = null;
t.rto = null;
t.cto = null;
t.ito = null;
t.sto = null;
t.scto = null;
t.wto = null;
t.wcto = null;
t.swto = null;
t.swcto = null;
t.vtinfo = null;
t.ctype = null;
if (t.ty == Tstruct)
(cast(TypeStruct)t).att = RECfwdref;
if (t.ty == Tclass)
(cast(TypeClass)t).att = RECfwdref;
return t;
}
/********************************
* Convert to 'const'.
*/
final Type constOf()
{
//printf("Type::constOf() %p %s\n", this, toChars());
if (mod == MODconst)
return this;
if (cto)
{
assert(cto.mod == MODconst);
return cto;
}
Type t = makeConst();
t = t.merge();
t.fixTo(this);
//printf("-Type::constOf() %p %s\n", t, t->toChars());
return t;
}
/********************************
* Convert to 'immutable'.
*/
final Type immutableOf()
{
//printf("Type::immutableOf() %p %s\n", this, toChars());
if (isImmutable())
return this;
if (ito)
{
assert(ito.isImmutable());
return ito;
}
Type t = makeImmutable();
t = t.merge();
t.fixTo(this);
//printf("\t%p\n", t);
return t;
}
/********************************
* Make type mutable.
*/
final Type mutableOf()
{
//printf("Type::mutableOf() %p, %s\n", this, toChars());
Type t = this;
if (isImmutable())
{
t = ito; // immutable => naked
assert(!t || (t.isMutable() && !t.isShared()));
}
else if (isConst())
{
if (isShared())
{
if (isWild())
t = swcto; // shared wild const -> shared
else
t = sto; // shared const => shared
}
else
{
if (isWild())
t = wcto; // wild const -> naked
else
t = cto; // const => naked
}
assert(!t || t.isMutable());
}
else if (isWild())
{
if (isShared())
t = sto; // shared wild => shared
else
t = wto; // wild => naked
assert(!t || t.isMutable());
}
if (!t)
{
t = makeMutable();
t = t.merge();
t.fixTo(this);
}
else
t = t.merge();
assert(t.isMutable());
return t;
}
final Type sharedOf()
{
//printf("Type::sharedOf() %p, %s\n", this, toChars());
if (mod == MODshared)
return this;
if (sto)
{
assert(sto.mod == MODshared);
return sto;
}
Type t = makeShared();
t = t.merge();
t.fixTo(this);
//printf("\t%p\n", t);
return t;
}
final Type sharedConstOf()
{
//printf("Type::sharedConstOf() %p, %s\n", this, toChars());
if (mod == (MODshared | MODconst))
return this;
if (scto)
{
assert(scto.mod == (MODshared | MODconst));
return scto;
}
Type t = makeSharedConst();
t = t.merge();
t.fixTo(this);
//printf("\t%p\n", t);
return t;
}
/********************************
* Make type unshared.
* 0 => 0
* const => const
* immutable => immutable
* shared => 0
* shared const => const
* wild => wild
* wild const => wild const
* shared wild => wild
* shared wild const => wild const
*/
final Type unSharedOf()
{
//printf("Type::unSharedOf() %p, %s\n", this, toChars());
Type t = this;
if (isShared())
{
if (isWild())
{
if (isConst())
t = wcto; // shared wild const => wild const
else
t = wto; // shared wild => wild
}
else
{
if (isConst())
t = cto; // shared const => const
else
t = sto; // shared => naked
}
assert(!t || !t.isShared());
}
if (!t)
{
t = this.nullAttributes();
t.mod = mod & ~MODshared;
t.ctype = ctype;
t = t.merge();
t.fixTo(this);
}
else
t = t.merge();
assert(!t.isShared());
return t;
}
/********************************
* Convert to 'wild'.
*/
final Type wildOf()
{
//printf("Type::wildOf() %p %s\n", this, toChars());
if (mod == MODwild)
return this;
if (wto)
{
assert(wto.mod == MODwild);
return wto;
}
Type t = makeWild();
t = t.merge();
t.fixTo(this);
//printf("\t%p %s\n", t, t->toChars());
return t;
}
final Type wildConstOf()
{
//printf("Type::wildConstOf() %p %s\n", this, toChars());
if (mod == MODwildconst)
return this;
if (wcto)
{
assert(wcto.mod == MODwildconst);
return wcto;
}
Type t = makeWildConst();
t = t.merge();
t.fixTo(this);
//printf("\t%p %s\n", t, t->toChars());
return t;
}
final Type sharedWildOf()
{
//printf("Type::sharedWildOf() %p, %s\n", this, toChars());
if (mod == (MODshared | MODwild))
return this;
if (swto)
{
assert(swto.mod == (MODshared | MODwild));
return swto;
}
Type t = makeSharedWild();
t = t.merge();
t.fixTo(this);
//printf("\t%p %s\n", t, t->toChars());
return t;
}
final Type sharedWildConstOf()
{
//printf("Type::sharedWildConstOf() %p, %s\n", this, toChars());
if (mod == (MODshared | MODwildconst))
return this;
if (swcto)
{
assert(swcto.mod == (MODshared | MODwildconst));
return swcto;
}
Type t = makeSharedWildConst();
t = t.merge();
t.fixTo(this);
//printf("\t%p %s\n", t, t->toChars());
return t;
}
/**********************************
* For our new type 'this', which is type-constructed from t,
* fill in the cto, ito, sto, scto, wto shortcuts.
*/
final void fixTo(Type t)
{
// If fixing this: immutable(T*) by t: immutable(T)*,
// cache t to this->xto won't break transitivity.
Type mto = null;
Type tn = nextOf();
if (!tn || ty != Tsarray && tn.mod == t.nextOf().mod)
{
switch (t.mod)
{
case 0:
mto = t;
break;
case MODconst:
cto = t;
break;
case MODwild:
wto = t;
break;
case MODwildconst:
wcto = t;
break;
case MODshared:
sto = t;
break;
case MODshared | MODconst:
scto = t;
break;
case MODshared | MODwild:
swto = t;
break;
case MODshared | MODwildconst:
swcto = t;
break;
case MODimmutable:
ito = t;
break;
default:
break;
}
}
assert(mod != t.mod);
auto X(T, U)(T m, U n)
{
return ((m << 4) | n);
}
switch (mod)
{
case 0:
break;
case MODconst:
cto = mto;
t.cto = this;
break;
case MODwild:
wto = mto;
t.wto = this;
break;
case MODwildconst:
wcto = mto;
t.wcto = this;
break;
case MODshared:
sto = mto;
t.sto = this;
break;
case MODshared | MODconst:
scto = mto;
t.scto = this;
break;
case MODshared | MODwild:
swto = mto;
t.swto = this;
break;
case MODshared | MODwildconst:
swcto = mto;
t.swcto = this;
break;
case MODimmutable:
t.ito = this;
if (t.cto)
t.cto.ito = this;
if (t.sto)
t.sto.ito = this;
if (t.scto)
t.scto.ito = this;
if (t.wto)
t.wto.ito = this;
if (t.wcto)
t.wcto.ito = this;
if (t.swto)
t.swto.ito = this;
if (t.swcto)
t.swcto.ito = this;
break;
default:
assert(0);
}
check();
t.check();
//printf("fixTo: %s, %s\n", toChars(), t->toChars());
}
/***************************
* Look for bugs in constructing types.
*/
final void check()
{
switch (mod)
{
case 0:
if (cto)
assert(cto.mod == MODconst);
if (ito)
assert(ito.mod == MODimmutable);
if (sto)
assert(sto.mod == MODshared);
if (scto)
assert(scto.mod == (MODshared | MODconst));
if (wto)
assert(wto.mod == MODwild);
if (wcto)
assert(wcto.mod == MODwildconst);
if (swto)
assert(swto.mod == (MODshared | MODwild));
if (swcto)
assert(swcto.mod == (MODshared | MODwildconst));
break;
case MODconst:
if (cto)
assert(cto.mod == 0);
if (ito)
assert(ito.mod == MODimmutable);
if (sto)
assert(sto.mod == MODshared);
if (scto)
assert(scto.mod == (MODshared | MODconst));
if (wto)
assert(wto.mod == MODwild);
if (wcto)
assert(wcto.mod == MODwildconst);
if (swto)
assert(swto.mod == (MODshared | MODwild));
if (swcto)
assert(swcto.mod == (MODshared | MODwildconst));
break;
case MODwild:
if (cto)
assert(cto.mod == MODconst);
if (ito)
assert(ito.mod == MODimmutable);
if (sto)
assert(sto.mod == MODshared);
if (scto)
assert(scto.mod == (MODshared | MODconst));
if (wto)
assert(wto.mod == 0);
if (wcto)
assert(wcto.mod == MODwildconst);
if (swto)
assert(swto.mod == (MODshared | MODwild));
if (swcto)
assert(swcto.mod == (MODshared | MODwildconst));
break;
case MODwildconst:
assert(!cto || cto.mod == MODconst);
assert(!ito || ito.mod == MODimmutable);
assert(!sto || sto.mod == MODshared);
assert(!scto || scto.mod == (MODshared | MODconst));
assert(!wto || wto.mod == MODwild);
assert(!wcto || wcto.mod == 0);
assert(!swto || swto.mod == (MODshared | MODwild));
assert(!swcto || swcto.mod == (MODshared | MODwildconst));
break;
case MODshared:
if (cto)
assert(cto.mod == MODconst);
if (ito)
assert(ito.mod == MODimmutable);
if (sto)
assert(sto.mod == 0);
if (scto)
assert(scto.mod == (MODshared | MODconst));
if (wto)
assert(wto.mod == MODwild);
if (wcto)
assert(wcto.mod == MODwildconst);
if (swto)
assert(swto.mod == (MODshared | MODwild));
if (swcto)
assert(swcto.mod == (MODshared | MODwildconst));
break;
case MODshared | MODconst:
if (cto)
assert(cto.mod == MODconst);
if (ito)
assert(ito.mod == MODimmutable);
if (sto)
assert(sto.mod == MODshared);
if (scto)
assert(scto.mod == 0);
if (wto)
assert(wto.mod == MODwild);
if (wcto)
assert(wcto.mod == MODwildconst);
if (swto)
assert(swto.mod == (MODshared | MODwild));
if (swcto)
assert(swcto.mod == (MODshared | MODwildconst));
break;
case MODshared | MODwild:
if (cto)
assert(cto.mod == MODconst);
if (ito)
assert(ito.mod == MODimmutable);
if (sto)
assert(sto.mod == MODshared);
if (scto)
assert(scto.mod == (MODshared | MODconst));
if (wto)
assert(wto.mod == MODwild);
if (wcto)
assert(wcto.mod == MODwildconst);
if (swto)
assert(swto.mod == 0);
if (swcto)
assert(swcto.mod == (MODshared | MODwildconst));
break;
case MODshared | MODwildconst:
assert(!cto || cto.mod == MODconst);
assert(!ito || ito.mod == MODimmutable);
assert(!sto || sto.mod == MODshared);
assert(!scto || scto.mod == (MODshared | MODconst));
assert(!wto || wto.mod == MODwild);
assert(!wcto || wcto.mod == MODwildconst);
assert(!swto || swto.mod == (MODshared | MODwild));
assert(!swcto || swcto.mod == 0);
break;
case MODimmutable:
if (cto)
assert(cto.mod == MODconst);
if (ito)
assert(ito.mod == 0);
if (sto)
assert(sto.mod == MODshared);
if (scto)
assert(scto.mod == (MODshared | MODconst));
if (wto)
assert(wto.mod == MODwild);
if (wcto)
assert(wcto.mod == MODwildconst);
if (swto)
assert(swto.mod == (MODshared | MODwild));
if (swcto)
assert(swcto.mod == (MODshared | MODwildconst));
break;
default:
assert(0);
}
Type tn = nextOf();
if (tn && ty != Tfunction && tn.ty != Tfunction && ty != Tenum)
{
// Verify transitivity
switch (mod)
{
case 0:
case MODconst:
case MODwild:
case MODwildconst:
case MODshared:
case MODshared | MODconst:
case MODshared | MODwild:
case MODshared | MODwildconst:
case MODimmutable:
assert(tn.mod == MODimmutable || (tn.mod & mod) == mod);
break;
default:
assert(0);
}
tn.check();
}
}
/*************************************
* Apply STCxxxx bits to existing type.
* Use *before* semantic analysis is run.
*/
final Type addSTC(StorageClass stc)
{
Type t = this;
if (t.isImmutable())
{
}
else if (stc & STCimmutable)
{
t = t.makeImmutable();
}
else
{
if ((stc & STCshared) && !t.isShared())
{
if (t.isWild())
{
if (t.isConst())
t = t.makeSharedWildConst();
else
t = t.makeSharedWild();
}
else
{
if (t.isConst())
t = t.makeSharedConst();
else
t = t.makeShared();
}
}
if ((stc & STCconst) && !t.isConst())
{
if (t.isShared())
{
if (t.isWild())
t = t.makeSharedWildConst();
else
t = t.makeSharedConst();
}
else
{
if (t.isWild())
t = t.makeWildConst();
else
t = t.makeConst();
}
}
if ((stc & STCwild) && !t.isWild())
{
if (t.isShared())
{
if (t.isConst())
t = t.makeSharedWildConst();
else
t = t.makeSharedWild();
}
else
{
if (t.isConst())
t = t.makeWildConst();
else
t = t.makeWild();
}
}
}
return t;
}
/************************************
* Apply MODxxxx bits to existing type.
*/
final Type castMod(MOD mod)
{
Type t;
switch (mod)
{
case 0:
t = unSharedOf().mutableOf();
break;
case MODconst:
t = unSharedOf().constOf();
break;
case MODwild:
t = unSharedOf().wildOf();
break;
case MODwildconst:
t = unSharedOf().wildConstOf();
break;
case MODshared:
t = mutableOf().sharedOf();
break;
case MODshared | MODconst:
t = sharedConstOf();
break;
case MODshared | MODwild:
t = sharedWildOf();
break;
case MODshared | MODwildconst:
t = sharedWildConstOf();
break;
case MODimmutable:
t = immutableOf();
break;
default:
assert(0);
}
return t;
}
/************************************
* Add MODxxxx bits to existing type.
* We're adding, not replacing, so adding const to
* a shared type => "shared const"
*/
final Type addMod(MOD mod)
{
/* Add anything to immutable, and it remains immutable
*/
Type t = this;
if (!t.isImmutable())
{
//printf("addMod(%x) %s\n", mod, toChars());
switch (mod)
{
case 0:
break;
case MODconst:
if (isShared())
{
if (isWild())
t = sharedWildConstOf();
else
t = sharedConstOf();
}
else
{
if (isWild())
t = wildConstOf();
else
t = constOf();
}
break;
case MODwild:
if (isShared())
{
if (isConst())
t = sharedWildConstOf();
else
t = sharedWildOf();
}
else
{
if (isConst())
t = wildConstOf();
else
t = wildOf();
}
break;
case MODwildconst:
if (isShared())
t = sharedWildConstOf();
else
t = wildConstOf();
break;
case MODshared:
if (isWild())
{
if (isConst())
t = sharedWildConstOf();
else
t = sharedWildOf();
}
else
{
if (isConst())
t = sharedConstOf();
else
t = sharedOf();
}
break;
case MODshared | MODconst:
if (isWild())
t = sharedWildConstOf();
else
t = sharedConstOf();
break;
case MODshared | MODwild:
if (isConst())
t = sharedWildConstOf();
else
t = sharedWildOf();
break;
case MODshared | MODwildconst:
t = sharedWildConstOf();
break;
case MODimmutable:
t = immutableOf();
break;
default:
assert(0);
}
}
return t;
}
/************************************
* Add storage class modifiers to type.
*/
Type addStorageClass(StorageClass stc)
{
/* Just translate to MOD bits and let addMod() do the work
*/
MOD mod = 0;
if (stc & STCimmutable)
mod = MODimmutable;
else
{
if (stc & (STCconst | STCin))
mod |= MODconst;
if (stc & STCwild)
mod |= MODwild;
if (stc & STCshared)
mod |= MODshared;
}
return addMod(mod);
}
final Type pointerTo()
{
if (ty == Terror)
return this;
if (!pto)
{
Type t = new TypePointer(this);
if (ty == Tfunction)
{
t.deco = t.merge().deco;
pto = t;
}
else
pto = t.merge();
}
return pto;
}
final Type referenceTo()
{
if (ty == Terror)
return this;
if (!rto)
{
Type t = new TypeReference(this);
rto = t.merge();
}
return rto;
}
final Type arrayOf()
{
if (ty == Terror)
return this;
if (!arrayof)
{
Type t = new TypeDArray(this);
arrayof = t.merge();
}
return arrayof;
}
// Make corresponding static array type without semantic
final Type sarrayOf(dinteger_t dim)
{
assert(deco);
Type t = new TypeSArray(this, new IntegerExp(Loc(), dim, Type.tsize_t));
// according to TypeSArray::semantic()
t = t.addMod(mod);
t = t.merge();
return t;
}
final Type aliasthisOf()
{
auto ad = isAggregate(this);
if (!ad || !ad.aliasthis)
return null;
auto s = ad.aliasthis;
if (s.isAliasDeclaration())
s = s.toAlias();
if (s.isTupleDeclaration())
return null;
if (auto vd = s.isVarDeclaration())
{
auto t = vd.type;
if (vd.needThis())
t = t.addMod(this.mod);
return t;
}
if (auto fd = s.isFuncDeclaration())
{
fd = resolveFuncCall(Loc(), null, fd, null, this, null, 1);
if (!fd || fd.errors || !fd.functionSemantic())
return Type.terror;
auto t = fd.type.nextOf();
if (!t) // issue 14185
return Type.terror;
t = t.substWildTo(mod == 0 ? MODmutable : mod);
return t;
}
if (auto d = s.isDeclaration())
{
assert(d.type);
return d.type;
}
if (auto ed = s.isEnumDeclaration())
{
return ed.type;
}
if (auto td = s.isTemplateDeclaration())
{
assert(td._scope);
auto fd = resolveFuncCall(Loc(), null, td, null, this, null, 1);
if (!fd || fd.errors || !fd.functionSemantic())
return Type.terror;
auto t = fd.type.nextOf();
if (!t)
return Type.terror;
t = t.substWildTo(mod == 0 ? MODmutable : mod);
return t;
}
//printf("%s\n", s.kind());
return null;
}
final bool checkAliasThisRec()
{
Type tb = toBasetype();
AliasThisRec* pflag;
if (tb.ty == Tstruct)
pflag = &(cast(TypeStruct)tb).att;
else if (tb.ty == Tclass)
pflag = &(cast(TypeClass)tb).att;
else
return false;
AliasThisRec flag = cast(AliasThisRec)(*pflag & RECtypeMask);
if (flag == RECfwdref)
{
Type att = aliasthisOf();
flag = att && att.implicitConvTo(this) ? RECyes : RECno;
}
*pflag = cast(AliasThisRec)(flag | (*pflag & ~RECtypeMask));
return flag == RECyes;
}
Type makeConst()
{
//printf("Type::makeConst() %p, %s\n", this, toChars());
if (cto)
return cto;
Type t = this.nullAttributes();
t.mod = MODconst;
//printf("-Type::makeConst() %p, %s\n", t, toChars());
return t;
}
Type makeImmutable()
{
if (ito)
return ito;
Type t = this.nullAttributes();
t.mod = MODimmutable;
return t;
}
Type makeShared()
{
if (sto)
return sto;
Type t = this.nullAttributes();
t.mod = MODshared;
return t;
}
Type makeSharedConst()
{
if (scto)
return scto;
Type t = this.nullAttributes();
t.mod = MODshared | MODconst;
return t;
}
Type makeWild()
{
if (wto)
return wto;
Type t = this.nullAttributes();
t.mod = MODwild;
return t;
}
Type makeWildConst()
{
if (wcto)
return wcto;
Type t = this.nullAttributes();
t.mod = MODwildconst;
return t;
}
Type makeSharedWild()
{
if (swto)
return swto;
Type t = this.nullAttributes();
t.mod = MODshared | MODwild;
return t;
}
Type makeSharedWildConst()
{
if (swcto)
return swcto;
Type t = this.nullAttributes();
t.mod = MODshared | MODwildconst;
return t;
}
Type makeMutable()
{
Type t = this.nullAttributes();
t.mod = mod & MODshared;
return t;
}
Dsymbol toDsymbol(Scope* sc)
{
return null;
}
/*******************************
* If this is a shell around another type,
* get that other type.
*/
Type toBasetype()
{
return this;
}
bool isBaseOf(Type t, int* poffset)
{
return 0; // assume not
}
/********************************
* Determine if 'this' can be implicitly converted
* to type 'to'.
* Returns:
* MATCHnomatch, MATCHconvert, MATCHconst, MATCHexact
*/
MATCH implicitConvTo(Type to)
{
//printf("Type::implicitConvTo(this=%p, to=%p)\n", this, to);
//printf("from: %s\n", toChars());
//printf("to : %s\n", to->toChars());
if (this.equals(to))
return MATCHexact;
return MATCHnomatch;
}
/*******************************
* Determine if converting 'this' to 'to' is an identity operation,
* a conversion to const operation, or the types aren't the same.
* Returns:
* MATCHexact 'this' == 'to'
* MATCHconst 'to' is const
* MATCHnomatch conversion to mutable or invariant
*/
MATCH constConv(Type to)
{
//printf("Type::constConv(this = %s, to = %s)\n", toChars(), to->toChars());
if (equals(to))
return MATCHexact;
if (ty == to.ty && MODimplicitConv(mod, to.mod))
return MATCHconst;
return MATCHnomatch;
}
/***************************************
* Return MOD bits matching this type to wild parameter type (tprm).
*/
ubyte deduceWild(Type t, bool isRef)
{
//printf("Type::deduceWild this = '%s', tprm = '%s'\n", toChars(), tprm->toChars());
if (t.isWild())
{
if (isImmutable())
return MODimmutable;
else if (isWildConst())
{
if (t.isWildConst())
return MODwild;
else
return MODwildconst;
}
else if (isWild())
return MODwild;
else if (isConst())
return MODconst;
else if (isMutable())
return MODmutable;
else
assert(0);
}
return 0;
}
Type substWildTo(uint mod)
{
//printf("+Type::substWildTo this = %s, mod = x%x\n", toChars(), mod);
Type t;
if (Type tn = nextOf())
{
// substitution has no effect on function pointer type.
if (ty == Tpointer && tn.ty == Tfunction)
{
t = this;
goto L1;
}
t = tn.substWildTo(mod);
if (t == tn)
t = this;
else
{
if (ty == Tpointer)
t = t.pointerTo();
else if (ty == Tarray)
t = t.arrayOf();
else if (ty == Tsarray)
t = new TypeSArray(t, (cast(TypeSArray)this).dim.syntaxCopy());
else if (ty == Taarray)
{
t = new TypeAArray(t, (cast(TypeAArray)this).index.syntaxCopy());
(cast(TypeAArray)t).sc = (cast(TypeAArray)this).sc; // duplicate scope
}
else if (ty == Tdelegate)
{
t = new TypeDelegate(t);
}
else
assert(0);
t = t.merge();
}
}
else
t = this;
L1:
if (isWild())
{
if (mod == MODimmutable)
{
t = t.immutableOf();
}
else if (mod == MODwildconst)
{
t = t.wildConstOf();
}
else if (mod == MODwild)
{
if (isWildConst())
t = t.wildConstOf();
else
t = t.wildOf();
}
else if (mod == MODconst)
{
t = t.constOf();
}
else
{
if (isWildConst())
t = t.constOf();
else
t = t.mutableOf();
}
}
if (isConst())
t = t.addMod(MODconst);
if (isShared())
t = t.addMod(MODshared);
//printf("-Type::substWildTo t = %s\n", t->toChars());
return t;
}
final Type unqualify(uint m)
{
Type t = mutableOf().unSharedOf();
Type tn = ty == Tenum ? null : nextOf();
if (tn && tn.ty != Tfunction)
{
Type utn = tn.unqualify(m);
if (utn != tn)
{
if (ty == Tpointer)
t = utn.pointerTo();
else if (ty == Tarray)
t = utn.arrayOf();
else if (ty == Tsarray)
t = new TypeSArray(utn, (cast(TypeSArray)this).dim);
else if (ty == Taarray)
{
t = new TypeAArray(utn, (cast(TypeAArray)this).index);
(cast(TypeAArray)t).sc = (cast(TypeAArray)this).sc; // duplicate scope
}
else
assert(0);
t = t.merge();
}
}
t = t.addMod(mod & ~m);
return t;
}
/**************************
* Return type with the top level of it being mutable.
*/
Type toHeadMutable()
{
if (!mod)
return this;
return mutableOf();
}
ClassDeclaration isClassHandle()
{
return null;
}
/***************************************
* Calculate built-in properties which just the type is necessary.
*
* If flag & 1, don't report "not a property" error and just return NULL.
*/
Expression getProperty(Loc loc, Identifier ident, int flag)
{
Expression e;
static if (LOGDOTEXP)
{
printf("Type::getProperty(type = '%s', ident = '%s')\n", toChars(), ident.toChars());
}
if (ident == Id.__sizeof)
{
d_uns64 sz = size(loc);
if (sz == SIZE_INVALID)
return new ErrorExp();
e = new IntegerExp(loc, sz, Type.tsize_t);
}
else if (ident == Id.__xalignof)
{
e = new IntegerExp(loc, alignsize(), Type.tsize_t);
}
else if (ident == Id._init)
{
Type tb = toBasetype();
e = defaultInitLiteral(loc);
if (tb.ty == Tstruct && tb.needsNested())
{
StructLiteralExp se = cast(StructLiteralExp)e;
se.useStaticInit = true;
}
}
else if (ident == Id._mangleof)
{
if (!deco)
{
error(loc, "forward reference of type %s.mangleof", toChars());
e = new ErrorExp();
}
else
{
e = new StringExp(loc, deco);
Scope sc;
e = e.semantic(&sc);
}
}
else if (ident == Id.stringof)
{
const s = toChars();
e = new StringExp(loc, cast(char*)s);
Scope sc;
e = e.semantic(&sc);
}
else if (flag && this != Type.terror)
{
return null;
}
else
{
Dsymbol s = null;
if (ty == Tstruct || ty == Tclass || ty == Tenum)
s = toDsymbol(null);
if (s)
s = s.search_correct(ident);
if (this != Type.terror)
{
if (s)
error(loc, "no property '%s' for type '%s', did you mean '%s'?", ident.toChars(), toChars(), s.toChars());
else
error(loc, "no property '%s' for type '%s'", ident.toChars(), toChars());
}
e = new ErrorExp();
}
return e;
}
/****************
* dotExp() bit flags
*/
enum DotExpFlag
{
gag = 1, // don't report "not a property" error and just return null
noDeref = 2, // the use of the expression will not attempt a dereference
}
/***************************************
* Access the members of the object e. This type is same as e->type.
* Params:
* flag = DotExpFlag bit flags
* Returns:
* resulting expression with e.ident resolved
*/
Expression dotExp(Scope* sc, Expression e, Identifier ident, int flag)
{
VarDeclaration v = null;
static if (LOGDOTEXP)
{
printf("Type::dotExp(e = '%s', ident = '%s')\n", e.toChars(), ident.toChars());
}
Expression ex = e;
while (ex.op == TOKcomma)
ex = (cast(CommaExp)ex).e2;
if (ex.op == TOKdotvar)
{
DotVarExp dv = cast(DotVarExp)ex;
v = dv.var.isVarDeclaration();
}
else if (ex.op == TOKvar)
{
VarExp ve = cast(VarExp)ex;
v = ve.var.isVarDeclaration();
}
if (v)
{
if (ident == Id.offsetof)
{
if (v.isField())
{
auto ad = v.toParent().isAggregateDeclaration();
ad.size(e.loc);
if (ad.sizeok != SIZEOKdone)
return new ErrorExp();
e = new IntegerExp(e.loc, v.offset, Type.tsize_t);
return e;
}
}
else if (ident == Id._init)
{
Type tb = toBasetype();
e = defaultInitLiteral(e.loc);
if (tb.ty == Tstruct && tb.needsNested())
{
StructLiteralExp se = cast(StructLiteralExp)e;
se.useStaticInit = true;
}
goto Lreturn;
}
}
if (ident == Id.stringof)
{
/* Bugzilla 3796: this should demangle e->type->deco rather than
* pretty-printing the type.
*/
const s = e.toChars();
e = new StringExp(e.loc, cast(char*)s);
}
else
e = getProperty(e.loc, ident, flag & DotExpFlag.gag);
Lreturn:
if (!(flag & DotExpFlag.gag) || e)
e = e.semantic(sc);
return e;
}
/************************************
* Return alignment to use for this type.
*/
structalign_t alignment()
{
return STRUCTALIGN_DEFAULT;
}
/***************************************
* Figures out what to do with an undefined member reference
* for classes and structs.
*
* If flag & 1, don't report "not a property" error and just return NULL.
*/
final Expression noMember(Scope* sc, Expression e, Identifier ident, int flag)
{
assert(ty == Tstruct || ty == Tclass);
auto sym = toDsymbol(sc).isAggregateDeclaration();
assert(sym);
if (ident != Id.__sizeof &&
ident != Id.__xalignof &&
ident != Id._init &&
ident != Id._mangleof &&
ident != Id.stringof &&
ident != Id.offsetof &&
// Bugzilla 15045: Don't forward special built-in member functions.
ident != Id.ctor &&
ident != Id.dtor &&
ident != Id.__xdtor &&
ident != Id.postblit &&
ident != Id.__xpostblit)
{
/* Look for overloaded opDot() to see if we should forward request
* to it.
*/
if (auto fd = search_function(sym, Id.opDot))
{
/* Rewrite e.ident as:
* e.opDot().ident
*/
e = build_overload(e.loc, sc, e, null, fd);
e = new DotIdExp(e.loc, e, ident);
return e.semantic(sc);
}
/* Look for overloaded opDispatch to see if we should forward request
* to it.
*/
if (auto fd = search_function(sym, Id.opDispatch))
{
/* Rewrite e.ident as:
* e.opDispatch!("ident")
*/
TemplateDeclaration td = fd.isTemplateDeclaration();
if (!td)
{
fd.error("must be a template opDispatch(string s), not a %s", fd.kind());
return new ErrorExp();
}
auto se = new StringExp(e.loc, cast(char*)ident.toChars());
auto tiargs = new Objects();
tiargs.push(se);
auto dti = new DotTemplateInstanceExp(e.loc, e, Id.opDispatch, tiargs);
dti.ti.tempdecl = td;
/* opDispatch, which doesn't need IFTI, may occur instantiate error.
* It should be gagged if flag & 1.
* e.g.
* template opDispatch(name) if (isValid!name) { ... }
*/
uint errors = flag & 1 ? global.startGagging() : 0;
e = dti.semanticY(sc, 0);
if (flag & 1 && global.endGagging(errors))
e = null;
return e;
}
/* See if we should forward to the alias this.
*/
if (sym.aliasthis)
{
/* Rewrite e.ident as:
* e.aliasthis.ident
*/
e = resolveAliasThis(sc, e);
auto die = new DotIdExp(e.loc, e, ident);
return die.semanticY(sc, flag & 1);
}
}
return Type.dotExp(sc, e, ident, flag);
}
Expression defaultInit(Loc loc = Loc())
{
static if (LOGDEFAULTINIT)
{
printf("Type::defaultInit() '%s'\n", toChars());
}
return null;
}
/***************************************
* Use when we prefer the default initializer to be a literal,
* rather than a global immutable variable.
*/
Expression defaultInitLiteral(Loc loc)
{
static if (LOGDEFAULTINIT)
{
printf("Type::defaultInitLiteral() '%s'\n", toChars());
}
return defaultInit(loc);
}
// if initializer is 0
bool isZeroInit(Loc loc = Loc())
{
return false; // assume not
}
final Identifier getTypeInfoIdent()
{
// _init_10TypeInfo_%s
OutBuffer buf;
buf.reserve(32);
mangleToBuffer(this, &buf);
const slice = buf.peekSlice();
// Allocate buffer on stack, fail over to using malloc()
char[128] namebuf;
const namelen = 19 + size_t.sizeof * 3 + slice.length + 1;
auto name = namelen <= namebuf.length ? namebuf.ptr : cast(char*)malloc(namelen);
assert(name);
const length = sprintf(name, "_D%lluTypeInfo_%.*s6__initZ",
cast(ulong)(9 + slice.length), cast(int)slice.length, slice.ptr);
//printf("%p %s, deco = %s, name = %s\n", this, toChars(), deco, name);
assert(0 < length && length < namelen); // don't overflow the buffer
int off = 0;
static if (!IN_GCC)
{
if (global.params.isOSX || global.params.isWindows && !global.params.is64bit)
++off; // C mangling will add '_' back in
}
auto id = Identifier.idPool(name + off, length - off);
if (name != namebuf.ptr)
free(name);
return id;
}
/***************************************
* Resolve 'this' type to either type, symbol, or expression.
* If errors happened, resolved to Type.terror.
*/
void resolve(Loc loc, Scope* sc, Expression* pe, Type* pt, Dsymbol* ps, bool intypeid = false)
{
//printf("Type::resolve() %s, %d\n", toChars(), ty);
Type t = semantic(loc, sc);
*pt = t;
*pe = null;
*ps = null;
}
/***************************************
* Normalize `e` as the result of Type.resolve() process.
*/
final void resolveExp(Expression e, Type *pt, Expression *pe, Dsymbol* ps)
{
*pt = null;
*pe = null;
*ps = null;
Dsymbol s;
switch (e.op)
{
case TOKerror:
*pt = Type.terror;
return;
case TOKtype:
*pt = e.type;
return;
case TOKvar:
s = (cast(VarExp)e).var;
if (s.isVarDeclaration())
goto default;
//if (s.isOverDeclaration())
// todo;
break;
case TOKtemplate:
// TemplateDeclaration
s = (cast(TemplateExp)e).td;
break;
case TOKscope:
s = (cast(ScopeExp)e).sds;
// TemplateDeclaration, TemplateInstance, Import, Package, Module
break;
case TOKfunction:
s = getDsymbol(e);
break;
//case TOKthis:
//case TOKsuper:
//case TOKtuple:
//case TOKoverloadset:
//case TOKdotvar:
//case TOKdottd:
//case TOKdotti:
//case TOKdottype:
//case TOKdotid:
default:
*pe = e;
return;
}
*ps = s;
}
/***************************************
* Return !=0 if the type or any of its subtypes is wild.
*/
int hasWild() const
{
return mod & MODwild;
}
/********************************
* We've mistakenly parsed this as a type.
* Redo it as an Expression.
* NULL if cannot.
*/
Expression toExpression()
{
return null;
}
/***************************************
* Return !=0 if type has pointers that need to
* be scanned by the GC during a collection cycle.
*/
bool hasPointers()
{
//printf("Type::hasPointers() %s, %d\n", toChars(), ty);
return false;
}
/*************************************
* Detect if type has pointer fields that are initialized to void.
* Local stack variables with such void fields can remain uninitialized,
* leading to pointer bugs.
* Returns:
* true if so
*/
bool hasVoidInitPointers()
{
return false;
}
/*************************************
* If this is a type of something, return that something.
*/
Type nextOf()
{
return null;
}
/*************************************
* If this is a type of static array, return its base element type.
*/
final Type baseElemOf()
{
Type t = toBasetype();
while (t.ty == Tsarray)
t = (cast(TypeSArray)t).next.toBasetype();
return t;
}
/****************************************
* Return the mask that an integral type will
* fit into.
*/
final uinteger_t sizemask()
{
uinteger_t m;
switch (toBasetype().ty)
{
case Tbool:
m = 1;
break;
case Tchar:
case Tint8:
case Tuns8:
m = 0xFF;
break;
case Twchar:
case Tint16:
case Tuns16:
m = 0xFFFFU;
break;
case Tdchar:
case Tint32:
case Tuns32:
m = 0xFFFFFFFFU;
break;
case Tint64:
case Tuns64:
m = 0xFFFFFFFFFFFFFFFFUL;
break;
default:
assert(0);
}
return m;
}
/********************************
* true if when type goes out of scope, it needs a destructor applied.
* Only applies to value types, not ref types.
*/
bool needsDestruction()
{
return false;
}
/*********************************
*
*/
bool needsNested()
{
return false;
}
/*************************************
* Bugzilla 14488: Check if the inner most base type is complex or imaginary.
* Should only give alerts when set to emit transitional messages.
*/
final void checkComplexTransition(Loc loc)
{
Type t = baseElemOf();
while (t.ty == Tpointer || t.ty == Tarray)
t = t.nextOf().baseElemOf();
if (t.isimaginary() || t.iscomplex())
{
const(char)* p = loc.toChars();
Type rt;
switch (t.ty)
{
case Tcomplex32:
case Timaginary32:
rt = Type.tfloat32;
break;
case Tcomplex64:
case Timaginary64:
rt = Type.tfloat64;
break;
case Tcomplex80:
case Timaginary80:
rt = Type.tfloat80;
break;
default:
assert(0);
}
if (t.iscomplex())
{
fprintf(global.stdmsg, "%s: use of complex type '%s' is scheduled for deprecation, use 'std.complex.Complex!(%s)' instead\n", p ? p : "", toChars(), rt.toChars());
}
else
{
fprintf(global.stdmsg, "%s: use of imaginary type '%s' is scheduled for deprecation, use '%s' instead\n", p ? p : "", toChars(), rt.toChars());
}
}
}
static void error(Loc loc, const(char)* format, ...)
{
va_list ap;
va_start(ap, format);
.verror(loc, format, ap);
va_end(ap);
}
static void warning(Loc loc, const(char)* format, ...)
{
va_list ap;
va_start(ap, format);
.vwarning(loc, format, ap);
va_end(ap);
}
// For eliminating dynamic_cast
TypeBasic isTypeBasic()
{
return null;
}
void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class TypeError : Type
{
extern (D) this()
{
super(Terror);
}
override Type syntaxCopy()
{
// No semantic analysis done, no need to copy
return this;
}
override d_uns64 size(Loc loc)
{
return SIZE_INVALID;
}
override Expression getProperty(Loc loc, Identifier ident, int flag)
{
return new ErrorExp();
}
override Expression dotExp(Scope* sc, Expression e, Identifier ident, int flag)
{
return new ErrorExp();
}
override Expression defaultInit(Loc loc)
{
return new ErrorExp();
}
override Expression defaultInitLiteral(Loc loc)
{
return new ErrorExp();
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) abstract class TypeNext : Type
{
Type next;
final extern (D) this(TY ty, Type next)
{
super(ty);
this.next = next;
}
override final void checkDeprecated(Loc loc, Scope* sc)
{
Type.checkDeprecated(loc, sc);
if (next) // next can be NULL if TypeFunction and auto return type
next.checkDeprecated(loc, sc);
}
override final int hasWild() const
{
if (ty == Tfunction)
return 0;
if (ty == Tdelegate)
return Type.hasWild();
return mod & MODwild || (next && next.hasWild());
}
/*******************************
* For TypeFunction, nextOf() can return NULL if the function return
* type is meant to be inferred, and semantic() hasn't yet ben run
* on the function. After semantic(), it must no longer be NULL.
*/
override final Type nextOf()
{
return next;
}
override final Type makeConst()
{
//printf("TypeNext::makeConst() %p, %s\n", this, toChars());
if (cto)
{
assert(cto.mod == MODconst);
return cto;
}
TypeNext t = cast(TypeNext)Type.makeConst();
if (ty != Tfunction && next.ty != Tfunction && !next.isImmutable())
{
if (next.isShared())
{
if (next.isWild())
t.next = next.sharedWildConstOf();
else
t.next = next.sharedConstOf();
}
else
{
if (next.isWild())
t.next = next.wildConstOf();
else
t.next = next.constOf();
}
}
//printf("TypeNext::makeConst() returns %p, %s\n", t, t->toChars());
return t;
}
override final Type makeImmutable()
{
//printf("TypeNext::makeImmutable() %s\n", toChars());
if (ito)
{
assert(ito.isImmutable());
return ito;
}
TypeNext t = cast(TypeNext)Type.makeImmutable();
if (ty != Tfunction && next.ty != Tfunction && !next.isImmutable())
{
t.next = next.immutableOf();
}
return t;
}
override final Type makeShared()
{
//printf("TypeNext::makeShared() %s\n", toChars());
if (sto)
{
assert(sto.mod == MODshared);
return sto;
}
TypeNext t = cast(TypeNext)Type.makeShared();
if (ty != Tfunction && next.ty != Tfunction && !next.isImmutable())
{
if (next.isWild())
{
if (next.isConst())
t.next = next.sharedWildConstOf();
else
t.next = next.sharedWildOf();
}
else
{
if (next.isConst())
t.next = next.sharedConstOf();
else
t.next = next.sharedOf();
}
}
//printf("TypeNext::makeShared() returns %p, %s\n", t, t->toChars());
return t;
}
override final Type makeSharedConst()
{
//printf("TypeNext::makeSharedConst() %s\n", toChars());
if (scto)
{
assert(scto.mod == (MODshared | MODconst));
return scto;
}
TypeNext t = cast(TypeNext)Type.makeSharedConst();
if (ty != Tfunction && next.ty != Tfunction && !next.isImmutable())
{
if (next.isWild())
t.next = next.sharedWildConstOf();
else
t.next = next.sharedConstOf();
}
//printf("TypeNext::makeSharedConst() returns %p, %s\n", t, t->toChars());
return t;
}
override final Type makeWild()
{
//printf("TypeNext::makeWild() %s\n", toChars());
if (wto)
{
assert(wto.mod == MODwild);
return wto;
}
TypeNext t = cast(TypeNext)Type.makeWild();
if (ty != Tfunction && next.ty != Tfunction && !next.isImmutable())
{
if (next.isShared())
{
if (next.isConst())
t.next = next.sharedWildConstOf();
else
t.next = next.sharedWildOf();
}
else
{
if (next.isConst())
t.next = next.wildConstOf();
else
t.next = next.wildOf();
}
}
//printf("TypeNext::makeWild() returns %p, %s\n", t, t->toChars());
return t;
}
override final Type makeWildConst()
{
//printf("TypeNext::makeWildConst() %s\n", toChars());
if (wcto)
{
assert(wcto.mod == MODwildconst);
return wcto;
}
TypeNext t = cast(TypeNext)Type.makeWildConst();
if (ty != Tfunction && next.ty != Tfunction && !next.isImmutable())
{
if (next.isShared())
t.next = next.sharedWildConstOf();
else
t.next = next.wildConstOf();
}
//printf("TypeNext::makeWildConst() returns %p, %s\n", t, t->toChars());
return t;
}
override final Type makeSharedWild()
{
//printf("TypeNext::makeSharedWild() %s\n", toChars());
if (swto)
{
assert(swto.isSharedWild());
return swto;
}
TypeNext t = cast(TypeNext)Type.makeSharedWild();
if (ty != Tfunction && next.ty != Tfunction && !next.isImmutable())
{
if (next.isConst())
t.next = next.sharedWildConstOf();
else
t.next = next.sharedWildOf();
}
//printf("TypeNext::makeSharedWild() returns %p, %s\n", t, t->toChars());
return t;
}
override final Type makeSharedWildConst()
{
//printf("TypeNext::makeSharedWildConst() %s\n", toChars());
if (swcto)
{
assert(swcto.mod == (MODshared | MODwildconst));
return swcto;
}
TypeNext t = cast(TypeNext)Type.makeSharedWildConst();
if (ty != Tfunction && next.ty != Tfunction && !next.isImmutable())
{
t.next = next.sharedWildConstOf();
}
//printf("TypeNext::makeSharedWildConst() returns %p, %s\n", t, t->toChars());
return t;
}
override final Type makeMutable()
{
//printf("TypeNext::makeMutable() %p, %s\n", this, toChars());
TypeNext t = cast(TypeNext)Type.makeMutable();
if (ty == Tsarray)
{
t.next = next.mutableOf();
}
//printf("TypeNext::makeMutable() returns %p, %s\n", t, t->toChars());
return t;
}
override MATCH constConv(Type to)
{
//printf("TypeNext::constConv from = %s, to = %s\n", toChars(), to->toChars());
if (equals(to))
return MATCHexact;
if (!(ty == to.ty && MODimplicitConv(mod, to.mod)))
return MATCHnomatch;
Type tn = to.nextOf();
if (!(tn && next.ty == tn.ty))
return MATCHnomatch;
MATCH m;
if (to.isConst()) // whole tail const conversion
{
// Recursive shared level check
m = next.constConv(tn);
if (m == MATCHexact)
m = MATCHconst;
}
else
{
//printf("\tnext => %s, to->next => %s\n", next->toChars(), tn->toChars());
m = next.equals(tn) ? MATCHconst : MATCHnomatch;
}
return m;
}
override final ubyte deduceWild(Type t, bool isRef)
{
if (ty == Tfunction)
return 0;
ubyte wm;
Type tn = t.nextOf();
if (!isRef && (ty == Tarray || ty == Tpointer) && tn)
{
wm = next.deduceWild(tn, true);
if (!wm)
wm = Type.deduceWild(t, true);
}
else
{
wm = Type.deduceWild(t, isRef);
if (!wm && tn)
wm = next.deduceWild(tn, true);
}
return wm;
}
final void transitive()
{
/* Invoke transitivity of type attributes
*/
next = next.addMod(mod);
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class TypeBasic : Type
{
const(char)* dstring;
uint flags;
extern (D) this(TY ty)
{
super(ty);
const(char)* d;
uint flags = 0;
switch (ty)
{
case Tvoid:
d = Token.toChars(TOKvoid);
break;
case Tint8:
d = Token.toChars(TOKint8);
flags |= TFLAGSintegral;
break;
case Tuns8:
d = Token.toChars(TOKuns8);
flags |= TFLAGSintegral | TFLAGSunsigned;
break;
case Tint16:
d = Token.toChars(TOKint16);
flags |= TFLAGSintegral;
break;
case Tuns16:
d = Token.toChars(TOKuns16);
flags |= TFLAGSintegral | TFLAGSunsigned;
break;
case Tint32:
d = Token.toChars(TOKint32);
flags |= TFLAGSintegral;
break;
case Tuns32:
d = Token.toChars(TOKuns32);
flags |= TFLAGSintegral | TFLAGSunsigned;
break;
case Tfloat32:
d = Token.toChars(TOKfloat32);
flags |= TFLAGSfloating | TFLAGSreal;
break;
case Tint64:
d = Token.toChars(TOKint64);
flags |= TFLAGSintegral;
break;
case Tuns64:
d = Token.toChars(TOKuns64);
flags |= TFLAGSintegral | TFLAGSunsigned;
break;
case Tint128:
d = Token.toChars(TOKint128);
flags |= TFLAGSintegral;
break;
case Tuns128:
d = Token.toChars(TOKuns128);
flags |= TFLAGSintegral | TFLAGSunsigned;
break;
case Tfloat64:
d = Token.toChars(TOKfloat64);
flags |= TFLAGSfloating | TFLAGSreal;
break;
case Tfloat80:
d = Token.toChars(TOKfloat80);
flags |= TFLAGSfloating | TFLAGSreal;
break;
case Timaginary32:
d = Token.toChars(TOKimaginary32);
flags |= TFLAGSfloating | TFLAGSimaginary;
break;
case Timaginary64:
d = Token.toChars(TOKimaginary64);
flags |= TFLAGSfloating | TFLAGSimaginary;
break;
case Timaginary80:
d = Token.toChars(TOKimaginary80);
flags |= TFLAGSfloating | TFLAGSimaginary;
break;
case Tcomplex32:
d = Token.toChars(TOKcomplex32);
flags |= TFLAGSfloating | TFLAGScomplex;
break;
case Tcomplex64:
d = Token.toChars(TOKcomplex64);
flags |= TFLAGSfloating | TFLAGScomplex;
break;
case Tcomplex80:
d = Token.toChars(TOKcomplex80);
flags |= TFLAGSfloating | TFLAGScomplex;
break;
case Tbool:
d = "bool";
flags |= TFLAGSintegral | TFLAGSunsigned;
break;
case Tchar:
d = Token.toChars(TOKchar);
flags |= TFLAGSintegral | TFLAGSunsigned;
break;
case Twchar:
d = Token.toChars(TOKwchar);
flags |= TFLAGSintegral | TFLAGSunsigned;
break;
case Tdchar:
d = Token.toChars(TOKdchar);
flags |= TFLAGSintegral | TFLAGSunsigned;
break;
default:
assert(0);
}
this.dstring = d;
this.flags = flags;
merge();
}
override const(char)* kind() const
{
return dstring;
}
override Type syntaxCopy()
{
// No semantic analysis done on basic types, no need to copy
return this;
}
override d_uns64 size(Loc loc) const
{
uint size;
//printf("TypeBasic::size()\n");
switch (ty)
{
case Tint8:
case Tuns8:
size = 1;
break;
case Tint16:
case Tuns16:
size = 2;
break;
case Tint32:
case Tuns32:
case Tfloat32:
case Timaginary32:
size = 4;
break;
case Tint64:
case Tuns64:
case Tfloat64:
case Timaginary64:
size = 8;
break;
case Tfloat80:
case Timaginary80:
size = Target.realsize;
break;
case Tcomplex32:
size = 8;
break;
case Tcomplex64:
case Tint128:
case Tuns128:
size = 16;
break;
case Tcomplex80:
size = Target.realsize * 2;
break;
case Tvoid:
//size = Type::size(); // error message
size = 1;
break;
case Tbool:
size = 1;
break;
case Tchar:
size = 1;
break;
case Twchar:
size = 2;
break;
case Tdchar:
size = 4;
break;
default:
assert(0);
}
//printf("TypeBasic::size() = %d\n", size);
return size;
}
override uint alignsize()
{
return Target.alignsize(this);
}
override Expression getProperty(Loc loc, Identifier ident, int flag)
{
Expression e;
dinteger_t ivalue;
real_t fvalue = 0;
//printf("TypeBasic::getProperty('%s')\n", ident->toChars());
if (ident == Id.max)
{
switch (ty)
{
case Tint8:
ivalue = 0x7F;
goto Livalue;
case Tuns8:
ivalue = 0xFF;
goto Livalue;
case Tint16:
ivalue = 0x7FFFU;
goto Livalue;
case Tuns16:
ivalue = 0xFFFFU;
goto Livalue;
case Tint32:
ivalue = 0x7FFFFFFFU;
goto Livalue;
case Tuns32:
ivalue = 0xFFFFFFFFU;
goto Livalue;
case Tint64:
ivalue = 0x7FFFFFFFFFFFFFFFL;
goto Livalue;
case Tuns64:
ivalue = 0xFFFFFFFFFFFFFFFFUL;
goto Livalue;
case Tbool:
ivalue = 1;
goto Livalue;
case Tchar:
ivalue = 0xFF;
goto Livalue;
case Twchar:
ivalue = 0xFFFFU;
goto Livalue;
case Tdchar:
ivalue = 0x10FFFFU;
goto Livalue;
case Tcomplex32:
case Timaginary32:
case Tfloat32:
fvalue = Target.FloatProperties.max;
goto Lfvalue;
case Tcomplex64:
case Timaginary64:
case Tfloat64:
fvalue = Target.DoubleProperties.max;
goto Lfvalue;
case Tcomplex80:
case Timaginary80:
case Tfloat80:
fvalue = Target.RealProperties.max;
goto Lfvalue;
default:
break;
}
}
else if (ident == Id.min)
{
switch (ty)
{
case Tint8:
ivalue = -128;
goto Livalue;
case Tuns8:
ivalue = 0;
goto Livalue;
case Tint16:
ivalue = -32768;
goto Livalue;
case Tuns16:
ivalue = 0;
goto Livalue;
case Tint32:
ivalue = -2147483647 - 1;
goto Livalue;
case Tuns32:
ivalue = 0;
goto Livalue;
case Tint64:
ivalue = (-9223372036854775807L - 1L);
goto Livalue;
case Tuns64:
ivalue = 0;
goto Livalue;
case Tbool:
ivalue = 0;
goto Livalue;
case Tchar:
ivalue = 0;
goto Livalue;
case Twchar:
ivalue = 0;
goto Livalue;
case Tdchar:
ivalue = 0;
goto Livalue;
default:
break;
}
}
else if (ident == Id.min_normal)
{
Lmin_normal:
switch (ty)
{
case Tcomplex32:
case Timaginary32:
case Tfloat32:
fvalue = Target.FloatProperties.min_normal;
goto Lfvalue;
case Tcomplex64:
case Timaginary64:
case Tfloat64:
fvalue = Target.DoubleProperties.min_normal;
goto Lfvalue;
case Tcomplex80:
case Timaginary80:
case Tfloat80:
fvalue = Target.RealProperties.min_normal;
goto Lfvalue;
default:
break;
}
}
else if (ident == Id.nan)
{
switch (ty)
{
case Tcomplex32:
case Tcomplex64:
case Tcomplex80:
case Timaginary32:
case Timaginary64:
case Timaginary80:
case Tfloat32:
case Tfloat64:
case Tfloat80:
fvalue = Target.RealProperties.nan;
goto Lfvalue;
default:
break;
}
}
else if (ident == Id.infinity)
{
switch (ty)
{
case Tcomplex32:
case Tcomplex64:
case Tcomplex80:
case Timaginary32:
case Timaginary64:
case Timaginary80:
case Tfloat32:
case Tfloat64:
case Tfloat80:
fvalue = Target.RealProperties.infinity;
goto Lfvalue;
default:
break;
}
}
else if (ident == Id.dig)
{
switch (ty)
{
case Tcomplex32:
case Timaginary32:
case Tfloat32:
ivalue = Target.FloatProperties.dig;
goto Lint;
case Tcomplex64:
case Timaginary64:
case Tfloat64:
ivalue = Target.DoubleProperties.dig;
goto Lint;
case Tcomplex80:
case Timaginary80:
case Tfloat80:
ivalue = Target.RealProperties.dig;
goto Lint;
default:
break;
}
}
else if (ident == Id.epsilon)
{
switch (ty)
{
case Tcomplex32:
case Timaginary32:
case Tfloat32:
fvalue = Target.FloatProperties.epsilon;
goto Lfvalue;
case Tcomplex64:
case Timaginary64:
case Tfloat64:
fvalue = Target.DoubleProperties.epsilon;
goto Lfvalue;
case Tcomplex80:
case Timaginary80:
case Tfloat80:
fvalue = Target.RealProperties.epsilon;
goto Lfvalue;
default:
break;
}
}
else if (ident == Id.mant_dig)
{
switch (ty)
{
case Tcomplex32:
case Timaginary32:
case Tfloat32:
ivalue = Target.FloatProperties.mant_dig;
goto Lint;
case Tcomplex64:
case Timaginary64:
case Tfloat64:
ivalue = Target.DoubleProperties.mant_dig;
goto Lint;
case Tcomplex80:
case Timaginary80:
case Tfloat80:
ivalue = Target.RealProperties.mant_dig;
goto Lint;
default:
break;
}
}
else if (ident == Id.max_10_exp)
{
switch (ty)
{
case Tcomplex32:
case Timaginary32:
case Tfloat32:
ivalue = Target.FloatProperties.max_10_exp;
goto Lint;
case Tcomplex64:
case Timaginary64:
case Tfloat64:
ivalue = Target.DoubleProperties.max_10_exp;
goto Lint;
case Tcomplex80:
case Timaginary80:
case Tfloat80:
ivalue = Target.RealProperties.max_10_exp;
goto Lint;
default:
break;
}
}
else if (ident == Id.max_exp)
{
switch (ty)
{
case Tcomplex32:
case Timaginary32:
case Tfloat32:
ivalue = Target.FloatProperties.max_exp;
goto Lint;
case Tcomplex64:
case Timaginary64:
case Tfloat64:
ivalue = Target.DoubleProperties.max_exp;
goto Lint;
case Tcomplex80:
case Timaginary80:
case Tfloat80:
ivalue = Target.RealProperties.max_exp;
goto Lint;
default:
break;
}
}
else if (ident == Id.min_10_exp)
{
switch (ty)
{
case Tcomplex32:
case Timaginary32:
case Tfloat32:
ivalue = Target.FloatProperties.min_10_exp;
goto Lint;
case Tcomplex64:
case Timaginary64:
case Tfloat64:
ivalue = Target.DoubleProperties.min_10_exp;
goto Lint;
case Tcomplex80:
case Timaginary80:
case Tfloat80:
ivalue = Target.RealProperties.min_10_exp;
goto Lint;
default:
break;
}
}
else if (ident == Id.min_exp)
{
switch (ty)
{
case Tcomplex32:
case Timaginary32:
case Tfloat32:
ivalue = Target.FloatProperties.min_exp;
goto Lint;
case Tcomplex64:
case Timaginary64:
case Tfloat64:
ivalue = Target.DoubleProperties.min_exp;
goto Lint;
case Tcomplex80:
case Timaginary80:
case Tfloat80:
ivalue = Target.RealProperties.min_exp;
goto Lint;
default:
break;
}
}
return Type.getProperty(loc, ident, flag);
Livalue:
e = new IntegerExp(loc, ivalue, this);
return e;
Lfvalue:
if (isreal() || isimaginary())
e = new RealExp(loc, fvalue, this);
else
{
const cvalue = complex_t(fvalue, fvalue);
//for (int i = 0; i < 20; i++)
// printf("%02x ", ((unsigned char *)&cvalue)[i]);
//printf("\n");
e = new ComplexExp(loc, cvalue, this);
}
return e;
Lint:
e = new IntegerExp(loc, ivalue, Type.tint32);
return e;
}
override Expression dotExp(Scope* sc, Expression e, Identifier ident, int flag)
{
static if (LOGDOTEXP)
{
printf("TypeBasic::dotExp(e = '%s', ident = '%s')\n", e.toChars(), ident.toChars());
}
Type t;
if (ident == Id.re)
{
switch (ty)
{
case Tcomplex32:
t = tfloat32;
goto L1;
case Tcomplex64:
t = tfloat64;
goto L1;
case Tcomplex80:
t = tfloat80;
goto L1;
L1:
e = e.castTo(sc, t);
break;
case Tfloat32:
case Tfloat64:
case Tfloat80:
break;
case Timaginary32:
t = tfloat32;
goto L2;
case Timaginary64:
t = tfloat64;
goto L2;
case Timaginary80:
t = tfloat80;
goto L2;
L2:
e = new RealExp(e.loc, CTFloat.zero, t);
break;
default:
e = Type.getProperty(e.loc, ident, flag);
break;
}
}
else if (ident == Id.im)
{
Type t2;
switch (ty)
{
case Tcomplex32:
t = timaginary32;
t2 = tfloat32;
goto L3;
case Tcomplex64:
t = timaginary64;
t2 = tfloat64;
goto L3;
case Tcomplex80:
t = timaginary80;
t2 = tfloat80;
goto L3;
L3:
e = e.castTo(sc, t);
e.type = t2;
break;
case Timaginary32:
t = tfloat32;
goto L4;
case Timaginary64:
t = tfloat64;
goto L4;
case Timaginary80:
t = tfloat80;
goto L4;
L4:
e = e.copy();
e.type = t;
break;
case Tfloat32:
case Tfloat64:
case Tfloat80:
e = new RealExp(e.loc, CTFloat.zero, this);
break;
default:
e = Type.getProperty(e.loc, ident, flag);
break;
}
}
else
{
return Type.dotExp(sc, e, ident, flag);
}
if (!(flag & 1) || e)
e = e.semantic(sc);
return e;
}
override bool isintegral()
{
//printf("TypeBasic::isintegral('%s') x%x\n", toChars(), flags);
return (flags & TFLAGSintegral) != 0;
}
override bool isfloating() const
{
return (flags & TFLAGSfloating) != 0;
}
override bool isreal() const
{
return (flags & TFLAGSreal) != 0;
}
override bool isimaginary() const
{
return (flags & TFLAGSimaginary) != 0;
}
override bool iscomplex() const
{
return (flags & TFLAGScomplex) != 0;
}
override bool isscalar() const
{
return (flags & (TFLAGSintegral | TFLAGSfloating)) != 0;
}
override bool isunsigned() const
{
return (flags & TFLAGSunsigned) != 0;
}
override MATCH implicitConvTo(Type to)
{
//printf("TypeBasic::implicitConvTo(%s) from %s\n", to->toChars(), toChars());
if (this == to)
return MATCHexact;
if (ty == to.ty)
{
if (mod == to.mod)
return MATCHexact;
else if (MODimplicitConv(mod, to.mod))
return MATCHconst;
else if (!((mod ^ to.mod) & MODshared)) // for wild matching
return MATCHconst;
else
return MATCHconvert;
}
if (ty == Tvoid || to.ty == Tvoid)
return MATCHnomatch;
if (to.ty == Tbool)
return MATCHnomatch;
TypeBasic tob;
if (to.ty == Tvector && to.deco)
{
TypeVector tv = cast(TypeVector)to;
tob = tv.elementType();
}
else
tob = to.isTypeBasic();
if (!tob)
return MATCHnomatch;
if (flags & TFLAGSintegral)
{
// Disallow implicit conversion of integers to imaginary or complex
if (tob.flags & (TFLAGSimaginary | TFLAGScomplex))
return MATCHnomatch;
// If converting from integral to integral
if (tob.flags & TFLAGSintegral)
{
d_uns64 sz = size(Loc());
d_uns64 tosz = tob.size(Loc());
/* Can't convert to smaller size
*/
if (sz > tosz)
return MATCHnomatch;
/* Can't change sign if same size
*/
//if (sz == tosz && (flags ^ tob->flags) & TFLAGSunsigned)
// return MATCHnomatch;
}
}
else if (flags & TFLAGSfloating)
{
// Disallow implicit conversion of floating point to integer
if (tob.flags & TFLAGSintegral)
return MATCHnomatch;
assert(tob.flags & TFLAGSfloating || to.ty == Tvector);
// Disallow implicit conversion from complex to non-complex
if (flags & TFLAGScomplex && !(tob.flags & TFLAGScomplex))
return MATCHnomatch;
// Disallow implicit conversion of real or imaginary to complex
if (flags & (TFLAGSreal | TFLAGSimaginary) && tob.flags & TFLAGScomplex)
return MATCHnomatch;
// Disallow implicit conversion to-from real and imaginary
if ((flags & (TFLAGSreal | TFLAGSimaginary)) != (tob.flags & (TFLAGSreal | TFLAGSimaginary)))
return MATCHnomatch;
}
return MATCHconvert;
}
override Expression defaultInit(Loc loc)
{
static if (LOGDEFAULTINIT)
{
printf("TypeBasic::defaultInit() '%s'\n", toChars());
}
dinteger_t value = 0;
switch (ty)
{
case Tchar:
value = 0xFF;
break;
case Twchar:
case Tdchar:
value = 0xFFFF;
break;
case Timaginary32:
case Timaginary64:
case Timaginary80:
case Tfloat32:
case Tfloat64:
case Tfloat80:
return new RealExp(loc, Target.RealProperties.snan, this);
case Tcomplex32:
case Tcomplex64:
case Tcomplex80:
{
// Can't use fvalue + I*fvalue (the im part becomes a quiet NaN).
const cvalue = complex_t(Target.RealProperties.snan, Target.RealProperties.snan);
return new ComplexExp(loc, cvalue, this);
}
case Tvoid:
error(loc, "void does not have a default initializer");
return new ErrorExp();
default:
break;
}
return new IntegerExp(loc, value, this);
}
override bool isZeroInit(Loc loc) const
{
switch (ty)
{
case Tchar:
case Twchar:
case Tdchar:
case Timaginary32:
case Timaginary64:
case Timaginary80:
case Tfloat32:
case Tfloat64:
case Tfloat80:
case Tcomplex32:
case Tcomplex64:
case Tcomplex80:
return false; // no
default:
return true; // yes
}
}
// For eliminating dynamic_cast
override TypeBasic isTypeBasic()
{
return this;
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
* The basetype must be one of:
* byte[16],ubyte[16],short[8],ushort[8],int[4],uint[4],long[2],ulong[2],float[4],double[2]
* For AVX:
* byte[32],ubyte[32],short[16],ushort[16],int[8],uint[8],long[4],ulong[4],float[8],double[4]
*/
extern (C++) final class TypeVector : Type
{
Type basetype;
extern (D) this(Loc loc, Type basetype)
{
super(Tvector);
this.basetype = basetype;
}
override const(char)* kind() const
{
return "vector";
}
override Type syntaxCopy()
{
return new TypeVector(Loc(), basetype.syntaxCopy());
}
override Type semantic(Loc loc, Scope* sc)
{
uint errors = global.errors;
basetype = basetype.semantic(loc, sc);
if (errors != global.errors)
return terror;
basetype = basetype.toBasetype().mutableOf();
if (basetype.ty != Tsarray)
{
error(loc, "T in __vector(T) must be a static array, not %s", basetype.toChars());
return terror;
}
TypeSArray t = cast(TypeSArray)basetype;
int sz = cast(int)t.size(loc);
switch (Target.checkVectorType(sz, t.nextOf()))
{
case 0:
// valid
break;
case 1:
// no support at all
error(loc, "SIMD vector types not supported on this platform");
return terror;
case 2:
// invalid size
error(loc, "%d byte vector type %s is not supported on this platform", sz, toChars());
return terror;
case 3:
// invalid base type
error(loc, "vector type %s is not supported on this platform", toChars());
return terror;
default:
assert(0);
}
return merge();
}
override d_uns64 size(Loc loc)
{
return basetype.size();
}
override uint alignsize()
{
return cast(uint)basetype.size();
}
override Expression getProperty(Loc loc, Identifier ident, int flag)
{
return Type.getProperty(loc, ident, flag);
}
override Expression dotExp(Scope* sc, Expression e, Identifier ident, int flag)
{
static if (LOGDOTEXP)
{
printf("TypeVector::dotExp(e = '%s', ident = '%s')\n", e.toChars(), ident.toChars());
}
if (ident == Id.array)
{
//e = e->castTo(sc, basetype);
// Keep lvalue-ness
e = e.copy();
e.type = basetype;
return e;
}
if (ident == Id._init || ident == Id.offsetof || ident == Id.stringof)
{
// init should return a new VectorExp (Bugzilla 12776)
// offsetof does not work on a cast expression, so use e directly
// stringof should not add a cast to the output
return Type.dotExp(sc, e, ident, flag);
}
return basetype.dotExp(sc, e.castTo(sc, basetype), ident, flag);
}
override bool isintegral()
{
//printf("TypeVector::isintegral('%s') x%x\n", toChars(), flags);
return basetype.nextOf().isintegral();
}
override bool isfloating()
{
return basetype.nextOf().isfloating();
}
override bool isscalar()
{
return basetype.nextOf().isscalar();
}
override bool isunsigned()
{
return basetype.nextOf().isunsigned();
}
override bool isBoolean() const
{
return false;
}
override MATCH implicitConvTo(Type to)
{
//printf("TypeVector::implicitConvTo(%s) from %s\n", to->toChars(), toChars());
if (this == to)
return MATCHexact;
if (ty == to.ty)
return MATCHconvert;
return MATCHnomatch;
}
override Expression defaultInit(Loc loc)
{
//printf("TypeVector::defaultInit()\n");
assert(basetype.ty == Tsarray);
Expression e = basetype.defaultInit(loc);
auto ve = new VectorExp(loc, e, this);
ve.type = this;
ve.dim = cast(int)(basetype.size(loc) / elementType().size(loc));
return ve;
}
override Expression defaultInitLiteral(Loc loc)
{
//printf("TypeVector::defaultInitLiteral()\n");
assert(basetype.ty == Tsarray);
Expression e = basetype.defaultInitLiteral(loc);
auto ve = new VectorExp(loc, e, this);
ve.type = this;
ve.dim = cast(int)(basetype.size(loc) / elementType().size(loc));
return ve;
}
TypeBasic elementType()
{
assert(basetype.ty == Tsarray);
TypeSArray t = cast(TypeSArray)basetype;
TypeBasic tb = t.nextOf().isTypeBasic();
assert(tb);
return tb;
}
override bool isZeroInit(Loc loc)
{
return basetype.isZeroInit(loc);
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) class TypeArray : TypeNext
{
final extern (D) this(TY ty, Type next)
{
super(ty, next);
}
override Expression dotExp(Scope* sc, Expression e, Identifier ident, int flag)
{
Type n = this.next.toBasetype(); // uncover any typedef's
static if (LOGDOTEXP)
{
printf("TypeArray::dotExp(e = '%s', ident = '%s')\n", e.toChars(), ident.toChars());
}
if (e.op == TOKtype)
{
if (ident == Id.sort || ident == Id.reverse)
{
e.error("%s is not an expression", e.toChars());
return new ErrorExp();
}
}
if (!n.isMutable())
{
if (ident == Id.sort || ident == Id.reverse)
{
error(e.loc, "can only %s a mutable array", ident.toChars());
goto Lerror;
}
}
if (ident == Id.reverse && (n.ty == Tchar || n.ty == Twchar))
{
static __gshared const(char)** reverseName = ["_adReverseChar", "_adReverseWchar"];
static __gshared FuncDeclaration* reverseFd = [null, null];
deprecation(e.loc, "use std.algorithm.reverse instead of .reverse property");
int i = n.ty == Twchar;
if (!reverseFd[i])
{
auto params = new Parameters();
Type next = n.ty == Twchar ? Type.twchar : Type.tchar;
Type arrty = next.arrayOf();
params.push(new Parameter(0, arrty, null, null));
reverseFd[i] = FuncDeclaration.genCfunc(params, arrty, reverseName[i]);
}
Expression ec = new VarExp(Loc(), reverseFd[i], false);
e = e.castTo(sc, n.arrayOf()); // convert to dynamic array
auto arguments = new Expressions();
arguments.push(e);
e = new CallExp(e.loc, ec, arguments);
e.type = next.arrayOf();
}
else if (ident == Id.sort && (n.ty == Tchar || n.ty == Twchar))
{
static __gshared const(char)** sortName = ["_adSortChar", "_adSortWchar"];
static __gshared FuncDeclaration* sortFd = [null, null];
deprecation(e.loc, "use std.algorithm.sort instead of .sort property");
int i = n.ty == Twchar;
if (!sortFd[i])
{
auto params = new Parameters();
Type next = n.ty == Twchar ? Type.twchar : Type.tchar;
Type arrty = next.arrayOf();
params.push(new Parameter(0, arrty, null, null));
sortFd[i] = FuncDeclaration.genCfunc(params, arrty, sortName[i]);
}
Expression ec = new VarExp(Loc(), sortFd[i], false);
e = e.castTo(sc, n.arrayOf()); // convert to dynamic array
auto arguments = new Expressions();
arguments.push(e);
e = new CallExp(e.loc, ec, arguments);
e.type = next.arrayOf();
}
else if (ident == Id.reverse)
{
Expression ec;
FuncDeclaration fd;
Expressions* arguments;
dinteger_t size = next.size(e.loc);
deprecation(e.loc, "use std.algorithm.reverse instead of .reverse property");
assert(size);
static __gshared FuncDeclaration adReverse_fd = null;
if (!adReverse_fd)
{
auto params = new Parameters();
params.push(new Parameter(0, Type.tvoid.arrayOf(), null, null));
params.push(new Parameter(0, Type.tsize_t, null, null));
adReverse_fd = FuncDeclaration.genCfunc(params, Type.tvoid.arrayOf(), Id.adReverse);
}
fd = adReverse_fd;
ec = new VarExp(Loc(), fd, false);
e = e.castTo(sc, n.arrayOf()); // convert to dynamic array
arguments = new Expressions();
arguments.push(e);
arguments.push(new IntegerExp(Loc(), size, Type.tsize_t));
e = new CallExp(e.loc, ec, arguments);
e.type = next.mutableOf().arrayOf();
}
else if (ident == Id.sort)
{
static __gshared FuncDeclaration fd = null;
Expression ec;
Expressions* arguments;
deprecation(e.loc, "use std.algorithm.sort instead of .sort property");
if (!fd)
{
auto params = new Parameters();
params.push(new Parameter(0, Type.tvoid.arrayOf(), null, null));
params.push(new Parameter(0, Type.dtypeinfo.type, null, null));
fd = FuncDeclaration.genCfunc(params, Type.tvoid.arrayOf(), "_adSort");
}
ec = new VarExp(Loc(), fd, false);
e = e.castTo(sc, n.arrayOf()); // convert to dynamic array
arguments = new Expressions();
arguments.push(e);
// don't convert to dynamic array
Expression tid = new TypeidExp(e.loc, n);
tid = tid.semantic(sc);
arguments.push(tid);
e = new CallExp(e.loc, ec, arguments);
e.type = next.arrayOf();
}
else
{
e = Type.dotExp(sc, e, ident, flag);
}
if (!(flag & 1) || e)
e = e.semantic(sc);
return e;
Lerror:
return new ErrorExp();
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
* Static array, one with a fixed dimension
*/
extern (C++) final class TypeSArray : TypeArray
{
Expression dim;
extern (D) this(Type t, Expression dim)
{
super(Tsarray, t);
//printf("TypeSArray(%s)\n", dim->toChars());
this.dim = dim;
}
override const(char)* kind() const
{
return "sarray";
}
override Type syntaxCopy()
{
Type t = next.syntaxCopy();
Expression e = dim.syntaxCopy();
t = new TypeSArray(t, e);
t.mod = mod;
return t;
}
override d_uns64 size(Loc loc)
{
//printf("TypeSArray::size()\n");
dinteger_t sz;
if (!dim)
return Type.size(loc);
sz = dim.toInteger();
{
bool overflow = false;
sz = mulu(next.size(), sz, overflow);
if (overflow)
goto Loverflow;
}
if (sz > uint.max)
goto Loverflow;
return sz;
Loverflow:
error(loc, "static array %s size overflowed to %lld", toChars(), cast(long)sz);
return SIZE_INVALID;
}
override uint alignsize()
{
return next.alignsize();
}
override Type semantic(Loc loc, Scope* sc)
{
//printf("TypeSArray::semantic() %s\n", toChars());
Type t;
Expression e;
Dsymbol s;
next.resolve(loc, sc, &e, &t, &s);
if (auto tup = s ? s.isTupleDeclaration() : null)
{
dim = semanticLength(sc, tup, dim);
dim = dim.ctfeInterpret();
if (dim.op == TOKerror)
return Type.terror;
uinteger_t d = dim.toUInteger();
if (d >= tup.objects.dim)
{
error(loc, "tuple index %llu exceeds %u", d, tup.objects.dim);
return Type.terror;
}
RootObject o = (*tup.objects)[cast(size_t)d];
if (o.dyncast() != DYNCAST_TYPE)
{
error(loc, "%s is not a type", toChars());
return Type.terror;
}
t = (cast(Type)o).addMod(this.mod);
return t;
}
Type tn = next.semantic(loc, sc);
if (tn.ty == Terror)
return terror;
Type tbn = tn.toBasetype();
if (dim)
{
uint errors = global.errors;
dim = semanticLength(sc, tbn, dim);
if (errors != global.errors)
goto Lerror;
dim = dim.optimize(WANTvalue);
dim = dim.ctfeInterpret();
if (dim.op == TOKerror)
goto Lerror;
errors = global.errors;
dinteger_t d1 = dim.toInteger();
if (errors != global.errors)
goto Lerror;
dim = dim.implicitCastTo(sc, tsize_t);
dim = dim.optimize(WANTvalue);
if (dim.op == TOKerror)
goto Lerror;
errors = global.errors;
dinteger_t d2 = dim.toInteger();
if (errors != global.errors)
goto Lerror;
if (dim.op == TOKerror)
goto Lerror;
if (d1 != d2)
{
Loverflow:
error(loc, "%s size %llu * %llu exceeds 16MiB size limit for static array", toChars(), cast(ulong)tbn.size(loc), cast(ulong)d1);
goto Lerror;
}
Type tbx = tbn.baseElemOf();
if (tbx.ty == Tstruct && !(cast(TypeStruct)tbx).sym.members || tbx.ty == Tenum && !(cast(TypeEnum)tbx).sym.members)
{
/* To avoid meaningess error message, skip the total size limit check
* when the bottom of element type is opaque.
*/
}
else if (tbn.isintegral() || tbn.isfloating() || tbn.ty == Tpointer || tbn.ty == Tarray || tbn.ty == Tsarray || tbn.ty == Taarray || (tbn.ty == Tstruct && ((cast(TypeStruct)tbn).sym.sizeok == SIZEOKdone)) || tbn.ty == Tclass)
{
/* Only do this for types that don't need to have semantic()
* run on them for the size, since they may be forward referenced.
*/
bool overflow = false;
if (mulu(tbn.size(loc), d2, overflow) >= 0x100_0000 || overflow) // put a 'reasonable' limit on it
goto Loverflow;
}
}
switch (tbn.ty)
{
case Ttuple:
{
// Index the tuple to get the type
assert(dim);
TypeTuple tt = cast(TypeTuple)tbn;
uinteger_t d = dim.toUInteger();
if (d >= tt.arguments.dim)
{
error(loc, "tuple index %llu exceeds %u", d, tt.arguments.dim);
goto Lerror;
}
Type telem = (*tt.arguments)[cast(size_t)d].type;
return telem.addMod(this.mod);
}
case Tfunction:
case Tnone:
error(loc, "can't have array of %s", tbn.toChars());
goto Lerror;
default:
break;
}
if (tbn.isscope())
{
error(loc, "cannot have array of scope %s", tbn.toChars());
goto Lerror;
}
/* Ensure things like const(immutable(T)[3]) become immutable(T[3])
* and const(T)[3] become const(T[3])
*/
next = tn;
transitive();
t = addMod(tn.mod);
return t.merge();
Lerror:
return Type.terror;
}
override void resolve(Loc loc, Scope* sc, Expression* pe, Type* pt, Dsymbol* ps, bool intypeid = false)
{
//printf("TypeSArray::resolve() %s\n", toChars());
next.resolve(loc, sc, pe, pt, ps, intypeid);
//printf("s = %p, e = %p, t = %p\n", *ps, *pe, *pt);
if (*pe)
{
// It's really an index expression
if (Dsymbol s = getDsymbol(*pe))
*pe = new DsymbolExp(loc, s);
*pe = new ArrayExp(loc, *pe, dim);
}
else if (*ps)
{
Dsymbol s = *ps;
if (auto tup = s.isTupleDeclaration())
{
dim = semanticLength(sc, tup, dim);
dim = dim.ctfeInterpret();
if (dim.op == TOKerror)
{
*ps = null;
*pt = Type.terror;
return;
}
uinteger_t d = dim.toUInteger();
if (d >= tup.objects.dim)
{
error(loc, "tuple index %llu exceeds length %u", d, tup.objects.dim);
*ps = null;
*pt = Type.terror;
return;
}
RootObject o = (*tup.objects)[cast(size_t)d];
if (o.dyncast() == DYNCAST_DSYMBOL)
{
*ps = cast(Dsymbol)o;
return;
}
if (o.dyncast() == DYNCAST_EXPRESSION)
{
Expression e = cast(Expression)o;
if (e.op == TOKdsymbol)
{
*ps = (cast(DsymbolExp)e).s;
*pe = null;
}
else
{
*ps = null;
*pe = e;
}
return;
}
if (o.dyncast() == DYNCAST_TYPE)
{
*ps = null;
*pt = (cast(Type)o).addMod(this.mod);
return;
}
/* Create a new TupleDeclaration which
* is a slice [d..d+1] out of the old one.
* Do it this way because TemplateInstance::semanticTiargs()
* can handle unresolved Objects this way.
*/
auto objects = new Objects();
objects.setDim(1);
(*objects)[0] = o;
*ps = new TupleDeclaration(loc, tup.ident, objects);
}
else
goto Ldefault;
}
else
{
if ((*pt).ty != Terror)
next = *pt; // prevent re-running semantic() on 'next'
Ldefault:
Type.resolve(loc, sc, pe, pt, ps, intypeid);
}
}
override Expression dotExp(Scope* sc, Expression e, Identifier ident, int flag)
{
static if (LOGDOTEXP)
{
printf("TypeSArray::dotExp(e = '%s', ident = '%s')\n", e.toChars(), ident.toChars());
}
if (ident == Id.length)
{
Loc oldLoc = e.loc;
e = dim.copy();
e.loc = oldLoc;
}
else if (ident == Id.ptr)
{
if (e.op == TOKtype)
{
e.error("%s is not an expression", e.toChars());
return new ErrorExp();
}
else if (!(flag & DotExpFlag.noDeref) && sc.func && !sc.intypeof && sc.func.setUnsafe() && global.params.safe)
{
e.error("%s.ptr cannot be used in @safe code, use &%s[0] instead", e.toChars(), e.toChars());
return new ErrorExp();
}
e = e.castTo(sc, e.type.nextOf().pointerTo());
}
else
{
e = TypeArray.dotExp(sc, e, ident, flag);
}
if (!(flag & 1) || e)
e = e.semantic(sc);
return e;
}
override bool isString()
{
TY nty = next.toBasetype().ty;
return nty == Tchar || nty == Twchar || nty == Tdchar;
}
override bool isZeroInit(Loc loc)
{
return next.isZeroInit(loc);
}
override structalign_t alignment()
{
return next.alignment();
}
override MATCH constConv(Type to)
{
if (to.ty == Tsarray)
{
TypeSArray tsa = cast(TypeSArray)to;
if (!dim.equals(tsa.dim))
return MATCHnomatch;
}
return TypeNext.constConv(to);
}
override MATCH implicitConvTo(Type to)
{
//printf("TypeSArray::implicitConvTo(to = %s) this = %s\n", to->toChars(), toChars());
if (to.ty == Tarray)
{
TypeDArray ta = cast(TypeDArray)to;
if (!MODimplicitConv(next.mod, ta.next.mod))
return MATCHnomatch;
/* Allow conversion to void[]
*/
if (ta.next.ty == Tvoid)
{
return MATCHconvert;
}
MATCH m = next.constConv(ta.next);
if (m > MATCHnomatch)
{
return MATCHconvert;
}
return MATCHnomatch;
}
if (to.ty == Tsarray)
{
if (this == to)
return MATCHexact;
TypeSArray tsa = cast(TypeSArray)to;
if (dim.equals(tsa.dim))
{
/* Since static arrays are value types, allow
* conversions from const elements to non-const
* ones, just like we allow conversion from const int
* to int.
*/
MATCH m = next.implicitConvTo(tsa.next);
if (m >= MATCHconst)
{
if (mod != to.mod)
m = MATCHconst;
return m;
}
}
}
return MATCHnomatch;
}
override Expression defaultInit(Loc loc)
{
static if (LOGDEFAULTINIT)
{
printf("TypeSArray::defaultInit() '%s'\n", toChars());
}
if (next.ty == Tvoid)
return tuns8.defaultInit(loc);
else
return next.defaultInit(loc);
}
override Expression defaultInitLiteral(Loc loc)
{
static if (LOGDEFAULTINIT)
{
printf("TypeSArray::defaultInitLiteral() '%s'\n", toChars());
}
size_t d = cast(size_t)dim.toInteger();
Expression elementinit;
if (next.ty == Tvoid)
elementinit = tuns8.defaultInitLiteral(loc);
else
elementinit = next.defaultInitLiteral(loc);
auto elements = new Expressions();
elements.setDim(d);
for (size_t i = 0; i < d; i++)
(*elements)[i] = null;
auto ae = new ArrayLiteralExp(Loc(), elementinit, elements);
ae.type = this;
return ae;
}
override Expression toExpression()
{
Expression e = next.toExpression();
if (e)
e = new ArrayExp(dim.loc, e, dim);
return e;
}
override bool hasPointers()
{
/* Don't want to do this, because:
* struct S { T* array[0]; }
* may be a variable length struct.
*/
//if (dim->toInteger() == 0)
// return false;
if (next.ty == Tvoid)
{
// Arrays of void contain arbitrary data, which may include pointers
return true;
}
else
return next.hasPointers();
}
override bool needsDestruction()
{
return next.needsDestruction();
}
/*********************************
*
*/
override bool needsNested()
{
return next.needsNested();
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
* Dynamic array, no dimension
*/
extern (C++) final class TypeDArray : TypeArray
{
extern (D) this(Type t)
{
super(Tarray, t);
//printf("TypeDArray(t = %p)\n", t);
}
override const(char)* kind() const
{
return "darray";
}
override Type syntaxCopy()
{
Type t = next.syntaxCopy();
if (t == next)
t = this;
else
{
t = new TypeDArray(t);
t.mod = mod;
}
return t;
}
override d_uns64 size(Loc loc) const
{
//printf("TypeDArray::size()\n");
return Target.ptrsize * 2;
}
override uint alignsize() const
{
// A DArray consists of two ptr-sized values, so align it on pointer size
// boundary
return Target.ptrsize;
}
override Type semantic(Loc loc, Scope* sc)
{
Type tn = next.semantic(loc, sc);
Type tbn = tn.toBasetype();
switch (tbn.ty)
{
case Ttuple:
return tbn;
case Tfunction:
case Tnone:
error(loc, "can't have array of %s", tbn.toChars());
return Type.terror;
case Terror:
return Type.terror;
default:
break;
}
if (tn.isscope())
{
error(loc, "cannot have array of scope %s", tn.toChars());
return Type.terror;
}
next = tn;
transitive();
return merge();
}
override void resolve(Loc loc, Scope* sc, Expression* pe, Type* pt, Dsymbol* ps, bool intypeid = false)
{
//printf("TypeDArray::resolve() %s\n", toChars());
next.resolve(loc, sc, pe, pt, ps, intypeid);
//printf("s = %p, e = %p, t = %p\n", *ps, *pe, *pt);
if (*pe)
{
// It's really a slice expression
if (Dsymbol s = getDsymbol(*pe))
*pe = new DsymbolExp(loc, s);
*pe = new ArrayExp(loc, *pe);
}
else if (*ps)
{
if (auto tup = (*ps).isTupleDeclaration())
{
// keep *ps
}
else
goto Ldefault;
}
else
{
if ((*pt).ty != Terror)
next = *pt; // prevent re-running semantic() on 'next'
Ldefault:
Type.resolve(loc, sc, pe, pt, ps, intypeid);
}
}
override Expression dotExp(Scope* sc, Expression e, Identifier ident, int flag)
{
static if (LOGDOTEXP)
{
printf("TypeDArray::dotExp(e = '%s', ident = '%s')\n", e.toChars(), ident.toChars());
}
if (e.op == TOKtype && (ident == Id.length || ident == Id.ptr))
{
e.error("%s is not an expression", e.toChars());
return new ErrorExp();
}
if (ident == Id.length)
{
if (e.op == TOKstring)
{
StringExp se = cast(StringExp)e;
return new IntegerExp(se.loc, se.len, Type.tsize_t);
}
if (e.op == TOKnull)
return new IntegerExp(e.loc, 0, Type.tsize_t);
if (checkNonAssignmentArrayOp(e))
return new ErrorExp();
e = new ArrayLengthExp(e.loc, e);
e.type = Type.tsize_t;
return e;
}
else if (ident == Id.ptr)
{
if (!(flag & DotExpFlag.noDeref) && sc.func && !sc.intypeof && sc.func.setUnsafe() && global.params.safe)
{
e.error("%s.ptr cannot be used in @safe code, use &%s[0] instead", e.toChars(), e.toChars());
return new ErrorExp();
}
e = e.castTo(sc, next.pointerTo());
return e;
}
else
{
e = TypeArray.dotExp(sc, e, ident, flag);
}
return e;
}
override bool isString()
{
TY nty = next.toBasetype().ty;
return nty == Tchar || nty == Twchar || nty == Tdchar;
}
override bool isZeroInit(Loc loc) const
{
return true;
}
override bool isBoolean() const
{
return true;
}
override MATCH implicitConvTo(Type to)
{
//printf("TypeDArray::implicitConvTo(to = %s) this = %s\n", to->toChars(), toChars());
if (equals(to))
return MATCHexact;
if (to.ty == Tarray)
{
TypeDArray ta = cast(TypeDArray)to;
if (!MODimplicitConv(next.mod, ta.next.mod))
return MATCHnomatch; // not const-compatible
/* Allow conversion to void[]
*/
if (next.ty != Tvoid && ta.next.ty == Tvoid)
{
return MATCHconvert;
}
MATCH m = next.constConv(ta.next);
if (m > MATCHnomatch)
{
if (m == MATCHexact && mod != to.mod)
m = MATCHconst;
return m;
}
}
return Type.implicitConvTo(to);
}
override Expression defaultInit(Loc loc)
{
static if (LOGDEFAULTINIT)
{
printf("TypeDArray::defaultInit() '%s'\n", toChars());
}
return new NullExp(loc, this);
}
override bool hasPointers() const
{
return true;
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class TypeAArray : TypeArray
{
Type index; // key type
Loc loc;
Scope* sc;
extern (D) this(Type t, Type index)
{
super(Taarray, t);
this.index = index;
}
static TypeAArray create(Type t, Type index)
{
return new TypeAArray(t, index);
}
override const(char)* kind() const
{
return "aarray";
}
override Type syntaxCopy()
{
Type t = next.syntaxCopy();
Type ti = index.syntaxCopy();
if (t == next && ti == index)
t = this;
else
{
t = new TypeAArray(t, ti);
t.mod = mod;
}
return t;
}
override d_uns64 size(Loc loc)
{
return Target.ptrsize;
}
override Type semantic(Loc loc, Scope* sc)
{
//printf("TypeAArray::semantic() %s index->ty = %d\n", toChars(), index->ty);
if (deco)
return this;
this.loc = loc;
this.sc = sc;
if (sc)
sc.setNoFree();
// Deal with the case where we thought the index was a type, but
// in reality it was an expression.
if (index.ty == Tident || index.ty == Tinstance || index.ty == Tsarray || index.ty == Ttypeof || index.ty == Treturn)
{
Expression e;
Type t;
Dsymbol s;
index.resolve(loc, sc, &e, &t, &s);
if (e)
{
// It was an expression -
// Rewrite as a static array
auto tsa = new TypeSArray(next, e);
return tsa.semantic(loc, sc);
}
else if (t)
index = t.semantic(loc, sc);
else
{
index.error(loc, "index is not a type or an expression");
return Type.terror;
}
}
else
index = index.semantic(loc, sc);
index = index.merge2();
if (index.nextOf() && !index.nextOf().isImmutable())
{
index = index.constOf().mutableOf();
version (none)
{
printf("index is %p %s\n", index, index.toChars());
index.check();
printf("index->mod = x%x\n", index.mod);
printf("index->ito = x%x\n", index.ito);
if (index.ito)
{
printf("index->ito->mod = x%x\n", index.ito.mod);
printf("index->ito->ito = x%x\n", index.ito.ito);
}
}
}
switch (index.toBasetype().ty)
{
case Tfunction:
case Tvoid:
case Tnone:
case Ttuple:
error(loc, "can't have associative array key of %s", index.toBasetype().toChars());
goto case Terror;
case Terror:
return Type.terror;
default:
break;
}
Type tbase = index.baseElemOf();
while (tbase.ty == Tarray)
tbase = tbase.nextOf().baseElemOf();
if (tbase.ty == Tstruct)
{
/* AA's need typeid(index).equals() and getHash(). Issue error if not correctly set up.
*/
StructDeclaration sd = (cast(TypeStruct)tbase).sym;
if (sd._scope)
sd.semantic(null);
// duplicate a part of StructDeclaration::semanticTypeInfoMembers
if (sd.xeq && sd.xeq._scope && sd.xeq.semanticRun < PASSsemantic3done)
{
uint errors = global.startGagging();
sd.xeq.semantic3(sd.xeq._scope);
if (global.endGagging(errors))
sd.xeq = sd.xerreq;
}
//printf("AA = %s, key: xeq = %p, xhash = %p\n", toChars(), sd->xeq, sd->xhash);
const(char)* s = (index.toBasetype().ty != Tstruct) ? "bottom of " : "";
if (!sd.xeq)
{
// If sd->xhash != NULL:
// sd or its fields have user-defined toHash.
// AA assumes that its result is consistent with bitwise equality.
// else:
// bitwise equality & hashing
}
else if (sd.xeq == sd.xerreq)
{
if (search_function(sd, Id.eq))
{
error(loc, "%sAA key type %s does not have 'bool opEquals(ref const %s) const'", s, sd.toChars(), sd.toChars());
}
else
{
error(loc, "%sAA key type %s does not support const equality", s, sd.toChars());
}
return Type.terror;
}
else if (!sd.xhash)
{
if (search_function(sd, Id.eq))
{
error(loc, "%sAA key type %s should have 'size_t toHash() const nothrow @safe' if opEquals defined", s, sd.toChars());
}
else
{
error(loc, "%sAA key type %s supports const equality but doesn't support const hashing", s, sd.toChars());
}
return Type.terror;
}
else
{
// defined equality & hashing
assert(sd.xeq && sd.xhash);
/* xeq and xhash may be implicitly defined by compiler. For example:
* struct S { int[] arr; }
* With 'arr' field equality and hashing, compiler will implicitly
* generate functions for xopEquals and xtoHash in TypeInfo_Struct.
*/
}
}
else if (tbase.ty == Tclass && !(cast(TypeClass)tbase).sym.isInterfaceDeclaration())
{
ClassDeclaration cd = (cast(TypeClass)tbase).sym;
if (cd._scope)
cd.semantic(null);
if (!ClassDeclaration.object)
{
error(Loc(), "missing or corrupt object.d");
fatal();
}
static __gshared FuncDeclaration feq = null;
static __gshared FuncDeclaration fcmp = null;
static __gshared FuncDeclaration fhash = null;
if (!feq)
feq = search_function(ClassDeclaration.object, Id.eq).isFuncDeclaration();
if (!fcmp)
fcmp = search_function(ClassDeclaration.object, Id.cmp).isFuncDeclaration();
if (!fhash)
fhash = search_function(ClassDeclaration.object, Id.tohash).isFuncDeclaration();
assert(fcmp && feq && fhash);
if (feq.vtblIndex < cd.vtbl.dim && cd.vtbl[feq.vtblIndex] == feq)
{
version (all)
{
if (fcmp.vtblIndex < cd.vtbl.dim && cd.vtbl[fcmp.vtblIndex] != fcmp)
{
const(char)* s = (index.toBasetype().ty != Tclass) ? "bottom of " : "";
error(loc, "%sAA key type %s now requires equality rather than comparison", s, cd.toChars());
errorSupplemental(loc, "Please override Object.opEquals and toHash.");
}
}
}
}
next = next.semantic(loc, sc).merge2();
transitive();
switch (next.toBasetype().ty)
{
case Tfunction:
case Tvoid:
case Tnone:
case Ttuple:
error(loc, "can't have associative array of %s", next.toChars());
goto case Terror;
case Terror:
return Type.terror;
default:
break;
}
if (next.isscope())
{
error(loc, "cannot have array of scope %s", next.toChars());
return Type.terror;
}
return merge();
}
override void resolve(Loc loc, Scope* sc, Expression* pe, Type* pt, Dsymbol* ps, bool intypeid = false)
{
//printf("TypeAArray::resolve() %s\n", toChars());
// Deal with the case where we thought the index was a type, but
// in reality it was an expression.
if (index.ty == Tident || index.ty == Tinstance || index.ty == Tsarray)
{
Expression e;
Type t;
Dsymbol s;
index.resolve(loc, sc, &e, &t, &s, intypeid);
if (e)
{
// It was an expression -
// Rewrite as a static array
auto tsa = new TypeSArray(next, e);
tsa.mod = this.mod; // just copy mod field so tsa's semantic is not yet done
return tsa.resolve(loc, sc, pe, pt, ps, intypeid);
}
else if (t)
index = t;
else
index.error(loc, "index is not a type or an expression");
}
Type.resolve(loc, sc, pe, pt, ps, intypeid);
}
override Expression dotExp(Scope* sc, Expression e, Identifier ident, int flag)
{
static if (LOGDOTEXP)
{
printf("TypeAArray::dotExp(e = '%s', ident = '%s')\n", e.toChars(), ident.toChars());
}
if (ident == Id.length)
{
static __gshared FuncDeclaration fd_aaLen = null;
if (fd_aaLen is null)
{
auto fparams = new Parameters();
fparams.push(new Parameter(STCin, this, null, null));
fd_aaLen = FuncDeclaration.genCfunc(fparams, Type.tsize_t, Id.aaLen);
TypeFunction tf = cast(TypeFunction)fd_aaLen.type;
tf.purity = PUREconst;
tf.isnothrow = true;
tf.isnogc = false;
}
Expression ev = new VarExp(e.loc, fd_aaLen, false);
e = new CallExp(e.loc, ev, e);
e.type = (cast(TypeFunction)fd_aaLen.type).next;
}
else
e = Type.dotExp(sc, e, ident, flag);
return e;
}
override Expression defaultInit(Loc loc)
{
static if (LOGDEFAULTINIT)
{
printf("TypeAArray::defaultInit() '%s'\n", toChars());
}
return new NullExp(loc, this);
}
override bool isZeroInit(Loc loc) const
{
return true;
}
override bool isBoolean() const
{
return true;
}
override Expression toExpression()
{
Expression e = next.toExpression();
if (e)
{
Expression ei = index.toExpression();
if (ei)
return new ArrayExp(loc, e, ei);
}
return null;
}
override bool hasPointers() const
{
return true;
}
override MATCH implicitConvTo(Type to)
{
//printf("TypeAArray::implicitConvTo(to = %s) this = %s\n", to->toChars(), toChars());
if (equals(to))
return MATCHexact;
if (to.ty == Taarray)
{
TypeAArray ta = cast(TypeAArray)to;
if (!MODimplicitConv(next.mod, ta.next.mod))
return MATCHnomatch; // not const-compatible
if (!MODimplicitConv(index.mod, ta.index.mod))
return MATCHnomatch; // not const-compatible
MATCH m = next.constConv(ta.next);
MATCH mi = index.constConv(ta.index);
if (m > MATCHnomatch && mi > MATCHnomatch)
{
return MODimplicitConv(mod, to.mod) ? MATCHconst : MATCHnomatch;
}
}
return Type.implicitConvTo(to);
}
override MATCH constConv(Type to)
{
if (to.ty == Taarray)
{
TypeAArray taa = cast(TypeAArray)to;
MATCH mindex = index.constConv(taa.index);
MATCH mkey = next.constConv(taa.next);
// Pick the worst match
return mkey < mindex ? mkey : mindex;
}
return Type.constConv(to);
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class TypePointer : TypeNext
{
extern (D) this(Type t)
{
super(Tpointer, t);
}
override const(char)* kind() const
{
return "pointer";
}
override Type syntaxCopy()
{
Type t = next.syntaxCopy();
if (t == next)
t = this;
else
{
t = new TypePointer(t);
t.mod = mod;
}
return t;
}
override Type semantic(Loc loc, Scope* sc)
{
//printf("TypePointer::semantic() %s\n", toChars());
if (deco)
return this;
Type n = next.semantic(loc, sc);
switch (n.toBasetype().ty)
{
case Ttuple:
error(loc, "can't have pointer to %s", n.toChars());
goto case Terror;
case Terror:
return Type.terror;
default:
break;
}
if (n != next)
{
deco = null;
}
next = n;
if (next.ty != Tfunction)
{
transitive();
return merge();
}
version (none)
{
return merge();
}
else
{
deco = merge().deco;
/* Don't return merge(), because arg identifiers and default args
* can be different
* even though the types match
*/
return this;
}
}
override d_uns64 size(Loc loc) const
{
return Target.ptrsize;
}
override MATCH implicitConvTo(Type to)
{
//printf("TypePointer::implicitConvTo(to = %s) %s\n", to->toChars(), toChars());
if (equals(to))
return MATCHexact;
if (next.ty == Tfunction)
{
if (to.ty == Tpointer)
{
TypePointer tp = cast(TypePointer)to;
if (tp.next.ty == Tfunction)
{
if (next.equals(tp.next))
return MATCHconst;
if (next.covariant(tp.next) == 1)
{
Type tret = this.next.nextOf();
Type toret = tp.next.nextOf();
if (tret.ty == Tclass && toret.ty == Tclass)
{
/* Bugzilla 10219: Check covariant interface return with offset tweaking.
* interface I {}
* class C : Object, I {}
* I function() dg = function C() {} // should be error
*/
int offset = 0;
if (toret.isBaseOf(tret, &offset) && offset != 0)
return MATCHnomatch;
}
return MATCHconvert;
}
}
else if (tp.next.ty == Tvoid)
{
// Allow conversions to void*
return MATCHconvert;
}
}
return MATCHnomatch;
}
else if (to.ty == Tpointer)
{
TypePointer tp = cast(TypePointer)to;
assert(tp.next);
if (!MODimplicitConv(next.mod, tp.next.mod))
return MATCHnomatch; // not const-compatible
/* Alloc conversion to void*
*/
if (next.ty != Tvoid && tp.next.ty == Tvoid)
{
return MATCHconvert;
}
MATCH m = next.constConv(tp.next);
if (m > MATCHnomatch)
{
if (m == MATCHexact && mod != to.mod)
m = MATCHconst;
return m;
}
}
return MATCHnomatch;
}
override MATCH constConv(Type to)
{
if (next.ty == Tfunction)
{
if (to.nextOf() && next.equals((cast(TypeNext)to).next))
return Type.constConv(to);
else
return MATCHnomatch;
}
return TypeNext.constConv(to);
}
override bool isscalar() const
{
return true;
}
override Expression defaultInit(Loc loc)
{
static if (LOGDEFAULTINIT)
{
printf("TypePointer::defaultInit() '%s'\n", toChars());
}
return new NullExp(loc, this);
}
override bool isZeroInit(Loc loc) const
{
return true;
}
override bool hasPointers() const
{
return true;
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class TypeReference : TypeNext
{
extern (D) this(Type t)
{
super(Treference, t);
// BUG: what about references to static arrays?
}
override const(char)* kind() const
{
return "reference";
}
override Type syntaxCopy()
{
Type t = next.syntaxCopy();
if (t == next)
t = this;
else
{
t = new TypeReference(t);
t.mod = mod;
}
return t;
}
override Type semantic(Loc loc, Scope* sc)
{
//printf("TypeReference::semantic()\n");
Type n = next.semantic(loc, sc);
if (n != next)
deco = null;
next = n;
transitive();
return merge();
}
override d_uns64 size(Loc loc) const
{
return Target.ptrsize;
}
override Expression dotExp(Scope* sc, Expression e, Identifier ident, int flag)
{
static if (LOGDOTEXP)
{
printf("TypeReference::dotExp(e = '%s', ident = '%s')\n", e.toChars(), ident.toChars());
}
// References just forward things along
return next.dotExp(sc, e, ident, flag);
}
override Expression defaultInit(Loc loc)
{
static if (LOGDEFAULTINIT)
{
printf("TypeReference::defaultInit() '%s'\n", toChars());
}
return new NullExp(loc, this);
}
override bool isZeroInit(Loc loc) const
{
return true;
}
override void accept(Visitor v)
{
v.visit(this);
}
}
enum RET : int
{
RETregs = 1, // returned in registers
RETstack = 2, // returned on stack
}
alias RETregs = RET.RETregs;
alias RETstack = RET.RETstack;
enum TRUST : int
{
TRUSTdefault = 0,
TRUSTsystem = 1, // @system (same as TRUSTdefault)
TRUSTtrusted = 2, // @trusted
TRUSTsafe = 3, // @safe
}
alias TRUSTdefault = TRUST.TRUSTdefault;
alias TRUSTsystem = TRUST.TRUSTsystem;
alias TRUSTtrusted = TRUST.TRUSTtrusted;
alias TRUSTsafe = TRUST.TRUSTsafe;
enum TRUSTformat : int
{
TRUSTformatDefault, // do not emit @system when trust == TRUSTdefault
TRUSTformatSystem, // emit @system when trust == TRUSTdefault
}
alias TRUSTformatDefault = TRUSTformat.TRUSTformatDefault;
alias TRUSTformatSystem = TRUSTformat.TRUSTformatSystem;
enum PURE : int
{
PUREimpure = 0, // not pure at all
PUREfwdref = 1, // it's pure, but not known which level yet
PUREweak = 2, // no mutable globals are read or written
PUREconst = 3, // parameters are values or const
PUREstrong = 4, // parameters are values or immutable
}
alias PUREimpure = PURE.PUREimpure;
alias PUREfwdref = PURE.PUREfwdref;
alias PUREweak = PURE.PUREweak;
alias PUREconst = PURE.PUREconst;
alias PUREstrong = PURE.PUREstrong;
/***********************************************************
*/
extern (C++) final class TypeFunction : TypeNext
{
// .next is the return type
Parameters* parameters; // function parameters
int varargs; // 1: T t, ...) style for variable number of arguments
// 2: T t ...) style for variable number of arguments
bool isnothrow; // true: nothrow
bool isnogc; // true: is @nogc
bool isproperty; // can be called without parentheses
bool isref; // true: returns a reference
bool isreturn; // true: 'this' is returned by ref
bool isscope; // true: 'this' is scope
LINK linkage; // calling convention
TRUST trust; // level of trust
PURE purity = PUREimpure;
ubyte iswild; // bit0: inout on params, bit1: inout on qualifier
Expressions* fargs; // function arguments
int inuse;
extern (D) this(Parameters* parameters, Type treturn, int varargs, LINK linkage, StorageClass stc = 0)
{
super(Tfunction, treturn);
//if (!treturn) *(char*)0=0;
// assert(treturn);
assert(0 <= varargs && varargs <= 2);
this.parameters = parameters;
this.varargs = varargs;
this.linkage = linkage;
if (stc & STCpure)
this.purity = PUREfwdref;
if (stc & STCnothrow)
this.isnothrow = true;
if (stc & STCnogc)
this.isnogc = true;
if (stc & STCproperty)
this.isproperty = true;
if (stc & STCref)
this.isref = true;
if (stc & STCreturn)
this.isreturn = true;
if (stc & STCscope)
this.isscope = true;
this.trust = TRUSTdefault;
if (stc & STCsafe)
this.trust = TRUSTsafe;
if (stc & STCsystem)
this.trust = TRUSTsystem;
if (stc & STCtrusted)
this.trust = TRUSTtrusted;
}
static TypeFunction create(Parameters* parameters, Type treturn, int varargs, LINK linkage, StorageClass stc = 0)
{
return new TypeFunction(parameters, treturn, varargs, linkage, stc);
}
override const(char)* kind() const
{
return "function";
}
override Type syntaxCopy()
{
Type treturn = next ? next.syntaxCopy() : null;
Parameters* params = Parameter.arraySyntaxCopy(parameters);
auto t = new TypeFunction(params, treturn, varargs, linkage);
t.mod = mod;
t.isnothrow = isnothrow;
t.isnogc = isnogc;
t.purity = purity;
t.isproperty = isproperty;
t.isref = isref;
t.isreturn = isreturn;
t.isscope = isscope;
t.iswild = iswild;
t.trust = trust;
t.fargs = fargs;
return t;
}
override Type semantic(Loc loc, Scope* sc)
{
if (deco) // if semantic() already run
{
//printf("already done\n");
return this;
}
//printf("TypeFunction::semantic() this = %p\n", this);
//printf("TypeFunction::semantic() %s, sc->stc = %llx, fargs = %p\n", toChars(), sc->stc, fargs);
bool errors = false;
/* Copy in order to not mess up original.
* This can produce redundant copies if inferring return type,
* as semantic() will get called again on this.
*/
TypeFunction tf = cast(TypeFunction)copy();
if (parameters)
{
tf.parameters = parameters.copy();
for (size_t i = 0; i < parameters.dim; i++)
{
Parameter p = cast(Parameter)mem.xmalloc(__traits(classInstanceSize, Parameter));
memcpy(cast(void*)p, cast(void*)(*parameters)[i], __traits(classInstanceSize, Parameter));
(*tf.parameters)[i] = p;
}
}
if (sc.stc & STCpure)
tf.purity = PUREfwdref;
if (sc.stc & STCnothrow)
tf.isnothrow = true;
if (sc.stc & STCnogc)
tf.isnogc = true;
if (sc.stc & STCref)
tf.isref = true;
if (sc.stc & STCreturn)
tf.isreturn = true;
if (sc.stc & STCscope)
tf.isscope = true;
if ((sc.stc & (STCreturn | STCref)) == STCreturn)
tf.isscope = true; // return by itself means 'return scope'
if (tf.trust == TRUSTdefault)
{
if (sc.stc & STCsafe)
tf.trust = TRUSTsafe;
else if (sc.stc & STCsystem)
tf.trust = TRUSTsystem;
else if (sc.stc & STCtrusted)
tf.trust = TRUSTtrusted;
}
if (sc.stc & STCproperty)
tf.isproperty = true;
tf.linkage = sc.linkage;
version (none)
{
/* If the parent is @safe, then this function defaults to safe
* too.
* If the parent's @safe-ty is inferred, then this function's @safe-ty needs
* to be inferred first.
*/
if (tf.trust == TRUSTdefault)
for (Dsymbol p = sc.func; p; p = p.toParent2())
{
FuncDeclaration fd = p.isFuncDeclaration();
if (fd)
{
if (fd.isSafeBypassingInference())
tf.trust = TRUSTsafe; // default to @safe
break;
}
}
}
bool wildreturn = false;
if (tf.next)
{
sc = sc.push();
sc.stc &= ~(STC_TYPECTOR | STC_FUNCATTR);
tf.next = tf.next.semantic(loc, sc);
sc = sc.pop();
errors |= tf.checkRetType(loc);
if (tf.next.isscope() && !(sc.flags & SCOPEctor))
{
error(loc, "functions cannot return scope %s", tf.next.toChars());
errors = true;
}
if (tf.next.hasWild())
wildreturn = true;
if (tf.isreturn && !tf.isref && !tf.next.hasPointers())
{
error(loc, "function has 'return' but does not return any indirections");
}
}
ubyte wildparams = 0;
if (tf.parameters)
{
/* Create a scope for evaluating the default arguments for the parameters
*/
Scope* argsc = sc.push();
argsc.stc = 0; // don't inherit storage class
argsc.protection = Prot(PROTpublic);
argsc.func = null;
size_t dim = Parameter.dim(tf.parameters);
for (size_t i = 0; i < dim; i++)
{
Parameter fparam = Parameter.getNth(tf.parameters, i);
tf.inuse++;
fparam.type = fparam.type.semantic(loc, argsc);
if (tf.inuse == 1)
tf.inuse--;
if (fparam.type.ty == Terror)
{
errors = true;
continue;
}
fparam.type = fparam.type.addStorageClass(fparam.storageClass);
if (fparam.storageClass & (STCauto | STCalias | STCstatic))
{
if (!fparam.type)
continue;
}
Type t = fparam.type.toBasetype();
if (t.ty == Tfunction)
{
error(loc, "cannot have parameter of function type %s", fparam.type.toChars());
errors = true;
}
else if (!(fparam.storageClass & (STCref | STCout)) &&
(t.ty == Tstruct || t.ty == Tsarray || t.ty == Tenum))
{
Type tb2 = t.baseElemOf();
if (tb2.ty == Tstruct && !(cast(TypeStruct)tb2).sym.members ||
tb2.ty == Tenum && !(cast(TypeEnum)tb2).sym.memtype)
{
error(loc, "cannot have parameter of opaque type %s by value", fparam.type.toChars());
errors = true;
}
}
else if (!(fparam.storageClass & STClazy) && t.ty == Tvoid)
{
error(loc, "cannot have parameter of type %s", fparam.type.toChars());
errors = true;
}
if ((fparam.storageClass & (STCref | STCwild)) == (STCref | STCwild))
{
// 'ref inout' implies 'return'
fparam.storageClass |= STCreturn;
}
if (fparam.storageClass & STCreturn)
{
if (fparam.storageClass & (STCref | STCout))
{
// Disabled for the moment awaiting improvement to allow return by ref
// to be transformed into return by scope.
if (0 && !tf.isref)
{
auto stc = fparam.storageClass & (STCref | STCout);
error(loc, "parameter %s is 'return %s' but function does not return by ref",
fparam.ident ? fparam.ident.toChars() : "",
stcToChars(stc));
errors = true;
}
}
else
{
fparam.storageClass |= STCscope; // 'return' implies 'scope'
if (tf.isref)
{
error(loc, "parameter %s is 'return' but function returns 'ref'",
fparam.ident ? fparam.ident.toChars() : "");
errors = true;
}
else if (tf.next && !tf.next.hasPointers())
{
error(loc, "parameter %s is 'return' but function does not return any indirections",
fparam.ident ? fparam.ident.toChars() : "");
errors = true;
}
}
}
if (fparam.storageClass & (STCref | STClazy))
{
}
else if (fparam.storageClass & STCout)
{
if (ubyte m = fparam.type.mod & (MODimmutable | MODconst | MODwild))
{
error(loc, "cannot have %s out parameter of type %s", MODtoChars(m), t.toChars());
errors = true;
}
else
{
Type tv = t;
while (tv.ty == Tsarray)
tv = tv.nextOf().toBasetype();
if (tv.ty == Tstruct && (cast(TypeStruct)tv).sym.noDefaultCtor)
{
error(loc, "cannot have out parameter of type %s because the default construction is disabled", fparam.type.toChars());
errors = true;
}
}
}
if (fparam.storageClass & STCscope && !fparam.type.hasPointers())
fparam.storageClass &= ~(STCreturn | STCscope);
if (t.hasWild())
{
wildparams |= 1;
//if (tf->next && !wildreturn)
// error(loc, "inout on parameter means inout must be on return type as well (if from D1 code, replace with 'ref')");
}
if (fparam.defaultArg)
{
Expression e = fparam.defaultArg;
if (fparam.storageClass & (STCref | STCout))
{
e = e.semantic(argsc);
e = resolveProperties(argsc, e);
}
else
{
e = inferType(e, fparam.type);
Initializer iz = new ExpInitializer(e.loc, e);
iz = iz.semantic(argsc, fparam.type, INITnointerpret);
e = iz.toExpression();
}
if (e.op == TOKfunction) // see Bugzilla 4820
{
FuncExp fe = cast(FuncExp)e;
// Replace function literal with a function symbol,
// since default arg expression must be copied when used
// and copying the literal itself is wrong.
e = new VarExp(e.loc, fe.fd, false);
e = new AddrExp(e.loc, e);
e = e.semantic(argsc);
}
e = e.implicitCastTo(argsc, fparam.type);
// default arg must be an lvalue
if (fparam.storageClass & (STCout | STCref))
e = e.toLvalue(argsc, e);
fparam.defaultArg = e;
if (e.op == TOKerror)
errors = true;
}
/* If fparam after semantic() turns out to be a tuple, the number of parameters may
* change.
*/
if (t.ty == Ttuple)
{
/* TypeFunction::parameter also is used as the storage of
* Parameter objects for FuncDeclaration. So we should copy
* the elements of TypeTuple::arguments to avoid unintended
* sharing of Parameter object among other functions.
*/
TypeTuple tt = cast(TypeTuple)t;
if (tt.arguments && tt.arguments.dim)
{
/* Propagate additional storage class from tuple parameters to their
* element-parameters.
* Make a copy, as original may be referenced elsewhere.
*/
size_t tdim = tt.arguments.dim;
auto newparams = new Parameters();
newparams.setDim(tdim);
for (size_t j = 0; j < tdim; j++)
{
Parameter narg = (*tt.arguments)[j];
// Bugzilla 12744: If the storage classes of narg
// conflict with the ones in fparam, it's ignored.
StorageClass stc = fparam.storageClass | narg.storageClass;
StorageClass stc1 = fparam.storageClass & (STCref | STCout | STClazy);
StorageClass stc2 = narg.storageClass & (STCref | STCout | STClazy);
if (stc1 && stc2 && stc1 != stc2)
{
OutBuffer buf1; stcToBuffer(&buf1, stc1 | ((stc1 & STCref) ? (fparam.storageClass & STCauto) : 0));
OutBuffer buf2; stcToBuffer(&buf2, stc2);
error(loc, "incompatible parameter storage classes '%s' and '%s'",
buf1.peekString(), buf2.peekString());
errors = true;
stc = stc1 | (stc & ~(STCref | STCout | STClazy));
}
(*newparams)[j] = new Parameter(
stc, narg.type, narg.ident, narg.defaultArg);
}
fparam.type = new TypeTuple(newparams);
}
fparam.storageClass = 0;
/* Reset number of parameters, and back up one to do this fparam again,
* now that it is a tuple
*/
dim = Parameter.dim(tf.parameters);
i--;
continue;
}
/* Resolve "auto ref" storage class to be either ref or value,
* based on the argument matching the parameter
*/
if (fparam.storageClass & STCauto)
{
if (fargs && i < fargs.dim && (fparam.storageClass & STCref))
{
Expression farg = (*fargs)[i];
if (farg.isLvalue())
{
// ref parameter
}
else
fparam.storageClass &= ~STCref; // value parameter
fparam.storageClass &= ~STCauto; // Bugzilla 14656
fparam.storageClass |= STCautoref;
}
else
{
error(loc, "'auto' can only be used as part of 'auto ref' for template function parameters");
errors = true;
}
}
// Remove redundant storage classes for type, they are already applied
fparam.storageClass &= ~(STC_TYPECTOR | STCin);
}
argsc.pop();
}
if (tf.isWild())
wildparams |= 2;
if (wildreturn && !wildparams)
{
error(loc, "inout on return means inout must be on a parameter as well for %s", toChars());
errors = true;
}
tf.iswild = wildparams;
if (tf.inuse)
{
error(loc, "recursive type");
tf.inuse = 0;
errors = true;
}
if (tf.isproperty && (tf.varargs || Parameter.dim(tf.parameters) > 2))
{
error(loc, "properties can only have zero, one, or two parameter");
errors = true;
}
if (tf.varargs == 1 && tf.linkage != LINKd && Parameter.dim(tf.parameters) == 0)
{
error(loc, "variadic functions with non-D linkage must have at least one parameter");
errors = true;
}
if (errors)
return terror;
if (tf.next)
tf.deco = tf.merge().deco;
/* Don't return merge(), because arg identifiers and default args
* can be different
* even though the types match
*/
return tf;
}
/********************************************
* Do this lazily, as the parameter types might be forward referenced.
*/
void purityLevel()
{
TypeFunction tf = this;
if (tf.purity != PUREfwdref)
return;
/* Evaluate what kind of purity based on the modifiers for the parameters
*/
tf.purity = PUREstrong; // assume strong until something weakens it
size_t dim = Parameter.dim(tf.parameters);
if (!dim)
return;
for (size_t i = 0; i < dim; i++)
{
Parameter fparam = Parameter.getNth(tf.parameters, i);
Type t = fparam.type;
if (!t)
continue;
if (fparam.storageClass & (STClazy | STCout))
{
tf.purity = PUREweak;
break;
}
if (fparam.storageClass & STCref)
{
if (t.mod & MODimmutable)
continue;
if (t.mod & (MODconst | MODwild))
{
tf.purity = PUREconst;
continue;
}
tf.purity = PUREweak;
break;
}
t = t.baseElemOf();
if (!t.hasPointers())
continue;
if (t.mod & MODimmutable)
continue;
/* Accept immutable(T)[] and immutable(T)* as being strongly pure
*/
if (t.ty == Tarray || t.ty == Tpointer)
{
Type tn = t.nextOf().toBasetype();
if (tn.mod & MODimmutable)
continue;
if (tn.mod & (MODconst | MODwild))
{
tf.purity = PUREconst;
continue;
}
}
/* The rest of this is too strict; fix later.
* For example, the only pointer members of a struct may be immutable,
* which would maintain strong purity.
*/
if (t.mod & (MODconst | MODwild))
{
tf.purity = PUREconst;
continue;
}
/* Should catch delegates and function pointers, and fold in their purity
*/
tf.purity = PUREweak; // err on the side of too strict
break;
}
}
/********************************************
* Return true if there are lazy parameters.
*/
bool hasLazyParameters()
{
size_t dim = Parameter.dim(parameters);
for (size_t i = 0; i < dim; i++)
{
Parameter fparam = Parameter.getNth(parameters, i);
if (fparam.storageClass & STClazy)
return true;
}
return false;
}
/***************************
* Examine function signature for parameter p and see if
* p can 'escape' the scope of the function.
*/
bool parameterEscapes(Parameter p)
{
purityLevel();
/* Scope parameters do not escape.
* Allow 'lazy' to imply 'scope' -
* lazy parameters can be passed along
* as lazy parameters to the next function, but that isn't
* escaping.
*/
if (p.storageClass & (STCscope | STClazy))
return false;
if (p.storageClass & STCreturn)
return true;
/* If haven't inferred the return type yet, assume it escapes
*/
if (!nextOf())
return true;
if (purity > PUREweak)
{
/* With pure functions, we need only be concerned if p escapes
* via any return statement.
*/
Type tret = nextOf().toBasetype();
if (!isref && !tret.hasPointers())
{
/* The result has no references, so p could not be escaping
* that way.
*/
return false;
}
}
/* Assume it escapes in the absence of better information.
*/
return true;
}
override Type addStorageClass(StorageClass stc)
{
TypeFunction t = cast(TypeFunction)Type.addStorageClass(stc);
if ((stc & STCpure && !t.purity) || (stc & STCnothrow && !t.isnothrow) || (stc & STCnogc && !t.isnogc) || (stc & STCsafe && t.trust < TRUSTtrusted))
{
// Klunky to change these
auto tf = new TypeFunction(t.parameters, t.next, t.varargs, t.linkage, 0);
tf.mod = t.mod;
tf.fargs = fargs;
tf.purity = t.purity;
tf.isnothrow = t.isnothrow;
tf.isnogc = t.isnogc;
tf.isproperty = t.isproperty;
tf.isref = t.isref;
tf.isreturn = t.isreturn;
tf.isscope = t.isscope;
tf.trust = t.trust;
tf.iswild = t.iswild;
if (stc & STCpure)
tf.purity = PUREfwdref;
if (stc & STCnothrow)
tf.isnothrow = true;
if (stc & STCnogc)
tf.isnogc = true;
if (stc & STCsafe)
tf.trust = TRUSTsafe;
tf.deco = tf.merge().deco;
t = tf;
}
return t;
}
/** For each active attribute (ref/const/nogc/etc) call fp with a void* for the
work param and a string representation of the attribute. */
int attributesApply(void* param, int function(void*, const(char)*) fp, TRUSTformat trustFormat = TRUSTformatDefault)
{
int res = 0;
if (purity)
res = fp(param, "pure");
if (res)
return res;
if (isnothrow)
res = fp(param, "nothrow");
if (res)
return res;
if (isnogc)
res = fp(param, "@nogc");
if (res)
return res;
if (isproperty)
res = fp(param, "@property");
if (res)
return res;
if (isref)
res = fp(param, "ref");
if (res)
return res;
if (isreturn)
res = fp(param, "return");
if (res)
return res;
if (isscope)
res = fp(param, "scope");
if (res)
return res;
TRUST trustAttrib = trust;
if (trustAttrib == TRUSTdefault)
{
// Print out "@system" when trust equals TRUSTdefault (if desired).
if (trustFormat == TRUSTformatSystem)
trustAttrib = TRUSTsystem;
else
return res; // avoid calling with an empty string
}
return fp(param, trustToChars(trustAttrib));
}
override Type substWildTo(uint)
{
if (!iswild && !(mod & MODwild))
return this;
// Substitude inout qualifier of function type to mutable or immutable
// would break type system. Instead substitude inout to the most weak
// qualifer - const.
uint m = MODconst;
assert(next);
Type tret = next.substWildTo(m);
Parameters* params = parameters;
if (mod & MODwild)
params = parameters.copy();
for (size_t i = 0; i < params.dim; i++)
{
Parameter p = (*params)[i];
Type t = p.type.substWildTo(m);
if (t == p.type)
continue;
if (params == parameters)
params = parameters.copy();
(*params)[i] = new Parameter(p.storageClass, t, null, null);
}
if (next == tret && params == parameters)
return this;
// Similar to TypeFunction::syntaxCopy;
auto t = new TypeFunction(params, tret, varargs, linkage);
t.mod = ((mod & MODwild) ? (mod & ~MODwild) | MODconst : mod);
t.isnothrow = isnothrow;
t.isnogc = isnogc;
t.purity = purity;
t.isproperty = isproperty;
t.isref = isref;
t.isreturn = isreturn;
t.isscope = isscope;
t.iswild = 0;
t.trust = trust;
t.fargs = fargs;
return t.merge();
}
/********************************
* 'args' are being matched to function 'this'
* Determine match level.
* Input:
* flag 1 performing a partial ordering match
* Returns:
* MATCHxxxx
*/
MATCH callMatch(Type tthis, Expressions* args, int flag = 0)
{
//printf("TypeFunction::callMatch() %s\n", toChars());
MATCH match = MATCHexact; // assume exact match
ubyte wildmatch = 0;
if (tthis)
{
Type t = tthis;
if (t.toBasetype().ty == Tpointer)
t = t.toBasetype().nextOf(); // change struct* to struct
if (t.mod != mod)
{
if (MODimplicitConv(t.mod, mod))
match = MATCHconst;
else if ((mod & MODwild) && MODimplicitConv(t.mod, (mod & ~MODwild) | MODconst))
{
match = MATCHconst;
}
else
return MATCHnomatch;
}
if (isWild())
{
if (t.isWild())
wildmatch |= MODwild;
else if (t.isConst())
wildmatch |= MODconst;
else if (t.isImmutable())
wildmatch |= MODimmutable;
else
wildmatch |= MODmutable;
}
}
size_t nparams = Parameter.dim(parameters);
size_t nargs = args ? args.dim : 0;
if (nparams == nargs)
{
}
else if (nargs > nparams)
{
if (varargs == 0)
goto Nomatch;
// too many args; no match
match = MATCHconvert; // match ... with a "conversion" match level
}
for (size_t u = 0; u < nargs; u++)
{
if (u >= nparams)
break;
Parameter p = Parameter.getNth(parameters, u);
Expression arg = (*args)[u];
assert(arg);
Type tprm = p.type;
Type targ = arg.type;
if (!(p.storageClass & STClazy && tprm.ty == Tvoid && targ.ty != Tvoid))
{
bool isRef = (p.storageClass & (STCref | STCout)) != 0;
wildmatch |= targ.deduceWild(tprm, isRef);
}
}
if (wildmatch)
{
/* Calculate wild matching modifier
*/
if (wildmatch & MODconst || wildmatch & (wildmatch - 1))
wildmatch = MODconst;
else if (wildmatch & MODimmutable)
wildmatch = MODimmutable;
else if (wildmatch & MODwild)
wildmatch = MODwild;
else
{
assert(wildmatch & MODmutable);
wildmatch = MODmutable;
}
}
for (size_t u = 0; u < nparams; u++)
{
MATCH m;
Parameter p = Parameter.getNth(parameters, u);
assert(p);
if (u >= nargs)
{
if (p.defaultArg)
continue;
goto L1;
// try typesafe variadics
}
{
Expression arg = (*args)[u];
assert(arg);
//printf("arg: %s, type: %s\n", arg->toChars(), arg->type->toChars());
Type targ = arg.type;
Type tprm = wildmatch ? p.type.substWildTo(wildmatch) : p.type;
if (p.storageClass & STClazy && tprm.ty == Tvoid && targ.ty != Tvoid)
m = MATCHconvert;
else
{
//printf("%s of type %s implicitConvTo %s\n", arg->toChars(), targ->toChars(), tprm->toChars());
if (flag)
{
// for partial ordering, value is an irrelevant mockup, just look at the type
m = targ.implicitConvTo(tprm);
}
else
m = arg.implicitConvTo(tprm);
//printf("match %d\n", m);
}
// Non-lvalues do not match ref or out parameters
if (p.storageClass & (STCref | STCout))
{
// Bugzilla 13783: Don't use toBasetype() to handle enum types.
Type ta = targ;
Type tp = tprm;
//printf("fparam[%d] ta = %s, tp = %s\n", u, ta->toChars(), tp->toChars());
if (m && !arg.isLvalue())
{
if (p.storageClass & STCout)
goto Nomatch;
if (arg.op == TOKstring && tp.ty == Tsarray)
{
if (ta.ty != Tsarray)
{
Type tn = tp.nextOf().castMod(ta.nextOf().mod);
dinteger_t dim = (cast(StringExp)arg).len;
ta = tn.sarrayOf(dim);
}
}
else if (arg.op == TOKslice && tp.ty == Tsarray)
{
// Allow conversion from T[lwr .. upr] to ref T[upr-lwr]
if (ta.ty != Tsarray)
{
Type tn = ta.nextOf();
dinteger_t dim = (cast(TypeSArray)tp).dim.toUInteger();
ta = tn.sarrayOf(dim);
}
}
else
goto Nomatch;
}
/* Find most derived alias this type being matched.
* Bugzilla 15674: Allow on both ref and out parameters.
*/
while (1)
{
Type tat = ta.toBasetype().aliasthisOf();
if (!tat || !tat.implicitConvTo(tprm))
break;
ta = tat;
}
/* A ref variable should work like a head-const reference.
* e.g. disallows:
* ref T <- an lvalue of const(T) argument
* ref T[dim] <- an lvalue of const(T[dim]) argument
*/
if (!ta.constConv(tp))
goto Nomatch;
}
}
/* prefer matching the element type rather than the array
* type when more arguments are present with T[]...
*/
if (varargs == 2 && u + 1 == nparams && nargs > nparams)
goto L1;
//printf("\tm = %d\n", m);
if (m == MATCHnomatch) // if no match
{
L1:
if (varargs == 2 && u + 1 == nparams) // if last varargs param
{
Type tb = p.type.toBasetype();
TypeSArray tsa;
dinteger_t sz;
switch (tb.ty)
{
case Tsarray:
tsa = cast(TypeSArray)tb;
sz = tsa.dim.toInteger();
if (sz != nargs - u)
goto Nomatch;
goto case Tarray;
case Tarray:
{
TypeArray ta = cast(TypeArray)tb;
for (; u < nargs; u++)
{
Expression arg = (*args)[u];
assert(arg);
/* If lazy array of delegates,
* convert arg(s) to delegate(s)
*/
Type tret = p.isLazyArray();
if (tret)
{
if (ta.next.equals(arg.type))
m = MATCHexact;
else if (tret.toBasetype().ty == Tvoid)
m = MATCHconvert;
else
{
m = arg.implicitConvTo(tret);
if (m == MATCHnomatch)
m = arg.implicitConvTo(ta.next);
}
}
else
m = arg.implicitConvTo(ta.next);
if (m == MATCHnomatch)
goto Nomatch;
if (m < match)
match = m;
}
goto Ldone;
}
case Tclass:
// Should see if there's a constructor match?
// Or just leave it ambiguous?
goto Ldone;
default:
goto Nomatch;
}
}
goto Nomatch;
}
if (m < match)
match = m; // pick worst match
}
Ldone:
//printf("match = %d\n", match);
return match;
Nomatch:
//printf("no match\n");
return MATCHnomatch;
}
bool checkRetType(Loc loc)
{
Type tb = next.toBasetype();
if (tb.ty == Tfunction)
{
error(loc, "functions cannot return a function");
next = Type.terror;
}
if (tb.ty == Ttuple)
{
error(loc, "functions cannot return a tuple");
next = Type.terror;
}
if (!isref && (tb.ty == Tstruct || tb.ty == Tsarray))
{
Type tb2 = tb.baseElemOf();
if (tb2.ty == Tstruct && !(cast(TypeStruct)tb2).sym.members)
{
error(loc, "functions cannot return opaque type %s by value", tb.toChars());
next = Type.terror;
}
}
if (tb.ty == Terror)
return true;
return false;
}
override Expression defaultInit(Loc loc) const
{
error(loc, "function does not have a default initializer");
return new ErrorExp();
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class TypeDelegate : TypeNext
{
// .next is a TypeFunction
extern (D) this(Type t)
{
super(Tfunction, t);
ty = Tdelegate;
}
override const(char)* kind() const
{
return "delegate";
}
override Type syntaxCopy()
{
Type t = next.syntaxCopy();
if (t == next)
t = this;
else
{
t = new TypeDelegate(t);
t.mod = mod;
}
return t;
}
override Type semantic(Loc loc, Scope* sc)
{
//printf("TypeDelegate::semantic() %s\n", toChars());
if (deco) // if semantic() already run
{
//printf("already done\n");
return this;
}
next = next.semantic(loc, sc);
if (next.ty != Tfunction)
return terror;
/* In order to deal with Bugzilla 4028, perhaps default arguments should
* be removed from next before the merge.
*/
version (none)
{
return merge();
}
else
{
/* Don't return merge(), because arg identifiers and default args
* can be different
* even though the types match
*/
deco = merge().deco;
return this;
}
}
override d_uns64 size(Loc loc) const
{
return Target.ptrsize * 2;
}
override uint alignsize() const
{
return Target.ptrsize;
}
override MATCH implicitConvTo(Type to)
{
//printf("TypeDelegate::implicitConvTo(this=%p, to=%p)\n", this, to);
//printf("from: %s\n", toChars());
//printf("to : %s\n", to->toChars());
if (this == to)
return MATCHexact;
version (all)
{
// not allowing covariant conversions because it interferes with overriding
if (to.ty == Tdelegate && this.nextOf().covariant(to.nextOf()) == 1)
{
Type tret = this.next.nextOf();
Type toret = (cast(TypeDelegate)to).next.nextOf();
if (tret.ty == Tclass && toret.ty == Tclass)
{
/* Bugzilla 10219: Check covariant interface return with offset tweaking.
* interface I {}
* class C : Object, I {}
* I delegate() dg = delegate C() {} // should be error
*/
int offset = 0;
if (toret.isBaseOf(tret, &offset) && offset != 0)
return MATCHnomatch;
}
return MATCHconvert;
}
}
return MATCHnomatch;
}
override Expression defaultInit(Loc loc)
{
static if (LOGDEFAULTINIT)
{
printf("TypeDelegate::defaultInit() '%s'\n", toChars());
}
return new NullExp(loc, this);
}
override bool isZeroInit(Loc loc) const
{
return true;
}
override bool isBoolean() const
{
return true;
}
override Expression dotExp(Scope* sc, Expression e, Identifier ident, int flag)
{
static if (LOGDOTEXP)
{
printf("TypeDelegate::dotExp(e = '%s', ident = '%s')\n", e.toChars(), ident.toChars());
}
if (ident == Id.ptr)
{
e = new DelegatePtrExp(e.loc, e);
e = e.semantic(sc);
}
else if (ident == Id.funcptr)
{
if (!(flag & DotExpFlag.noDeref) && sc.func && !sc.intypeof && sc.func.setUnsafe())
{
e.error("%s.funcptr cannot be used in @safe code", e.toChars());
return new ErrorExp();
}
e = new DelegateFuncptrExp(e.loc, e);
e = e.semantic(sc);
}
else
{
e = Type.dotExp(sc, e, ident, flag);
}
return e;
}
override bool hasPointers() const
{
return true;
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) abstract class TypeQualified : Type
{
Loc loc;
// array of Identifier and TypeInstance,
// representing ident.ident!tiargs.ident. ... etc.
Objects idents;
final extern (D) this(TY ty, Loc loc)
{
super(ty);
this.loc = loc;
}
final void syntaxCopyHelper(TypeQualified t)
{
//printf("TypeQualified::syntaxCopyHelper(%s) %s\n", t->toChars(), toChars());
idents.setDim(t.idents.dim);
for (size_t i = 0; i < idents.dim; i++)
{
RootObject id = t.idents[i];
if (id.dyncast() == DYNCAST_DSYMBOL)
{
TemplateInstance ti = cast(TemplateInstance)id;
ti = cast(TemplateInstance)ti.syntaxCopy(null);
id = ti;
}
else if (id.dyncast() == DYNCAST_EXPRESSION)
{
Expression e = cast(Expression)id;
e = e.syntaxCopy();
id = e;
}
else if (id.dyncast() == DYNCAST_TYPE)
{
Type tx = cast(Type)id;
tx = tx.syntaxCopy();
id = tx;
}
idents[i] = id;
}
}
final void addIdent(Identifier ident)
{
idents.push(ident);
}
final void addInst(TemplateInstance inst)
{
idents.push(inst);
}
final void addIndex(RootObject e)
{
idents.push(e);
}
override d_uns64 size(Loc loc)
{
error(this.loc, "size of type %s is not known", toChars());
return SIZE_INVALID;
}
/*************************************
* Resolve a tuple index.
*/
final void resolveTupleIndex(Loc loc, Scope* sc, Dsymbol s, Expression* pe, Type* pt, Dsymbol* ps, RootObject oindex)
{
*pt = null;
*ps = null;
*pe = null;
auto tup = s.isTupleDeclaration();
auto eindex = isExpression(oindex);
auto tindex = isType(oindex);
auto sindex = isDsymbol(oindex);
if (!tup)
{
// It's really an index expression
if (tindex)
eindex = new TypeExp(loc, tindex);
else if (sindex)
eindex = DsymbolExp.resolve(loc, sc, sindex, false);
Expression e = new IndexExp(loc, DsymbolExp.resolve(loc, sc, s, false), eindex);
e = e.semantic(sc);
resolveExp(e, pt, pe, ps);
return;
}
// Convert oindex to Expression, then try to resolve to constant.
if (tindex)
tindex.resolve(loc, sc, &eindex, &tindex, &sindex);
if (sindex)
eindex = DsymbolExp.resolve(loc, sc, sindex, false);
if (!eindex)
{
.error(loc, "index is %s not an expression", oindex.toChars());
*pt = Type.terror;
return;
}
eindex = semanticLength(sc, tup, eindex);
eindex = eindex.ctfeInterpret();
if (eindex.op == TOKerror)
{
*pt = Type.terror;
return;
}
const(uinteger_t) d = eindex.toUInteger();
if (d >= tup.objects.dim)
{
.error(loc, "tuple index %llu exceeds length %u", d, tup.objects.dim);
*pt = Type.terror;
return;
}
RootObject o = (*tup.objects)[cast(size_t)d];
*pt = isType(o);
*ps = isDsymbol(o);
*pe = isExpression(o);
if (*pt)
*pt = (*pt).semantic(loc, sc);
if (*pe)
resolveExp(*pe, pt, pe, ps);
}
final Expression toExpressionHelper(Expression e, size_t i = 0)
{
//printf("toExpressionHelper(e = %s %s)\n", Token.toChars(e.op), e.toChars());
for (; i < idents.dim; i++)
{
RootObject id = idents[i];
//printf("\t[%d] e: '%s', id: '%s'\n", i, e.toChars(), id.toChars());
switch (id.dyncast())
{
// ... '. ident'
case DYNCAST_IDENTIFIER:
e = new DotIdExp(e.loc, e, cast(Identifier)id);
break;
// ... '. name!(tiargs)'
case DYNCAST_DSYMBOL:
auto ti = (cast(Dsymbol)id).isTemplateInstance();
assert(ti);
e = new DotTemplateInstanceExp(e.loc, e, ti.name, ti.tiargs);
break;
// ... '[type]'
case DYNCAST_TYPE: // Bugzilla 1215
e = new ArrayExp(loc, e, new TypeExp(loc, cast(Type)id));
break;
// ... '[expr]'
case DYNCAST_EXPRESSION: // Bugzilla 1215
e = new ArrayExp(loc, e, cast(Expression)id);
break;
default:
assert(0);
}
}
return e;
}
/*************************************
* Takes an array of Identifiers and figures out if
* it represents a Type or an Expression.
* Output:
* if expression, *pe is set
* if type, *pt is set
*/
final void resolveHelper(Loc loc, Scope* sc, Dsymbol s, Dsymbol scopesym,
Expression* pe, Type* pt, Dsymbol* ps, bool intypeid = false)
{
version (none)
{
printf("TypeQualified::resolveHelper(sc = %p, idents = '%s')\n", sc, toChars());
if (scopesym)
printf("\tscopesym = '%s'\n", scopesym.toChars());
}
*pe = null;
*pt = null;
*ps = null;
if (s)
{
//printf("\t1: s = '%s' %p, kind = '%s'\n",s->toChars(), s, s->kind());
Declaration d = s.isDeclaration();
if (d && (d.storage_class & STCtemplateparameter))
s = s.toAlias();
else
s.checkDeprecated(loc, sc); // check for deprecated aliases
s = s.toAlias();
//printf("\t2: s = '%s' %p, kind = '%s'\n",s->toChars(), s, s->kind());
for (size_t i = 0; i < idents.dim; i++)
{
RootObject id = idents[i];
if (id.dyncast() == DYNCAST_EXPRESSION ||
id.dyncast() == DYNCAST_TYPE)
{
Type tx;
Expression ex;
Dsymbol sx;
resolveTupleIndex(loc, sc, s, &ex, &tx, &sx, id);
if (sx)
{
s = sx.toAlias();
continue;
}
if (tx)
ex = new TypeExp(loc, tx);
assert(ex);
ex = toExpressionHelper(ex, i + 1);
ex = ex.semantic(sc);
resolveExp(ex, pt, pe, ps);
return;
}
Type t = s.getType(); // type symbol, type alias, or type tuple?
uint errorsave = global.errors;
Dsymbol sm = s.searchX(loc, sc, id);
if (sm && !symbolIsVisible(sc, sm))
{
.deprecation(loc, "%s is not visible from module %s", sm.toPrettyChars(), sc._module.toChars());
// sm = null;
}
if (global.errors != errorsave)
{
*pt = Type.terror;
return;
}
//printf("\t3: s = %p %s %s, sm = %p\n", s, s->kind(), s->toChars(), sm);
if (intypeid && !t && sm && sm.needThis())
goto L3;
if (VarDeclaration v = s.isVarDeclaration())
{
if (v.storage_class & (STCconst | STCimmutable | STCmanifest) ||
v.type.isConst() || v.type.isImmutable())
{
// Bugzilla 13087: this.field is not constant always
if (!v.isThisDeclaration())
goto L3;
}
}
if (!sm)
{
if (!t)
{
if (s.isDeclaration()) // var, func, or tuple declaration?
{
t = s.isDeclaration().type;
if (!t && s.isTupleDeclaration()) // expression tuple?
goto L3;
}
else if (s.isTemplateInstance() ||
s.isImport() || s.isPackage() || s.isModule())
{
goto L3;
}
}
if (t)
{
sm = t.toDsymbol(sc);
if (sm && id.dyncast() == DYNCAST_IDENTIFIER)
{
sm = sm.search(loc, cast(Identifier)id);
if (sm)
goto L2;
}
L3:
Expression e;
VarDeclaration v = s.isVarDeclaration();
FuncDeclaration f = s.isFuncDeclaration();
if (intypeid || !v && !f)
e = DsymbolExp.resolve(loc, sc, s, true);
else
e = new VarExp(loc, s.isDeclaration(), true);
e = toExpressionHelper(e, i);
e = e.semantic(sc);
resolveExp(e, pt, pe, ps);
return;
}
else
{
if (id.dyncast() == DYNCAST_DSYMBOL)
{
// searchX already handles errors for template instances
assert(global.errors);
}
else
{
assert(id.dyncast() == DYNCAST_IDENTIFIER);
sm = s.search_correct(cast(Identifier)id);
if (sm)
error(loc, "identifier '%s' of '%s' is not defined, did you mean %s '%s'?", id.toChars(), toChars(), sm.kind(), sm.toChars());
else
error(loc, "identifier '%s' of '%s' is not defined", id.toChars(), toChars());
}
*pe = new ErrorExp();
}
return;
}
L2:
s = sm.toAlias();
}
if (auto em = s.isEnumMember())
{
// It's not a type, it's an expression
*pe = em.getVarExp(loc, sc);
return;
}
if (auto v = s.isVarDeclaration())
{
/* This is mostly same with DsymbolExp::semantic(), but we cannot use it
* because some variables used in type context need to prevent lowering
* to a literal or contextful expression. For example:
*
* enum a = 1; alias b = a;
* template X(alias e){ alias v = e; } alias x = X!(1);
* struct S { int v; alias w = v; }
* // TypeIdentifier 'a', 'e', and 'v' should be TOKvar,
* // because getDsymbol() need to work in AliasDeclaration::semantic().
*/
if (!v.type ||
!v.type.deco && v.inuse)
{
if (v.inuse) // Bugzilla 9494
error(loc, "circular reference to %s '%s'", v.kind(), v.toPrettyChars());
else
error(loc, "forward reference to %s '%s'", v.kind(), v.toPrettyChars());
*pt = Type.terror;
return;
}
if (v.type.ty == Terror)
*pt = Type.terror;
else
*pe = new VarExp(loc, v);
return;
}
if (auto fld = s.isFuncLiteralDeclaration())
{
//printf("'%s' is a function literal\n", fld.toChars());
*pe = new FuncExp(loc, fld);
*pe = (*pe).semantic(sc);
return;
}
version (none)
{
if (FuncDeclaration fd = s.isFuncDeclaration())
{
*pe = new DsymbolExp(loc, fd);
return;
}
}
L1:
Type t = s.getType();
if (!t)
{
// If the symbol is an import, try looking inside the import
if (Import si = s.isImport())
{
s = si.search(loc, s.ident);
if (s && s != si)
goto L1;
s = si;
}
*ps = s;
return;
}
if (t.ty == Tinstance && t != this && !t.deco)
{
if (!(cast(TypeInstance)t).tempinst.errors)
error(loc, "forward reference to '%s'", t.toChars());
*pt = Type.terror;
return;
}
if (t.ty == Ttuple)
*pt = t;
else
*pt = t.merge();
}
if (!s)
{
const(char)* p = mutableOf().unSharedOf().toChars();
const(char)* n = importHint(p);
if (n)
error(loc, "'%s' is not defined, perhaps you need to import %s; ?", p, n);
else
{
auto id = new Identifier(p);
s = sc.search_correct(id);
if (s)
error(loc, "undefined identifier '%s', did you mean %s '%s'?", p, s.kind(), s.toChars());
else
error(loc, "undefined identifier '%s'", p);
}
*pt = Type.terror;
}
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class TypeIdentifier : TypeQualified
{
Identifier ident;
// The symbol representing this identifier, before alias resolution
Dsymbol originalSymbol;
extern (D) this(Loc loc, Identifier ident)
{
super(Tident, loc);
this.ident = ident;
}
override const(char)* kind() const
{
return "identifier";
}
override Type syntaxCopy()
{
auto t = new TypeIdentifier(loc, ident);
t.syntaxCopyHelper(this);
t.mod = mod;
return t;
}
/*************************************
* Takes an array of Identifiers and figures out if
* it represents a Type or an Expression.
* Output:
* if expression, *pe is set
* if type, *pt is set
*/
override void resolve(Loc loc, Scope* sc, Expression* pe, Type* pt, Dsymbol* ps, bool intypeid = false)
{
//printf("TypeIdentifier::resolve(sc = %p, idents = '%s')\n", sc, toChars());
if ((ident.equals(Id._super) || ident.equals(Id.This)) && !hasThis(sc))
{
AggregateDeclaration ad = sc.getStructClassScope();
if (ad)
{
ClassDeclaration cd = ad.isClassDeclaration();
if (cd)
{
if (ident.equals(Id.This))
ident = cd.ident;
else if (cd.baseClass && ident.equals(Id._super))
ident = cd.baseClass.ident;
}
else
{
StructDeclaration sd = ad.isStructDeclaration();
if (sd && ident.equals(Id.This))
ident = sd.ident;
}
}
}
if (ident == Id.ctfe)
{
error(loc, "variable __ctfe cannot be read at compile time");
*pe = null;
*ps = null;
*pt = Type.terror;
return;
}
Dsymbol scopesym;
Dsymbol s = sc.search(loc, ident, &scopesym);
resolveHelper(loc, sc, s, scopesym, pe, pt, ps, intypeid);
if (*pt)
(*pt) = (*pt).addMod(mod);
}
/*****************************************
* See if type resolves to a symbol, if so,
* return that symbol.
*/
override Dsymbol toDsymbol(Scope* sc)
{
//printf("TypeIdentifier::toDsymbol('%s')\n", toChars());
if (!sc)
return null;
Type t;
Expression e;
Dsymbol s;
resolve(loc, sc, &e, &t, &s);
if (t && t.ty != Tident)
s = t.toDsymbol(sc);
if (e)
s = getDsymbol(e);
return s;
}
override Type semantic(Loc loc, Scope* sc)
{
Type t;
Expression e;
Dsymbol s;
//printf("TypeIdentifier::semantic(%s)\n", toChars());
resolve(loc, sc, &e, &t, &s);
if (t)
{
//printf("\tit's a type %d, %s, %s\n", t->ty, t->toChars(), t->deco);
t = t.addMod(mod);
}
else
{
if (s)
{
s.error(loc, "is used as a type");
//assert(0);
}
else
error(loc, "%s is used as a type", toChars());
t = terror;
}
//t->print();
return t;
}
override Expression toExpression()
{
return toExpressionHelper(new IdentifierExp(loc, ident));
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
* Similar to TypeIdentifier, but with a TemplateInstance as the root
*/
extern (C++) final class TypeInstance : TypeQualified
{
TemplateInstance tempinst;
extern (D) this(Loc loc, TemplateInstance tempinst)
{
super(Tinstance, loc);
this.tempinst = tempinst;
}
override const(char)* kind() const
{
return "instance";
}
override Type syntaxCopy()
{
//printf("TypeInstance::syntaxCopy() %s, %d\n", toChars(), idents.dim);
auto t = new TypeInstance(loc, cast(TemplateInstance)tempinst.syntaxCopy(null));
t.syntaxCopyHelper(this);
t.mod = mod;
return t;
}
override void resolve(Loc loc, Scope* sc, Expression* pe, Type* pt, Dsymbol* ps, bool intypeid = false)
{
// Note close similarity to TypeIdentifier::resolve()
*pe = null;
*pt = null;
*ps = null;
//printf("TypeInstance::resolve(sc = %p, tempinst = '%s')\n", sc, tempinst.toChars());
tempinst.semantic(sc);
if (!global.gag && tempinst.errors)
{
*pt = terror;
return;
}
resolveHelper(loc, sc, tempinst, null, pe, pt, ps, intypeid);
if (*pt)
*pt = (*pt).addMod(mod);
//if (*pt) printf("*pt = %d '%s'\n", (*pt).ty, (*pt).toChars());
}
override Type semantic(Loc loc, Scope* sc)
{
Type t;
Expression e;
Dsymbol s;
//printf("TypeInstance::semantic(%p, %s)\n", this, toChars());
{
uint errors = global.errors;
resolve(loc, sc, &e, &t, &s);
// if we had an error evaluating the symbol, suppress further errors
if (!t && errors != global.errors)
return terror;
}
if (!t)
{
if (!e && s && s.errors)
{
// if there was an error evaluating the symbol, it might actually
// be a type. Avoid misleading error messages.
error(loc, "%s had previous errors", toChars());
}
else
error(loc, "%s is used as a type", toChars());
t = terror;
}
return t;
}
override Dsymbol toDsymbol(Scope* sc)
{
Type t;
Expression e;
Dsymbol s;
//printf("TypeInstance::semantic(%s)\n", toChars());
resolve(loc, sc, &e, &t, &s);
if (t && t.ty != Tinstance)
s = t.toDsymbol(sc);
return s;
}
override Expression toExpression()
{
return toExpressionHelper(new ScopeExp(loc, tempinst));
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class TypeTypeof : TypeQualified
{
Expression exp;
int inuse;
extern (D) this(Loc loc, Expression exp)
{
super(Ttypeof, loc);
this.exp = exp;
}
override const(char)* kind() const
{
return "typeof";
}
override Type syntaxCopy()
{
//printf("TypeTypeof::syntaxCopy() %s\n", toChars());
auto t = new TypeTypeof(loc, exp.syntaxCopy());
t.syntaxCopyHelper(this);
t.mod = mod;
return t;
}
override Dsymbol toDsymbol(Scope* sc)
{
//printf("TypeTypeof::toDsymbol('%s')\n", toChars());
Expression e;
Type t;
Dsymbol s;
resolve(loc, sc, &e, &t, &s);
return s;
}
override void resolve(Loc loc, Scope* sc, Expression* pe, Type* pt, Dsymbol* ps, bool intypeid = false)
{
*pe = null;
*pt = null;
*ps = null;
//printf("TypeTypeof::resolve(sc = %p, idents = '%s')\n", sc, toChars());
//static int nest; if (++nest == 50) *(char*)0=0;
if (inuse)
{
inuse = 2;
error(loc, "circular typeof definition");
Lerr:
*pt = Type.terror;
inuse--;
return;
}
inuse++;
/* Currently we cannot evalute 'exp' in speculative context, because
* the type implementation may leak to the final execution. Consider:
*
* struct S(T) {
* string toString() const { return "x"; }
* }
* void main() {
* alias X = typeof(S!int());
* assert(typeid(X).xtoString(null) == "x");
* }
*/
Scope* sc2 = sc.push();
sc2.intypeof = 1;
auto exp2 = exp.semantic(sc2);
exp2 = resolvePropertiesOnly(sc2, exp2);
sc2.pop();
if (exp2.op == TOKerror)
{
if (!global.gag)
exp = exp2;
goto Lerr;
}
exp = exp2;
if (exp.op == TOKtype ||
exp.op == TOKscope)
{
if (exp.checkType())
goto Lerr;
/* Today, 'typeof(func)' returns void if func is a
* function template (TemplateExp), or
* template lambda (FuncExp).
* It's actually used in Phobos as an idiom, to branch code for
* template functions.
*/
}
if (auto f = exp.op == TOKvar ? (cast( VarExp)exp).var.isFuncDeclaration()
: exp.op == TOKdotvar ? (cast(DotVarExp)exp).var.isFuncDeclaration() : null)
{
if (f.checkForwardRef(loc))
goto Lerr;
}
if (auto f = isFuncAddress(exp))
{
if (f.checkForwardRef(loc))
goto Lerr;
}
Type t = exp.type;
if (!t)
{
error(loc, "expression (%s) has no type", exp.toChars());
goto Lerr;
}
if (t.ty == Ttypeof)
{
error(loc, "forward reference to %s", toChars());
goto Lerr;
}
if (idents.dim == 0)
*pt = t;
else
{
if (Dsymbol s = t.toDsymbol(sc))
resolveHelper(loc, sc, s, null, pe, pt, ps, intypeid);
else
{
auto e = toExpressionHelper(new TypeExp(loc, t));
e = e.semantic(sc);
resolveExp(e, pt, pe, ps);
}
}
if (*pt)
(*pt) = (*pt).addMod(mod);
inuse--;
return;
}
override Type semantic(Loc loc, Scope* sc)
{
//printf("TypeTypeof::semantic() %s\n", toChars());
Expression e;
Type t;
Dsymbol s;
resolve(loc, sc, &e, &t, &s);
if (s && (t = s.getType()) !is null)
t = t.addMod(mod);
if (!t)
{
error(loc, "%s is used as a type", toChars());
t = Type.terror;
}
return t;
}
override d_uns64 size(Loc loc)
{
if (exp.type)
return exp.type.size(loc);
else
return TypeQualified.size(loc);
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class TypeReturn : TypeQualified
{
extern (D) this(Loc loc)
{
super(Treturn, loc);
}
override const(char)* kind() const
{
return "return";
}
override Type syntaxCopy()
{
auto t = new TypeReturn(loc);
t.syntaxCopyHelper(this);
t.mod = mod;
return t;
}
override Dsymbol toDsymbol(Scope* sc)
{
Expression e;
Type t;
Dsymbol s;
resolve(loc, sc, &e, &t, &s);
return s;
}
override void resolve(Loc loc, Scope* sc, Expression* pe, Type* pt, Dsymbol* ps, bool intypeid = false)
{
*pe = null;
*pt = null;
*ps = null;
//printf("TypeReturn::resolve(sc = %p, idents = '%s')\n", sc, toChars());
Type t;
{
FuncDeclaration func = sc.func;
if (!func)
{
error(loc, "typeof(return) must be inside function");
goto Lerr;
}
if (func.fes)
func = func.fes.func;
t = func.type.nextOf();
if (!t)
{
error(loc, "cannot use typeof(return) inside function %s with inferred return type", sc.func.toChars());
goto Lerr;
}
}
if (idents.dim == 0)
*pt = t;
else
{
if (Dsymbol s = t.toDsymbol(sc))
resolveHelper(loc, sc, s, null, pe, pt, ps, intypeid);
else
{
auto e = toExpressionHelper(new TypeExp(loc, t));
e = e.semantic(sc);
resolveExp(e, pt, pe, ps);
}
}
if (*pt)
(*pt) = (*pt).addMod(mod);
return;
Lerr:
*pt = Type.terror;
return;
}
override Type semantic(Loc loc, Scope* sc)
{
//printf("TypeReturn::semantic() %s\n", toChars());
Expression e;
Type t;
Dsymbol s;
resolve(loc, sc, &e, &t, &s);
if (s && (t = s.getType()) !is null)
t = t.addMod(mod);
if (!t)
{
error(loc, "%s is used as a type", toChars());
t = Type.terror;
}
return t;
}
override void accept(Visitor v)
{
v.visit(this);
}
}
// Whether alias this dependency is recursive or not.
enum AliasThisRec : int
{
RECno = 0, // no alias this recursion
RECyes = 1, // alias this has recursive dependency
RECfwdref = 2, // not yet known
RECtypeMask = 3, // mask to read no/yes/fwdref
RECtracing = 0x4, // mark in progress of implicitConvTo/deduceWild
RECtracingDT = 0x8, // mark in progress of deduceType
}
alias RECno = AliasThisRec.RECno;
alias RECyes = AliasThisRec.RECyes;
alias RECfwdref = AliasThisRec.RECfwdref;
alias RECtypeMask = AliasThisRec.RECtypeMask;
alias RECtracing = AliasThisRec.RECtracing;
alias RECtracingDT = AliasThisRec.RECtracingDT;
/***********************************************************
*/
extern (C++) final class TypeStruct : Type
{
StructDeclaration sym;
AliasThisRec att = RECfwdref;
CPPMANGLE cppmangle = CPPMANGLE.def;
extern (D) this(StructDeclaration sym)
{
super(Tstruct);
this.sym = sym;
}
override const(char)* kind() const
{
return "struct";
}
override d_uns64 size(Loc loc)
{
return sym.size(loc);
}
override uint alignsize()
{
sym.size(Loc()); // give error for forward references
return sym.alignsize;
}
override Type syntaxCopy()
{
return this;
}
override Type semantic(Loc loc, Scope* sc)
{
//printf("TypeStruct::semantic('%s')\n", sym.toChars());
if (deco)
{
if (sc && sc.cppmangle != CPPMANGLE.def)
{
if (this.cppmangle == CPPMANGLE.def)
this.cppmangle = sc.cppmangle;
else
assert(this.cppmangle == sc.cppmangle);
}
return this;
}
/* Don't semantic for sym because it should be deferred until
* sizeof needed or its members accessed.
*/
// instead, parent should be set correctly
assert(sym.parent);
if (sym.type.ty == Terror)
return Type.terror;
if (sc)
this.cppmangle = sc.cppmangle;
return merge();
}
override Dsymbol toDsymbol(Scope* sc)
{
return sym;
}
override Expression dotExp(Scope* sc, Expression e, Identifier ident, int flag)
{
Dsymbol s;
static if (LOGDOTEXP)
{
printf("TypeStruct::dotExp(e = '%s', ident = '%s')\n", e.toChars(), ident.toChars());
}
assert(e.op != TOKdot);
// Bugzilla 14010
if (ident == Id._mangleof)
return getProperty(e.loc, ident, flag & 1);
/* If e.tupleof
*/
if (ident == Id._tupleof)
{
/* Create a TupleExp out of the fields of the struct e:
* (e.field0, e.field1, e.field2, ...)
*/
e = e.semantic(sc); // do this before turning on noaccesscheck
sym.size(e.loc); // do semantic of type
Expression e0;
Expression ev = e.op == TOKtype ? null : e;
if (ev)
ev = extractSideEffect(sc, "__tup", e0, ev);
auto exps = new Expressions();
exps.reserve(sym.fields.dim);
for (size_t i = 0; i < sym.fields.dim; i++)
{
VarDeclaration v = sym.fields[i];
Expression ex;
if (ev)
ex = new DotVarExp(e.loc, ev, v);
else
{
ex = new VarExp(e.loc, v);
ex.type = ex.type.addMod(e.type.mod);
}
exps.push(ex);
}
e = new TupleExp(e.loc, e0, exps);
Scope* sc2 = sc.push();
sc2.flags = sc.flags | SCOPEnoaccesscheck;
e = e.semantic(sc2);
sc2.pop();
return e;
}
Dsymbol searchSym()
{
int flags = 0;
Dsymbol sold = void;
if (global.params.bug10378 || global.params.check10378)
{
sold = sym.search(e.loc, ident, flags);
if (!global.params.check10378)
return sold;
}
auto s = sym.search(e.loc, ident, flags | SearchLocalsOnly);
if (global.params.check10378)
{
alias snew = s;
if (sold !is snew)
Scope.deprecation10378(e.loc, sold, snew);
if (global.params.bug10378)
s = sold;
}
return s;
}
s = searchSym();
L1:
if (!s)
{
return noMember(sc, e, ident, flag);
}
if (!symbolIsVisible(sc, s))
{
.deprecation(e.loc, "%s is not visible from module %s", s.toPrettyChars(), sc._module.toPrettyChars());
// return noMember(sc, e, ident, flag);
}
if (!s.isFuncDeclaration()) // because of overloading
s.checkDeprecated(e.loc, sc);
s = s.toAlias();
if (auto em = s.isEnumMember())
{
return em.getVarExp(e.loc, sc);
}
if (auto v = s.isVarDeclaration())
{
if (!v.type ||
!v.type.deco && v.inuse)
{
if (v.inuse) // Bugzilla 9494
e.error("circular reference to %s '%s'", v.kind(), v.toPrettyChars());
else
e.error("forward reference to %s '%s'", v.kind(), v.toPrettyChars());
return new ErrorExp();
}
if (v.type.ty == Terror)
return new ErrorExp();
if ((v.storage_class & STCmanifest) && v._init)
{
if (v.inuse)
{
e.error("circular initialization of %s '%s'", v.kind(), v.toPrettyChars());
return new ErrorExp();
}
checkAccess(e.loc, sc, null, v);
Expression ve = new VarExp(e.loc, v);
ve = ve.semantic(sc);
return ve;
}
}
if (auto t = s.getType())
{
return (new TypeExp(e.loc, t)).semantic(sc);
}
TemplateMixin tm = s.isTemplateMixin();
if (tm)
{
Expression de = new DotExp(e.loc, e, new ScopeExp(e.loc, tm));
de.type = e.type;
return de;
}
TemplateDeclaration td = s.isTemplateDeclaration();
if (td)
{
if (e.op == TOKtype)
e = new TemplateExp(e.loc, td);
else
e = new DotTemplateExp(e.loc, e, td);
e = e.semantic(sc);
return e;
}
TemplateInstance ti = s.isTemplateInstance();
if (ti)
{
if (!ti.semanticRun)
{
ti.semantic(sc);
if (!ti.inst || ti.errors) // if template failed to expand
return new ErrorExp();
}
s = ti.inst.toAlias();
if (!s.isTemplateInstance())
goto L1;
if (e.op == TOKtype)
e = new ScopeExp(e.loc, ti);
else
e = new DotExp(e.loc, e, new ScopeExp(e.loc, ti));
return e.semantic(sc);
}
if (s.isImport() || s.isModule() || s.isPackage())
{
e = DsymbolExp.resolve(e.loc, sc, s, false);
return e;
}
OverloadSet o = s.isOverloadSet();
if (o)
{
auto oe = new OverExp(e.loc, o);
if (e.op == TOKtype)
return oe;
return new DotExp(e.loc, e, oe);
}
Declaration d = s.isDeclaration();
if (!d)
{
e.error("%s.%s is not a declaration", e.toChars(), ident.toChars());
return new ErrorExp();
}
if (e.op == TOKtype)
{
/* It's:
* Struct.d
*/
if (TupleDeclaration tup = d.isTupleDeclaration())
{
e = new TupleExp(e.loc, tup);
e = e.semantic(sc);
return e;
}
if (d.needThis() && sc.intypeof != 1)
{
/* Rewrite as:
* this.d
*/
if (hasThis(sc))
{
e = new DotVarExp(e.loc, new ThisExp(e.loc), d);
e = e.semantic(sc);
return e;
}
}
if (d.semanticRun == PASSinit && d._scope)
d.semantic(d._scope);
checkAccess(e.loc, sc, e, d);
auto ve = new VarExp(e.loc, d);
if (d.isVarDeclaration() && d.needThis())
ve.type = d.type.addMod(e.type.mod);
return ve;
}
bool unreal = e.op == TOKvar && (cast(VarExp)e).var.isField();
if (d.isDataseg() || unreal && d.isField())
{
// (e, d)
checkAccess(e.loc, sc, e, d);
Expression ve = new VarExp(e.loc, d);
e = unreal ? ve : new CommaExp(e.loc, e, ve);
e = e.semantic(sc);
return e;
}
e = new DotVarExp(e.loc, e, d);
e = e.semantic(sc);
return e;
}
override structalign_t alignment()
{
if (sym.alignment == 0)
sym.size(sym.loc);
return sym.alignment;
}
override Expression defaultInit(Loc loc)
{
static if (LOGDEFAULTINIT)
{
printf("TypeStruct::defaultInit() '%s'\n", toChars());
}
Declaration d = new SymbolDeclaration(sym.loc, sym);
assert(d);
d.type = this;
d.storage_class |= STCrvalue; // Bugzilla 14398
return new VarExp(sym.loc, d);
}
/***************************************
* Use when we prefer the default initializer to be a literal,
* rather than a global immutable variable.
*/
override Expression defaultInitLiteral(Loc loc)
{
static if (LOGDEFAULTINIT)
{
printf("TypeStruct::defaultInitLiteral() '%s'\n", toChars());
}
sym.size(loc);
if (sym.sizeok != SIZEOKdone)
return new ErrorExp();
auto structelems = new Expressions();
structelems.setDim(sym.fields.dim - sym.isNested());
uint offset = 0;
for (size_t j = 0; j < structelems.dim; j++)
{
VarDeclaration vd = sym.fields[j];
Expression e;
if (vd.inuse)
{
error(loc, "circular reference to '%s'", vd.toPrettyChars());
return new ErrorExp();
}
if (vd.offset < offset || vd.type.size() == 0)
e = null;
else if (vd._init)
{
if (vd._init.isVoidInitializer())
e = null;
else
e = vd.getConstInitializer(false);
}
else
e = vd.type.defaultInitLiteral(loc);
if (e && e.op == TOKerror)
return e;
if (e)
offset = vd.offset + cast(uint)vd.type.size();
(*structelems)[j] = e;
}
auto structinit = new StructLiteralExp(loc, sym, structelems);
/* Copy from the initializer symbol for larger symbols,
* otherwise the literals expressed as code get excessively large.
*/
if (size(loc) > Target.ptrsize * 4 && !needsNested())
structinit.useStaticInit = true;
structinit.type = this;
return structinit;
}
override bool isZeroInit(Loc loc) const
{
return sym.zeroInit != 0;
}
override bool isAssignable()
{
bool assignable = true;
uint offset = ~0; // dead-store initialize to prevent spurious warning
/* If any of the fields are const or immutable,
* then one cannot assign this struct.
*/
for (size_t i = 0; i < sym.fields.dim; i++)
{
VarDeclaration v = sym.fields[i];
//printf("%s [%d] v = (%s) %s, v->offset = %d, v->parent = %s", sym->toChars(), i, v->kind(), v->toChars(), v->offset, v->parent->kind());
if (i == 0)
{
}
else if (v.offset == offset)
{
/* If any fields of anonymous union are assignable,
* then regard union as assignable.
* This is to support unsafe things like Rebindable templates.
*/
if (assignable)
continue;
}
else
{
if (!assignable)
return false;
}
assignable = v.type.isMutable() && v.type.isAssignable();
offset = v.offset;
//printf(" -> assignable = %d\n", assignable);
}
return assignable;
}
override bool isBoolean() const
{
return false;
}
override bool needsDestruction() const
{
return sym.dtor !is null;
}
override bool needsNested()
{
if (sym.isNested())
return true;
for (size_t i = 0; i < sym.fields.dim; i++)
{
VarDeclaration v = sym.fields[i];
if (!v.isDataseg() && v.type.needsNested())
return true;
}
return false;
}
override bool hasPointers()
{
// Probably should cache this information in sym rather than recompute
StructDeclaration s = sym;
sym.size(Loc()); // give error for forward references
foreach (VarDeclaration v; s.fields)
{
if (v.storage_class & STCref || v.hasPointers())
return true;
}
return false;
}
override bool hasVoidInitPointers()
{
// Probably should cache this information in sym rather than recompute
StructDeclaration s = sym;
sym.size(Loc()); // give error for forward references
foreach (VarDeclaration v; s.fields)
{
if (v._init && v._init.isVoidInitializer() && v.type.hasPointers())
return true;
if (!v._init && v.type.hasVoidInitPointers())
return true;
}
return false;
}
override MATCH implicitConvTo(Type to)
{
MATCH m;
//printf("TypeStruct::implicitConvTo(%s => %s)\n", toChars(), to.toChars());
if (ty == to.ty && sym == (cast(TypeStruct)to).sym)
{
m = MATCHexact; // exact match
if (mod != to.mod)
{
m = MATCHconst;
if (MODimplicitConv(mod, to.mod))
{
}
else
{
/* Check all the fields. If they can all be converted,
* allow the conversion.
*/
uint offset = ~0; // dead-store to prevent spurious warning
for (size_t i = 0; i < sym.fields.dim; i++)
{
VarDeclaration v = sym.fields[i];
if (i == 0)
{
}
else if (v.offset == offset)
{
if (m > MATCHnomatch)
continue;
}
else
{
if (m <= MATCHnomatch)
return m;
}
// 'from' type
Type tvf = v.type.addMod(mod);
// 'to' type
Type tv = v.type.addMod(to.mod);
// field match
MATCH mf = tvf.implicitConvTo(tv);
//printf("\t%s => %s, match = %d\n", v->type->toChars(), tv->toChars(), mf);
if (mf <= MATCHnomatch)
return mf;
if (mf < m) // if field match is worse
m = mf;
offset = v.offset;
}
}
}
}
else if (sym.aliasthis && !(att & RECtracing))
{
att = cast(AliasThisRec)(att | RECtracing);
m = aliasthisOf().implicitConvTo(to);
att = cast(AliasThisRec)(att & ~RECtracing);
}
else
m = MATCHnomatch; // no match
return m;
}
override MATCH constConv(Type to)
{
if (equals(to))
return MATCHexact;
if (ty == to.ty && sym == (cast(TypeStruct)to).sym && MODimplicitConv(mod, to.mod))
return MATCHconst;
return MATCHnomatch;
}
override ubyte deduceWild(Type t, bool isRef)
{
if (ty == t.ty && sym == (cast(TypeStruct)t).sym)
return Type.deduceWild(t, isRef);
ubyte wm = 0;
if (t.hasWild() && sym.aliasthis && !(att & RECtracing))
{
att = cast(AliasThisRec)(att | RECtracing);
wm = aliasthisOf().deduceWild(t, isRef);
att = cast(AliasThisRec)(att & ~RECtracing);
}
return wm;
}
override Type toHeadMutable()
{
return this;
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class TypeEnum : Type
{
EnumDeclaration sym;
extern (D) this(EnumDeclaration sym)
{
super(Tenum);
this.sym = sym;
}
override const(char)* kind() const
{
return "enum";
}
override Type syntaxCopy()
{
return this;
}
override d_uns64 size(Loc loc)
{
return sym.getMemtype(loc).size(loc);
}
override uint alignsize()
{
Type t = sym.getMemtype(Loc());
if (t.ty == Terror)
return 4;
return t.alignsize();
}
override Type semantic(Loc loc, Scope* sc)
{
//printf("TypeEnum::semantic() %s\n", toChars());
if (deco)
return this;
return merge();
}
override Dsymbol toDsymbol(Scope* sc)
{
return sym;
}
override Expression dotExp(Scope* sc, Expression e, Identifier ident, int flag)
{
static if (LOGDOTEXP)
{
printf("TypeEnum::dotExp(e = '%s', ident = '%s') '%s'\n", e.toChars(), ident.toChars(), toChars());
}
// Bugzilla 14010
if (ident == Id._mangleof)
return getProperty(e.loc, ident, flag & 1);
if (sym._scope)
sym.semantic(sym._scope);
if (!sym.members)
{
if (!(flag & 1))
{
sym.error("is forward referenced when looking for '%s'", ident.toChars());
e = new ErrorExp();
}
else
e = null;
return e;
}
Dsymbol s = sym.search(e.loc, ident);
if (!s)
{
if (ident == Id.max || ident == Id.min || ident == Id._init)
{
return getProperty(e.loc, ident, flag & 1);
}
Expression res = sym.getMemtype(Loc()).dotExp(sc, e, ident, 1);
if (!(flag & 1) && !res)
{
if (auto ns = sym.search_correct(ident))
e.error("no property '%s' for type '%s'. Did you mean '%s.%s' ?", ident.toChars(), toChars(), toChars(),
ns.toChars());
else
e.error("no property '%s' for type '%s'", ident.toChars(),
toChars());
return new ErrorExp();
}
return res;
}
EnumMember m = s.isEnumMember();
return m.getVarExp(e.loc, sc);
}
override Expression getProperty(Loc loc, Identifier ident, int flag)
{
Expression e;
if (ident == Id.max || ident == Id.min)
{
return sym.getMaxMinValue(loc, ident);
}
else if (ident == Id._init)
{
e = defaultInitLiteral(loc);
}
else if (ident == Id.stringof)
{
const s = toChars();
e = new StringExp(loc, cast(char*)s);
Scope sc;
e = e.semantic(&sc);
}
else if (ident == Id._mangleof)
{
e = Type.getProperty(loc, ident, flag);
}
else
{
e = toBasetype().getProperty(loc, ident, flag);
}
return e;
}
override bool isintegral()
{
return sym.getMemtype(Loc()).isintegral();
}
override bool isfloating()
{
return sym.getMemtype(Loc()).isfloating();
}
override bool isreal()
{
return sym.getMemtype(Loc()).isreal();
}
override bool isimaginary()
{
return sym.getMemtype(Loc()).isimaginary();
}
override bool iscomplex()
{
return sym.getMemtype(Loc()).iscomplex();
}
override bool isscalar()
{
return sym.getMemtype(Loc()).isscalar();
}
override bool isunsigned()
{
return sym.getMemtype(Loc()).isunsigned();
}
override bool isBoolean()
{
return sym.getMemtype(Loc()).isBoolean();
}
override bool isString()
{
return sym.getMemtype(Loc()).isString();
}
override bool isAssignable()
{
return sym.getMemtype(Loc()).isAssignable();
}
override bool needsDestruction()
{
return sym.getMemtype(Loc()).needsDestruction();
}
override bool needsNested()
{
return sym.getMemtype(Loc()).needsNested();
}
override MATCH implicitConvTo(Type to)
{
MATCH m;
//printf("TypeEnum::implicitConvTo()\n");
if (ty == to.ty && sym == (cast(TypeEnum)to).sym)
m = (mod == to.mod) ? MATCHexact : MATCHconst;
else if (sym.getMemtype(Loc()).implicitConvTo(to))
m = MATCHconvert; // match with conversions
else
m = MATCHnomatch; // no match
return m;
}
override MATCH constConv(Type to)
{
if (equals(to))
return MATCHexact;
if (ty == to.ty && sym == (cast(TypeEnum)to).sym && MODimplicitConv(mod, to.mod))
return MATCHconst;
return MATCHnomatch;
}
override Type toBasetype()
{
if (!sym.members && !sym.memtype)
return this;
auto tb = sym.getMemtype(Loc()).toBasetype();
return tb.castMod(mod); // retain modifier bits from 'this'
}
override Expression defaultInit(Loc loc)
{
static if (LOGDEFAULTINIT)
{
printf("TypeEnum::defaultInit() '%s'\n", toChars());
}
// Initialize to first member of enum
Expression e = sym.getDefaultValue(loc);
e = e.copy();
e.loc = loc;
e.type = this; // to deal with const, immutable, etc., variants
return e;
}
override bool isZeroInit(Loc loc)
{
return sym.getDefaultValue(loc).isBool(false);
}
override bool hasPointers()
{
return sym.getMemtype(Loc()).hasPointers();
}
override bool hasVoidInitPointers()
{
return sym.getMemtype(Loc()).hasVoidInitPointers();
}
override Type nextOf()
{
return sym.getMemtype(Loc()).nextOf();
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class TypeClass : Type
{
ClassDeclaration sym;
AliasThisRec att = RECfwdref;
CPPMANGLE cppmangle = CPPMANGLE.def;
extern (D) this(ClassDeclaration sym)
{
super(Tclass);
this.sym = sym;
}
override const(char)* kind() const
{
return "class";
}
override d_uns64 size(Loc loc) const
{
return Target.ptrsize;
}
override Type syntaxCopy()
{
return this;
}
override Type semantic(Loc loc, Scope* sc)
{
//printf("TypeClass::semantic(%s)\n", sym.toChars());
if (deco)
{
if (sc && sc.cppmangle != CPPMANGLE.def)
{
if (this.cppmangle == CPPMANGLE.def)
this.cppmangle = sc.cppmangle;
else
assert(this.cppmangle == sc.cppmangle);
}
return this;
}
/* Don't semantic for sym because it should be deferred until
* sizeof needed or its members accessed.
*/
// instead, parent should be set correctly
assert(sym.parent);
if (sym.type.ty == Terror)
return Type.terror;
if (sc)
this.cppmangle = sc.cppmangle;
return merge();
}
override Dsymbol toDsymbol(Scope* sc)
{
return sym;
}
override Expression dotExp(Scope* sc, Expression e, Identifier ident, int flag)
{
Dsymbol s;
static if (LOGDOTEXP)
{
printf("TypeClass::dotExp(e = '%s', ident = '%s')\n", e.toChars(), ident.toChars());
}
assert(e.op != TOKdot);
// Bugzilla 12543
if (ident == Id.__sizeof || ident == Id.__xalignof || ident == Id._mangleof)
{
return Type.getProperty(e.loc, ident, 0);
}
/* If e.tupleof
*/
if (ident == Id._tupleof)
{
/* Create a TupleExp
*/
e = e.semantic(sc); // do this before turning on noaccesscheck
sym.size(e.loc); // do semantic of type
Expression e0;
Expression ev = e.op == TOKtype ? null : e;
if (ev)
ev = extractSideEffect(sc, "__tup", e0, ev);
auto exps = new Expressions();
exps.reserve(sym.fields.dim);
for (size_t i = 0; i < sym.fields.dim; i++)
{
VarDeclaration v = sym.fields[i];
// Don't include hidden 'this' pointer
if (v.isThisDeclaration())
continue;
Expression ex;
if (ev)
ex = new DotVarExp(e.loc, ev, v);
else
{
ex = new VarExp(e.loc, v);
ex.type = ex.type.addMod(e.type.mod);
}
exps.push(ex);
}
e = new TupleExp(e.loc, e0, exps);
Scope* sc2 = sc.push();
sc2.flags = sc.flags | SCOPEnoaccesscheck;
e = e.semantic(sc2);
sc2.pop();
return e;
}
Dsymbol searchSym()
{
int flags = 0;
Dsymbol sold = void;
if (global.params.bug10378 || global.params.check10378)
{
sold = sym.search(e.loc, ident, flags | IgnoreSymbolVisibility);
if (!global.params.check10378)
return sold;
}
auto s = sym.search(e.loc, ident, flags | SearchLocalsOnly);
if (!s)
{
s = sym.search(e.loc, ident, flags | SearchLocalsOnly | IgnoreSymbolVisibility);
if (s && !(flags & IgnoreErrors))
.deprecation(e.loc, "%s is not visible from class %s", s.toPrettyChars(), sym.toChars());
}
if (global.params.check10378)
{
alias snew = s;
if (sold !is snew)
Scope.deprecation10378(e.loc, sold, snew);
if (global.params.bug10378)
s = sold;
}
return s;
}
s = searchSym();
L1:
if (!s)
{
// See if it's 'this' class or a base class
if (sym.ident == ident)
{
if (e.op == TOKtype)
return Type.getProperty(e.loc, ident, 0);
e = new DotTypeExp(e.loc, e, sym);
e = e.semantic(sc);
return e;
}
if (auto cbase = sym.searchBase(ident))
{
if (e.op == TOKtype)
return Type.getProperty(e.loc, ident, 0);
if (auto ifbase = cbase.isInterfaceDeclaration())
e = new CastExp(e.loc, e, ifbase.type);
else
e = new DotTypeExp(e.loc, e, cbase);
e = e.semantic(sc);
return e;
}
if (ident == Id.classinfo)
{
assert(Type.typeinfoclass);
Type t = Type.typeinfoclass.type;
if (e.op == TOKtype || e.op == TOKdottype)
{
/* For type.classinfo, we know the classinfo
* at compile time.
*/
if (!sym.vclassinfo)
sym.vclassinfo = new TypeInfoClassDeclaration(sym.type);
e = new VarExp(e.loc, sym.vclassinfo);
e = e.addressOf();
e.type = t; // do this so we don't get redundant dereference
}
else
{
/* For class objects, the classinfo reference is the first
* entry in the vtbl[]
*/
e = new PtrExp(e.loc, e);
e.type = t.pointerTo();
if (sym.isInterfaceDeclaration())
{
if (sym.isCPPinterface())
{
/* C++ interface vtbl[]s are different in that the
* first entry is always pointer to the first virtual
* function, not classinfo.
* We can't get a .classinfo for it.
*/
error(e.loc, "no .classinfo for C++ interface objects");
}
/* For an interface, the first entry in the vtbl[]
* is actually a pointer to an instance of struct Interface.
* The first member of Interface is the .classinfo,
* so add an extra pointer indirection.
*/
e.type = e.type.pointerTo();
e = new PtrExp(e.loc, e);
e.type = t.pointerTo();
}
e = new PtrExp(e.loc, e, t);
}
return e;
}
if (ident == Id.__vptr)
{
/* The pointer to the vtbl[]
* *cast(immutable(void*)**)e
*/
e = e.castTo(sc, tvoidptr.immutableOf().pointerTo().pointerTo());
e = new PtrExp(e.loc, e);
e = e.semantic(sc);
return e;
}
if (ident == Id.__monitor)
{
/* The handle to the monitor (call it a void*)
* *(cast(void**)e + 1)
*/
e = e.castTo(sc, tvoidptr.pointerTo());
e = new AddExp(e.loc, e, new IntegerExp(1));
e = new PtrExp(e.loc, e);
e = e.semantic(sc);
return e;
}
if (ident == Id.outer && sym.vthis)
{
if (sym.vthis._scope)
sym.vthis.semantic(null);
if (auto cdp = sym.toParent2().isClassDeclaration())
{
auto dve = new DotVarExp(e.loc, e, sym.vthis);
dve.type = cdp.type.addMod(e.type.mod);
return dve;
}
/* Bugzilla 15839: Find closest parent class through nested functions.
*/
for (auto p = sym.toParent2(); p; p = p.toParent2())
{
auto fd = p.isFuncDeclaration();
if (!fd)
break;
if (fd.isNested())
continue;
auto ad = fd.isThis();
if (!ad)
break;
if (auto cdp = ad.isClassDeclaration())
{
auto ve = new ThisExp(e.loc);
ve.var = fd.vthis;
const nestedError = fd.vthis.checkNestedReference(sc, e.loc);
assert(!nestedError);
ve.type = fd.vthis.type.addMod(e.type.mod);
return ve;
}
break;
}
// Continue to show enclosing function's frame (stack or closure).
auto dve = new DotVarExp(e.loc, e, sym.vthis);
dve.type = sym.vthis.type.addMod(e.type.mod);
return dve;
}
return noMember(sc, e, ident, flag & 1);
}
if (!symbolIsVisible(sc, s))
{
.deprecation(e.loc, "%s is not visible from module %s", s.toPrettyChars(), sc._module.toPrettyChars());
// return noMember(sc, e, ident, flag);
}
if (!s.isFuncDeclaration()) // because of overloading
s.checkDeprecated(e.loc, sc);
s = s.toAlias();
if (auto em = s.isEnumMember())
{
return em.getVarExp(e.loc, sc);
}
if (auto v = s.isVarDeclaration())
{
if (!v.type ||
!v.type.deco && v.inuse)
{
if (v.inuse) // Bugzilla 9494
e.error("circular reference to %s '%s'", v.kind(), v.toPrettyChars());
else
e.error("forward reference to %s '%s'", v.kind(), v.toPrettyChars());
return new ErrorExp();
}
if (v.type.ty == Terror)
return new ErrorExp();
if ((v.storage_class & STCmanifest) && v._init)
{
if (v.inuse)
{
e.error("circular initialization of %s '%s'", v.kind(), v.toPrettyChars());
return new ErrorExp();
}
checkAccess(e.loc, sc, null, v);
Expression ve = new VarExp(e.loc, v);
ve = ve.semantic(sc);
return ve;
}
}
if (auto t = s.getType())
{
return (new TypeExp(e.loc, t)).semantic(sc);
}
TemplateMixin tm = s.isTemplateMixin();
if (tm)
{
Expression de = new DotExp(e.loc, e, new ScopeExp(e.loc, tm));
de.type = e.type;
return de;
}
TemplateDeclaration td = s.isTemplateDeclaration();
if (td)
{
if (e.op == TOKtype)
e = new TemplateExp(e.loc, td);
else
e = new DotTemplateExp(e.loc, e, td);
e = e.semantic(sc);
return e;
}
TemplateInstance ti = s.isTemplateInstance();
if (ti)
{
if (!ti.semanticRun)
{
ti.semantic(sc);
if (!ti.inst || ti.errors) // if template failed to expand
return new ErrorExp();
}
s = ti.inst.toAlias();
if (!s.isTemplateInstance())
goto L1;
if (e.op == TOKtype)
e = new ScopeExp(e.loc, ti);
else
e = new DotExp(e.loc, e, new ScopeExp(e.loc, ti));
return e.semantic(sc);
}
if (s.isImport() || s.isModule() || s.isPackage())
{
e = DsymbolExp.resolve(e.loc, sc, s, false);
return e;
}
OverloadSet o = s.isOverloadSet();
if (o)
{
auto oe = new OverExp(e.loc, o);
if (e.op == TOKtype)
return oe;
return new DotExp(e.loc, e, oe);
}
Declaration d = s.isDeclaration();
if (!d)
{
e.error("%s.%s is not a declaration", e.toChars(), ident.toChars());
return new ErrorExp();
}
if (e.op == TOKtype)
{
/* It's:
* Class.d
*/
if (TupleDeclaration tup = d.isTupleDeclaration())
{
e = new TupleExp(e.loc, tup);
e = e.semantic(sc);
return e;
}
if (d.needThis() && sc.intypeof != 1)
{
/* Rewrite as:
* this.d
*/
if (hasThis(sc))
{
// This is almost same as getRightThis() in expression.c
Expression e1 = new ThisExp(e.loc);
e1 = e1.semantic(sc);
L2:
Type t = e1.type.toBasetype();
ClassDeclaration cd = e.type.isClassHandle();
ClassDeclaration tcd = t.isClassHandle();
if (cd && tcd && (tcd == cd || cd.isBaseOf(tcd, null)))
{
e = new DotTypeExp(e1.loc, e1, cd);
e = new DotVarExp(e.loc, e, d);
e = e.semantic(sc);
return e;
}
if (tcd && tcd.isNested())
{
/* e1 is the 'this' pointer for an inner class: tcd.
* Rewrite it as the 'this' pointer for the outer class.
*/
e1 = new DotVarExp(e.loc, e1, tcd.vthis);
e1.type = tcd.vthis.type;
e1.type = e1.type.addMod(t.mod);
// Do not call checkNestedRef()
//e1 = e1->semantic(sc);
// Skip up over nested functions, and get the enclosing
// class type.
int n = 0;
for (s = tcd.toParent(); s && s.isFuncDeclaration(); s = s.toParent())
{
FuncDeclaration f = s.isFuncDeclaration();
if (f.vthis)
{
//printf("rewriting e1 to %s's this\n", f->toChars());
n++;
e1 = new VarExp(e.loc, f.vthis);
}
else
{
e = new VarExp(e.loc, d);
return e;
}
}
if (s && s.isClassDeclaration())
{
e1.type = s.isClassDeclaration().type;
e1.type = e1.type.addMod(t.mod);
if (n > 1)
e1 = e1.semantic(sc);
}
else
e1 = e1.semantic(sc);
goto L2;
}
}
}
//printf("e = %s, d = %s\n", e->toChars(), d->toChars());
if (d.semanticRun == PASSinit && d._scope)
d.semantic(d._scope);
checkAccess(e.loc, sc, e, d);
auto ve = new VarExp(e.loc, d);
if (d.isVarDeclaration() && d.needThis())
ve.type = d.type.addMod(e.type.mod);
return ve;
}
bool unreal = e.op == TOKvar && (cast(VarExp)e).var.isField();
if (d.isDataseg() || unreal && d.isField())
{
// (e, d)
checkAccess(e.loc, sc, e, d);
Expression ve = new VarExp(e.loc, d);
e = unreal ? ve : new CommaExp(e.loc, e, ve);
e = e.semantic(sc);
return e;
}
e = new DotVarExp(e.loc, e, d);
e = e.semantic(sc);
return e;
}
override ClassDeclaration isClassHandle()
{
return sym;
}
override bool isBaseOf(Type t, int* poffset)
{
if (t && t.ty == Tclass)
{
ClassDeclaration cd = (cast(TypeClass)t).sym;
if (sym.isBaseOf(cd, poffset))
return true;
}
return false;
}
override MATCH implicitConvTo(Type to)
{
//printf("TypeClass::implicitConvTo(to = '%s') %s\n", to->toChars(), toChars());
MATCH m = constConv(to);
if (m > MATCHnomatch)
return m;
ClassDeclaration cdto = to.isClassHandle();
if (cdto)
{
//printf("TypeClass::implicitConvTo(to = '%s') %s, isbase = %d %d\n", to->toChars(), toChars(), cdto->isBaseInfoComplete(), sym->isBaseInfoComplete());
if (cdto._scope && !cdto.isBaseInfoComplete())
cdto.semantic(null);
if (sym._scope && !sym.isBaseInfoComplete())
sym.semantic(null);
if (cdto.isBaseOf(sym, null) && MODimplicitConv(mod, to.mod))
{
//printf("'to' is base\n");
return MATCHconvert;
}
}
m = MATCHnomatch;
if (sym.aliasthis && !(att & RECtracing))
{
att = cast(AliasThisRec)(att | RECtracing);
m = aliasthisOf().implicitConvTo(to);
att = cast(AliasThisRec)(att & ~RECtracing);
}
return m;
}
override MATCH constConv(Type to)
{
if (equals(to))
return MATCHexact;
if (ty == to.ty && sym == (cast(TypeClass)to).sym && MODimplicitConv(mod, to.mod))
return MATCHconst;
/* Conversion derived to const(base)
*/
int offset = 0;
if (to.isBaseOf(this, &offset) && offset == 0 && MODimplicitConv(mod, to.mod))
{
// Disallow:
// derived to base
// inout(derived) to inout(base)
if (!to.isMutable() && !to.isWild())
return MATCHconvert;
}
return MATCHnomatch;
}
override ubyte deduceWild(Type t, bool isRef)
{
ClassDeclaration cd = t.isClassHandle();
if (cd && (sym == cd || cd.isBaseOf(sym, null)))
return Type.deduceWild(t, isRef);
ubyte wm = 0;
if (t.hasWild() && sym.aliasthis && !(att & RECtracing))
{
att = cast(AliasThisRec)(att | RECtracing);
wm = aliasthisOf().deduceWild(t, isRef);
att = cast(AliasThisRec)(att & ~RECtracing);
}
return wm;
}
override Type toHeadMutable()
{
return this;
}
override Expression defaultInit(Loc loc)
{
static if (LOGDEFAULTINIT)
{
printf("TypeClass::defaultInit() '%s'\n", toChars());
}
return new NullExp(loc, this);
}
override bool isZeroInit(Loc loc) const
{
return true;
}
override bool isscope() const
{
return sym.isscope;
}
override bool isBoolean() const
{
return true;
}
override bool hasPointers() const
{
return true;
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class TypeTuple : Type
{
Parameters* arguments; // types making up the tuple
extern (D) this(Parameters* arguments)
{
super(Ttuple);
//printf("TypeTuple(this = %p)\n", this);
this.arguments = arguments;
//printf("TypeTuple() %p, %s\n", this, toChars());
debug
{
if (arguments)
{
for (size_t i = 0; i < arguments.dim; i++)
{
Parameter arg = (*arguments)[i];
assert(arg && arg.type);
}
}
}
}
/****************
* Form TypeTuple from the types of the expressions.
* Assume exps[] is already tuple expanded.
*/
extern (D) this(Expressions* exps)
{
super(Ttuple);
auto arguments = new Parameters();
if (exps)
{
arguments.setDim(exps.dim);
for (size_t i = 0; i < exps.dim; i++)
{
Expression e = (*exps)[i];
if (e.type.ty == Ttuple)
e.error("cannot form tuple of tuples");
auto arg = new Parameter(STCundefined, e.type, null, null);
(*arguments)[i] = arg;
}
}
this.arguments = arguments;
//printf("TypeTuple() %p, %s\n", this, toChars());
}
static TypeTuple create(Parameters* arguments)
{
return new TypeTuple(arguments);
}
/*******************************************
* Type tuple with 0, 1 or 2 types in it.
*/
extern (D) this()
{
super(Ttuple);
arguments = new Parameters();
}
extern (D) this(Type t1)
{
super(Ttuple);
arguments = new Parameters();
arguments.push(new Parameter(0, t1, null, null));
}
extern (D) this(Type t1, Type t2)
{
super(Ttuple);
arguments = new Parameters();
arguments.push(new Parameter(0, t1, null, null));
arguments.push(new Parameter(0, t2, null, null));
}
override const(char)* kind() const
{
return "tuple";
}
override Type syntaxCopy()
{
Parameters* args = Parameter.arraySyntaxCopy(arguments);
Type t = new TypeTuple(args);
t.mod = mod;
return t;
}
override Type semantic(Loc loc, Scope* sc)
{
//printf("TypeTuple::semantic(this = %p)\n", this);
//printf("TypeTuple::semantic() %p, %s\n", this, toChars());
if (!deco)
deco = merge().deco;
/* Don't return merge(), because a tuple with one type has the
* same deco as that type.
*/
return this;
}
override bool equals(RootObject o)
{
Type t = cast(Type)o;
//printf("TypeTuple::equals(%s, %s)\n", toChars(), t->toChars());
if (this == t)
return true;
if (t.ty == Ttuple)
{
TypeTuple tt = cast(TypeTuple)t;
if (arguments.dim == tt.arguments.dim)
{
for (size_t i = 0; i < tt.arguments.dim; i++)
{
Parameter arg1 = (*arguments)[i];
Parameter arg2 = (*tt.arguments)[i];
if (!arg1.type.equals(arg2.type))
return false;
}
return true;
}
}
return false;
}
override Expression getProperty(Loc loc, Identifier ident, int flag)
{
Expression e;
static if (LOGDOTEXP)
{
printf("TypeTuple::getProperty(type = '%s', ident = '%s')\n", toChars(), ident.toChars());
}
if (ident == Id.length)
{
e = new IntegerExp(loc, arguments.dim, Type.tsize_t);
}
else if (ident == Id._init)
{
e = defaultInitLiteral(loc);
}
else if (flag)
{
e = null;
}
else
{
error(loc, "no property '%s' for tuple '%s'", ident.toChars(), toChars());
e = new ErrorExp();
}
return e;
}
override Expression defaultInit(Loc loc)
{
auto exps = new Expressions();
exps.setDim(arguments.dim);
for (size_t i = 0; i < arguments.dim; i++)
{
Parameter p = (*arguments)[i];
assert(p.type);
Expression e = p.type.defaultInitLiteral(loc);
if (e.op == TOKerror)
return e;
(*exps)[i] = e;
}
return new TupleExp(loc, exps);
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
* This is so we can slice a TypeTuple
*/
extern (C++) final class TypeSlice : TypeNext
{
Expression lwr;
Expression upr;
extern (D) this(Type next, Expression lwr, Expression upr)
{
super(Tslice, next);
//printf("TypeSlice[%s .. %s]\n", lwr->toChars(), upr->toChars());
this.lwr = lwr;
this.upr = upr;
}
override const(char)* kind() const
{
return "slice";
}
override Type syntaxCopy()
{
Type t = new TypeSlice(next.syntaxCopy(), lwr.syntaxCopy(), upr.syntaxCopy());
t.mod = mod;
return t;
}
override Type semantic(Loc loc, Scope* sc)
{
//printf("TypeSlice::semantic() %s\n", toChars());
Type tn = next.semantic(loc, sc);
//printf("next: %s\n", tn->toChars());
Type tbn = tn.toBasetype();
if (tbn.ty != Ttuple)
{
error(loc, "can only slice tuple types, not %s", tbn.toChars());
return Type.terror;
}
TypeTuple tt = cast(TypeTuple)tbn;
lwr = semanticLength(sc, tbn, lwr);
upr = semanticLength(sc, tbn, upr);
lwr = lwr.ctfeInterpret();
upr = upr.ctfeInterpret();
if (lwr.op == TOKerror || upr.op == TOKerror)
return Type.terror;
uinteger_t i1 = lwr.toUInteger();
uinteger_t i2 = upr.toUInteger();
if (!(i1 <= i2 && i2 <= tt.arguments.dim))
{
error(loc, "slice [%llu..%llu] is out of range of [0..%u]", i1, i2, tt.arguments.dim);
return Type.terror;
}
next = tn;
transitive();
auto args = new Parameters();
args.reserve(cast(size_t)(i2 - i1));
for (size_t i = cast(size_t)i1; i < cast(size_t)i2; i++)
{
Parameter arg = (*tt.arguments)[i];
args.push(arg);
}
Type t = new TypeTuple(args);
return t.semantic(loc, sc);
}
override void resolve(Loc loc, Scope* sc, Expression* pe, Type* pt, Dsymbol* ps, bool intypeid = false)
{
next.resolve(loc, sc, pe, pt, ps, intypeid);
if (*pe)
{
// It's really a slice expression
if (Dsymbol s = getDsymbol(*pe))
*pe = new DsymbolExp(loc, s);
*pe = new ArrayExp(loc, *pe, new IntervalExp(loc, lwr, upr));
}
else if (*ps)
{
Dsymbol s = *ps;
TupleDeclaration td = s.isTupleDeclaration();
if (td)
{
/* It's a slice of a TupleDeclaration
*/
ScopeDsymbol sym = new ArrayScopeSymbol(sc, td);
sym.parent = sc.scopesym;
sc = sc.push(sym);
sc = sc.startCTFE();
lwr = lwr.semantic(sc);
upr = upr.semantic(sc);
sc = sc.endCTFE();
sc = sc.pop();
lwr = lwr.ctfeInterpret();
upr = upr.ctfeInterpret();
uinteger_t i1 = lwr.toUInteger();
uinteger_t i2 = upr.toUInteger();
if (!(i1 <= i2 && i2 <= td.objects.dim))
{
error(loc, "slice [%llu..%llu] is out of range of [0..%u]", i1, i2, td.objects.dim);
*ps = null;
*pt = Type.terror;
return;
}
if (i1 == 0 && i2 == td.objects.dim)
{
*ps = td;
return;
}
/* Create a new TupleDeclaration which
* is a slice [i1..i2] out of the old one.
*/
auto objects = new Objects();
objects.setDim(cast(size_t)(i2 - i1));
for (size_t i = 0; i < objects.dim; i++)
{
(*objects)[i] = (*td.objects)[cast(size_t)i1 + i];
}
auto tds = new TupleDeclaration(loc, td.ident, objects);
*ps = tds;
}
else
goto Ldefault;
}
else
{
if ((*pt).ty != Terror)
next = *pt; // prevent re-running semantic() on 'next'
Ldefault:
Type.resolve(loc, sc, pe, pt, ps, intypeid);
}
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class TypeNull : Type
{
extern (D) this()
{
super(Tnull);
}
override const(char)* kind() const
{
return "null";
}
override Type syntaxCopy()
{
// No semantic analysis done, no need to copy
return this;
}
override MATCH implicitConvTo(Type to)
{
//printf("TypeNull::implicitConvTo(this=%p, to=%p)\n", this, to);
//printf("from: %s\n", toChars());
//printf("to : %s\n", to->toChars());
MATCH m = Type.implicitConvTo(to);
if (m != MATCHnomatch)
return m;
// NULL implicitly converts to any pointer type or dynamic array
//if (type->ty == Tpointer && type->nextOf()->ty == Tvoid)
{
Type tb = to.toBasetype();
if (tb.ty == Tnull || tb.ty == Tpointer || tb.ty == Tarray || tb.ty == Taarray || tb.ty == Tclass || tb.ty == Tdelegate)
return MATCHconst;
}
return MATCHnomatch;
}
override bool isBoolean() const
{
return true;
}
override d_uns64 size(Loc loc) const
{
return tvoidptr.size(loc);
}
override Expression defaultInit(Loc loc) const
{
return new NullExp(Loc(), Type.tnull);
}
override void accept(Visitor v)
{
v.visit(this);
}
}
/***********************************************************
*/
extern (C++) final class Parameter : RootObject
{
StorageClass storageClass;
Type type;
Identifier ident;
Expression defaultArg;
extern (D) this(StorageClass storageClass, Type type, Identifier ident, Expression defaultArg)
{
this.type = type;
this.ident = ident;
this.storageClass = storageClass;
this.defaultArg = defaultArg;
}
static Parameter create(StorageClass storageClass, Type type, Identifier ident, Expression defaultArg)
{
return new Parameter(storageClass, type, ident, defaultArg);
}
Parameter syntaxCopy()
{
return new Parameter(storageClass, type ? type.syntaxCopy() : null, ident, defaultArg ? defaultArg.syntaxCopy() : null);
}
/****************************************************
* Determine if parameter is a lazy array of delegates.
* If so, return the return type of those delegates.
* If not, return NULL.
*
* Returns T if the type is one of the following forms:
* T delegate()[]
* T delegate()[dim]
*/
Type isLazyArray()
{
Type tb = type.toBasetype();
if (tb.ty == Tsarray || tb.ty == Tarray)
{
Type tel = (cast(TypeArray)tb).next.toBasetype();
if (tel.ty == Tdelegate)
{
TypeDelegate td = cast(TypeDelegate)tel;
TypeFunction tf = cast(TypeFunction)td.next;
if (!tf.varargs && Parameter.dim(tf.parameters) == 0)
{
return tf.next; // return type of delegate
}
}
}
return null;
}
// kludge for template.isType()
override int dyncast()
{
return DYNCAST_PARAMETER;
}
void accept(Visitor v)
{
v.visit(this);
}
static Parameters* arraySyntaxCopy(Parameters* parameters)
{
Parameters* params = null;
if (parameters)
{
params = new Parameters();
params.setDim(parameters.dim);
for (size_t i = 0; i < params.dim; i++)
(*params)[i] = (*parameters)[i].syntaxCopy();
}
return params;
}
/****************************************
* Determine if parameter list is really a template parameter list
* (i.e. it has auto or alias parameters)
*/
extern (D) static int isTPL(Parameters* parameters)
{
//printf("Parameter::isTPL()\n");
int isTPLDg(size_t n, Parameter p)
{
if (p.storageClass & (STCalias | STCauto | STCstatic))
return 1;
return 0;
}
return _foreach(parameters, &isTPLDg);
}
/***************************************
* Determine number of arguments, folding in tuples.
*/
static size_t dim(Parameters* parameters)
{
size_t nargs = 0;
int dimDg(size_t n, Parameter p)
{
++nargs;
return 0;
}
_foreach(parameters, &dimDg);
return nargs;
}
/***************************************
* Get nth Parameter, folding in tuples.
* Returns:
* Parameter* nth Parameter
* NULL not found, *pn gets incremented by the number
* of Parameters
*/
static Parameter getNth(Parameters* parameters, size_t nth, size_t* pn = null)
{
Parameter param;
int getNthParamDg(size_t n, Parameter p)
{
if (n == nth)
{
param = p;
return 1;
}
return 0;
}
int res = _foreach(parameters, &getNthParamDg);
return res ? param : null;
}
alias ForeachDg = extern (D) int delegate(size_t paramidx, Parameter param);
/***************************************
* Expands tuples in args in depth first order. Calls
* dg(void *ctx, size_t argidx, Parameter *arg) for each Parameter.
* If dg returns !=0, stops and returns that value else returns 0.
* Use this function to avoid the O(N + N^2/2) complexity of
* calculating dim and calling N times getNth.
*/
extern (D) static int _foreach(Parameters* parameters, scope ForeachDg dg, size_t* pn = null)
{
assert(dg);
if (!parameters)
return 0;
size_t n = pn ? *pn : 0; // take over index
int result = 0;
foreach (i; 0 .. parameters.dim)
{
Parameter p = (*parameters)[i];
Type t = p.type.toBasetype();
if (t.ty == Ttuple)
{
TypeTuple tu = cast(TypeTuple)t;
result = _foreach(tu.arguments, dg, &n);
}
else
result = dg(n++, p);
if (result)
break;
}
if (pn)
*pn = n; // update index
return result;
}
override const(char)* toChars() const
{
return ident ? ident.toChars() : "__anonymous_param";
}
}
|
D
|
a conspicuous mistake whose effects seem to reverberate
|
D
|
module deimos.cef1.zip_reader;
// Copyright (c) 2012 Marshall A. Greenblatt. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Google Inc. nor the name Chromium Embedded
// Framework nor the names of its contributors may be used to endorse
// or promote products derived from this software without specific prior
// written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// ---------------------------------------------------------------------------
//
// This file was generated by the CEF translator tool and should not edited
// by hand. See the translator.README.txt file in the tools directory for
// more information.
//
// #ifndef CEF_INCLUDE_CAPI_CEF_ZIP_READER_CAPI_H_
// #pragma once
// #ifdef __cplusplus
extern(C) {
// #endif
import deimos.cef1.base;
///
// Structure that supports the reading of zip archives via the zlib unzip API.
// The functions of this structure should only be called on the thread that
// creates the object.
///
struct cef_zip_reader_t {
///
// Base structure.
///
cef_base_t base;
///
// Moves the cursor to the first file in the archive. Returns true (1) if the
// cursor position was set successfully.
///
extern(System) int function(cef_zip_reader_t* self) move_to_first_file;
///
// Moves the cursor to the next file in the archive. Returns true (1) if the
// cursor position was set successfully.
///
extern(System) int function(cef_zip_reader_t* self) move_to_next_file;
///
// Moves the cursor to the specified file in the archive. If |caseSensitive|
// is true (1) then the search will be case sensitive. Returns true (1) if the
// cursor position was set successfully.
///
extern(System) int function(cef_zip_reader_t* self, const(cef_string_t)* fileName, int caseSensitive) move_to_file;
///
// Closes the archive. This should be called directly to ensure that cleanup
// occurs on the correct thread.
///
extern(System) int function(cef_zip_reader_t* self) close;
// The below functions act on the file at the current cursor position.
///
// Returns the name of the file.
///
// The resulting string must be freed by calling cef_string_userfree_free().
extern(System) cef_string_userfree_t function(cef_zip_reader_t* self) get_file_name;
///
// Returns the uncompressed size of the file.
///
extern(System) int64 function(cef_zip_reader_t* self) get_file_size;
///
// Returns the last modified timestamp for the file.
///
extern(System) time_t function(cef_zip_reader_t* self) get_file_last_modified;
///
// Opens the file for reading of uncompressed data. A read password may
// optionally be specified.
///
extern(System) int function(cef_zip_reader_t* self, const(cef_string_t)* password) open_file;
///
// Closes the file.
///
extern(System) int function(cef_zip_reader_t* self) close_file;
///
// Read uncompressed file contents into the specified buffer. Returns < 0 if
// an error occurred, 0 if at the end of file, or the number of bytes read.
///
extern(System) int function(cef_zip_reader_t* self, void* buffer, size_t bufferSize) read_file;
///
// Returns the current offset in the uncompressed file contents.
///
extern(System) int64 function(cef_zip_reader_t* self) tell;
///
// Returns true (1) if at end of the file contents.
///
extern(System) int function(cef_zip_reader_t* self) eof;
}
///
// Create a new cef_zip_reader_t object. The returned object's functions can
// only be called from the thread that created the object.
///
cef_zip_reader_t* cef_zip_reader_create(cef_stream_reader_t* stream);
// #ifdef __cplusplus
}
// #endif
// #endif CEF_INCLUDE_CAPI_CEF_ZIP_READER_CAPI_H_
|
D
|
// This file is part of CCBI - Conforming Concurrent Befunge-98 Interpreter
// Copyright (c) 2006-2010 Matti Niemenmaa
// See license.txt, which you should have received together with this file, for
// licensing information.
// File created: 2007-01-20 21:12:24
module ccbi.fingerprints.rcfunge98.base;
import tango.core.BitManip : bsr;
import ccbi.fingerprint;
mixin (Fingerprint!(
"BASE",
"I/O for numbers in other bases
'N' and 'I' reverse unless 0 < base < 36.\n",
"B", "output!(`b`)",
"H", "output!(`x`)",
"I", "inputBase",
"N", "outputBase",
"O", "output!(`o`)"
));
uint floorLog(uint base, uint val) {
// bsr is just an integer log2
return bsr(val) / bsr(base);
}
template BASE() {
import tango.core.Array : bsearch;
import tango.text.convert.Integer : intToString = toString;
import tango.text.Util : repeat;
void output(char[] fmt)() {
version (TRDS)
if (state.tick < ioAfter)
return cip.stack.pop(1);
try Sout(intToString(cip.stack.pop, fmt));
catch {
return reverse;
}
cput(' ');
}
void outputBase() {
auto base = cip.stack.pop,
val = cip.stack.pop;
if (base <= 0 || base > 36)
return reverse();
version (TRDS)
if (state.tick < ioAfter)
return;
bool rev = false;
if (val < 0) {
val = -val;
rev = !cputDirect('-');
}
const DIGITS = "0123456789abcdefghijklmnopqrstuvwxyz";
static char[] result;
size_t i;
if (base == 1) {
result = repeat("0", val);
i = val;
} else if (!val) {
result = "0";
i = 1;
} else {
result.length = floorLog(base, val) + 1;
for (i = 0; val > 0; val /= base)
result[i++] = DIGITS[val % base];
}
foreach_reverse (c; result[0..i])
if (!cputDirect(c))
rev = true;
rev = !cputDirect(' ') || rev;
if (rev)
reverse;
}
void inputBase() {
auto base = cip.stack.pop;
if (base <= 0 || base > 36)
return reverse();
version (TRDS)
if (state.tick < ioAfter)
return cip.stack.push(0);
try Sout.flush(); catch {}
auto digits = "0123456789abcdefghijklmnopqrstuvwxyz"[0..base];
char c;
static char toLower(in char c) {
if (c >= 'A' && c <= 'Z')
return c + ('a' - 'A');
else
return c;
}
try {
do c = cget();
while (!digits.bsearch(c));
} catch {
return reverse();
}
cunget(c);
cell n = 0;
auto s = new char[80];
size_t j;
reading: for (;;) {
try c = toLower(cget());
catch { return cip.stack.push(n); }
if (!digits.bsearch(c))
break;
// Overflow: can't read another char
if (n > n.max / base)
break;
if (j == s.length)
s.length = 2 * s.length;
s[j++] = c;
cell tmp = 0;
foreach_reverse (i, ch; s[0..j]) {
auto add = ipow(base, j-i-1) * (ch < 'a' ? ch - '0' : ch - 'a' + 10);
// Overflow caused by char
if (tmp > tmp.max - add)
break reading;
tmp += add;
}
n = tmp;
}
cunget(c);
cip.stack.push(n);
}
}
|
D
|
/**
* Copyright © DiamondMVC 2017
* License: MIT (https://github.com/DiamondMVC/Diamond-db/blob/master/LICENSE)
* Author: Jacob Jensen (bausshf)
*/
module diamond.database.core.traits;
/// Mixin template to handle fields of a type.
mixin template HandleFields(T, string handler)
{
string handleThem()
{
mixin HandleField!(T, [FieldNameTuple!T], handler);
return handle();
}
}
/// Mixin template to handle a specific field of a fieldname collection.
mixin template HandleField
(
T,
string[] fieldNames,
string handler
)
{
import std.array : replace;
string handle()
{
string s = "";
foreach (fieldName; fieldNames)
{
s ~= "{" ~
handler
.replace("{{fieldName}}", fieldName)
.replace("{{fullName}}", T.stringof ~ "." ~ fieldName)
~ "}";
}
return s;
}
}
|
D
|
module cmsed.user.caches.policy;
import cmsed.user.models.policy;
import cmsed.base;
mixin CacheManager!(PolicyModel, "getPolicies");
/**
* Gets a policy by name
*
* Params:
* name = The name of the policy to get
*
* Returns:
* A data model containing the policy. Which can be updated.
*/
PolicyModel getPolicyByName(string name) {
synchronized {
foreach(s; getPolicies) {
if (s.key.name == name)
return s;
}
return null;
}
}
|
D
|
/*
* exempi-d - exempi.xmpconsts
*
* Bindings by Les De Ridder <les@lesderid.net>
*
* Copyright (C) 2007-2016 Hubert Figuiere
* Copyright 2002-2007 Adobe Systems Incorporated
* 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 Neither the name of the Authors, nor the names of its
* contributors may be used to endorse or promote products derived
* from this software wit hout 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 exempi.xmpconsts;
extern(C):
//HACK: Should use a proper translation for 'extern const char CONSTANT_NAME[];'
extern __gshared const char[64] NS_XMP_META;
extern __gshared const char[64] NS_RDF;
extern __gshared const char[64] NS_EXIF;
extern __gshared const char[64] NS_TIFF;
extern __gshared const char[64] NS_XAP;
extern __gshared const char[64] NS_XAP_RIGHTS;
extern __gshared const char[64] NS_DC;
extern __gshared const char[64] NS_EXIF_AUX;
extern __gshared const char[64] NS_CRS;
extern __gshared const char[64] NS_LIGHTROOM;
extern __gshared const char[64] NS_PHOTOSHOP;
extern __gshared const char[64] NS_CAMERA_RAW_SETTINGS;
extern __gshared const char[64] NS_CAMERA_RAW_SAVED_SETTINGS;
extern __gshared const char[64] NS_IPTC4XMP;
extern __gshared const char[64] NS_TPG;
extern __gshared const char[64] NS_DIMENSIONS_TYPE;
/** Creative Commons namespace */
extern __gshared const char[64] NS_CC;
/* Added in Exempi 2.1 */
extern __gshared const char[64] NS_PDF;
|
D
|
module net.all;
public import net.client;
public import net.message;
public import net.server;
|
D
|
/**
* Copyright: Copyright (c) 2012 Jacob Carlborg. All rights reserved.
* Authors: Jacob Carlborg
* Version: Initial created: Aug 1, 2012
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost Software License 1.0)
*/
module mambo.text.Inflections;
string pluralize (string str, size_t count = size_t.max)
{
return count == 1 ? str : str ~ 's';
}
|
D
|
# FIXED
Include/uart_logs.obj: C:/ti/simplelink_academy_01_10_00_0000/modules/projects/support_files/Components/uart_log/uart_logs.c
Include/uart_logs.obj: C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/tidrivers_cc13xx_cc26xx_2_16_01_13/packages/ti/drivers/UART.h
Include/uart_logs.obj: C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/include/stdint.h
Include/uart_logs.obj: C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/include/stddef.h
Include/uart_logs.obj: C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/hal/Hwi.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/std.h
Include/uart_logs.obj: C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/include/stdarg.h
Include/uart_logs.obj: C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/include/stddef.h
Include/uart_logs.obj: C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/targets/arm/elf/std.h
Include/uart_logs.obj: C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/targets/arm/elf/M3.h
Include/uart_logs.obj: C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/targets/std.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/xdc.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types__prologue.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/package/package.defs.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types__epilogue.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IInstance.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/hal/Hwi__prologue.h
Include/uart_logs.obj: C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/hal/package/package.defs.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Error.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Error__prologue.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Main.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IModule.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IHeap.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IInstance.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IModule.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Error.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Memory.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IModule.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IHeap.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Error.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/package/Memory_HeapProxy.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IInstance.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IHeap.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Error.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IGateProvider.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IInstance.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IModule.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/package/Main_Module_GateProxy.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IInstance.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IGateProvider.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IModule.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Error__epilogue.h
Include/uart_logs.obj: C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/interfaces/IHwi.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IInstance.h
Include/uart_logs.obj: C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/interfaces/package/package.defs.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Error.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IModule.h
Include/uart_logs.obj: C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/hal/package/Hwi_HwiProxy.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IInstance.h
Include/uart_logs.obj: C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/interfaces/IHwi.h
Include/uart_logs.obj: C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/hal/Hwi__epilogue.h
Include/uart_logs.obj: C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/family/arm/m3/Hwi.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IInstance.h
Include/uart_logs.obj: C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/family/arm/m3/Hwi__prologue.h
Include/uart_logs.obj: C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/family/arm/m3/package/package.defs.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Diags.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Diags__prologue.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Main.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IModule.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Diags__epilogue.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Log.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Log__prologue.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Error.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Main.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Diags.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IModule.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Diags.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Text.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IModule.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Log__epilogue.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Assert.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Assert__prologue.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Main.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Diags.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IModule.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Diags.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Error.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Assert__epilogue.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Error.h
Include/uart_logs.obj: C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/BIOS.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/BIOS__prologue.h
Include/uart_logs.obj: C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/package/package.defs.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Error.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IModule.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IGateProvider.h
Include/uart_logs.obj: C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/package/BIOS_RtsGateProxy.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IInstance.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IGateProvider.h
Include/uart_logs.obj: C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/BIOS__epilogue.h
Include/uart_logs.obj: C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/interfaces/IHwi.h
Include/uart_logs.obj: C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/family/arm/m3/Hwi__epilogue.h
Include/uart_logs.obj: C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/hal/package/Hwi_HwiProxy.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Log.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Text.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/System.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IModule.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Assert.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/ISystemSupport.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IModule.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IGateProvider.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/package/System_SupportProxy.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/ISystemSupport.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/package/System_Module_GateProxy.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IInstance.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IGateProvider.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/package/System_SupportProxy.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/package/System_Module_GateProxy.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Timestamp.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/ITimestampClient.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IModule.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/ITimestampProvider.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/ITimestampClient.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/package/Timestamp_SupportProxy.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/ITimestampProvider.h
Include/uart_logs.obj: C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/package/Timestamp_SupportProxy.h
Include/uart_logs.obj: C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/cc26xxware_2_23_03_17162/driverlib/aon_rtc.h
Include/uart_logs.obj: C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/include/stdbool.h
Include/uart_logs.obj: C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/cc26xxware_2_23_03_17162/inc/hw_types.h
Include/uart_logs.obj: C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/cc26xxware_2_23_03_17162/inc/hw_chip_def.h
Include/uart_logs.obj: C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/cc26xxware_2_23_03_17162/inc/hw_memmap.h
Include/uart_logs.obj: C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/cc26xxware_2_23_03_17162/inc/hw_aon_rtc.h
Include/uart_logs.obj: C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/cc26xxware_2_23_03_17162/driverlib/debug.h
Include/uart_logs.obj: C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/cc26xxware_2_23_03_17162/driverlib/rom.h
Include/uart_logs.obj: C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/include/string.h
Include/uart_logs.obj: C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/include/linkage.h
C:/ti/simplelink_academy_01_10_00_0000/modules/projects/support_files/Components/uart_log/uart_logs.c:
C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/tidrivers_cc13xx_cc26xx_2_16_01_13/packages/ti/drivers/UART.h:
C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/include/stdint.h:
C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/include/stddef.h:
C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/hal/Hwi.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/std.h:
C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/include/stdarg.h:
C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/include/stddef.h:
C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/targets/arm/elf/std.h:
C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/targets/arm/elf/M3.h:
C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/targets/std.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/xdc.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types__prologue.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/package/package.defs.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types__epilogue.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IInstance.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/hal/Hwi__prologue.h:
C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/hal/package/package.defs.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Error.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Error__prologue.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Main.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IModule.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IHeap.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IInstance.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IModule.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Error.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Memory.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IModule.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IHeap.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Error.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/package/Memory_HeapProxy.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IInstance.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IHeap.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Error.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IGateProvider.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IInstance.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IModule.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/package/Main_Module_GateProxy.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IInstance.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IGateProvider.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IModule.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Error__epilogue.h:
C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/interfaces/IHwi.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IInstance.h:
C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/interfaces/package/package.defs.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Error.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IModule.h:
C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/hal/package/Hwi_HwiProxy.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IInstance.h:
C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/interfaces/IHwi.h:
C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/hal/Hwi__epilogue.h:
C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/family/arm/m3/Hwi.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IInstance.h:
C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/family/arm/m3/Hwi__prologue.h:
C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/family/arm/m3/package/package.defs.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Diags.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Diags__prologue.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Main.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IModule.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Diags__epilogue.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Log.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Log__prologue.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Error.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Main.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Diags.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IModule.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Diags.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Text.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IModule.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Log__epilogue.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Assert.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Assert__prologue.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Main.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Diags.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IModule.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Diags.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Error.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Assert__epilogue.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Error.h:
C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/BIOS.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/BIOS__prologue.h:
C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/package/package.defs.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Error.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IModule.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IGateProvider.h:
C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/package/BIOS_RtsGateProxy.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IInstance.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IGateProvider.h:
C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/BIOS__epilogue.h:
C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/interfaces/IHwi.h:
C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/family/arm/m3/Hwi__epilogue.h:
C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/bios_6_45_02_31/packages/ti/sysbios/hal/package/Hwi_HwiProxy.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Log.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Text.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/System.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IModule.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Assert.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/ISystemSupport.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IModule.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IGateProvider.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/package/System_SupportProxy.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/ISystemSupport.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/package/System_Module_GateProxy.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IInstance.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IGateProvider.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/package/System_SupportProxy.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/package/System_Module_GateProxy.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Timestamp.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/ITimestampClient.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/IModule.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/ITimestampProvider.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/ITimestampClient.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/package/Timestamp_SupportProxy.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/Types.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/ITimestampProvider.h:
C:/ti/xdctools_3_32_00_06_core/packages/xdc/runtime/package/Timestamp_SupportProxy.h:
C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/cc26xxware_2_23_03_17162/driverlib/aon_rtc.h:
C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/include/stdbool.h:
C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/cc26xxware_2_23_03_17162/inc/hw_types.h:
C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/cc26xxware_2_23_03_17162/inc/hw_chip_def.h:
C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/cc26xxware_2_23_03_17162/inc/hw_memmap.h:
C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/cc26xxware_2_23_03_17162/inc/hw_aon_rtc.h:
C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/cc26xxware_2_23_03_17162/driverlib/debug.h:
C:/ti/tirtos_cc13xx_cc26xx_2_18_00_03/products/cc26xxware_2_23_03_17162/driverlib/rom.h:
C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/include/string.h:
C:/ti/ccsv6/tools/compiler/arm_15.12.3.LTS/include/linkage.h:
|
D
|
/**
* Windows API header module
*
* Translated from MinGW API for MS-Windows 3.10
*
* Authors: Stewart Gordon
* License: $(LINK2 http://www.boost.org/LICENSE_1_0.txt, Boost License 1.0)
* Source: $(DRUNTIMESRC src/core/sys/windows/_aclui.d)
*/
module core.sys.windows.aclui;
version (Windows):
@system:
pragma(lib, "aclui");
private import core.sys.windows.w32api;
/*
static assert (_WIN32_WINNT >= 0x500,
"core.sys.windows.aclui is available only if version Windows2000, WindowsXP, Windows2003 "
"or WindowsVista is set");
*/
import core.sys.windows.accctrl, core.sys.windows.commctrl, core.sys.windows.objbase;
private import core.sys.windows.basetyps, core.sys.windows.prsht, core.sys.windows.unknwn, core.sys.windows.windef,
core.sys.windows.winuser;
struct SI_OBJECT_INFO {
DWORD dwFlags;
HINSTANCE hInstance;
LPWSTR pszServerName;
LPWSTR pszObjectName;
LPWSTR pszPageTitle;
GUID guidObjectType;
}
alias SI_OBJECT_INFO* PSI_OBJECT_INFO;
// values for SI_OBJECT_INFO.dwFlags
enum DWORD
SI_EDIT_PERMS = 0x00000000,
SI_EDIT_OWNER = 0x00000001,
SI_EDIT_AUDITS = 0x00000002,
SI_CONTAINER = 0x00000004,
SI_READONLY = 0x00000008,
SI_ADVANCED = 0x00000010,
SI_RESET = 0x00000020,
SI_OWNER_READONLY = 0x00000040,
SI_EDIT_PROPERTIES = 0x00000080,
SI_OWNER_RECURSE = 0x00000100,
SI_NO_ACL_PROTECT = 0x00000200,
SI_NO_TREE_APPLY = 0x00000400,
SI_PAGE_TITLE = 0x00000800,
SI_SERVER_IS_DC = 0x00001000,
SI_RESET_DACL_TREE = 0x00004000,
SI_RESET_SACL_TREE = 0x00008000,
SI_OBJECT_GUID = 0x00010000,
SI_EDIT_EFFECTIVE = 0x00020000,
SI_RESET_DACL = 0x00040000,
SI_RESET_SACL = 0x00080000,
SI_RESET_OWNER = 0x00100000,
SI_NO_ADDITIONAL_PERMISSION = 0x00200000,
SI_MAY_WRITE = 0x10000000,
SI_EDIT_ALL = SI_EDIT_PERMS | SI_EDIT_OWNER
| SI_EDIT_AUDITS;
struct SI_ACCESS {
const(GUID)* pguid;
ACCESS_MASK mask;
LPCWSTR pszName;
DWORD dwFlags;
}
alias SI_ACCESS* PSI_ACCESS;
// values for SI_ACCESS.dwFlags
enum DWORD
SI_ACCESS_SPECIFIC = 0x00010000,
SI_ACCESS_GENERAL = 0x00020000,
SI_ACCESS_CONTAINER = 0x00040000,
SI_ACCESS_PROPERTY = 0x00080000;
struct SI_INHERIT_TYPE {
const(GUID)* pguid;
ULONG dwFlags;
LPCWSTR pszName;
}
alias SI_INHERIT_TYPE* PSI_INHERIT_TYPE;
/* values for SI_INHERIT_TYPE.dwFlags
INHERIT_ONLY_ACE, CONTAINER_INHERIT_ACE, OBJECT_INHERIT_ACE
defined elsewhere */
enum SI_PAGE_TYPE {
SI_PAGE_PERM,
SI_PAGE_ADVPERM,
SI_PAGE_AUDIT,
SI_PAGE_OWNER
}
enum uint PSPCB_SI_INITDIALOG = WM_USER + 1;
interface ISecurityInformation : IUnknown {
HRESULT GetObjectInformation(PSI_OBJECT_INFO);
HRESULT GetSecurity(SECURITY_INFORMATION, PSECURITY_DESCRIPTOR*, BOOL);
HRESULT SetSecurity(SECURITY_INFORMATION, PSECURITY_DESCRIPTOR);
HRESULT GetAccessRights(const(GUID)*, DWORD, PSI_ACCESS*, ULONG*, ULONG*);
HRESULT MapGeneric(const(GUID)*, UCHAR*, ACCESS_MASK*);
HRESULT GetInheritTypes(PSI_INHERIT_TYPE*, ULONG*);
HRESULT PropertySheetPageCallback(HWND, UINT, SI_PAGE_TYPE);
}
alias ISecurityInformation LPSECURITYINFO;
/* Comment from MinGW
* TODO: ISecurityInformation2, IEffectivePermission, ISecurityObjectTypeInfo
*/
// FIXME: linkage attribute?
extern (C) /+DECLSPEC_IMPORT+/ extern const IID IID_ISecurityInformation;
extern (Windows) {
HPROPSHEETPAGE CreateSecurityPage(LPSECURITYINFO psi);
BOOL EditSecurity(HWND hwndOwner, LPSECURITYINFO psi);
}
|
D
|
/*
Copyright (c) 2018-2020 Timur Gafarov
Boost Software License - Version 1.0 - August 17th, 2003
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer,
must be included in all copies of the Software, in whole or in part, and
all derivative works of the Software, unless such copies or derivative
works are solely in the form of machine-executable object code generated by
a source language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
*/
module dlib.text.common;
/// Denotes an end of data
enum DECODE_END = -1;
/// Denotes an error while decoding
enum DECODE_ERROR = -2;
|
D
|
// URL: https://atcoder.jp/contests/abc111/tasks/arc103_b
import std.algorithm, std.container, std.conv, std.math, std.range, std.typecons, std.stdio, std.string;
auto rdsp(){return readln.splitter;}
void pick(R,T)(ref R r,ref T t){t=r.front.to!T;r.popFront;}
void pickV(R,T...)(ref R r,ref T t){foreach(ref v;t)pick(r,v);}
void readV(T...)(ref T t){auto r=rdsp;foreach(ref v;t)pick(r,v);}
void readA(T)(size_t n,ref T[]t){t=new T[](n);auto r=rdsp;foreach(ref v;t)pick(r,v);}
void readM(T)(size_t r,size_t c,ref T[][]t){t=new T[][](r);foreach(ref v;t)readA(c,v);}
void readC(T...)(size_t n,ref T t){foreach(ref v;t)v=new typeof(v)(n);foreach(i;0..n){auto r=rdsp;foreach(ref v;t)pick(r,v[i]);}}
void readS(T)(size_t n,ref T t){t=new T(n);foreach(ref v;t){auto r=rdsp;foreach(ref j;v.tupleof)pick(r,j);}}
void writeA(T)(size_t n,T t){foreach(i,v;t.enumerate){write(v);if(i<n-1)write(" ");}writeln;}
version(unittest) {} else
void main()
{
int n; readV(n);
int[] x, y; readC(n, x, y);
auto u = new int[](n), v = new int[](n);
foreach (i; 0..n) {
u[i] = x[i] + y[i];
v[i] = x[i] - y[i];
}
auto e = u.all!(ui => ui%2 == 0);
if (!e && !u.all!(ui => ui%2 != 0)) {
writeln(-1);
return;
}
if (e) { --u[]; --v[]; }
auto m = 31;
if (e) {
writeln(m+1);
writeA(m+1, chain([1], iota(m).map!"2^^a"));
} else {
writeln(m);
writeA(m, iota(m).map!"2^^a");
}
foreach (i; 0..n) {
if (e) write('R');
auto ut = (2^^m-1-u[i])/2, vt = (2^^m-1-v[i])/2;
foreach (j; 0..m) {
auto ub = ut.bitTest(j) ? 1 : 0, vb = vt.bitTest(j) ? 1 : 0;
write(['R', 'U', 'D', 'L'][(ub<<1)|vb]);
}
writeln;
}
}
pragma(inline) {
pure bool bitTest(T)(T n, size_t i) { return (n & (T(1) << i)) != 0; }
pure T bitSet(T)(T n, size_t i) { return n | (T(1) << i); }
pure T bitReset(T)(T n, size_t i) { return n & ~(T(1) << i); }
pure T bitComp(T)(T n, size_t i) { return n ^ (T(1) << i); }
pure T bitSet(T)(T n, size_t s, size_t e) { return n | ((T(1) << e) - 1) & ~((T(1) << s) - 1); }
pure T bitReset(T)(T n, size_t s, size_t e) { return n & (~((T(1) << e) - 1) | ((T(1) << s) - 1)); }
pure T bitComp(T)(T n, size_t s, size_t e) { return n ^ ((T(1) << e) - 1) & ~((T(1) << s) - 1); }
import core.bitop;
pure int bsf(T)(T n) { return core.bitop.bsf(ulong(n)); }
pure int bsr(T)(T n) { return core.bitop.bsr(ulong(n)); }
pure int popcnt(T)(T n) { return core.bitop.popcnt(ulong(n)); }
}
|
D
|
import imports.fail355 : nonexistent;
|
D
|
const int SPL_COST_Deathball = 35;
const int SPL_DAMAGE_Deathball = 190;
instance Spell_Deathball(C_Spell_Proto)
{
time_per_mana = 0;
damage_per_level = SPL_DAMAGE_Deathball;
};
func int Spell_Logic_Deathball(var int manaInvested)
{
if(Npc_GetActiveSpellIsScroll(self) && (self.attribute[ATR_MANA] >= SPL_Cost_Scroll))
{
return SPL_SENDCAST;
}
else if(self.attribute[ATR_MANA] >= SPL_COST_Deathball)
{
return SPL_SENDCAST;
}
else
{
return SPL_SENDSTOP;
};
};
func void Spell_Cast_Deathball()
{
if(Npc_GetActiveSpellIsScroll(self))
{
self.attribute[ATR_MANA] = self.attribute[ATR_MANA] - SPL_Cost_Scroll;
}
else
{
self.attribute[ATR_MANA] = self.attribute[ATR_MANA] - SPL_COST_Deathball;
};
self.aivar[AIV_SelectSpell] += 1;
};
|
D
|
lasting for a markedly brief time
|
D
|
module windows.windowsdeploymentservices;
public import windows.automation;
public import windows.com;
public import windows.systemservices;
public import windows.windowsandmessaging;
public import windows.windowsprogramming;
extern(Windows):
struct WDS_CLI_CRED
{
const(wchar)* pwszUserName;
const(wchar)* pwszDomain;
const(wchar)* pwszPassword;
}
alias PFN_WdsCliTraceFunction = extern(Windows) void function(const(wchar)* pwszFormat, byte* Params);
enum WDS_CLI_IMAGE_TYPE
{
WDS_CLI_IMAGE_TYPE_UNKNOWN = 0,
WDS_CLI_IMAGE_TYPE_WIM = 1,
WDS_CLI_IMAGE_TYPE_VHD = 2,
WDS_CLI_IMAGE_TYPE_VHDX = 3,
}
enum WDS_CLI_FIRMWARE_TYPE
{
WDS_CLI_FIRMWARE_UNKNOWN = 0,
WDS_CLI_FIRMWARE_BIOS = 1,
WDS_CLI_FIRMWARE_EFI = 2,
}
enum WDS_CLI_IMAGE_PARAM_TYPE
{
WDS_CLI_IMAGE_PARAM_UNKNOWN = 0,
WDS_CLI_IMAGE_PARAM_SPARSE_FILE = 1,
WDS_CLI_IMAGE_PARAM_SUPPORTED_FIRMWARES = 2,
}
alias PFN_WdsCliCallback = extern(Windows) void function(uint dwMessageId, WPARAM wParam, LPARAM lParam, void* pvUserData);
struct PXE_DHCP_OPTION
{
ubyte OptionType;
ubyte OptionLength;
ubyte OptionValue;
}
struct PXE_DHCP_MESSAGE
{
ubyte Operation;
ubyte HardwareAddressType;
ubyte HardwareAddressLength;
ubyte HopCount;
uint TransactionID;
ushort SecondsSinceBoot;
ushort Reserved;
uint ClientIpAddress;
uint YourIpAddress;
uint BootstrapServerAddress;
uint RelayAgentIpAddress;
ubyte HardwareAddress;
ubyte HostName;
ubyte BootFileName;
_Anonymous_e__Union Anonymous;
PXE_DHCP_OPTION Option;
}
struct PXE_DHCPV6_OPTION
{
ushort OptionCode;
ushort DataLength;
ubyte Data;
}
struct PXE_DHCPV6_MESSAGE_HEADER
{
ubyte MessageType;
ubyte Message;
}
struct PXE_DHCPV6_MESSAGE
{
ubyte MessageType;
ubyte TransactionIDByte1;
ubyte TransactionIDByte2;
ubyte TransactionIDByte3;
PXE_DHCPV6_OPTION Options;
}
struct PXE_DHCPV6_RELAY_MESSAGE
{
ubyte MessageType;
ubyte HopCount;
ubyte LinkAddress;
ubyte PeerAddress;
PXE_DHCPV6_OPTION Options;
}
struct PXE_PROVIDER
{
uint uSizeOfStruct;
const(wchar)* pwszName;
const(wchar)* pwszFilePath;
BOOL bIsCritical;
uint uIndex;
}
struct PXE_ADDRESS
{
uint uFlags;
_Anonymous_e__Union Anonymous;
uint uAddrLen;
ushort uPort;
}
struct PXE_DHCPV6_NESTED_RELAY_MESSAGE
{
PXE_DHCPV6_RELAY_MESSAGE* pRelayMessage;
uint cbRelayMessage;
void* pInterfaceIdOption;
ushort cbInterfaceIdOption;
}
enum TRANSPORTPROVIDER_CALLBACK_ID
{
WDS_TRANSPORTPROVIDER_CREATE_INSTANCE = 0,
WDS_TRANSPORTPROVIDER_COMPARE_CONTENT = 1,
WDS_TRANSPORTPROVIDER_OPEN_CONTENT = 2,
WDS_TRANSPORTPROVIDER_USER_ACCESS_CHECK = 3,
WDS_TRANSPORTPROVIDER_GET_CONTENT_SIZE = 4,
WDS_TRANSPORTPROVIDER_READ_CONTENT = 5,
WDS_TRANSPORTPROVIDER_CLOSE_CONTENT = 6,
WDS_TRANSPORTPROVIDER_CLOSE_INSTANCE = 7,
WDS_TRANSPORTPROVIDER_SHUTDOWN = 8,
WDS_TRANSPORTPROVIDER_DUMP_STATE = 9,
WDS_TRANSPORTPROVIDER_REFRESH_SETTINGS = 10,
WDS_TRANSPORTPROVIDER_GET_CONTENT_METADATA = 11,
WDS_TRANSPORTPROVIDER_MAX_CALLBACKS = 12,
}
struct WDS_TRANSPORTPROVIDER_INIT_PARAMS
{
uint ulLength;
uint ulMcServerVersion;
HKEY hRegistryKey;
HANDLE hProvider;
}
struct WDS_TRANSPORTPROVIDER_SETTINGS
{
uint ulLength;
uint ulProviderVersion;
}
enum TRANSPORTCLIENT_CALLBACK_ID
{
WDS_TRANSPORTCLIENT_SESSION_START = 0,
WDS_TRANSPORTCLIENT_RECEIVE_CONTENTS = 1,
WDS_TRANSPORTCLIENT_SESSION_COMPLETE = 2,
WDS_TRANSPORTCLIENT_RECEIVE_METADATA = 3,
WDS_TRANSPORTCLIENT_SESSION_STARTEX = 4,
WDS_TRANSPORTCLIENT_SESSION_NEGOTIATE = 5,
WDS_TRANSPORTCLIENT_MAX_CALLBACKS = 6,
}
struct TRANSPORTCLIENT_SESSION_INFO
{
uint ulStructureLength;
ULARGE_INTEGER ullFileSize;
uint ulBlockSize;
}
alias PFN_WdsTransportClientSessionStart = extern(Windows) void function(HANDLE hSessionKey, void* pCallerData, ULARGE_INTEGER* ullFileSize);
alias PFN_WdsTransportClientSessionStartEx = extern(Windows) void function(HANDLE hSessionKey, void* pCallerData, TRANSPORTCLIENT_SESSION_INFO* Info);
alias PFN_WdsTransportClientReceiveMetadata = extern(Windows) void function(HANDLE hSessionKey, void* pCallerData, char* pMetadata, uint ulSize);
alias PFN_WdsTransportClientReceiveContents = extern(Windows) void function(HANDLE hSessionKey, void* pCallerData, char* pContents, uint ulSize, ULARGE_INTEGER* pullContentOffset);
alias PFN_WdsTransportClientSessionComplete = extern(Windows) void function(HANDLE hSessionKey, void* pCallerData, uint dwError);
alias PFN_WdsTransportClientSessionNegotiate = extern(Windows) void function(HANDLE hSessionKey, void* pCallerData, TRANSPORTCLIENT_SESSION_INFO* pInfo, HANDLE hNegotiateKey);
struct WDS_TRANSPORTCLIENT_REQUEST
{
uint ulLength;
uint ulApiVersion;
uint ulAuthLevel;
const(wchar)* pwszServer;
const(wchar)* pwszNamespace;
const(wchar)* pwszObjectName;
uint ulCacheSize;
uint ulProtocol;
void* pvProtocolData;
uint ulProtocolDataLength;
}
struct WDS_TRANSPORTCLIENT_CALLBACKS
{
PFN_WdsTransportClientSessionStart SessionStart;
PFN_WdsTransportClientSessionStartEx SessionStartEx;
PFN_WdsTransportClientReceiveContents ReceiveContents;
PFN_WdsTransportClientReceiveMetadata ReceiveMetadata;
PFN_WdsTransportClientSessionComplete SessionComplete;
PFN_WdsTransportClientSessionNegotiate SessionNegotiate;
}
const GUID CLSID_WdsTransportCacheable = {0x70590B16, 0xF146, 0x46BD, [0xBD, 0x9D, 0x4A, 0xAA, 0x90, 0x08, 0x4B, 0xF5]};
@GUID(0x70590B16, 0xF146, 0x46BD, [0xBD, 0x9D, 0x4A, 0xAA, 0x90, 0x08, 0x4B, 0xF5]);
struct WdsTransportCacheable;
const GUID CLSID_WdsTransportCollection = {0xC7F18B09, 0x391E, 0x436E, [0xB1, 0x0B, 0xC3, 0xEF, 0x46, 0xF2, 0xC3, 0x4F]};
@GUID(0xC7F18B09, 0x391E, 0x436E, [0xB1, 0x0B, 0xC3, 0xEF, 0x46, 0xF2, 0xC3, 0x4F]);
struct WdsTransportCollection;
const GUID CLSID_WdsTransportManager = {0xF21523F6, 0x837C, 0x4A58, [0xAF, 0x99, 0x8A, 0x7E, 0x27, 0xF8, 0xFF, 0x59]};
@GUID(0xF21523F6, 0x837C, 0x4A58, [0xAF, 0x99, 0x8A, 0x7E, 0x27, 0xF8, 0xFF, 0x59]);
struct WdsTransportManager;
const GUID CLSID_WdsTransportServer = {0xEA19B643, 0x4ADF, 0x4413, [0x94, 0x2C, 0x14, 0xF3, 0x79, 0x11, 0x87, 0x60]};
@GUID(0xEA19B643, 0x4ADF, 0x4413, [0x94, 0x2C, 0x14, 0xF3, 0x79, 0x11, 0x87, 0x60]);
struct WdsTransportServer;
const GUID CLSID_WdsTransportSetupManager = {0xC7BEEAAD, 0x9F04, 0x4923, [0x9F, 0x0C, 0xFB, 0xF5, 0x2B, 0xC7, 0x59, 0x0F]};
@GUID(0xC7BEEAAD, 0x9F04, 0x4923, [0x9F, 0x0C, 0xFB, 0xF5, 0x2B, 0xC7, 0x59, 0x0F]);
struct WdsTransportSetupManager;
const GUID CLSID_WdsTransportConfigurationManager = {0x8743F674, 0x904C, 0x47CA, [0x85, 0x12, 0x35, 0xFE, 0x98, 0xF6, 0xB0, 0xAC]};
@GUID(0x8743F674, 0x904C, 0x47CA, [0x85, 0x12, 0x35, 0xFE, 0x98, 0xF6, 0xB0, 0xAC]);
struct WdsTransportConfigurationManager;
const GUID CLSID_WdsTransportNamespaceManager = {0xF08CDB63, 0x85DE, 0x4A28, [0xA1, 0xA9, 0x5C, 0xA3, 0xE7, 0xEF, 0xDA, 0x73]};
@GUID(0xF08CDB63, 0x85DE, 0x4A28, [0xA1, 0xA9, 0x5C, 0xA3, 0xE7, 0xEF, 0xDA, 0x73]);
struct WdsTransportNamespaceManager;
const GUID CLSID_WdsTransportServicePolicy = {0x65ACEADC, 0x2F0B, 0x4F43, [0x9F, 0x4D, 0x81, 0x18, 0x65, 0xD8, 0xCE, 0xAD]};
@GUID(0x65ACEADC, 0x2F0B, 0x4F43, [0x9F, 0x4D, 0x81, 0x18, 0x65, 0xD8, 0xCE, 0xAD]);
struct WdsTransportServicePolicy;
const GUID CLSID_WdsTransportDiagnosticsPolicy = {0xEB3333E1, 0xA7AD, 0x46F5, [0x80, 0xD6, 0x6B, 0x74, 0x02, 0x04, 0xE5, 0x09]};
@GUID(0xEB3333E1, 0xA7AD, 0x46F5, [0x80, 0xD6, 0x6B, 0x74, 0x02, 0x04, 0xE5, 0x09]);
struct WdsTransportDiagnosticsPolicy;
const GUID CLSID_WdsTransportMulticastSessionPolicy = {0x3C6BC3F4, 0x6418, 0x472A, [0xB6, 0xF1, 0x52, 0xD4, 0x57, 0x19, 0x54, 0x37]};
@GUID(0x3C6BC3F4, 0x6418, 0x472A, [0xB6, 0xF1, 0x52, 0xD4, 0x57, 0x19, 0x54, 0x37]);
struct WdsTransportMulticastSessionPolicy;
const GUID CLSID_WdsTransportNamespace = {0xD8385768, 0x0732, 0x4EC1, [0x95, 0xEA, 0x16, 0xDA, 0x58, 0x19, 0x08, 0xA1]};
@GUID(0xD8385768, 0x0732, 0x4EC1, [0x95, 0xEA, 0x16, 0xDA, 0x58, 0x19, 0x08, 0xA1]);
struct WdsTransportNamespace;
const GUID CLSID_WdsTransportNamespaceAutoCast = {0xB091F5A8, 0x6A99, 0x478D, [0xB2, 0x3B, 0x09, 0xE8, 0xFE, 0xE0, 0x45, 0x74]};
@GUID(0xB091F5A8, 0x6A99, 0x478D, [0xB2, 0x3B, 0x09, 0xE8, 0xFE, 0xE0, 0x45, 0x74]);
struct WdsTransportNamespaceAutoCast;
const GUID CLSID_WdsTransportNamespaceScheduledCast = {0xBADC1897, 0x7025, 0x44EB, [0x91, 0x08, 0xFB, 0x61, 0xC4, 0x05, 0x57, 0x92]};
@GUID(0xBADC1897, 0x7025, 0x44EB, [0x91, 0x08, 0xFB, 0x61, 0xC4, 0x05, 0x57, 0x92]);
struct WdsTransportNamespaceScheduledCast;
const GUID CLSID_WdsTransportNamespaceScheduledCastManualStart = {0xD3E1A2AA, 0xCAAC, 0x460E, [0xB9, 0x8A, 0x47, 0xF9, 0xF3, 0x18, 0xA1, 0xFA]};
@GUID(0xD3E1A2AA, 0xCAAC, 0x460E, [0xB9, 0x8A, 0x47, 0xF9, 0xF3, 0x18, 0xA1, 0xFA]);
struct WdsTransportNamespaceScheduledCastManualStart;
const GUID CLSID_WdsTransportNamespaceScheduledCastAutoStart = {0xA1107052, 0x122C, 0x4B81, [0x9B, 0x7C, 0x38, 0x6E, 0x68, 0x55, 0x38, 0x3F]};
@GUID(0xA1107052, 0x122C, 0x4B81, [0x9B, 0x7C, 0x38, 0x6E, 0x68, 0x55, 0x38, 0x3F]);
struct WdsTransportNamespaceScheduledCastAutoStart;
const GUID CLSID_WdsTransportContent = {0x0A891FE7, 0x4A3F, 0x4C65, [0xB6, 0xF2, 0x14, 0x67, 0x61, 0x96, 0x79, 0xEA]};
@GUID(0x0A891FE7, 0x4A3F, 0x4C65, [0xB6, 0xF2, 0x14, 0x67, 0x61, 0x96, 0x79, 0xEA]);
struct WdsTransportContent;
const GUID CLSID_WdsTransportSession = {0x749AC4E0, 0x67BC, 0x4743, [0xBF, 0xE5, 0xCA, 0xCB, 0x1F, 0x26, 0xF5, 0x7F]};
@GUID(0x749AC4E0, 0x67BC, 0x4743, [0xBF, 0xE5, 0xCA, 0xCB, 0x1F, 0x26, 0xF5, 0x7F]);
struct WdsTransportSession;
const GUID CLSID_WdsTransportClient = {0x66D2C5E9, 0x0FF6, 0x49EC, [0x97, 0x33, 0xDA, 0xFB, 0x1E, 0x01, 0xDF, 0x1C]};
@GUID(0x66D2C5E9, 0x0FF6, 0x49EC, [0x97, 0x33, 0xDA, 0xFB, 0x1E, 0x01, 0xDF, 0x1C]);
struct WdsTransportClient;
const GUID CLSID_WdsTransportTftpClient = {0x50343925, 0x7C5C, 0x4C8C, [0x96, 0xC4, 0xAD, 0x9F, 0xA5, 0x00, 0x5F, 0xBA]};
@GUID(0x50343925, 0x7C5C, 0x4C8C, [0x96, 0xC4, 0xAD, 0x9F, 0xA5, 0x00, 0x5F, 0xBA]);
struct WdsTransportTftpClient;
const GUID CLSID_WdsTransportTftpManager = {0xC8E9DCA2, 0x3241, 0x4E4D, [0xB8, 0x06, 0xBC, 0x74, 0x01, 0x9D, 0xFE, 0xDA]};
@GUID(0xC8E9DCA2, 0x3241, 0x4E4D, [0xB8, 0x06, 0xBC, 0x74, 0x01, 0x9D, 0xFE, 0xDA]);
struct WdsTransportTftpManager;
const GUID CLSID_WdsTransportContentProvider = {0xE0BE741F, 0x5A75, 0x4EB9, [0x8A, 0x2D, 0x5E, 0x18, 0x9B, 0x45, 0xF3, 0x27]};
@GUID(0xE0BE741F, 0x5A75, 0x4EB9, [0x8A, 0x2D, 0x5E, 0x18, 0x9B, 0x45, 0xF3, 0x27]);
struct WdsTransportContentProvider;
enum WDSTRANSPORT_FEATURE_FLAGS
{
WdsTptFeatureAdminPack = 1,
WdsTptFeatureTransportServer = 2,
WdsTptFeatureDeploymentServer = 4,
}
enum WDSTRANSPORT_PROTOCOL_FLAGS
{
WdsTptProtocolUnicast = 1,
WdsTptProtocolMulticast = 2,
}
enum WDSTRANSPORT_NAMESPACE_TYPE
{
WdsTptNamespaceTypeUnknown = 0,
WdsTptNamespaceTypeAutoCast = 1,
WdsTptNamespaceTypeScheduledCastManualStart = 2,
WdsTptNamespaceTypeScheduledCastAutoStart = 3,
}
enum WDSTRANSPORT_DISCONNECT_TYPE
{
WdsTptDisconnectUnknown = 0,
WdsTptDisconnectFallback = 1,
WdsTptDisconnectAbort = 2,
}
enum WDSTRANSPORT_SERVICE_NOTIFICATION
{
WdsTptServiceNotifyUnknown = 0,
WdsTptServiceNotifyReadSettings = 1,
}
enum WDSTRANSPORT_IP_ADDRESS_TYPE
{
WdsTptIpAddressUnknown = 0,
WdsTptIpAddressIpv4 = 1,
WdsTptIpAddressIpv6 = 2,
}
enum WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE
{
WdsTptIpAddressSourceUnknown = 0,
WdsTptIpAddressSourceDhcp = 1,
WdsTptIpAddressSourceRange = 2,
}
enum WDSTRANSPORT_NETWORK_PROFILE_TYPE
{
WdsTptNetworkProfileUnknown = 0,
WdsTptNetworkProfileCustom = 1,
WdsTptNetworkProfile10Mbps = 2,
WdsTptNetworkProfile100Mbps = 3,
WdsTptNetworkProfile1Gbps = 4,
}
enum WDSTRANSPORT_DIAGNOSTICS_COMPONENT_FLAGS
{
WdsTptDiagnosticsComponentPxe = 1,
WdsTptDiagnosticsComponentTftp = 2,
WdsTptDiagnosticsComponentImageServer = 4,
WdsTptDiagnosticsComponentMulticast = 8,
}
enum WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE
{
WdsTptSlowClientHandlingUnknown = 0,
WdsTptSlowClientHandlingNone = 1,
WdsTptSlowClientHandlingAutoDisconnect = 2,
WdsTptSlowClientHandlingMultistream = 3,
}
enum WDSTRANSPORT_UDP_PORT_POLICY
{
WdsTptUdpPortPolicyDynamic = 0,
WdsTptUdpPortPolicyFixed = 1,
}
enum WDSTRANSPORT_TFTP_CAPABILITY
{
WdsTptTftpCapMaximumBlockSize = 1,
WdsTptTftpCapVariableWindow = 2,
}
const GUID IID_IWdsTransportCacheable = {0x46AD894B, 0x0BAB, 0x47DC, [0x84, 0xB2, 0x7B, 0x55, 0x3F, 0x1D, 0x8F, 0x80]};
@GUID(0x46AD894B, 0x0BAB, 0x47DC, [0x84, 0xB2, 0x7B, 0x55, 0x3F, 0x1D, 0x8F, 0x80]);
interface IWdsTransportCacheable : IDispatch
{
HRESULT get_Dirty(short* pbDirty);
HRESULT Discard();
HRESULT Refresh();
HRESULT Commit();
}
const GUID IID_IWdsTransportCollection = {0xB8BA4B1A, 0x2FF4, 0x43AB, [0x99, 0x6C, 0xB2, 0xB1, 0x0A, 0x91, 0xA6, 0xEB]};
@GUID(0xB8BA4B1A, 0x2FF4, 0x43AB, [0x99, 0x6C, 0xB2, 0xB1, 0x0A, 0x91, 0xA6, 0xEB]);
interface IWdsTransportCollection : IDispatch
{
HRESULT get_Count(uint* pulCount);
HRESULT get_Item(uint ulIndex, IDispatch* ppVal);
HRESULT get__NewEnum(IUnknown* ppVal);
}
const GUID IID_IWdsTransportManager = {0x5B0D35F5, 0x1B13, 0x4AFD, [0xB8, 0x78, 0x65, 0x26, 0xDC, 0x34, 0x0B, 0x5D]};
@GUID(0x5B0D35F5, 0x1B13, 0x4AFD, [0xB8, 0x78, 0x65, 0x26, 0xDC, 0x34, 0x0B, 0x5D]);
interface IWdsTransportManager : IDispatch
{
HRESULT GetWdsTransportServer(BSTR bszServerName, IWdsTransportServer* ppWdsTransportServer);
}
const GUID IID_IWdsTransportServer = {0x09CCD093, 0x830D, 0x4344, [0xA3, 0x0A, 0x73, 0xAE, 0x8E, 0x8F, 0xCA, 0x90]};
@GUID(0x09CCD093, 0x830D, 0x4344, [0xA3, 0x0A, 0x73, 0xAE, 0x8E, 0x8F, 0xCA, 0x90]);
interface IWdsTransportServer : IDispatch
{
HRESULT get_Name(BSTR* pbszName);
HRESULT get_SetupManager(IWdsTransportSetupManager* ppWdsTransportSetupManager);
HRESULT get_ConfigurationManager(IWdsTransportConfigurationManager* ppWdsTransportConfigurationManager);
HRESULT get_NamespaceManager(IWdsTransportNamespaceManager* ppWdsTransportNamespaceManager);
HRESULT DisconnectClient(uint ulClientId, WDSTRANSPORT_DISCONNECT_TYPE DisconnectionType);
}
const GUID IID_IWdsTransportServer2 = {0x256E999F, 0x6DF4, 0x4538, [0x81, 0xB9, 0x85, 0x7B, 0x9A, 0xB8, 0xFB, 0x47]};
@GUID(0x256E999F, 0x6DF4, 0x4538, [0x81, 0xB9, 0x85, 0x7B, 0x9A, 0xB8, 0xFB, 0x47]);
interface IWdsTransportServer2 : IWdsTransportServer
{
HRESULT get_TftpManager(IWdsTransportTftpManager* ppWdsTransportTftpManager);
}
const GUID IID_IWdsTransportSetupManager = {0xF7238425, 0xEFA8, 0x40A4, [0xAE, 0xF9, 0xC9, 0x8D, 0x96, 0x9C, 0x0B, 0x75]};
@GUID(0xF7238425, 0xEFA8, 0x40A4, [0xAE, 0xF9, 0xC9, 0x8D, 0x96, 0x9C, 0x0B, 0x75]);
interface IWdsTransportSetupManager : IDispatch
{
HRESULT get_Version(ulong* pullVersion);
HRESULT get_InstalledFeatures(uint* pulInstalledFeatures);
HRESULT get_Protocols(uint* pulProtocols);
HRESULT RegisterContentProvider(BSTR bszName, BSTR bszDescription, BSTR bszFilePath, BSTR bszInitializationRoutine);
HRESULT DeregisterContentProvider(BSTR bszName);
}
const GUID IID_IWdsTransportSetupManager2 = {0x02BE79DA, 0x7E9E, 0x4366, [0x8B, 0x6E, 0x2A, 0xA9, 0xA9, 0x1B, 0xE4, 0x7F]};
@GUID(0x02BE79DA, 0x7E9E, 0x4366, [0x8B, 0x6E, 0x2A, 0xA9, 0xA9, 0x1B, 0xE4, 0x7F]);
interface IWdsTransportSetupManager2 : IWdsTransportSetupManager
{
HRESULT get_TftpCapabilities(uint* pulTftpCapabilities);
HRESULT get_ContentProviders(IWdsTransportCollection* ppProviderCollection);
}
const GUID IID_IWdsTransportConfigurationManager = {0x84CC4779, 0x42DD, 0x4792, [0x89, 0x1E, 0x13, 0x21, 0xD6, 0xD7, 0x4B, 0x44]};
@GUID(0x84CC4779, 0x42DD, 0x4792, [0x89, 0x1E, 0x13, 0x21, 0xD6, 0xD7, 0x4B, 0x44]);
interface IWdsTransportConfigurationManager : IDispatch
{
HRESULT get_ServicePolicy(IWdsTransportServicePolicy* ppWdsTransportServicePolicy);
HRESULT get_DiagnosticsPolicy(IWdsTransportDiagnosticsPolicy* ppWdsTransportDiagnosticsPolicy);
HRESULT get_WdsTransportServicesRunning(short bRealtimeStatus, short* pbServicesRunning);
HRESULT EnableWdsTransportServices();
HRESULT DisableWdsTransportServices();
HRESULT StartWdsTransportServices();
HRESULT StopWdsTransportServices();
HRESULT RestartWdsTransportServices();
HRESULT NotifyWdsTransportServices(WDSTRANSPORT_SERVICE_NOTIFICATION ServiceNotification);
}
const GUID IID_IWdsTransportConfigurationManager2 = {0xD0D85CAF, 0xA153, 0x4F1D, [0xA9, 0xDD, 0x96, 0xF4, 0x31, 0xC5, 0x07, 0x17]};
@GUID(0xD0D85CAF, 0xA153, 0x4F1D, [0xA9, 0xDD, 0x96, 0xF4, 0x31, 0xC5, 0x07, 0x17]);
interface IWdsTransportConfigurationManager2 : IWdsTransportConfigurationManager
{
HRESULT get_MulticastSessionPolicy(IWdsTransportMulticastSessionPolicy* ppWdsTransportMulticastSessionPolicy);
}
const GUID IID_IWdsTransportNamespaceManager = {0x3E22D9F6, 0x3777, 0x4D98, [0x83, 0xE1, 0xF9, 0x86, 0x96, 0x71, 0x7B, 0xA3]};
@GUID(0x3E22D9F6, 0x3777, 0x4D98, [0x83, 0xE1, 0xF9, 0x86, 0x96, 0x71, 0x7B, 0xA3]);
interface IWdsTransportNamespaceManager : IDispatch
{
HRESULT CreateNamespace(WDSTRANSPORT_NAMESPACE_TYPE NamespaceType, BSTR bszNamespaceName, BSTR bszContentProvider, BSTR bszConfiguration, IWdsTransportNamespace* ppWdsTransportNamespace);
HRESULT RetrieveNamespace(BSTR bszNamespaceName, IWdsTransportNamespace* ppWdsTransportNamespace);
HRESULT RetrieveNamespaces(BSTR bszContentProvider, BSTR bszNamespaceName, short bIncludeTombstones, IWdsTransportCollection* ppWdsTransportNamespaces);
}
const GUID IID_IWdsTransportTftpManager = {0x1327A7C8, 0xAE8A, 0x4FB3, [0x81, 0x50, 0x13, 0x62, 0x27, 0xC3, 0x7E, 0x9A]};
@GUID(0x1327A7C8, 0xAE8A, 0x4FB3, [0x81, 0x50, 0x13, 0x62, 0x27, 0xC3, 0x7E, 0x9A]);
interface IWdsTransportTftpManager : IDispatch
{
HRESULT RetrieveTftpClients(IWdsTransportCollection* ppWdsTransportTftpClients);
}
const GUID IID_IWdsTransportServicePolicy = {0xB9468578, 0x9F2B, 0x48CC, [0xB2, 0x7A, 0xA6, 0x07, 0x99, 0xC2, 0x75, 0x0C]};
@GUID(0xB9468578, 0x9F2B, 0x48CC, [0xB2, 0x7A, 0xA6, 0x07, 0x99, 0xC2, 0x75, 0x0C]);
interface IWdsTransportServicePolicy : IWdsTransportCacheable
{
HRESULT get_IpAddressSource(WDSTRANSPORT_IP_ADDRESS_TYPE AddressType, WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE* pSourceType);
HRESULT put_IpAddressSource(WDSTRANSPORT_IP_ADDRESS_TYPE AddressType, WDSTRANSPORT_IP_ADDRESS_SOURCE_TYPE SourceType);
HRESULT get_StartIpAddress(WDSTRANSPORT_IP_ADDRESS_TYPE AddressType, BSTR* pbszStartIpAddress);
HRESULT put_StartIpAddress(WDSTRANSPORT_IP_ADDRESS_TYPE AddressType, BSTR bszStartIpAddress);
HRESULT get_EndIpAddress(WDSTRANSPORT_IP_ADDRESS_TYPE AddressType, BSTR* pbszEndIpAddress);
HRESULT put_EndIpAddress(WDSTRANSPORT_IP_ADDRESS_TYPE AddressType, BSTR bszEndIpAddress);
HRESULT get_StartPort(uint* pulStartPort);
HRESULT put_StartPort(uint ulStartPort);
HRESULT get_EndPort(uint* pulEndPort);
HRESULT put_EndPort(uint ulEndPort);
HRESULT get_NetworkProfile(WDSTRANSPORT_NETWORK_PROFILE_TYPE* pProfileType);
HRESULT put_NetworkProfile(WDSTRANSPORT_NETWORK_PROFILE_TYPE ProfileType);
}
const GUID IID_IWdsTransportServicePolicy2 = {0x65C19E5C, 0xAA7E, 0x4B91, [0x89, 0x44, 0x91, 0xE0, 0xE5, 0x57, 0x27, 0x97]};
@GUID(0x65C19E5C, 0xAA7E, 0x4B91, [0x89, 0x44, 0x91, 0xE0, 0xE5, 0x57, 0x27, 0x97]);
interface IWdsTransportServicePolicy2 : IWdsTransportServicePolicy
{
HRESULT get_UdpPortPolicy(WDSTRANSPORT_UDP_PORT_POLICY* pUdpPortPolicy);
HRESULT put_UdpPortPolicy(WDSTRANSPORT_UDP_PORT_POLICY UdpPortPolicy);
HRESULT get_TftpMaximumBlockSize(uint* pulTftpMaximumBlockSize);
HRESULT put_TftpMaximumBlockSize(uint ulTftpMaximumBlockSize);
HRESULT get_EnableTftpVariableWindowExtension(short* pbEnableTftpVariableWindowExtension);
HRESULT put_EnableTftpVariableWindowExtension(short bEnableTftpVariableWindowExtension);
}
const GUID IID_IWdsTransportDiagnosticsPolicy = {0x13B33EFC, 0x7856, 0x4F61, [0x9A, 0x59, 0x8D, 0xE6, 0x7B, 0x6B, 0x87, 0xB6]};
@GUID(0x13B33EFC, 0x7856, 0x4F61, [0x9A, 0x59, 0x8D, 0xE6, 0x7B, 0x6B, 0x87, 0xB6]);
interface IWdsTransportDiagnosticsPolicy : IWdsTransportCacheable
{
HRESULT get_Enabled(short* pbEnabled);
HRESULT put_Enabled(short bEnabled);
HRESULT get_Components(uint* pulComponents);
HRESULT put_Components(uint ulComponents);
}
const GUID IID_IWdsTransportMulticastSessionPolicy = {0x4E5753CF, 0x68EC, 0x4504, [0xA9, 0x51, 0x4A, 0x00, 0x32, 0x66, 0x60, 0x6B]};
@GUID(0x4E5753CF, 0x68EC, 0x4504, [0xA9, 0x51, 0x4A, 0x00, 0x32, 0x66, 0x60, 0x6B]);
interface IWdsTransportMulticastSessionPolicy : IWdsTransportCacheable
{
HRESULT get_SlowClientHandling(WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE* pSlowClientHandling);
HRESULT put_SlowClientHandling(WDSTRANSPORT_SLOW_CLIENT_HANDLING_TYPE SlowClientHandling);
HRESULT get_AutoDisconnectThreshold(uint* pulThreshold);
HRESULT put_AutoDisconnectThreshold(uint ulThreshold);
HRESULT get_MultistreamStreamCount(uint* pulStreamCount);
HRESULT put_MultistreamStreamCount(uint ulStreamCount);
HRESULT get_SlowClientFallback(short* pbClientFallback);
HRESULT put_SlowClientFallback(short bClientFallback);
}
const GUID IID_IWdsTransportNamespace = {0xFA561F57, 0xFBEF, 0x4ED3, [0xB0, 0x56, 0x12, 0x7C, 0xB1, 0xB3, 0x3B, 0x84]};
@GUID(0xFA561F57, 0xFBEF, 0x4ED3, [0xB0, 0x56, 0x12, 0x7C, 0xB1, 0xB3, 0x3B, 0x84]);
interface IWdsTransportNamespace : IDispatch
{
HRESULT get_Type(WDSTRANSPORT_NAMESPACE_TYPE* pType);
HRESULT get_Id(uint* pulId);
HRESULT get_Name(BSTR* pbszName);
HRESULT put_Name(BSTR bszName);
HRESULT get_FriendlyName(BSTR* pbszFriendlyName);
HRESULT put_FriendlyName(BSTR bszFriendlyName);
HRESULT get_Description(BSTR* pbszDescription);
HRESULT put_Description(BSTR bszDescription);
HRESULT get_ContentProvider(BSTR* pbszContentProvider);
HRESULT put_ContentProvider(BSTR bszContentProvider);
HRESULT get_Configuration(BSTR* pbszConfiguration);
HRESULT put_Configuration(BSTR bszConfiguration);
HRESULT get_Registered(short* pbRegistered);
HRESULT get_Tombstoned(short* pbTombstoned);
HRESULT get_TombstoneTime(double* pTombstoneTime);
HRESULT get_TransmissionStarted(short* pbTransmissionStarted);
HRESULT Register();
HRESULT Deregister(short bTerminateSessions);
HRESULT Clone(IWdsTransportNamespace* ppWdsTransportNamespaceClone);
HRESULT Refresh();
HRESULT RetrieveContents(IWdsTransportCollection* ppWdsTransportContents);
}
const GUID IID_IWdsTransportNamespaceAutoCast = {0xAD931A72, 0xC4BD, 0x4C41, [0x8F, 0xBC, 0x59, 0xC9, 0xC7, 0x48, 0xDF, 0x9E]};
@GUID(0xAD931A72, 0xC4BD, 0x4C41, [0x8F, 0xBC, 0x59, 0xC9, 0xC7, 0x48, 0xDF, 0x9E]);
interface IWdsTransportNamespaceAutoCast : IWdsTransportNamespace
{
}
const GUID IID_IWdsTransportNamespaceScheduledCast = {0x3840CECF, 0xD76C, 0x416E, [0xA4, 0xCC, 0x31, 0xC7, 0x41, 0xD2, 0x87, 0x4B]};
@GUID(0x3840CECF, 0xD76C, 0x416E, [0xA4, 0xCC, 0x31, 0xC7, 0x41, 0xD2, 0x87, 0x4B]);
interface IWdsTransportNamespaceScheduledCast : IWdsTransportNamespace
{
HRESULT StartTransmission();
}
const GUID IID_IWdsTransportNamespaceScheduledCastManualStart = {0x013E6E4C, 0xE6A7, 0x4FB5, [0xB7, 0xFF, 0xD9, 0xF5, 0xDA, 0x80, 0x5C, 0x31]};
@GUID(0x013E6E4C, 0xE6A7, 0x4FB5, [0xB7, 0xFF, 0xD9, 0xF5, 0xDA, 0x80, 0x5C, 0x31]);
interface IWdsTransportNamespaceScheduledCastManualStart : IWdsTransportNamespaceScheduledCast
{
}
const GUID IID_IWdsTransportNamespaceScheduledCastAutoStart = {0xD606AF3D, 0xEA9C, 0x4219, [0x96, 0x1E, 0x74, 0x91, 0xD6, 0x18, 0xD9, 0xB9]};
@GUID(0xD606AF3D, 0xEA9C, 0x4219, [0x96, 0x1E, 0x74, 0x91, 0xD6, 0x18, 0xD9, 0xB9]);
interface IWdsTransportNamespaceScheduledCastAutoStart : IWdsTransportNamespaceScheduledCast
{
HRESULT get_MinimumClients(uint* pulMinimumClients);
HRESULT put_MinimumClients(uint ulMinimumClients);
HRESULT get_StartTime(double* pStartTime);
HRESULT put_StartTime(double StartTime);
}
const GUID IID_IWdsTransportContent = {0xD405D711, 0x0296, 0x4AB4, [0xA8, 0x60, 0xAC, 0x7D, 0x32, 0xE6, 0x57, 0x98]};
@GUID(0xD405D711, 0x0296, 0x4AB4, [0xA8, 0x60, 0xAC, 0x7D, 0x32, 0xE6, 0x57, 0x98]);
interface IWdsTransportContent : IDispatch
{
HRESULT get_Namespace(IWdsTransportNamespace* ppWdsTransportNamespace);
HRESULT get_Id(uint* pulId);
HRESULT get_Name(BSTR* pbszName);
HRESULT RetrieveSessions(IWdsTransportCollection* ppWdsTransportSessions);
HRESULT Terminate();
}
const GUID IID_IWdsTransportSession = {0xF4EFEA88, 0x65B1, 0x4F30, [0xA4, 0xB9, 0x27, 0x93, 0x98, 0x77, 0x96, 0xFB]};
@GUID(0xF4EFEA88, 0x65B1, 0x4F30, [0xA4, 0xB9, 0x27, 0x93, 0x98, 0x77, 0x96, 0xFB]);
interface IWdsTransportSession : IDispatch
{
HRESULT get_Content(IWdsTransportContent* ppWdsTransportContent);
HRESULT get_Id(uint* pulId);
HRESULT get_NetworkInterfaceName(BSTR* pbszNetworkInterfaceName);
HRESULT get_NetworkInterfaceAddress(BSTR* pbszNetworkInterfaceAddress);
HRESULT get_TransferRate(uint* pulTransferRate);
HRESULT get_MasterClientId(uint* pulMasterClientId);
HRESULT RetrieveClients(IWdsTransportCollection* ppWdsTransportClients);
HRESULT Terminate();
}
const GUID IID_IWdsTransportClient = {0xB5DBC93A, 0xCABE, 0x46CA, [0x83, 0x7F, 0x3E, 0x44, 0xE9, 0x3C, 0x65, 0x45]};
@GUID(0xB5DBC93A, 0xCABE, 0x46CA, [0x83, 0x7F, 0x3E, 0x44, 0xE9, 0x3C, 0x65, 0x45]);
interface IWdsTransportClient : IDispatch
{
HRESULT get_Session(IWdsTransportSession* ppWdsTransportSession);
HRESULT get_Id(uint* pulId);
HRESULT get_Name(BSTR* pbszName);
HRESULT get_MacAddress(BSTR* pbszMacAddress);
HRESULT get_IpAddress(BSTR* pbszIpAddress);
HRESULT get_PercentCompletion(uint* pulPercentCompletion);
HRESULT get_JoinDuration(uint* pulJoinDuration);
HRESULT get_CpuUtilization(uint* pulCpuUtilization);
HRESULT get_MemoryUtilization(uint* pulMemoryUtilization);
HRESULT get_NetworkUtilization(uint* pulNetworkUtilization);
HRESULT get_UserIdentity(BSTR* pbszUserIdentity);
HRESULT Disconnect(WDSTRANSPORT_DISCONNECT_TYPE DisconnectionType);
}
const GUID IID_IWdsTransportTftpClient = {0xB022D3AE, 0x884D, 0x4D85, [0xB1, 0x46, 0x53, 0x32, 0x0E, 0x76, 0xEF, 0x62]};
@GUID(0xB022D3AE, 0x884D, 0x4D85, [0xB1, 0x46, 0x53, 0x32, 0x0E, 0x76, 0xEF, 0x62]);
interface IWdsTransportTftpClient : IDispatch
{
HRESULT get_FileName(BSTR* pbszFileName);
HRESULT get_IpAddress(BSTR* pbszIpAddress);
HRESULT get_Timeout(uint* pulTimeout);
HRESULT get_CurrentFileOffset(ulong* pul64CurrentOffset);
HRESULT get_FileSize(ulong* pul64FileSize);
HRESULT get_BlockSize(uint* pulBlockSize);
HRESULT get_WindowSize(uint* pulWindowSize);
}
const GUID IID_IWdsTransportContentProvider = {0xB9489F24, 0xF219, 0x4ACF, [0xAA, 0xD7, 0x26, 0x5C, 0x7C, 0x08, 0xA6, 0xAE]};
@GUID(0xB9489F24, 0xF219, 0x4ACF, [0xAA, 0xD7, 0x26, 0x5C, 0x7C, 0x08, 0xA6, 0xAE]);
interface IWdsTransportContentProvider : IDispatch
{
HRESULT get_Name(BSTR* pbszName);
HRESULT get_Description(BSTR* pbszDescription);
HRESULT get_FilePath(BSTR* pbszFilePath);
HRESULT get_InitializationRoutine(BSTR* pbszInitializationRoutine);
}
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliClose(HANDLE Handle);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliRegisterTrace(PFN_WdsCliTraceFunction pfn);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliFreeStringArray(char* ppwszArray, uint ulCount);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliFindFirstImage(HANDLE hSession, int* phFindHandle);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliFindNextImage(HANDLE Handle);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliGetEnumerationFlags(HANDLE Handle, uint* pdwFlags);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliGetImageHandleFromFindHandle(HANDLE FindHandle, int* phImageHandle);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliGetImageHandleFromTransferHandle(HANDLE hTransfer, int* phImageHandle);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliCreateSession(const(wchar)* pwszServer, WDS_CLI_CRED* pCred, int* phSession);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliAuthorizeSession(HANDLE hSession, WDS_CLI_CRED* pCred);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliInitializeLog(HANDLE hSession, uint ulClientArchitecture, const(wchar)* pwszClientId, const(wchar)* pwszClientAddress);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliLog(HANDLE hSession, uint ulLogLevel, uint ulMessageCode);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliGetImageName(HANDLE hIfh, ushort** ppwszValue);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliGetImageDescription(HANDLE hIfh, ushort** ppwszValue);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliGetImageType(HANDLE hIfh, WDS_CLI_IMAGE_TYPE* pImageType);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliGetImageFiles(HANDLE hIfh, ushort*** pppwszFiles, uint* pdwCount);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliGetImageLanguage(HANDLE hIfh, ushort** ppwszValue);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliGetImageLanguages(HANDLE hIfh, byte*** pppszValues, uint* pdwNumValues);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliGetImageVersion(HANDLE hIfh, ushort** ppwszValue);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliGetImagePath(HANDLE hIfh, ushort** ppwszValue);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliGetImageIndex(HANDLE hIfh, uint* pdwValue);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliGetImageArchitecture(HANDLE hIfh, uint* pdwValue);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliGetImageLastModifiedTime(HANDLE hIfh, SYSTEMTIME** ppSysTimeValue);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliGetImageSize(HANDLE hIfh, ulong* pullValue);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliGetImageHalName(HANDLE hIfh, ushort** ppwszValue);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliGetImageGroup(HANDLE hIfh, ushort** ppwszValue);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliGetImageNamespace(HANDLE hIfh, ushort** ppwszValue);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliGetImageParameter(HANDLE hIfh, WDS_CLI_IMAGE_PARAM_TYPE ParamType, char* pResponse, uint uResponseLen);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliGetTransferSize(HANDLE hIfh, ulong* pullValue);
@DllImport("WDSCLIENTAPI.dll")
void WdsCliSetTransferBufferSize(uint ulSizeInBytes);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliTransferImage(HANDLE hImage, const(wchar)* pwszLocalPath, uint dwFlags, uint dwReserved, PFN_WdsCliCallback pfnWdsCliCallback, void* pvUserData, int* phTransfer);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliTransferFile(const(wchar)* pwszServer, const(wchar)* pwszNamespace, const(wchar)* pwszRemoteFilePath, const(wchar)* pwszLocalFilePath, uint dwFlags, uint dwReserved, PFN_WdsCliCallback pfnWdsCliCallback, void* pvUserData, int* phTransfer);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliCancelTransfer(HANDLE hTransfer);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliWaitForTransfer(HANDLE hTransfer);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliObtainDriverPackages(HANDLE hImage, ushort** ppwszServerName, ushort*** pppwszDriverPackages, uint* pulCount);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliObtainDriverPackagesEx(HANDLE hSession, const(wchar)* pwszMachineInfo, ushort** ppwszServerName, ushort*** pppwszDriverPackages, uint* pulCount);
@DllImport("WDSCLIENTAPI.dll")
HRESULT WdsCliGetDriverQueryXml(const(wchar)* pwszWinDirPath, ushort** ppwszDriverQuery);
@DllImport("WDSPXE.dll")
uint PxeProviderRegister(const(wchar)* pszProviderName, const(wchar)* pszModulePath, uint Index, BOOL bIsCritical, HKEY* phProviderKey);
@DllImport("WDSPXE.dll")
uint PxeProviderUnRegister(const(wchar)* pszProviderName);
@DllImport("WDSPXE.dll")
uint PxeProviderQueryIndex(const(wchar)* pszProviderName, uint* puIndex);
@DllImport("WDSPXE.dll")
uint PxeProviderEnumFirst(HANDLE* phEnum);
@DllImport("WDSPXE.dll")
uint PxeProviderEnumNext(HANDLE hEnum, PXE_PROVIDER** ppProvider);
@DllImport("WDSPXE.dll")
uint PxeProviderEnumClose(HANDLE hEnum);
@DllImport("WDSPXE.dll")
uint PxeProviderFreeInfo(PXE_PROVIDER* pProvider);
@DllImport("WDSPXE.dll")
uint PxeRegisterCallback(HANDLE hProvider, uint CallbackType, void* pCallbackFunction, void* pContext);
@DllImport("WDSPXE.dll")
uint PxeSendReply(HANDLE hClientRequest, char* pPacket, uint uPacketLen, PXE_ADDRESS* pAddress);
@DllImport("WDSPXE.dll")
uint PxeAsyncRecvDone(HANDLE hClientRequest, uint Action);
@DllImport("WDSPXE.dll")
uint PxeTrace(HANDLE hProvider, uint Severity, const(wchar)* pszFormat);
@DllImport("WDSPXE.dll")
uint PxeTraceV(HANDLE hProvider, uint Severity, const(wchar)* pszFormat, byte* Params);
@DllImport("WDSPXE.dll")
void* PxePacketAllocate(HANDLE hProvider, HANDLE hClientRequest, uint uSize);
@DllImport("WDSPXE.dll")
uint PxePacketFree(HANDLE hProvider, HANDLE hClientRequest, void* pPacket);
@DllImport("WDSPXE.dll")
uint PxeProviderSetAttribute(HANDLE hProvider, uint Attribute, char* pParameterBuffer, uint uParamLen);
@DllImport("WDSPXE.dll")
uint PxeDhcpInitialize(char* pRecvPacket, uint uRecvPacketLen, char* pReplyPacket, uint uMaxReplyPacketLen, uint* puReplyPacketLen);
@DllImport("WDSPXE.dll")
uint PxeDhcpv6Initialize(char* pRequest, uint cbRequest, char* pReply, uint cbReply, uint* pcbReplyUsed);
@DllImport("WDSPXE.dll")
uint PxeDhcpAppendOption(char* pReplyPacket, uint uMaxReplyPacketLen, uint* puReplyPacketLen, ubyte bOption, ubyte bOptionLen, char* pValue);
@DllImport("WDSPXE.dll")
uint PxeDhcpv6AppendOption(char* pReply, uint cbReply, uint* pcbReplyUsed, ushort wOptionType, ushort cbOption, char* pOption);
@DllImport("WDSPXE.dll")
uint PxeDhcpAppendOptionRaw(char* pReplyPacket, uint uMaxReplyPacketLen, uint* puReplyPacketLen, ushort uBufferLen, char* pBuffer);
@DllImport("WDSPXE.dll")
uint PxeDhcpv6AppendOptionRaw(char* pReply, uint cbReply, uint* pcbReplyUsed, ushort cbBuffer, char* pBuffer);
@DllImport("WDSPXE.dll")
uint PxeDhcpIsValid(char* pPacket, uint uPacketLen, BOOL bRequestPacket, int* pbPxeOptionPresent);
@DllImport("WDSPXE.dll")
uint PxeDhcpv6IsValid(char* pPacket, uint uPacketLen, BOOL bRequestPacket, int* pbPxeOptionPresent);
@DllImport("WDSPXE.dll")
uint PxeDhcpGetOptionValue(char* pPacket, uint uPacketLen, uint uInstance, ubyte bOption, ubyte* pbOptionLen, void** ppOptionValue);
@DllImport("WDSPXE.dll")
uint PxeDhcpv6GetOptionValue(char* pPacket, uint uPacketLen, uint uInstance, ushort wOption, ushort* pwOptionLen, void** ppOptionValue);
@DllImport("WDSPXE.dll")
uint PxeDhcpGetVendorOptionValue(char* pPacket, uint uPacketLen, ubyte bOption, uint uInstance, ubyte* pbOptionLen, void** ppOptionValue);
@DllImport("WDSPXE.dll")
uint PxeDhcpv6GetVendorOptionValue(char* pPacket, uint uPacketLen, uint dwEnterpriseNumber, ushort wOption, uint uInstance, ushort* pwOptionLen, void** ppOptionValue);
@DllImport("WDSPXE.dll")
uint PxeDhcpv6ParseRelayForw(char* pRelayForwPacket, uint uRelayForwPacketLen, char* pRelayMessages, uint nRelayMessages, uint* pnRelayMessages, ubyte** ppInnerPacket, uint* pcbInnerPacket);
@DllImport("WDSPXE.dll")
uint PxeDhcpv6CreateRelayRepl(char* pRelayMessages, uint nRelayMessages, char* pInnerPacket, uint cbInnerPacket, char* pReplyBuffer, uint cbReplyBuffer, uint* pcbReplyBuffer);
@DllImport("WDSPXE.dll")
uint PxeGetServerInfo(uint uInfoType, char* pBuffer, uint uBufferLen);
@DllImport("WDSPXE.dll")
uint PxeGetServerInfoEx(uint uInfoType, char* pBuffer, uint uBufferLen, uint* puBufferUsed);
@DllImport("WDSMC.dll")
HRESULT WdsTransportServerRegisterCallback(HANDLE hProvider, TRANSPORTPROVIDER_CALLBACK_ID CallbackId, void* pfnCallback);
@DllImport("WDSMC.dll")
HRESULT WdsTransportServerCompleteRead(HANDLE hProvider, uint ulBytesRead, void* pvUserData, HRESULT hReadResult);
@DllImport("WDSMC.dll")
HRESULT WdsTransportServerTrace(HANDLE hProvider, uint Severity, const(wchar)* pwszFormat);
@DllImport("WDSMC.dll")
HRESULT WdsTransportServerTraceV(HANDLE hProvider, uint Severity, const(wchar)* pwszFormat, byte* Params);
@DllImport("WDSMC.dll")
void* WdsTransportServerAllocateBuffer(HANDLE hProvider, uint ulBufferSize);
@DllImport("WDSMC.dll")
HRESULT WdsTransportServerFreeBuffer(HANDLE hProvider, void* pvBuffer);
@DllImport("WDSTPTC.dll")
uint WdsTransportClientInitialize();
@DllImport("WDSTPTC.dll")
uint WdsTransportClientInitializeSession(WDS_TRANSPORTCLIENT_REQUEST* pSessionRequest, void* pCallerData, int* hSessionKey);
@DllImport("WDSTPTC.dll")
uint WdsTransportClientRegisterCallback(HANDLE hSessionKey, TRANSPORTCLIENT_CALLBACK_ID CallbackId, void* pfnCallback);
@DllImport("WDSTPTC.dll")
uint WdsTransportClientStartSession(HANDLE hSessionKey);
@DllImport("WDSTPTC.dll")
uint WdsTransportClientCompleteReceive(HANDLE hSessionKey, uint ulSize, ULARGE_INTEGER* pullOffset);
@DllImport("WDSTPTC.dll")
uint WdsTransportClientCancelSession(HANDLE hSessionKey);
@DllImport("WDSTPTC.dll")
uint WdsTransportClientCancelSessionEx(HANDLE hSessionKey, uint dwErrorCode);
@DllImport("WDSTPTC.dll")
uint WdsTransportClientWaitForCompletion(HANDLE hSessionKey, uint uTimeout);
@DllImport("WDSTPTC.dll")
uint WdsTransportClientQueryStatus(HANDLE hSessionKey, uint* puStatus, uint* puErrorCode);
@DllImport("WDSTPTC.dll")
uint WdsTransportClientCloseSession(HANDLE hSessionKey);
@DllImport("WDSTPTC.dll")
uint WdsTransportClientAddRefBuffer(void* pvBuffer);
@DllImport("WDSTPTC.dll")
uint WdsTransportClientReleaseBuffer(void* pvBuffer);
@DllImport("WDSTPTC.dll")
uint WdsTransportClientShutdown();
@DllImport("WDSBP.dll")
uint WdsBpParseInitialize(char* pPacket, uint uPacketLen, ubyte* pbPacketType, HANDLE* phHandle);
@DllImport("WDSBP.dll")
uint WdsBpParseInitializev6(char* pPacket, uint uPacketLen, ubyte* pbPacketType, HANDLE* phHandle);
@DllImport("WDSBP.dll")
uint WdsBpInitialize(ubyte bPacketType, HANDLE* phHandle);
@DllImport("WDSBP.dll")
uint WdsBpCloseHandle(HANDLE hHandle);
@DllImport("WDSBP.dll")
uint WdsBpQueryOption(HANDLE hHandle, uint uOption, uint uValueLen, char* pValue, uint* puBytes);
@DllImport("WDSBP.dll")
uint WdsBpAddOption(HANDLE hHandle, uint uOption, uint uValueLen, char* pValue);
@DllImport("WDSBP.dll")
uint WdsBpGetOptionBuffer(HANDLE hHandle, uint uBufferLen, char* pBuffer, uint* puBytes);
|
D
|
/**
HIGH LEVEL NOTES
This will offer a pollable state of two styles of controller: a PS1 or an XBox 360.
Actually, maybe I'll combine the two controller types. Make L2 and R2 just digital aliases
for the triggers, which are analog aliases for it.
Then have a virtual left stick which has the dpad aliases, while keeping the other two independent
(physical dpad and physical left stick).
Everything else should basically just work. We'll simply be left with naming and I can do them with
aliases too.
I do NOT bother with pressure sensitive other buttons, though Xbox original and PS2 had them, they
have been removed from the newer models. It makes things simpler anyway since we can check "was just
pressed" instead of all deltas.
The PS1 controller style works for a lot of games:
* The D-pad is an alias for the left stick. Analog input still works too.
* L2 and R2 are given as buttons
* The keyboard works as buttons
* The mouse is an alias for the right stick
* Buttons are given as labeled on a playstation controller
The XBox controller style works if you need full, modern features:
* The left stick and D-pad works independently of one another
the d pad works as additional buttons.
* The triggers work as independent analog inputs
note that the WinMM driver doesn't support full independence
since it is sent as a z-axis. Linux and modern Windows does though.
* Buttons are labeled as they are on the XBox controller
* The rumble motors are available, if the underlying driver supports it and noop if not.
* Audio I/O is available, if the underlying driver supports it. NOT IMPLEMENTED.
You chose which one you want at compile time with a -version=xbox_style or -version=ps1_style switch.
The default is ps1_style which works with xbox controllers too, it just simplifies them.
TODO:
handling keyboard+mouse input as joystick aliases
remapping support
network transparent joysticks for at least the basic stuff.
=================================
LOW LEVEL NOTES
On Linux, I'll just use /dev/input/js*. It is easy and works with everything I care about. It can fire
events to arsd.eventloop and also maintains state internally for polling. You do have to let it get
events though to handle that input - either doing your own select (etc.) on the js file descriptor,
or running the event loop (which is what I recommend).
On Windows, I'll support the mmsystem messages as far as I can, and XInput for more capabilities
of the XBox 360 controller. (The mmsystem should support my old PS1 controller and xbox is the
other one I have. I have PS3 controllers too which would be nice but since they require additional
drivers, meh.)
linux notes:
all basic input is available, no audio (I think), no force feedback (I think)
winmm notes:
the xbox 360 controller basically works and sends events to the window for the buttons,
left stick, and triggers. It doesn't send events for the right stick or dpad, but these
are available through joyGetPosEx (the dpad is the POV hat and the right stick is
the other axes).
The triggers are considered a z-axis with the left one going negative and right going positive.
windows xinput notes:
all xbox 360 controller features are available via a polling api.
it doesn't seem to support events. That's OK for games generally though, because we just
want to check state on each loop.
For non-games however, using the traditional message loop is probably easier.
XInput is only supported on newer operating systems (Vista I think),
so I'm going to dynamically load it all and fallback on the old one if
it fails.
*/
module arsd.joystick;
// --------------------------------
// High level interface
// --------------------------------
version(xbox_style) {
version(ps1_style)
static assert(0, "Pass only one xbox_style OR ps1_style");
} else
version=ps1_style; // default is PS1 style as it is a lower common denominator
version(xbox_style) {
alias Axis = XBox360Axes;
alias Button = XBox360Buttons;
} else version(ps1_style) {
alias Axis = PS1AnalogAxes;
alias Button = PS1Buttons;
}
version(Windows) {
WindowsXInput wxi;
}
JoystickState[4] joystickState;
version(linux) {
int[4] joystickFds = -1;
// On Linux, we have to track state ourselves since we only get events from the OS
struct JoystickState {
short[8] axes;
ubyte[16] buttons;
}
const(JoystickMapping)*[4] joystickMapping;
struct JoystickMapping {
// maps virtual buttons to real buttons, etc.
int[__traits(allMembers, Axis).length] axisOffsets = -1;
int[__traits(allMembers, Button).length] buttonOffsets = -1;
}
/// If you have a real xbox 360 controller, use this mapping
version(xbox_style) // xbox style maps directly to an xbox controller (of course)
static immutable xbox360Mapping = JoystickMapping(
[0,1,2,3,4,5,6,7],
[0,1,2,3,4,5,6,7,8,9,10]
);
else version(ps1_style)
static immutable xbox360Mapping = JoystickMapping(
// PS1AnalogAxes index to XBox360Axes values
[XBox360Axes.horizontalLeftStick,
XBox360Axes.verticalLeftStick,
XBox360Axes.verticalRightStick,
XBox360Axes.horizontalRightStick,
XBox360Axes.horizontalDpad,
XBox360Axes.verticalDpad],
// PS1Buttons index to XBox360Buttons values
[XBox360Buttons.y, XBox360Buttons.b, XBox360Buttons.a, XBox360Buttons.x,
cast(XBox360Buttons) -1, cast(XBox360Buttons) -1, // L2 and R2 don't map easily
XBox360Buttons.lb, XBox360Buttons.rb,
XBox360Buttons.back, XBox360Buttons.start,
XBox360Buttons.leftStick, XBox360Buttons.rightStick]
);
/// For a real ps1 controller
version(ps1_style)
static immutable ps1Mapping = JoystickMapping(
[0,1,2,3,4,5],
[0,1,2,3,4,5,6,7,8,9,10,11]
);
else version(xbox_style)
static immutable ps1Mapping = JoystickMapping(
// FIXME... if we're going to support this at all
// I think if I were to write a program using the xbox style,
// I'd just use my xbox controller.
);
void readJoystickEvents(int fd) {
js_event event;
while(true) {
auto r = read(fd, &event, event.sizeof);
if(r == -1) {
import core.stdc.errno;
if(errno == EAGAIN || errno == EWOULDBLOCK)
break;
else assert(0); // , to!string(fd) ~ " " ~ to!string(errno));
}
assert(r == event.sizeof);
ptrdiff_t player = -1;
foreach(i, f; joystickFds)
if(f == fd) {
player = i;
break;
}
assert(player >= 0 && player < joystickState.length);
if(event.type & JS_EVENT_AXIS) {
joystickState[player].axes[event.number] = event.value;
if(event.type & JS_EVENT_INIT) {
if(event.number == 5) {
// After being initialized, if axes[6] == 32767, it seems to be my PS1 controller
// If axes[5] is -32767, it might be an Xbox controller.
if(event.value == -32767 && joystickMapping[player] is null) {
joystickMapping[player] = &xbox360Mapping;
}
} else if(event.number == 6) {
if(event.value == 32767 && joystickMapping[player] is null) {
joystickMapping[player] = &ps1Mapping;
}
}
}
}
if(event.type & JS_EVENT_BUTTON) {
joystickState[player].buttons[event.number] = event.value ? 255 : 0;
}
}
}
}
version(Windows) {
extern(Windows)
DWORD function(DWORD, XINPUT_STATE*) getJoystickOSState;
extern(Windows)
DWORD winMMFallback(DWORD id, XINPUT_STATE* state) {
JOYINFOEX info;
auto result = joyGetPosEx(id, &info);
if(result == 0) {
// FIXME
}
return result;
}
alias JoystickState = XINPUT_STATE;
}
/// Returns the number of players actually connected
///
/// The controller ID
int enableJoystickInput(
int player1ControllerId = 0,
int player2ControllerId = 1,
int player3ControllerId = 2,
int player4ControllerId = 3)
{
version(linux) {
bool preparePlayer(int player, int id) {
if(id < 0)
return false;
assert(player >= 0 && player < joystickFds.length);
assert(id < 10);
assert(id >= 0);
char[] filename = "/dev/input/js0\0".dup;
filename[$-2] = cast(char) (id + '0');
int fd = open(filename.ptr, O_RDONLY);
if(fd > 0) {
joystickFds[player] = fd;
version(with_eventloop) {
import arsd.eventloop;
makeNonBlocking(fd);
addFileEventListeners(fd, &readJoystickEvents, null, null);
} else {
// for polling, we will set nonblocking mode anyway,
// the readJoystickEvents function will handle this fine
// so we can call it when needed even on like a game timer.
auto flags = fcntl(fd, F_GETFL, 0);
if(flags == -1)
throw new Exception("fcntl get");
flags |= O_NONBLOCK;
auto s = fcntl(fd, F_SETFL, flags);
if(s == -1)
throw new Exception("fcntl set");
}
return true;
}
return false;
}
if(!preparePlayer(0, player1ControllerId) ? 1 : 0)
return 0;
if(!preparePlayer(1, player2ControllerId) ? 1 : 0)
return 1;
if(!preparePlayer(2, player3ControllerId) ? 1 : 0)
return 2;
if(!preparePlayer(3, player4ControllerId) ? 1 : 0)
return 3;
return 4; // all players successfully initialized
} else version(Windows) {
if(wxi.loadDll()) {
getJoystickOSState = wxi.XInputGetState;
} else {
// WinMM fallback
getJoystickOSState = &winMMFallback;
}
assert(getJoystickOSState !is null);
if(getJoystickOSState(player1ControllerId, &(joystickState[0])))
return 0;
if(getJoystickOSState(player2ControllerId, &(joystickState[1])))
return 1;
if(getJoystickOSState(player3ControllerId, &(joystickState[2])))
return 2;
if(getJoystickOSState(player4ControllerId, &(joystickState[3])))
return 3;
return 4;
} else static assert(0, "Unsupported OS");
// return 0;
}
void closeJoysticks() {
version(linux) {
foreach(ref fd; joystickFds) {
if(fd > 0) {
version(with_eventloop) {
import arsd.eventloop;
removeFileEventListeners(fd);
}
close(fd);
}
fd = -1;
}
} else version(Windows) {
getJoystickOSState = null;
wxi.unloadDll();
} else static assert(0);
}
struct JoystickUpdate {
int player;
JoystickState old;
JoystickState current;
// changes from last update
bool buttonWasJustPressed(Button button) {
return buttonIsPressed(button) && !oldButtonIsPressed(button);
}
bool buttonWasJustReleased(Button button) {
return !buttonIsPressed(button) && oldButtonIsPressed(button);
}
// this is normalized down to a 16 step change
// and ignores a dead zone near the middle
short axisChange(Axis axis) {
return cast(short) (axisPosition(axis) - oldAxisPosition(axis));
}
// current state
bool buttonIsPressed(Button button) {
return buttonIsPressedHelper(button, ¤t);
}
// Note: UP is negative!
short axisPosition(Axis axis, short digitalFallbackValue = short.max) {
return axisPositionHelper(axis, ¤t, digitalFallbackValue);
}
/* private */
// old state
bool oldButtonIsPressed(Button button) {
return buttonIsPressedHelper(button, &old);
}
short oldAxisPosition(Axis axis, short digitalFallbackValue = short.max) {
return axisPositionHelper(axis, &old, digitalFallbackValue);
}
short axisPositionHelper(Axis axis, JoystickState* what, short digitalFallbackValue = short.max) {
version(ps1_style) {
// on PS1, the d-pad and left stick are synonyms for each other
// the dpad takes precedence, if it is pressed
if(axis == PS1AnalogAxes.horizontalDpad || axis == PS1AnalogAxes.horizontalLeftStick) {
auto it = axisPositionHelperRaw(PS1AnalogAxes.horizontalDpad, what, digitalFallbackValue);
if(!it)
it = axisPositionHelperRaw(PS1AnalogAxes.horizontalLeftStick, what, digitalFallbackValue);
return it;
}
if(axis == PS1AnalogAxes.verticalDpad || axis == PS1AnalogAxes.verticalLeftStick) {
auto it = axisPositionHelperRaw(PS1AnalogAxes.verticalDpad, what, digitalFallbackValue);
if(!it)
it = axisPositionHelperRaw(PS1AnalogAxes.verticalLeftStick, what, digitalFallbackValue);
return it;
}
}
return axisPositionHelperRaw(axis, what, digitalFallbackValue);
}
static short normalizeAxis(short value) {
if(value > -8000 && value < 8000)
return 0; // the deadzone gives too much useless junk
return value;
}
bool buttonIsPressedHelper(Button button, JoystickState* what) {
version(linux) {
int mapping = -1;
if(auto ptr = joystickMapping[player])
mapping = ptr.buttonOffsets[button];
if(mapping != -1)
return what.buttons[mapping] ? true : false;
// otherwise what do we do?
// FIXME
return false; // the button isn't mapped, figure it isn't there and thus can't be pushed
} else version(Windows) {
// on Windows, I'm always assuming it is an XBox 360 controller
// because that's what I have and the OS supports it so well
version(xbox_style)
final switch(button) {
case XBox360Buttons.a: return (what.Gamepad.wButtons & XINPUT_GAMEPAD_A) ? true : false;
case XBox360Buttons.b: return (what.Gamepad.wButtons & XINPUT_GAMEPAD_B) ? true : false;
case XBox360Buttons.x: return (what.Gamepad.wButtons & XINPUT_GAMEPAD_X) ? true : false;
case XBox360Buttons.y: return (what.Gamepad.wButtons & XINPUT_GAMEPAD_Y) ? true : false;
case XBox360Buttons.lb: return (what.Gamepad.wButtons & XINPUT_GAMEPAD_LEFT_SHOULDER) ? true : false;
case XBox360Buttons.rb: return (what.Gamepad.wButtons & XINPUT_GAMEPAD_RIGHT_SHOULDER) ? true : false;
case XBox360Buttons.back: return (what.Gamepad.wButtons & XINPUT_GAMEPAD_BACK) ? true : false;
case XBox360Buttons.start: return (what.Gamepad.wButtons & XINPUT_GAMEPAD_START) ? true : false;
case XBox360Buttons.leftStick: return (what.Gamepad.wButtons & XINPUT_GAMEPAD_LEFT_THUMB) ? true : false;
case XBox360Buttons.rightStick: return (what.Gamepad.wButtons & XINPUT_GAMEPAD_RIGHT_THUMB) ? true : false;
case XBox360Buttons.xboxLogo: return false;
}
else version(ps1_style)
final switch(button) {
case PS1Buttons.triangle: return (what.Gamepad.wButtons & XINPUT_GAMEPAD_Y) ? true : false;
case PS1Buttons.square: return (what.Gamepad.wButtons & XINPUT_GAMEPAD_X) ? true : false;
case PS1Buttons.cross: return (what.Gamepad.wButtons & XINPUT_GAMEPAD_A) ? true : false;
case PS1Buttons.circle: return (what.Gamepad.wButtons & XINPUT_GAMEPAD_B) ? true : false;
case PS1Buttons.select: return (what.Gamepad.wButtons & XINPUT_GAMEPAD_BACK) ? true : false;
case PS1Buttons.start: return (what.Gamepad.wButtons & XINPUT_GAMEPAD_START) ? true : false;
case PS1Buttons.l1: return (what.Gamepad.wButtons & XINPUT_GAMEPAD_LEFT_SHOULDER) ? true : false;
case PS1Buttons.r1: return (what.Gamepad.wButtons & XINPUT_GAMEPAD_RIGHT_SHOULDER) ? true : false;
case PS1Buttons.l2: return (what.Gamepad.bLeftTrigger > 100);
case PS1Buttons.r2: return (what.Gamepad.bRightTrigger > 100);
case PS1Buttons.l3: return (what.Gamepad.wButtons & XINPUT_GAMEPAD_LEFT_THUMB) ? true : false;
case PS1Buttons.r3: return (what.Gamepad.wButtons & XINPUT_GAMEPAD_RIGHT_THUMB) ? true : false;
}
}
}
short axisPositionHelperRaw(Axis axis, JoystickState* what, short digitalFallbackValue = short.max) {
version(linux) {
int mapping = -1;
if(auto ptr = joystickMapping[player])
mapping = ptr.axisOffsets[axis];
if(mapping != -1)
return normalizeAxis(what.axes[mapping]);
return 0; // no such axis apparently, let the cooked one do something if it can
} else version(Windows) {
// on Windows, assuming it is an XBox 360 controller
version(xbox_style)
final switch(axis) {
case XBox360Axes.horizontalLeftStick:
return normalizeAxis(what.Gamepad.sThumbLX);
case XBox360Axes.verticalLeftStick:
return normalizeAxis(what.Gamepad.sThumbLY);
case XBox360Axes.horizontalRightStick:
return normalizeAxis(what.Gamepad.sThumbRX);
case XBox360Axes.verticalRightStick:
return normalizeAxis(what.Gamepad.sThumbRY);
case XBox360Axes.verticalDpad:
return (what.Gamepad.wButtons & XINPUT_GAMEPAD_DPAD_UP) ? -digitalFallbackValue :
(what.Gamepad.wButtons & XINPUT_GAMEPAD_DPAD_DOWN) ? digitalFallbackValue :
0;
case XBox360Axes.horizontalDpad:
return (what.Gamepad.wButtons & XINPUT_GAMEPAD_DPAD_LEFT) ? -digitalFallbackValue :
(what.Gamepad.wButtons & XINPUT_GAMEPAD_DPAD_RIGHT) ? digitalFallbackValue :
0;
case XBox360Axes.lt:
return normalizeTrigger(what.Gamepad.bLeftTrigger);
case XBox360Axes.rt:
return normalizeTrigger(what.Gamepad.bRightTrigger);
}
else version(ps1_style)
final switch(axis) {
case PS1AnalogAxes.horizontalDpad:
case PS1AnalogAxes.horizontalLeftStick:
short got = (what.Gamepad.wButtons & XINPUT_GAMEPAD_DPAD_LEFT) ? -digitalFallbackValue :
(what.Gamepad.wButtons & XINPUT_GAMEPAD_DPAD_RIGHT) ? digitalFallbackValue :
0;
if(got == 0)
got = what.Gamepad.sThumbLX;
return normalizeAxis(got);
case PS1AnalogAxes.verticalDpad:
case PS1AnalogAxes.verticalLeftStick:
short got = (what.Gamepad.wButtons & XINPUT_GAMEPAD_DPAD_UP) ? digitalFallbackValue :
(what.Gamepad.wButtons & XINPUT_GAMEPAD_DPAD_DOWN) ? -digitalFallbackValue :
what.Gamepad.sThumbLY;
return normalizeAxis(-got);
case PS1AnalogAxes.horizontalRightStick:
return normalizeAxis(what.Gamepad.sThumbRX);
case PS1AnalogAxes.verticalRightStick:
return normalizeAxis(what.Gamepad.sThumbRY);
}
}
}
version(Windows)
short normalizeTrigger(BYTE b) {
if(b < XINPUT_GAMEPAD_TRIGGER_THRESHOLD)
return 0;
return cast(short)((b << 8)|0xff);
}
}
JoystickUpdate getJoystickUpdate(int player) {
static JoystickState[4] previous;
version(Windows) {
assert(getJoystickOSState !is null);
if(getJoystickOSState(player, &(joystickState[player])))
return JoystickUpdate();
//throw new Exception("wtf");
}
auto it = JoystickUpdate(player, previous[player], joystickState[player]);
previous[player] = joystickState[player];
return it;
}
// --------------------------------
// Low level interface
// --------------------------------
version(Windows) {
import core.sys.windows.windows;
alias MMRESULT = UINT;
struct JOYINFOEX {
DWORD dwSize;
DWORD dwFlags;
DWORD dwXpos;
DWORD dwYpos;
DWORD dwZpos;
DWORD dwRpos;
DWORD dwUpos;
DWORD dwVpos;
DWORD dwButtons;
DWORD dwButtonNumber;
DWORD dwPOV;
DWORD dwReserved1;
DWORD dwReserved2;
}
enum : DWORD {
JOY_POVCENTERED = -1,
JOY_POVFORWARD = 0,
JOY_POVBACKWARD = 18000,
JOY_POVLEFT = 27000,
JOY_POVRIGHT = 9000
}
extern(Windows)
MMRESULT joySetCapture(HWND window, UINT stickId, UINT period, BOOL changed);
extern(Windows)
MMRESULT joyGetPosEx(UINT stickId, JOYINFOEX* pji);
extern(Windows)
MMRESULT joyReleaseCapture(UINT stickId);
// SEE ALSO:
// http://msdn.microsoft.com/en-us/library/windows/desktop/dd757105%28v=vs.85%29.aspx
// Windows also provides joyGetThreshold, joySetThreshold
// there's also JOY2 messages
enum MM_JOY1MOVE = 0; // FIXME
enum MM_JOY1BUTTONDOWN = 0; // FIXME
enum MM_JOY1BUTTONUP = 0; // FIXME
pragma(lib, "winmm");
version(arsd_js_test)
void main() {
/*
// winmm test
auto window = new SimpleWindow(500, 500);
joySetCapture(window.impl.hwnd, 0, 0, false);
window.handleNativeEvent = (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) {
import std.stdio;
writeln(msg, " ", wparam, " ", lparam);
return 1;
};
window.eventLoop(0);
joyReleaseCapture(0);
*/
import std.stdio;
// xinput test
WindowsXInput x;
if(!x.loadDll()) {
writeln("Load DLL failed");
return;
}
writeln("success");
assert(x.XInputSetState !is null);
assert(x.XInputGetState !is null);
XINPUT_STATE state;
XINPUT_VIBRATION vibration;
if(!x.XInputGetState(0, &state)) {
writeln("Player 1 detected");
} else return;
if(!x.XInputGetState(1, &state)) {
writeln("Player 2 detected");
} else writeln("Player 2 not found");
DWORD pn;
foreach(i; 0 .. 60) {
x.XInputGetState(0, &state);
if(pn != state.dwPacketNumber) {
writeln("c: ", state);
pn = state.dwPacketNumber;
}
Sleep(50);
if(i == 20) {
vibration.wLeftMotorSpeed = WORD.max;
vibration.wRightMotorSpeed = WORD.max;
x.XInputSetState(0, &vibration);
vibration = XINPUT_VIBRATION.init;
}
if(i == 40)
x.XInputSetState(0, &vibration);
}
}
struct XINPUT_GAMEPAD {
WORD wButtons;
BYTE bLeftTrigger;
BYTE bRightTrigger;
SHORT sThumbLX;
SHORT sThumbLY;
SHORT sThumbRX;
SHORT sThumbRY;
}
// enum XInputGamepadButtons {
// It is a bitmask of these
enum XINPUT_GAMEPAD_DPAD_UP = 0x0001;
enum XINPUT_GAMEPAD_DPAD_DOWN = 0x0002;
enum XINPUT_GAMEPAD_DPAD_LEFT = 0x0004;
enum XINPUT_GAMEPAD_DPAD_RIGHT = 0x0008;
enum XINPUT_GAMEPAD_START = 0x0010;
enum XINPUT_GAMEPAD_BACK = 0x0020;
enum XINPUT_GAMEPAD_LEFT_THUMB = 0x0040; // pushing on the stick
enum XINPUT_GAMEPAD_RIGHT_THUMB = 0x0080;
enum XINPUT_GAMEPAD_LEFT_SHOULDER = 0x0100;
enum XINPUT_GAMEPAD_RIGHT_SHOULDER = 0x0200;
enum XINPUT_GAMEPAD_A = 0x1000;
enum XINPUT_GAMEPAD_B = 0x2000;
enum XINPUT_GAMEPAD_X = 0x4000;
enum XINPUT_GAMEPAD_Y = 0x8000;
enum XINPUT_GAMEPAD_LEFT_THUMB_DEADZONE = 7849;
enum XINPUT_GAMEPAD_RIGHT_THUMB_DEADZONE = 8689;
enum XINPUT_GAMEPAD_TRIGGER_THRESHOLD = 30;
struct XINPUT_STATE {
DWORD dwPacketNumber;
XINPUT_GAMEPAD Gamepad;
}
struct XINPUT_VIBRATION {
WORD wLeftMotorSpeed; // low frequency motor. use any value between 0-65535 here
WORD wRightMotorSpeed; // high frequency motor. use any value between 0-65535 here
}
struct WindowsXInput {
HANDLE dll;
bool loadDll() {
// try Windows 8 first
dll = LoadLibraryA("Xinput1_4.dll");
if(dll is null) // then try Windows Vista
dll = LoadLibraryA("Xinput9_1_0.dll");
if(dll is null)
return false; // couldn't load it, tell user
XInputGetState = cast(typeof(XInputGetState)) GetProcAddress(dll, "XInputGetState");
XInputSetState = cast(typeof(XInputSetState)) GetProcAddress(dll, "XInputSetState");
return true;
}
~this() {
unloadDll();
}
void unloadDll() {
if(dll !is null) {
FreeLibrary(dll);
dll = null;
}
}
// These are all dynamically loaded from the DLL
extern(Windows) {
DWORD function(DWORD, XINPUT_STATE*) XInputGetState;
DWORD function(DWORD, XINPUT_VIBRATION*) XInputSetState;
}
// there's other functions but I don't use them; my controllers
// are corded, for example, and I don't have a headset that works
// with them. But if I get ones, I'll add them too.
//
// There's also some Windows 8 and up functions I didn't use, I just
// wanted the basics.
}
}
version(linux) {
// https://www.kernel.org/doc/Documentation/input/joystick-api.txt
struct js_event {
uint time;
short value;
ubyte type;
ubyte number;
}
enum JS_EVENT_BUTTON = 0x01;
enum JS_EVENT_AXIS = 0x02;
enum JS_EVENT_INIT = 0x80;
import core.sys.posix.unistd;
import core.sys.posix.fcntl;
import std.stdio;
struct RawControllerEvent {
int controller;
int type;
int number;
int value;
}
// These values are determined experimentally on my Linux box
// and won't necessarily match what you have. I really don't know.
// TODO: see if these line up on Windows
}
// My hardware:
// a Sony PS1 dual shock controller on a PSX to USB adapter from Radio Shack
// and a wired XBox 360 controller from Microsoft.
// FIXME: these are the values based on my linux box, but I also use them as the virtual codes
// I want nicer virtual codes I think.
enum PS1Buttons {
triangle = 0,
circle,
cross,
square,
l2,
r2,
l1,
r1,
select,
start,
l3,
r3
}
// Use if analog is turned off
// Tip: if you just check this OR the analog one it will work in both cases easily enough
enum PS1Axes {
horizontalDpad = 0,
verticalDpad = 1,
}
// Use if analog is turned on
enum PS1AnalogAxes {
horizontalLeftStick = 0,
verticalLeftStick,
verticalRightStick,
horizontalRightStick,
horizontalDpad,
verticalDpad,
}
enum XBox360Buttons {
a = 0,
b,
x,
y,
lb,
rb,
back,
start,
xboxLogo,
leftStick,
rightStick
}
enum XBox360Axes {
horizontalLeftStick = 0,
verticalLeftStick,
lt,
horizontalRightStick,
verticalRightStick,
rt,
horizontalDpad,
verticalDpad
}
version(linux) {
version(arsd_js_test)
void main(string[] args) {
int fd = open(args.length > 1 ? (args[1]~'\0').ptr : "/dev/input/js0".ptr, O_RDONLY);
assert(fd > 0);
js_event event;
short[8] axes;
ubyte[16] buttons;
printf("\n");
while(true) {
int r = read(fd, &event, event.sizeof);
assert(r == event.sizeof);
// writef("\r%12s", event);
if(event.type & JS_EVENT_AXIS) {
axes[event.number] = event.value >> 12;
}
if(event.type & JS_EVENT_BUTTON) {
buttons[event.number] = event.value;
}
writef("\r%6s %1s", axes[0..8], buttons[0 .. 16]);
stdout.flush();
}
close(fd);
printf("\n");
}
version(joystick_demo)
version(linux)
void amain(string[] args) {
import arsd.simpleaudio;
AudioOutput audio = AudioOutput(0);
int fd = open(args.length > 1 ? (args[1]~'\0').ptr : "/dev/input/js1".ptr, O_RDONLY | O_NONBLOCK);
assert(fd > 0);
js_event event;
short[512] buffer;
short val = short.max / 4;
int swap = 44100 / 600;
int swapCount = swap / 2;
short val2 = short.max / 4;
int swap2 = 44100 / 600;
int swapCount2 = swap / 2;
short[8] axes;
ubyte[16] buttons;
while(true) {
int r = read(fd, &event, event.sizeof);
while(r >= 0) {
import std.conv;
assert(r == event.sizeof, to!string(r));
// writef("\r%12s", event);
if(event.type & JS_EVENT_AXIS) {
axes[event.number] = event.value; // >> 12;
}
if(event.type & JS_EVENT_BUTTON) {
buttons[event.number] = cast(ubyte) event.value;
}
int freq = axes[XBox360Axes.horizontalLeftStick];
freq += short.max;
freq /= 100;
freq += 400;
swap = 44100 / freq;
val = (cast(int) axes[XBox360Axes.lt] + short.max) / 8;
int freq2 = axes[XBox360Axes.horizontalRightStick];
freq2 += short.max;
freq2 /= 1000;
freq2 += 400;
swap2 = 44100 / freq2;
val2 = (cast(int) axes[XBox360Axes.rt] + short.max) / 8;
// try to starve the read
r = read(fd, &event, event.sizeof);
}
for(int i = 0; i < buffer.length / 2; i++) {
import std.math;
auto v = cast(ushort) (val * sin(cast(real) swapCount / (2*PI)));
auto v2 = cast(ushort) (val2 * sin(cast(real) swapCount2 / (2*PI)));
buffer[i*2] = cast(ushort)(v + v2);
buffer[i*2+1] = cast(ushort)(v + v2);
swapCount--;
swapCount2--;
if(swapCount == 0) {
swapCount = swap / 2;
// val = -val;
}
if(swapCount2 == 0) {
swapCount2 = swap2 / 2;
// val = -val;
}
}
//audio.write(buffer[]);
}
close(fd);
}
}
version(joystick_demo)
version(Windows)
void amain() {
import arsd.simpleaudio;
auto midi = MidiOutput(0);
ubyte[16] buffer = void;
ubyte[] where = buffer[];
midi.writeRawMessageData(where.midiProgramChange(1, 79));
auto x = WindowsXInput();
x.loadDll();
XINPUT_STATE state;
XINPUT_STATE oldstate;
DWORD pn;
while(true) {
oldstate = state;
x.XInputGetState(0, &state);
byte note = 72;
if(state.dwPacketNumber != oldstate.dwPacketNumber) {
if((state.Gamepad.wButtons & XINPUT_GAMEPAD_A) && !(oldstate.Gamepad.wButtons & XINPUT_GAMEPAD_A))
midi.writeRawMessageData(where.midiNoteOn(1, note, 127));
if(!(state.Gamepad.wButtons & XINPUT_GAMEPAD_A) && (oldstate.Gamepad.wButtons & XINPUT_GAMEPAD_A))
midi.writeRawMessageData(where.midiNoteOff(1, note, 127));
note = 75;
if((state.Gamepad.wButtons & XINPUT_GAMEPAD_B) && !(oldstate.Gamepad.wButtons & XINPUT_GAMEPAD_B))
midi.writeRawMessageData(where.midiNoteOn(1, note, 127));
if(!(state.Gamepad.wButtons & XINPUT_GAMEPAD_B) && (oldstate.Gamepad.wButtons & XINPUT_GAMEPAD_B))
midi.writeRawMessageData(where.midiNoteOff(1, note, 127));
note = 77;
if((state.Gamepad.wButtons & XINPUT_GAMEPAD_X) && !(oldstate.Gamepad.wButtons & XINPUT_GAMEPAD_X))
midi.writeRawMessageData(where.midiNoteOn(1, note, 127));
if(!(state.Gamepad.wButtons & XINPUT_GAMEPAD_X) && (oldstate.Gamepad.wButtons & XINPUT_GAMEPAD_X))
midi.writeRawMessageData(where.midiNoteOff(1, note, 127));
note = 79;
if((state.Gamepad.wButtons & XINPUT_GAMEPAD_Y) && !(oldstate.Gamepad.wButtons & XINPUT_GAMEPAD_Y))
midi.writeRawMessageData(where.midiNoteOn(1, note, 127));
if(!(state.Gamepad.wButtons & XINPUT_GAMEPAD_Y) && (oldstate.Gamepad.wButtons & XINPUT_GAMEPAD_Y))
midi.writeRawMessageData(where.midiNoteOff(1, note, 127));
note = 81;
if((state.Gamepad.wButtons & XINPUT_GAMEPAD_LEFT_SHOULDER) && !(oldstate.Gamepad.wButtons & XINPUT_GAMEPAD_LEFT_SHOULDER))
midi.writeRawMessageData(where.midiNoteOn(1, note, 127));
if(!(state.Gamepad.wButtons & XINPUT_GAMEPAD_LEFT_SHOULDER) && (oldstate.Gamepad.wButtons & XINPUT_GAMEPAD_LEFT_SHOULDER))
midi.writeRawMessageData(where.midiNoteOff(1, note, 127));
note = 83;
if((state.Gamepad.wButtons & XINPUT_GAMEPAD_RIGHT_SHOULDER) && !(oldstate.Gamepad.wButtons & XINPUT_GAMEPAD_RIGHT_SHOULDER))
midi.writeRawMessageData(where.midiNoteOn(1, note, 127));
if(!(state.Gamepad.wButtons & XINPUT_GAMEPAD_RIGHT_SHOULDER) && (oldstate.Gamepad.wButtons & XINPUT_GAMEPAD_RIGHT_SHOULDER))
midi.writeRawMessageData(where.midiNoteOff(1, note, 127));
}
Sleep(1);
where = buffer[];
}
}
|
D
|
/*
TEST_OUTPUT:
---
fail_compilation/diag6373.d(7): Deprecation: class diag6373.Bar use of diag6373.Foo.method(double x) hidden by Bar is deprecated. Use 'alias Foo.method method;' to introduce base class overload set.
---
*/
#line 1
class Foo
{
void method(int x) { }
void method(double x) { }
}
class Bar : Foo
{
override void method(int x) { }
}
void main() { }
|
D
|
module knet.lectures.pos;
import std.file;
import knet.base;
void learnPartOfSpeech(Graph graph)
{
import knet.lectures.pronouns;
graph.learnPronouns();
import knet.lectures.adjectives;
graph.learnAdjectives();
import knet.lectures.adverbs;
graph.learnAdverbs();
import knet.lectures.articles;
graph.learnArticles();
import knet.lectures.conjunctions;
graph.learnConjunctions();
import knet.lectures.interjections;
graph.learnInterjections();
// Verb
graph.learnMto1(Lang.en, rdT(`../knowledge/en/regular_verb.txt`).splitter('\n').filter!(w => !w.empty), Role(Rel.instanceOf), `regular verb`, Sense.verbRegular, Sense.noun, 1.0);
graph.learnMto1(Lang.en, rdT(`../knowledge/en/determiner.txt`).splitter('\n').filter!(w => !w.empty), Role(Rel.instanceOf), `determiner`, Sense.determiner, Sense.noun, 1.0);
graph.learnMto1(Lang.en, rdT(`../knowledge/en/predeterminer.txt`).splitter('\n').filter!(w => !w.empty), Role(Rel.instanceOf), `predeterminer`, Sense.predeterminer, Sense.noun, 1.0);
graph.learnMto1(Lang.en, rdT(`../knowledge/en/adverbs.txt`).splitter('\n').filter!(w => !w.empty), Role(Rel.instanceOf), `adverb`, Sense.adverb, Sense.noun, 1.0);
graph.learnMto1(Lang.en, rdT(`../knowledge/en/preposition.txt`).splitter('\n').filter!(w => !w.empty), Role(Rel.instanceOf), `preposition`, Sense.preposition, Sense.noun, 1.0);
graph.learnMto1(Lang.en, [`since`, `ago`, `before`, `past`], Role(Rel.instanceOf), `time preposition`, Sense.prepositionTime, Sense.noun, 1.0);
import knet.readers.moby;
graph.learnMobyPoS();
// learn these after Moby as Moby is more specific
import knet.lectures.nouns;
graph.learnNouns();
import knet.lectures.verbs;
graph.learnVerbs();
graph.learnMto1(Lang.en, rdT(`../knowledge/en/figure_of_speech.txt`).splitter('\n').filter!(w => !w.empty), Role(Rel.instanceOf), `figure of speech`, Sense.unknown, Sense.noun, 1.0);
graph.learnMobyEnglishPronounciations();
}
|
D
|
module emerald.scenes.ManySpheres;
import emerald.all;
final class ManySpheres : Scene {
private:
Texture marbleTex;
Texture brickTex;
Texture rock8Tex;
Texture redWhiteTex;
Texture uvsTex;
Texture earthTex;
public:
this(uint width, uint height) {
super(new Camera(
float3(50, 52, 295.6), // origin
float3(0, -0.042612, -1), // direction
width,
height
));
loadTextures();
createScene();
}
void loadTextures() {
this.marbleTex = new Texture(Texture.ID.MARBLE);
this.brickTex = new Texture(Texture.ID.BRICK);
this.rock8Tex = new Texture(Texture.ID.ROCK);
this.redWhiteTex = new Texture(Texture.ID.REDWHITE);
this.uvsTex = new Texture(Texture.ID.UVS);
this.earthTex = new Texture(Texture.ID.EARTH);
}
void createScene() {
addlargeRoomUsingRectangles();
mat4 rotY = mat4.rotateY((-45).degrees);
mat4 rotZ = mat4.rotateZ((-60).degrees);
mat4 Y45 = mat4.rotateX((45).degrees);
mat4 Y90 = mat4.rotateX((90).degrees);
auto Ym45 = mat4.rotateX((-45).degrees);
mat4 rotXY = rotY * Y90;
mat4 rotXYZ = rotZ * rotY * Y45;
mat4 brickTrans = Ym45 * rotY;
mat4 earthTrans = mat4.rotateY((-90).degrees);
auto glass = new Material().setRefraction(1.52);
auto red = new Material().setDiffuse(float3(1,1,1))
.setTexture(brickTex);
auto green = new Material().setDiffuse(float3(0,1,0));
auto blue = new Material().setDiffuse(float3(0,0,1));
auto white = new Material().setDiffuse(float3(1,1,1));
//.setTexture(uvsTex);
with(BoxBuilder.Side) {
shapes ~= new BoxBuilder()
.setUVScale(float2(0.25, 0.25))
.sides(red, BACK, FRONT)
.sides(green, TOP, BOTTOM)
.sides(blue, LEFT, RIGHT)
.scale(float3(16,16,16))
.translate(float3(8, 12.2, 88))
.rotate(0.degrees, 45.radians, 45.radians)
.build();
shapes ~= new BoxBuilder()
.sides(glass, BACK, FRONT, TOP, BOTTOM, LEFT, RIGHT)
.scale(float3(16,16,16))
.translate(float3(38, 12.2, 88))
.rotate(0.degrees, 15.degrees, 0.degrees)
.build();
shapes ~= new BoxBuilder()
.sides(white, BACK, FRONT, BOTTOM, LEFT, RIGHT)
.scale(float3(16,16,16))
.translate(float3(98, 15, 95))
.rotate(50.degrees, 35.degrees, 25.degrees)
.build();
}
shapes ~= new Sphere(8, float3(98,15,95), new Material().setDiffuse(float3(1.0, 0.8, 0)));
// auto p0 = float3(40, 80, 80);
// auto p1 = float3(100, 80, 80);
// auto p2 = float3(40, 40, 80);
// auto p3 = float3(100, 40, 80);
// shapes ~= [
// new Triangle(p0, p1, p2, white),
// new Triangle(p3, p2, p1, white).swapUVs()
// ];
shapes ~= [
// radius, position, material
// bottom
new Sphere(18, float3(-5,22,60), new Material().setDiffuse(float3(1.0, 1.0, 1.0))
.setTexture(rock8Tex)),
new Sphere(18, float3(31,22,60), new Material().setDiffuse(float3(1.0, 1.0, 1.0))
.setTexture(earthTex))
.transform(earthTrans),
new Sphere(18, float3(67,22,60), glass),
new Sphere(18, float3(103,22,60), new Material().setDiffuse(float3(1.0, 1.0, 1.0))
.setTexture(redWhiteTex)
.setReflection(0.5))
.transform(rotXYZ),
// top
new Sphere(18, float3(-5,58,60), new Material().setDiffuse(float3(1.0, 1.0, 1.0))
.setTexture(brickTex))
.transform(brickTrans),
new Sphere(18, float3(31,58,60), new Material().setReflection(1)),
new Sphere(18, float3(67,58,60), new Material().setDiffuse(float3(1.0, 1.0, 1.0))
.setTexture(marbleTex))
.transform(rotXY),
new Sphere(18, float3(103,58,60), new Material().setDiffuse(float3(1.0, 1.0, 1.0))
.setTexture(uvsTex))
.transform(rotXY),
// inside glass
new Sphere(5, float3(67,22,60), new Material().setDiffuse(float3(1, 1, 1))
.setTexture(uvsTex))
.transform(rotXYZ),
// light
new Sphere(600, float3(50,681.6-.27,81.6), LIGHT)
];
}
}
|
D
|
resembling a labyrinth in form or complexity
|
D
|
/*********************************************************
Copyright: (C) 2008-2010 by Steven Schveighoffer.
All rights reserved
License: Boost Software License version 1.0
Permission is hereby granted, free of charge, to any person or organization
obtaining a copy of the software and accompanying documentation covered by
this license (the "Software") to use, reproduce, display, distribute,
execute, and transmit the Software, and to prepare derivative works of the
Software, and to permit third-parties to whom the Software is furnished to
do so, all subject to the following:
The copyright notices in the Software and this entire statement, including
the above license grant, this restriction and the following disclaimer, must
be included in all copies of the Software, in whole or in part, and all
derivative works of the Software, unless such copies or derivative works are
solely in the form of machine-executable object code generated by a source
language processor.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
**********************************************************/
module dcollections.TreeMultiset;
public import dcollections.model.Multiset;
public import dcollections.DefaultFunctions;
private import dcollections.RBTree;
version(unittest)
{
import dcollections.util;
import std.traits;
import std.array;
import std.range;
static import std.algorithm;
}
/**
* Implementation of the Multiset interface using Red-Black trees. this
* allows for O(lg(n)) insertion, removal, and lookup times. It also creates
* a sorted set of elements. V must be comparable.
*
* Adding an element does not invalidate any cursors.
*
* Removing an element only invalidates the cursors that were pointing at
* that element.
*
* You can replace the Tree implementation with a custom implementation, the
* implementation must be a struct template which can be instantiated with a
* single template argument V, and must implement the following members
* (non-function members can be properties unless otherwise specified):
*
* parameters -> must be a struct with at least the following members:
* compareFunction -> the compare function to use (should be a
* CompareFunction!(V))
*
* void setup(parameters p) -> initializes the tree with the given parameters.
*
* size_t count -> count of the elements in the tree
*
* node -> must be a struct/class with the following members:
* V value -> the value which is pointed to by this position (cannot be a
* property)
* node next -> the next node in the tree as defined by the compare
* function, or end if no other nodes exist.
* node prev -> the previous node in the tree as defined by the compare
* function.
*
* bool add(V v) -> add the given value to the tree according to the order
* defined by the compare function. If the element already exists in the
* tree, the function should add it after all equivalent elements.
*
* node begin -> must be a node that points to the very first valid
* element in the tree, or end if no elements exist.
*
* node end -> must be a node that points to just past the very last
* valid element.
*
* node find(V v) -> returns a node that points to the first element in the
* tree that contains v, or end if the element doesn't exist.
*
* node remove(node p) -> removes the given element from the tree,
* returns the next valid element or end if p was last in the tree.
*
* void clear() -> removes all elements from the tree, sets count to 0.
*
* size_t countAll(V v) -> returns the number of elements with the given value.
*
* node removeAll(V v) -> removes all the given values from the tree.
*/
final class TreeMultiset(V, alias ImplTemp = RBDupTree, alias compareFunction=DefaultCompare!V) : Multiset!(V)
{
version(unittest)
{
private enum doUnittest = isIntegral!V;
bool arrayEqual(V[] arr)
{
if(length == arr.length)
{
uint[V] cnt;
foreach(v; arr)
cnt[v]++;
foreach(v; this)
{
auto x = v in cnt;
if(!x || *x == 0)
return false;
--(*x);
}
return true;
}
return false;
}
}
else
{
private enum doUnittest = false;
}
/**
* convenience alias
*/
alias ImplTemp!(V, compareFunction) Impl;
private Impl _tree;
/**
* A cursor for elements in the tree
*/
struct cursor
{
private Impl.Node ptr;
private bool _empty = false;
/**
* get the value in this element
*/
@property inout(V) front() inout
{
assert(!_empty, "Attempting to read the value of an empty cursor of " ~ TreeMultiset.stringof);
return ptr.value;
}
/**
* Tell if this cursor is empty (doesn't point to any value)
*/
@property bool empty() const
{
return _empty;
}
/**
* Move to the next element.
*/
void popFront()
{
assert(!_empty, "Attempting to popFront() an empty cursor of " ~ TreeMultiset.stringof);
_empty = true;
ptr = ptr.next;
}
/**
* length of the cursor range, which is always either 0 or 1.
*/
@property size_t length() const
{
return _empty ? 0 : 1;
}
/**
* opIndex costs nothing, and it allows more algorithms to accept
* cursors.
*/
inout(V) opIndex(size_t idx) inout
{
assert(idx < length, "Attempt to access invalid index on cursor");
return ptr.value;
}
/**
* trivial save implementation to implement forward range
* functionality.
*/
@property inout(cursor) save() inout
{
return this;
}
/**
* compare two cursors for equality
*/
bool opEquals(ref const cursor it) const
{
return it.ptr is ptr;
}
/**
* TODO: uncomment when compiler is sane
* compare two cursors for equality
*/
/*bool opEquals(const cursor it) const
{
return it.ptr is ptr;
}*/
}
static if(doUnittest) unittest
{
auto tms = new TreeMultiset;
tms.add([1, 2, 2, 3, 3, 4, 5]);
auto cu = tms.elemAt(3);
assert(!cu.empty);
assert(cu.front == 3);
cu.popFront();
assert(cu.empty);
assert(tms.arrayEqual([1, 2, 2, 3, 3, 4, 5]));
}
/**
* A range that can be used to iterate over the elements in the tree.
*/
struct range
{
private Impl.Node _begin;
private Impl.Node _end;
/**
* is the range empty?
*/
@property bool empty() const
{
return _begin is _end;
}
/**
* Get a cursor to the first element in the range
*/
@property inout(cursor) begin() inout
{
return inout(cursor)(_begin, empty);
}
/**
* Get a cursor to the end element in the range
*/
@property inout(cursor) end() inout
{
return inout(cursor)(_end, true);
}
/**
* Get the first value in the range
*/
@property inout(V) front() inout
{
assert(!empty, "Attempting to read front of an empty range cursor of " ~ TreeMultiset.stringof);
return _begin.value;
}
/**
* Get the last value in the range
*/
@property inout(V) back() inout
{
assert(!empty, "Attempting to read the back of an empty range of " ~ TreeMultiset.stringof);
return _end.prev.value;
}
/**
* Move the front of the range ahead one element
*/
void popFront()
{
assert(!empty, "Attempting to popFront() an empty range of " ~ TreeMultiset.stringof);
_begin = _begin.next;
}
/**
* Move the back of the range to the previous element
*/
void popBack()
{
assert(!empty, "Attempting to popBack() an empty range of " ~ TreeMultiset.stringof);
_end = _end.prev;
}
/**
* Implement save as required by forward ranges now.
*/
@property inout(range) save() inout
{
return this;
}
}
static if(doUnittest) unittest
{
auto tms = new TreeMultiset;
tms.add([1, 2, 2, 3, 3, 4, 5]);
auto r = tms[];
assert(std.algorithm.equal(r, cast(V[])[1, 2, 2, 3, 3, 4, 5]));
assert(r.front == tms.begin.front);
assert(r.back != r.front);
auto oldfront = r.front;
auto oldback = r.back;
r.popFront();
r.popFront();
r.popBack();
r.popBack();
assert(r.front != r.back);
assert(r.front != oldfront);
assert(r.back != oldback);
auto b = r.begin;
assert(!b.empty);
assert(b.front == r.front);
auto e = r.end;
assert(e.empty);
}
/**
* Determine if a cursor belongs to the collection
*/
bool belongs(const(cursor) c) const
{
// rely on the implementation to tell us
return _tree.belongs(c.ptr);
}
/**
* Determine if a range belongs to the collection
*/
bool belongs(const(range) r) const
{
return _tree.belongs(r._begin) && (r.empty || _tree.belongs(r._end));
}
static if(doUnittest) unittest
{
auto tms = new TreeMultiset;
tms.add([1, 2, 2, 3, 3, 4, 5]);
auto cu = tms.elemAt(3);
assert(cu.front == 3);
assert(tms.belongs(cu));
auto r = tms[tms.begin..cu];
assert(tms.belongs(r));
auto hs2 = tms.dup;
assert(!hs2.belongs(cu));
assert(!hs2.belongs(r));
}
/**
* Iterate through the elements of the collection, specifying which ones
* should be removed.
*
* Use like this:
* -------------
* // remove all odd elements
* foreach(ref doPurge, v; &treeMultiset.purge)
* {
* doPurge = ((v % 1) == 1);
* }
* -------------
*/
int purge(scope int delegate(ref bool doPurge, ref V v) dg)
{
auto it = _tree.begin;
bool doPurge;
int dgret = 0;
auto _end = _tree.end; // cache end so it isn't always being generated
while(it !is _end)
{
//
// don't allow user to change value
//
V tmpvalue = it.value;
doPurge = false;
if((dgret = dg(doPurge, tmpvalue)) != 0)
break;
if(doPurge)
it = _tree.remove(it);
else
it = it.next;
}
return dgret;
}
static if(doUnittest) unittest
{
auto tms = new TreeMultiset;
tms.add([0, 1, 2, 2, 3, 3, 4]);
foreach(ref p, i; &tms.purge)
{
p = (i & 1);
}
assert(tms.arrayEqual([0, 2, 2, 4]));
}
/**
* iterate over the collection's values
*/
int opApply(scope int delegate(ref V v) dg)
{
int _dg(ref bool doPurge, ref V v)
{
return dg(v);
}
return purge(&_dg);
}
static if(doUnittest) unittest
{
auto tms = new TreeMultiset;
tms.add([1, 2, 3, 4, 5]);
uint[V] cnt;
uint len = 0;
foreach(i; tms)
{
assert(tms.contains(i));
++cnt[i];
++len;
}
assert(len == tms.length);
foreach(k, v; cnt)
{
assert(tms.count(k) == v);
}
}
/**
* Instantiate the tree multiset
*/
this(V[] initialElems...)
{
_tree.setup();
add(initialElems);
}
/**
* Instantiate the tree multiset with data from another iterator
*/
this(Iterator!V initialElems)
{
_tree.setup();
add(initialElems);
}
static if(doUnittest) unittest
{
auto tms = new TreeMultiset(1, 2, 3, 4, 4, 5, 5);
auto tms2 = new TreeMultiset(tms);
assert(tms.arrayEqual(toArray!V(tms2)));
}
//
// for dup
//
private this(ref Impl dupFrom)
{
_tree.setup();
dupFrom.copyTo(_tree);
}
/**
* Clear the collection of all elements
*/
TreeMultiset clear()
{
_tree.clear();
return this;
}
static if(doUnittest) unittest
{
auto tms = new TreeMultiset(1, 2, 2, 3, 3, 4, 5);
//tms.add([1, 2, 2, 3, 3, 4, 5]);
assert(tms.length == 7);
tms.clear();
assert(tms.length == 0);
}
/**
* returns number of elements in the collection
*/
@property size_t length() const
{
return _tree.count;
}
/**
* returns a cursor to the first element in the collection.
*/
@property inout(cursor) begin() inout
{
return inout(cursor)(_tree.begin, _tree.count == 0);
}
/**
* returns a cursor that points just past the last element in the
* collection.
*/
@property inout(cursor) end() inout
{
return inout(cursor)(_tree.end, true);
}
/**
* remove the element pointed at by the given cursor, returning an
* cursor that points to the next element in the collection.
*
* Note that it is legal to pass an empty cursor. This does nothing to the
* collection, but returns the next valid cursor or end if the cursor
* points to end.
*
* Runs in O(lg(n)) time.
*/
cursor remove(cursor it)
{
if(!it.empty)
{
it.ptr = _tree.remove(it.ptr);
}
it._empty = (it.ptr == _tree.end);
return it;
}
static if(doUnittest) unittest
{
auto tms = new TreeMultiset;
tms.add([1, 2, 2, 3, 3, 4, 5]);
tms.remove(tms.elemAt(3));
assert(tms.arrayEqual([1, 2, 2, 3, 4, 5]));
}
/**
* remove all the elements in the given range.
*/
cursor remove(range r)
{
auto b = r.begin;
auto e = r.end;
while(b != e)
{
b = remove(b);
}
return b;
}
static if(doUnittest) unittest
{
auto tms = new TreeMultiset;
tms.add([1, 2, 2, 3, 3, 4, 5]);
auto r = tms[tms.elemAt(3)..tms.end];
V[7] buf;
auto remaining = std.algorithm.copy(tms[tms.begin..tms.elemAt(3)], buf[]);
tms.remove(r);
assert(tms.arrayEqual(buf[0..buf.length - remaining.length]));
assert(!tms.contains(3));
}
/**
* get a slice of all the elements in this collection.
*/
inout(range) opSlice() inout
{
return inout(range)(_tree.begin, _tree.end);
}
/**
* get a slice of the elements between the two cursors.
*
* We rely on the implementation to verify the ordering of the cursors. It
* is possible to determine ordering, even for cursors with equal values,
* in O(lgn) time.
*/
inout(range) opSlice(inout(cursor) b, inout(cursor) e) inout
{
int order;
if(_tree.positionCompare(b.ptr, e.ptr, order) && order <= 0)
{
// both cursors are part of the tree map and are correctly ordered.
return inout(range)(b.ptr, e.ptr);
}
throw new Exception("invalid slice parameters to " ~ TreeMultiset.stringof);
}
/**
* Create a slice based on values instead of based on cursors.
*
* b must be <= e, and b and e must both match elements in the collection.
* Note that e cannot match end, so in order to get *all* the elements, you
* must call the opSlice(V, end) version of the function.
*
* Note, a valid slice is only returned if both b and e exist in the
* collection.
*
* runs in O(lgn) time.
*/
inout opSlice(const(V) b, const(V) e) inout
{
if(compareFunction(b, e) <= 0)
{
auto belem = elemAt(b);
auto eelem = elemAt(e);
// note, no reason to check for whether belem and eelem are members
// of the tree, we just verified that!
if(!belem.empty && !eelem.empty)
{
return inout(range)(belem.ptr, eelem.ptr);
}
}
throw new Exception("invalid slice parameters to " ~ TreeMultiset.stringof);
}
/**
* Slice between a value and a cursor.
*
* runs in O(lgn) time.
*/
inout(range) opSlice(const(V) b, inout(cursor) e) inout
{
auto belem = elemAt(b);
if(!belem.empty)
{
int order;
if(_tree.positionCompare(belem.ptr, e.ptr, order) && order <= 0)
{
return inout(range)(belem.ptr, e.ptr);
}
}
throw new Exception("invalid slice parameters to " ~ TreeMultiset.stringof);
}
/**
* Slice between a cursor and a key
*
* runs in O(lgn) time.
*/
inout(range) opSlice(inout(cursor) b, const(V) e) inout
{
auto eelem = elemAt(e);
if(!eelem.empty)
{
int order;
if(_tree.positionCompare(b.ptr, eelem.ptr, order) && order <= 0)
{
return inout(range)(b.ptr, eelem.ptr);
}
}
throw new Exception("invalid slice parameters to " ~ TreeMultiset.stringof);
}
static if (doUnittest) unittest
{
auto tms = new TreeMultiset;
tms.add([1, 2, 2, 3, 3, 4, 5]);
auto fr = tms[];
auto prev = fr.front;
while(fr.front == prev)
fr.popFront();
auto cu = fr.begin;
auto r = tms[tms.begin..cu];
auto r2 = tms[cu..tms.end];
foreach(x; r2)
{
assert(std.algorithm.find(r, x).empty);
}
assert(walkLength(r) + walkLength(r2) == tms.length);
bool exceptioncaught = false;
try
{
tms[cu..cu];
}
catch(Exception)
{
exceptioncaught = true;
}
assert(!exceptioncaught);
// test slicing using improperly ordered cursors
exceptioncaught = false;
try
{
auto cu2 = cu;
cu2.popFront();
tms[cu2..cu];
}
catch(Exception)
{
exceptioncaught = true;
}
assert(exceptioncaught);
// test slicing using values
assert(std.algorithm.equal(tms[2..4], cast(V[])[2, 2, 3, 3]));
assert(std.algorithm.equal(tms[tms.elemAt(2)..4], cast(V[])[2, 2, 3, 3]));
assert(std.algorithm.equal(tms[2..tms.elemAt(4)], cast(V[])[2, 2, 3, 3]));
// test slicing using improperly ordered values
exceptioncaught = false;
try
{
tms[4..2];
}
catch(Exception)
{
exceptioncaught = true;
}
assert(exceptioncaught);
// test slicing using improperly ordered cursors
exceptioncaught = false;
try
{
tms[tms.elemAt(4)..2];
}
catch(Exception)
{
exceptioncaught = true;
}
assert(exceptioncaught);
// test slicing using improperly ordered cursors
exceptioncaught = false;
try
{
tms[4..tms.elemAt(2)];
}
catch(Exception)
{
exceptioncaught = true;
}
assert(exceptioncaught);
}
/**
* find the first instance of a given value in the collection. Returns
* end if the value is not present.
*
* Runs in O(lg(n)) time.
*/
inout(cursor) elemAt(const(V) v) inout
{
auto ptr = _tree.find(v);
return inout(cursor)(ptr, ptr == _tree.end);
}
static if(doUnittest) unittest
{
auto tms = new TreeMultiset;
tms.add([1, 2, 2, 3, 3, 4, 5]);
assert(tms.elemAt(6).empty);
}
inout(range) allElemsAt(const(V) v) inout
{
auto beg = _tree.find(v);
_tree.ioNode elem = beg;
while(elem !is _tree.end && elem.value == v)
elem = elem.next;
return inout(range)(beg, elem);
}
static if(doUnittest) unittest
{
auto tms = new TreeMultiset;
tms.add([1, 2, 2, 3, 3, 4, 5]);
assert(tms.allElemsAt(6).empty);
assert(std.algorithm.equal(tms.allElemsAt(2), cast(V[])[2, 2]));
}
/**
* Returns true if the given value exists in the collection.
*
* Runs in O(lg(n)) time.
*/
bool contains(const(V) v) const
{
return !elemAt(v).empty;
}
/**
* Removes the first element that has the value v. Returns true if the
* value was present and was removed.
*
* Runs in O(lg(n)) time.
*/
TreeMultiset remove(V v)
{
remove(elemAt(v));
return this;
}
static if(doUnittest) unittest
{
auto tms = new TreeMultiset;
tms.add([1, 2, 2, 3, 3, 4, 5]);
tms.remove(1);
assert(tms.arrayEqual([2, 2, 3, 3, 4, 5]));
tms.remove(10);
assert(tms.arrayEqual([2, 2, 3, 3, 4, 5]));
tms.remove(3);
assert(tms.arrayEqual([2, 2, 3, 4, 5]));
}
/**
* Adds all the values from the iterator to the collection.
*
* Runs in O(m lg(n)) time, where m is the number of elements in
* the iterator.
*/
TreeMultiset add(Iterator!(V) it)
{
if(it is this)
throw new Exception("Attempting to self add " ~ TreeMultiset.stringof);
auto tr = cast(TreeMultiset) it;
if(tr && !length)
{
tr._tree.copyTo(_tree);
}
else
{
foreach(v; it)
_tree.add(v);
}
return this;
}
/**
* Adds all the values from elems to the collection.
*
* Runs in O(m lg(n)) time, where m is the number of elements in
* array.
*/
TreeMultiset add(V[] elems...)
{
foreach(v; elems)
_tree.add(v);
return this;
}
static if(doUnittest) unittest
{
// add single element
auto tms = new TreeMultiset;
tms.add(1).add(2);
assert(tms.length == 2);
assert(tms.arrayEqual([1, 2]));
// add a duplicate element
tms.add(2);
assert(tms.arrayEqual([1, 2, 2]));
// add other collection
// need to add duplicate, adding self is not allowed.
auto hs2 = tms.dup;
hs2.add(3);
tms.add(hs2);
tms.add(tms.dup);
bool caughtexception = false;
try
{
tms.add(tms);
}
catch(Exception)
{
caughtexception = true;
}
// should not be able to add self
assert(caughtexception);
assert(tms.arrayEqual([1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 3, 3]));
// add array
tms.clear();
tms.add([1, 2, 3, 4, 5]).add(3,4,5,6,7);
assert(tms.arrayEqual([1, 2, 3, 3, 4, 4, 5, 5, 6, 7]));
}
/**
* Returns the number of elements in the collection that are equal to v.
*
* Runs in O(m lg(n)) time, where m is the number of elements that are v.
*/
size_t count(const(V) v) const
{
return _tree.countAll(v);
}
/**
* Removes all the elements that are equal to v.
*
* Runs in O(m lg(n)) time, where m is the number of elements that are v.
*/
TreeMultiset removeAll(V v)
{
_tree.removeAll(v);
return this;
}
static if(doUnittest) unittest
{
auto tms = new TreeMultiset;
tms.add([1, 2, 2, 3, 3, 4, 5]);
assert(tms.count(1) == 1);
assert(tms.count(2) == 2);
assert(tms.count(3) == 2);
tms.removeAll(2);
assert(tms.arrayEqual([1, 3, 3, 4, 5]));
tms.removeAll(10);
assert(tms.arrayEqual([1, 3, 3, 4, 5]));
tms.removeAll(3);
assert(tms.arrayEqual([1, 4, 5]));
}
/**
* duplicate this tree multiset
*/
TreeMultiset dup()
{
return new TreeMultiset(_tree);
}
/**
* get the most convenient element in the set. This is the element that
* would be iterated first. Therefore, calling remove(get()) is
* guaranteed to be less than an O(n) operation.
*/
@property inout(V) get() inout
{
return begin.front;
}
static if(doUnittest) unittest
{
auto tms = new TreeMultiset;
tms.add([1, 2, 2, 3, 3, 4, 5]);
assert(!std.algorithm.find([1, 2, 3, 4, 5], tms.get()).empty);
}
/**
* Remove the most convenient element from the set, and return its value.
* This is equivalent to remove(get()), except that only one lookup is
* performed.
*/
V take()
{
auto c = begin;
auto retval = c.front;
remove(c);
return retval;
}
static if(doUnittest) unittest
{
auto tms = new TreeMultiset;
V[] aa = [1, 2, 2, 3, 3, 4, 5];
tms.add(aa);
auto x = tms.take();
assert(!std.algorithm.find([1, 2, 3, 4, 5], x).empty);
// remove x from the original array, and check for equality
std.algorithm.partition!((V a) {return a == x;})(aa);
assert(tms.arrayEqual(aa[1..$]));
}
}
unittest
{
// declare the Link list types that should be unit tested.
TreeMultiset!ubyte tms1;
TreeMultiset!byte tms2;
TreeMultiset!ushort tms3;
TreeMultiset!short tms4;
TreeMultiset!uint tms5;
TreeMultiset!int tms6;
TreeMultiset!ulong tms7;
TreeMultiset!long tms8;
// ensure that reference types can be used
TreeMultiset!(uint*) al9;
class C {}
TreeMultiset!C al10;
}
|
D
|
// @file operator_overload.d
import std.stdio;
struct StructType{
int mData1;
int mData2;
this(const ref StructType rhs){
writeln("copy being made!");
mData1 = rhs.mData1;
mData2 = rhs.mData2;
}
// =
void opAssign(StructType rhs){
writeln("Assignment");
mData1 = rhs.mData1;
mData2 = rhs.mData2;
}
// ==
bool opEquals(StructType rhs){
writeln("Equality Test");
return (mData1 == rhs.mData1 &&
mData2 == rhs.mData2);
}
}
void main(){
// Struct literal
StructType s = StructType(15,7);
// Create second struct
StructType s1;
// Call opAssign
s1 = s;
writeln(s1.mData1);
writeln(s1.mData2);
// call opEqual
if(s1 == s){
writeln("s1 == s");
}
}
|
D
|
a single distinct event
a public disturbance
|
D
|
module sql.attributes;
public import std.traits;
public import std.meta;
//AliasSeq is such a bad name.
//I do much prefer Alias
//In addition the current Alias in
//std.meta is wierd, what would be the usecase?
alias Alias(T...) = T;
//When placed on a struct it signifies that the struct
//contains a description of a database.
//Unlike Table and Column attributes this attribute
//MUST be present on a database descriptor.
struct Database
{
//Name of the database
string name;
}
///When placed on a struct it signifies that the struct
///has a diffrent name than the struct name.
///
///Example:
///@Table("My Users")
///struct Users
///{
/// @Primary
/// int id;
/// ...
///}
///Note this attribute is only needed for complex table names
///e.g When the table name cannot be written as a standard
/// D structure identifier
///BUT for documentation it could be usefull to add it anyways.
struct Table
{
//Name of the table
string name;
}
///When placed on a field in a struct it signifies that the struct
///has a name that differs from the field name.
///
///Example:
///struct Users
///{
/// @Column("User Ids")
/// int id;
/// ...
///}
///Note this attribute is only needed for complex column names
///e.g When the column name cannot be written as a standard
/// D structure identifier.
///BUT for documentation it could be usefull to add it anyways.
struct Column
{
//Name of the column
string name;
}
///When placed on a field in a struct it signifies that the field
///references a key in another table.
///SEE template Foreign for usage.
struct Foreign()
{
string table;
string field;
}
///Helper template allowing the following syntax for foreign keys
///
///struct Users
///{
/// @Primary
/// int id;
/// ...
///}
///struct Products
///{
/// @Primary
/// int id;
/// string description;
/// ...
///}
///struct Purchased
///{
/// //This column references the Users.id column.
/// @Foreign!(Users.id)
/// int user;
///
/// //This column references the Users.id column.
/// @Foreign!(Products.id)
/// int product;
///
/// DateTime timeOfPurchase;
///}
///In the example the table Purchased references Users.id and Products.id
template Foreign(alias OtherKey)
{
alias parent = Alias!(__traits(parent, OtherKey));
enum table = __traits(identifier, parent);
enum field = __traits(identifier, OtherKey);
enum Foreign = .Foreign!()(table, field);
}
///When placed on a field in a struct it represents that this column
///is part of the primary key of the table.
///Example:
///struct User
///{
/// //This makes id the primary key for the User table
/// @Primary
/// int id;
///}
///
///struct UsingProducts
///{
/// //This column is part of the primary key.
/// @Primary
/// int user;
///
/// //So is this column.
/// @Primary
/// int product;
///}
enum Primary;
///When placed on a field in a struct it represents that each value
///in this column has to be unique.
enum Unique;
///When placed in a field in a struct it represents that values in this
///column cannot be null.
enum NotNull;
///When placed on a field in a struct it representat that the column will
///automatically get incremented when new rows are inserted.
enum AutoIncrement;
struct Length
{
size_t length;
}
//Represents the type VARCHAR in sql
//Adds length information of variable fields
//to strings.
struct Varchar(size_t N)
{
const(char)[] value;
alias value this;
}
//Helper template to see if a symbol has a value UDA.
template hasValueUDA(Items...) if(Items.length == 2)
{
alias T = Items[0];
alias UDA = Items[1];
alias UDAs = getUDAs!(T, UDA);
static if(__traits(compiles, (() {
auto x = UDAs[0];
})()))
{
//pragma(msg, "Has value: ", T);
enum hasValueUDA = true;
}
else
{
//pragma(msg, "Does not have value: ", T);
enum hasValueUDA = false;
}
}
alias isNamedTable(alias T) = hasValueUDA!(T, Table);
alias isNamedColumn(alias T) = hasValueUDA!(T, Column);
template getTables(T)
{
enum members = [__traits(allMembers, T)];
template helper(size_t idx)
{
static if(idx == members.length) {
alias helper = Alias!();
} else {
alias mem = Alias!(__traits(getMember, T, members[idx]));
static if(is(mem[0] == struct)) {
alias helper = Alias!(mem, helper!(idx + 1));
} else {
alias helper = helper!(idx + 1);
}
}
}
alias getTables = helper!(0);
}
template getTableName(alias T)
{
static if(isNamedTable!(T))
enum getTableName = getUDAs!(T, Table)[0].name;
else
enum getTableName = T.stringof;
}
template getColumnName(alias T)
{
static if(isNamedColumn!(T))
enum getColumnName = getUDAs!(T, Column)[0].name;
else
enum getColumnName = T.stringof;
}
template getDatabaseName(T)
{
enum getDatabaseName = getUDAs!(T, Database)[0].name;
}
|
D
|
/**
Wrapper streams which count the number of bytes or limit the stream based on the number of
transferred bytes.
Copyright: © 2012 RejectedSoftware e.K.
License: Subject to the terms of the MIT license, as written in the included LICENSE.txt file.
Authors: Sönke Ludwig
*/
module vibe.stream.counting;
public import vibe.core.stream;
import std.exception;
/**
Wraps an existing stream, limiting the amount of data that can be read.
*/
class LimitedInputStream : InputStream {
private {
InputStream m_input;
ulong m_sizeLimit;
bool m_silentLimit;
}
/** Constructs a limited stream from an existing input stream.
Params:
stream: the input stream to be wrapped
byte_limit: the maximum number of bytes readable from the constructed stream
silent_limit: if set, the stream will behave exactly like the original stream, but
will throw an exception as soon as the limit is reached.
*/
this(InputStream stream, ulong byte_limit, bool silent_limit = false)
{
assert(stream !is null);
m_input = stream;
m_sizeLimit = byte_limit;
m_silentLimit = silent_limit;
}
/// The stream that is wrapped by this one
@property inout(InputStream) sourceStream() inout { return m_input; }
@property bool empty() { return m_silentLimit ? m_input.empty : (m_sizeLimit == 0); }
@property ulong leastSize() { if( m_silentLimit ) return m_input.leastSize; return m_sizeLimit; }
@property bool dataAvailableForRead() { return m_input.dataAvailableForRead; }
void increment(ulong bytes)
{
if( bytes > m_sizeLimit ) onSizeLimitReached();
m_sizeLimit -= bytes;
}
const(ubyte)[] peek() { return m_input.peek(); }
void read(ubyte[] dst)
{
if (dst.length > m_sizeLimit) onSizeLimitReached();
m_input.read(dst);
m_sizeLimit -= dst.length;
}
protected void onSizeLimitReached() {
throw new LimitException("Size limit reached", m_sizeLimit);
}
}
/**
Wraps an existing output stream, counting the bytes that are written.
*/
class CountingOutputStream : OutputStream {
private {
ulong m_bytesWritten;
ulong m_writeLimit;
OutputStream m_out;
}
/** Constructs a new counting stream.
Params:
stream: The output stream to forward all writes to.
write_limit: Optional limit of bytes to write to the destination
stream. Writing past this limit will cause `write` to throw
an exception.
*/
this(OutputStream stream, ulong write_limit = ulong.max)
{
assert(stream !is null);
m_writeLimit = write_limit;
m_out = stream;
}
/// Returns the total number of bytes written.
@property ulong bytesWritten() const { return m_bytesWritten; }
/// The maximum number of bytes to write
@property ulong writeLimit() const { return m_writeLimit; }
/// ditto
@property void writeLimit(ulong value) { m_writeLimit = value; }
/** Manually increments the write counter without actually writing data.
*/
void increment(ulong bytes)
{
enforce(m_bytesWritten + bytes <= m_writeLimit, "Incrementing past end of output stream.");
m_bytesWritten += bytes;
}
void write(in ubyte[] bytes)
{
enforce(m_bytesWritten + bytes.length <= m_writeLimit, "Writing past end of output stream.");
m_out.write(bytes);
m_bytesWritten += bytes.length;
}
void write(InputStream stream, ulong nbytes = 0)
{
writeDefault(stream, nbytes);
}
void flush() { m_out.flush(); }
void finalize() { m_out.flush(); }
}
/**
Wraps an existing input stream, counting the bytes that are written.
*/
class CountingInputStream : InputStream {
private {
ulong m_bytesRead;
InputStream m_in;
}
this(InputStream stream)
{
assert(stream !is null);
m_in = stream;
}
@property ulong bytesRead() const { return m_bytesRead; }
@property bool empty() { return m_in.empty(); }
@property ulong leastSize() { return m_in.leastSize(); }
@property bool dataAvailableForRead() { return m_in.dataAvailableForRead; }
void increment(ulong bytes)
{
m_bytesRead += bytes;
}
const(ubyte)[] peek() { return m_in.peek(); }
void read(ubyte[] dst)
{
m_in.read(dst);
m_bytesRead += dst.length;
}
}
/**
Wraps an input stream and calls the given delegate once the stream is empty.
Note that this function will potentially block after each read operation to
see if the end has already been reached - this may take as long until either
new data has arrived or until the connection was closed.
The stream will also guarantee that the inner stream is not used after it
has been determined to be empty. It can thus be safely deleted once the
callback is invoked.
*/
class EndCallbackInputStream : InputStream {
private {
InputStream m_in;
bool m_eof = false;
void delegate() m_callback;
}
this(InputStream input, void delegate() callback)
{
m_in = input;
m_callback = callback;
checkEOF();
}
@property bool empty()
{
checkEOF();
return m_in is null;
}
@property ulong leastSize()
{
checkEOF();
if( m_in ) return m_in.leastSize();
return 0;
}
@property bool dataAvailableForRead()
{
if( !m_in ) return false;
return m_in.dataAvailableForRead;
}
const(ubyte)[] peek()
{
if( !m_in ) return null;
return m_in.peek();
}
void read(ubyte[] dst)
{
enforce(m_in !is null, "Reading past end of stream.");
m_in.read(dst);
checkEOF();
}
private void checkEOF()
{
if( !m_in ) return;
if( m_in.empty ){
m_in = null;
m_callback();
}
}
}
class LimitException : Exception {
private ulong m_limit;
this(string message, ulong limit, Throwable next = null, string file = __FILE__, int line = __LINE__)
{
super(message, next, file, line);
}
/// The byte limit of the stream that emitted the exception
@property ulong limit() const { return m_limit; }
}
|
D
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.