version 1.18, 2009/02/24 14:52:55 |
version 1.19, 2009/02/25 12:32:50 |
Line 62 mdoc_isescape(const char *p) |
|
Line 62 mdoc_isescape(const char *p) |
|
case ('e'): |
case ('e'): |
return(2); |
return(2); |
case ('('): |
case ('('): |
if (0 == *++p || ! isgraph(*p)) |
if (0 == *++p || ! isgraph((int)*p)) |
return(0); |
return(0); |
if (0 == *++p || ! isgraph(*p)) |
if (0 == *++p || ! isgraph((int)*p)) |
return(0); |
return(0); |
return(4); |
return(4); |
case ('['): |
case ('['): |
Line 74 mdoc_isescape(const char *p) |
|
Line 74 mdoc_isescape(const char *p) |
|
} |
} |
|
|
for (c = 3, p++; *p && ']' != *p; p++, c++) |
for (c = 3, p++; *p && ']' != *p; p++, c++) |
if ( ! isgraph(*p)) |
if ( ! isgraph((int)*p)) |
break; |
break; |
|
|
return(*p == ']' ? c : 0); |
return(*p == ']' ? c : 0); |