version 1.12, 2009/10/27 23:59:43 |
version 1.13, 2013/11/28 18:24:55 |
|
|
if (sscanf(pos, "%d", &(col->num)) != 1) |
if (sscanf(pos, "%d", &(col->num)) != 1) |
errx(2, "missing field number"); |
errx(2, "missing field number"); |
pos++; |
pos++; |
while (isdigit(*pos)) |
while (isdigit((u_char)*pos)) |
pos++; |
pos++; |
if (col->num <= 0 && !(col->num == 0 && col == &(cur_fld->tcol))) |
if (col->num <= 0 && !(col->num == 0 && col == &(cur_fld->tcol))) |
errx(2, "field numbers must be positive"); |
errx(2, "field numbers must be positive"); |
|
|
if (sscanf(pos, "%d", &(col->indent)) != 1) |
if (sscanf(pos, "%d", &(col->indent)) != 1) |
errx(2, "missing offset"); |
errx(2, "missing offset"); |
pos++; |
pos++; |
while (isdigit(*pos)) |
while (isdigit((u_char)*pos)) |
pos++; |
pos++; |
if (&cur_fld->icol == col) |
if (&cur_fld->icol == col) |
col->indent--; |
col->indent--; |
|
|
errx(2, "bad field specification"); |
errx(2, "bad field specification"); |
bufp += n; |
bufp += n; |
|
|
if (argv[i+1] && |
if (argv[i+1] && argv[i+1][0] == '-' && |
argv[i+1][0] == '-' && isdigit(argv[i+1][1])) { |
isdigit((u_char)argv[i+1][1])) { |
p = argv[i+1] + 1; |
p = argv[i+1] + 1; |
w = strtol(p, &ep, 10); |
w = strtol(p, &ep, 10); |
if (ep == p || w < 0 || |
if (ep == p || w < 0 || |
|
|
Rascii[i] = 255 - i + 1; |
Rascii[i] = 255 - i + 1; |
else |
else |
Rascii[i] = 255 - i; |
Rascii[i] = 255 - i; |
if (islower(i)) { |
if (islower((u_char)i)) { |
Ftable[i] = Ftable[i- ('a' -'A')]; |
Ftable[i] = Ftable[i- ('a' -'A')]; |
RFtable[i] = RFtable[i - ('a' - 'A')]; |
RFtable[i] = RFtable[i - ('a' - 'A')]; |
} else if (REC_D>= 'A' && REC_D < 'Z' && i < 'a' && i > REC_D) { |
} else if (REC_D>= 'A' && REC_D < 'Z' && i < 'a' && i > REC_D) { |
|
|
RFtable[i] = Rascii[i]; |
RFtable[i] = Rascii[i]; |
} |
} |
alltable[i] = 1; |
alltable[i] = 1; |
if (i == '\n' || isprint(i)) |
if (i == '\n' || isprint((u_char)i)) |
itable[i] = 1; |
itable[i] = 1; |
else itable[i] = 0; |
else itable[i] = 0; |
if (i == '\n' || i == '\t' || i == ' ' || isalnum(i)) |
if (i == '\n' || i == '\t' || i == ' ' || isalnum((u_char)i)) |
dtable[i] = 1; |
dtable[i] = 1; |
else dtable[i] = 0; |
else dtable[i] = 0; |
} |
} |