fixed -I option
This commit is contained in:
parent
56858bb480
commit
266d247470
|
@ -177,21 +177,14 @@ deleted, is now a debug-flag
|
||||||
register char *new = text;
|
register char *new = text;
|
||||||
|
|
||||||
if (++inc_total > inc_max) {
|
if (++inc_total > inc_max) {
|
||||||
char **n = (char **)
|
inctable = (char **)
|
||||||
Malloc((10+inc_max)*sizeof(char *));
|
Realloc(inctable,(inc_max+=10)*sizeof(char *));
|
||||||
for (i = 0; i < inc_max; i++) {
|
|
||||||
n[i] = inctable[i];
|
|
||||||
}
|
|
||||||
free((char *) inctable);
|
|
||||||
inctable = n;
|
|
||||||
inc_max += 10;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
i = inc_pos++;
|
for (i = inc_pos++; i <= inc_total; i++) {
|
||||||
while (new) {
|
|
||||||
char *tmp = inctable[i];
|
char *tmp = inctable[i];
|
||||||
|
|
||||||
inctable[i++] = new;
|
inctable[i] = new;
|
||||||
new = tmp;
|
new = tmp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -131,20 +131,12 @@ DoOption(text)
|
||||||
register char *new = text;
|
register char *new = text;
|
||||||
|
|
||||||
if (++nDEF > mDEF) {
|
if (++nDEF > mDEF) {
|
||||||
char **n = (char **)
|
DEFPATH = (char **)
|
||||||
Malloc((unsigned)((10+mDEF)*sizeof(char *)));
|
Realloc(DEFPATH,(mDEF+=10)*sizeof(char *));
|
||||||
|
|
||||||
for (i = 0; i < mDEF; i++) {
|
|
||||||
n[i] = DEFPATH[i];
|
|
||||||
}
|
|
||||||
free((char *) DEFPATH);
|
|
||||||
DEFPATH = n;
|
|
||||||
mDEF += 10;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
i = ndirs++;
|
for (i = ndirs++; i <= nDEF; i++) {
|
||||||
while (new) {
|
char *tmp = DEFPATH[i];
|
||||||
register char *tmp = DEFPATH[i];
|
|
||||||
|
|
||||||
DEFPATH[i++] = new;
|
DEFPATH[i++] = new;
|
||||||
new = tmp;
|
new = tmp;
|
||||||
|
|
|
@ -89,21 +89,13 @@ do_option(text)
|
||||||
register char *new = text;
|
register char *new = text;
|
||||||
|
|
||||||
if (++inc_total > inc_max) {
|
if (++inc_total > inc_max) {
|
||||||
char **n = (char **)
|
inctable = (char **)
|
||||||
Malloc((10 + inc_max) * sizeof(char *));
|
Realloc(inctable,(inc_max+=10)*sizeof(char *));
|
||||||
|
|
||||||
for (i = 0; i < inc_max; i++) {
|
|
||||||
n[i] = inctable[i];
|
|
||||||
}
|
|
||||||
free((char *) inctable);
|
|
||||||
inctable = n;
|
|
||||||
inc_max += 10;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
i = inc_pos++;
|
for(i = inc_pos++; i <= inc_total; i++) {
|
||||||
while (new) {
|
char *tmp = inctable[i];
|
||||||
register char *tmp = inctable[i];
|
|
||||||
|
|
||||||
inctable[i++] = new;
|
inctable[i++] = new;
|
||||||
new = tmp;
|
new = tmp;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue