version 1.23, 2010/07/18 17:00:26 |
version 1.25, 2010/07/21 20:35:03 |
Line 48 mandoc_special(char *p) |
|
Line 48 mandoc_special(char *p) |
|
p++; |
p++; |
|
|
switch (*p++) { |
switch (*p++) { |
|
#if 0 |
|
case ('Z'): |
|
/* FALLTHROUGH */ |
|
case ('X'): |
|
/* FALLTHROUGH */ |
|
case ('x'): |
|
/* FALLTHROUGH */ |
|
case ('w'): |
|
/* FALLTHROUGH */ |
|
case ('v'): |
|
/* FALLTHROUGH */ |
|
case ('S'): |
|
/* FALLTHROUGH */ |
|
case ('R'): |
|
/* FALLTHROUGH */ |
|
case ('o'): |
|
/* FALLTHROUGH */ |
|
case ('N'): |
|
/* FALLTHROUGH */ |
|
case ('l'): |
|
/* FALLTHROUGH */ |
|
case ('L'): |
|
/* FALLTHROUGH */ |
|
case ('H'): |
|
/* FALLTHROUGH */ |
|
case ('h'): |
|
/* FALLTHROUGH */ |
|
case ('D'): |
|
/* FALLTHROUGH */ |
|
case ('C'): |
|
/* FALLTHROUGH */ |
|
case ('b'): |
|
/* FALLTHROUGH */ |
|
case ('B'): |
|
/* FALLTHROUGH */ |
|
case ('a'): |
|
/* FALLTHROUGH */ |
|
case ('A'): |
|
if (*p++ != '\'') |
|
return(0); |
|
term = '\''; |
|
break; |
|
#endif |
case ('s'): |
case ('s'): |
if (ASCII_HYPH == *p) |
if (ASCII_HYPH == *p) |
*p = '-'; |
*p = '-'; |
Line 83 mandoc_special(char *p) |
|
Line 126 mandoc_special(char *p) |
|
if (0 == i) |
if (0 == i) |
return(0); |
return(0); |
break; |
break; |
|
#if 0 |
|
case ('Y'): |
|
/* FALLTHROUGH */ |
|
case ('V'): |
|
/* FALLTHROUGH */ |
|
case ('$'): |
|
/* FALLTHROUGH */ |
|
case ('n'): |
|
/* FALLTHROUGH */ |
|
case ('k'): |
|
/* FALLTHROUGH */ |
|
#endif |
|
case ('M'): |
|
/* FALLTHROUGH */ |
|
case ('m'): |
|
/* FALLTHROUGH */ |
case ('f'): |
case ('f'): |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |
case ('F'): |
case ('F'): |
Line 117 mandoc_special(char *p) |
|
Line 176 mandoc_special(char *p) |
|
for ( ; *p && term != *p; p++) |
for ( ; *p && term != *p; p++) |
if (ASCII_HYPH == *p) |
if (ASCII_HYPH == *p) |
*p = '-'; |
*p = '-'; |
return(*p ? p - sv : 0); |
return(*p ? (int)(p - sv) : 0); |
} |
} |
|
|
for (i = 0; *p && i < len; i++, p++) |
for (i = 0; *p && i < len; i++, p++) |
if (ASCII_HYPH == *p) |
if (ASCII_HYPH == *p) |
*p = '-'; |
*p = '-'; |
return(i == len ? p - sv : 0); |
return(i == len ? (int)(p - sv) : 0); |
} |
} |
|
|
|
|
Line 255 mandoc_eos(const char *p, size_t sz, int enclosed) |
|
Line 314 mandoc_eos(const char *p, size_t sz, int enclosed) |
|
*/ |
*/ |
|
|
found = 0; |
found = 0; |
for (q = p + sz - 1; q >= p; q--) { |
for (q = p + (int)sz - 1; q >= p; q--) { |
switch (*q) { |
switch (*q) { |
case ('\"'): |
case ('\"'): |
/* FALLTHROUGH */ |
/* FALLTHROUGH */ |