Return to mandoc.c CVS log | Up to [local] / src / usr.bin / mandoc |
version 1.16, 2010/07/25 18:05:54 | version 1.17, 2010/08/18 02:38:40 | ||
---|---|---|---|
|
|
||
/* FALLTHROUGH */ | /* FALLTHROUGH */ | ||
case ('w'): | case ('w'): | ||
/* FALLTHROUGH */ | /* FALLTHROUGH */ | ||
case ('v'): | |||
/* FALLTHROUGH */ | |||
case ('S'): | case ('S'): | ||
/* FALLTHROUGH */ | /* FALLTHROUGH */ | ||
case ('R'): | case ('R'): | ||
|
|
||
term = '\''; | term = '\''; | ||
break; | break; | ||
#endif | #endif | ||
case ('h'): | |||
/* FALLTHROUGH */ | |||
case ('v'): | |||
/* FALLTHROUGH */ | |||
case ('s'): | case ('s'): | ||
if (ASCII_HYPH == *p) | if (ASCII_HYPH == *p) | ||
*p = '-'; | *p = '-'; | ||
if ('+' == *p || '-' == *p) | |||
i = 0; | |||
if ('+' == *p || '-' == *p) { | |||
p++; | p++; | ||
i = 1; | |||
} | |||
i = ('s' != *(p - 1)); | |||
switch (*p++) { | switch (*p++) { | ||
case ('('): | case ('('): | ||
len = 2; | len = 2; | ||
|
|
||
term = '\''; | term = '\''; | ||
break; | break; | ||
case ('0'): | case ('0'): | ||
i++; | i = 1; | ||
/* FALLTHROUGH */ | /* FALLTHROUGH */ | ||
default: | default: | ||
len = 1; | len = 1; | ||
|
|
||
if (ASCII_HYPH == *p) | if (ASCII_HYPH == *p) | ||
*p = '-'; | *p = '-'; | ||
if ('+' == *p || '-' == *p) { | if ('+' == *p || '-' == *p) { | ||
if (i++) | if (i) | ||
return(0); | return(0); | ||
p++; | p++; | ||
} | } | ||
if (0 == i) | |||
return(0); | |||
break; | break; | ||
#if 0 | #if 0 | ||
case ('Y'): | case ('Y'): |