size_t使うように
This commit is contained in:
@@ -67,7 +67,7 @@ class BuiltinFunctions
|
|||||||
{
|
{
|
||||||
this.func ~= func;
|
this.func ~= func;
|
||||||
}
|
}
|
||||||
BuiltinFunction overloadResolution(int argc, int outargc)
|
BuiltinFunction overloadResolution(size_t argc, size_t outargc)
|
||||||
{
|
{
|
||||||
BuiltinFunction va;
|
BuiltinFunction va;
|
||||||
//とりあえず引数の数で解決させる,というよりコンパイル時に型を取得する方法がない
|
//とりあえず引数の数で解決させる,というよりコンパイル時に型を取得する方法がない
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import otya.smilebasic.systemvariable;
|
|||||||
import std.stdio;
|
import std.stdio;
|
||||||
class DebugInfo
|
class DebugInfo
|
||||||
{
|
{
|
||||||
int old;
|
sizediff_t old;
|
||||||
std.container.Array!SourceLocation location;
|
std.container.Array!SourceLocation location;
|
||||||
this()
|
this()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -387,9 +387,9 @@ class Parser
|
|||||||
wstring getLine(SourceLocation loc)
|
wstring getLine(SourceLocation loc)
|
||||||
{
|
{
|
||||||
import std.string;
|
import std.string;
|
||||||
int mae = code[0 .. loc.pos2].lastIndexOf('\n');
|
auto mae = code[0 .. loc.pos2].lastIndexOf('\n');
|
||||||
mae++;
|
mae++;
|
||||||
int ushiro = code[mae..$].indexOf('\n');
|
auto ushiro = code[mae..$].indexOf('\n');
|
||||||
if(ushiro == -1) ushiro = code.length;
|
if(ushiro == -1) ushiro = code.length;
|
||||||
return code[mae .. mae + ushiro];
|
return code[mae .. mae + ushiro];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -115,4 +115,4 @@ class Projects
|
|||||||
contents = readText(path).to!wstring;
|
contents = readText(path).to!wstring;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user