private
{
import util.string;
- import stdc.ctype;
- import stdc.stdio;
- import stdc.string;
- import stdc.stdlib;
+ import core.stdc.ctype;
+ import core.stdc.stdio;
+ import core.stdc.string;
+ import core.stdc.stdlib;
}
extern (C):
static Symbol** psymbols;
static uint nsymbols; // number of symbols
-static char[] trace_logfilename = "trace.log";
+static string trace_logfilename = "trace.log";
static FILE* fplog;
-static char[] trace_deffilename = "trace.def";
+static string trace_deffilename = "trace.def";
static FILE* fpdef;
// 0 success
// !=0 failure
-int trace_setlogfilename(char[] name)
+int trace_setlogfilename(string name)
{
trace_logfilename = name;
return 0;
// 0 success
// !=0 failure
-int trace_setdeffilename(char[] name)
+int trace_setdeffilename(string name)
{
trace_deffilename = name;
return 0;
//////////////////////////////////////
// Qsort() comparison routine for array of pointers to SymPair's.
-static int sympair_cmp(void* e1, void* e2)
+static int sympair_cmp(in void* e1, in void* e2)
{ SymPair** psp1;
SymPair** psp2;
//////////////////////////////////////
// Qsort() comparison routine for array of pointers to Symbol's.
-static int symbol_cmp(void* e1, void* e2)
+static int symbol_cmp(in void* e1, in void* e2)
{ Symbol** ps1;
Symbol** ps2;
timer_t diff;
default:
break;
}
- buf[i] = c;
+ buf[i] = cast(char)c;
i++;
}
L1: