size_t
This commit is contained in:
@@ -65,7 +65,7 @@ class VM
|
|||||||
currentSlot = slots[slot];
|
currentSlot = slots[slot];
|
||||||
this.slot = slot;
|
this.slot = slot;
|
||||||
}
|
}
|
||||||
void directSlot(int start, Code[] code, int len, VMVariable[wstring] globalTable, Function[wstring] functions, DataTable gdt/*GNU Debugging Tools*/,
|
void directSlot(int start, Code[] code, sizediff_t len, VMVariable[wstring] globalTable, Function[wstring] functions, DataTable gdt/*GNU Debugging Tools*/,
|
||||||
int[wstring] globalLabel, DebugInfo dinfo)
|
int[wstring] globalLabel, DebugInfo dinfo)
|
||||||
{
|
{
|
||||||
this.pc = start;
|
this.pc = start;
|
||||||
@@ -82,7 +82,7 @@ class VM
|
|||||||
c.global[v.index] = Value(v.type);
|
c.global[v.index] = Value(v.type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void loadSlot(int slot, Code[] code, int len, VMVariable[wstring] globalTable, Function[wstring] functions, DataTable gdt/*GNU Debugging Tools*/,
|
void loadSlot(int slot, Code[] code, sizediff_t len, VMVariable[wstring] globalTable, Function[wstring] functions, DataTable gdt/*GNU Debugging Tools*/,
|
||||||
int[wstring] globalLabel, DebugInfo dinfo)
|
int[wstring] globalLabel, DebugInfo dinfo)
|
||||||
{
|
{
|
||||||
auto s = this.slots[slot];
|
auto s = this.slots[slot];
|
||||||
|
|||||||
@@ -221,7 +221,7 @@ class Compiler
|
|||||||
VMVariable[wstring] global;
|
VMVariable[wstring] global;
|
||||||
int[wstring] globalLabel;
|
int[wstring] globalLabel;
|
||||||
Function[wstring] functions;
|
Function[wstring] functions;
|
||||||
int globalIndex = 0;
|
sizediff_t globalIndex = 0;
|
||||||
void genCode(Code c)
|
void genCode(Code c)
|
||||||
{
|
{
|
||||||
code ~= c;
|
code ~= c;
|
||||||
|
|||||||
@@ -1503,7 +1503,7 @@ class PetitComputer
|
|||||||
if(SDL_HasClipboardText())
|
if(SDL_HasClipboardText())
|
||||||
{
|
{
|
||||||
char* cl = SDL_GetClipboardText();
|
char* cl = SDL_GetClipboardText();
|
||||||
string an = cast(string)(cl[0..std.c.string.strlen(cl)]);
|
string an = cast(string)(cl[0..core.stdc.string.strlen(cl)]);
|
||||||
ks = an.to!wstring;
|
ks = an.to!wstring;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user