mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-29 14:40:40 +03:00
Merge branch 'master' into merge-2.095
Conflicts: runtime/phobos
This commit is contained in:
commit
3eab44153a
2 changed files with 1 additions and 20 deletions
|
@ -1382,22 +1382,3 @@ DValue *DtoArgument(Parameter *fnarg, Expression *argexp) {
|
|||
|
||||
return arg;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
int binary(const char *p, const char **tab, int high) {
|
||||
int i = 0, j = high, k, l;
|
||||
do {
|
||||
k = (i + j) / 2;
|
||||
l = strcmp(p, tab[k]);
|
||||
if (!l) {
|
||||
return k;
|
||||
}
|
||||
if (l < 0) {
|
||||
j = k;
|
||||
} else {
|
||||
i = k + 1;
|
||||
}
|
||||
} while (i != j);
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue