diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-05 13:12:12 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-03-05 13:12:12 +0000 |
commit | c1fd7f502ac50e13a6185e829bdbd03b7d0a931c (patch) | |
tree | fd39f0c38c00a28528f560159ac5f5d2f9542128 /strings.c | |
parent | 6936c4e5a0bd4bddcfd7c9d08d801aba0415dbad (diff) | |
download | mandoc-c1fd7f502ac50e13a6185e829bdbd03b7d0a931c.tar.gz |
Cleaned up ctype functions (netbsd).
Fixed .Ex/.Rv -std usage.
Made Ar provide default value.
Diffstat (limited to 'strings.c')
-rw-r--r-- | strings.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -62,16 +62,16 @@ mdoc_isescape(const char *p) case ('e'): return(2); case ('*'): - if (0 == *++p || ! isgraph((int)*p)) + if (0 == *++p || ! isgraph((u_char)*p)) return(0); switch (*p) { case ('('): - if (0 == *++p || ! isgraph((int)*p)) + if (0 == *++p || ! isgraph((u_char)*p)) return(0); return(4); case ('['): for (c = 3, p++; *p && ']' != *p; p++, c++) - if ( ! isgraph((int)*p)) + if ( ! isgraph((u_char)*p)) break; return(*p == ']' ? c : 0); default: @@ -79,9 +79,9 @@ mdoc_isescape(const char *p) } return(3); case ('('): - if (0 == *++p || ! isgraph((int)*p)) + if (0 == *++p || ! isgraph((u_char)*p)) return(0); - if (0 == *++p || ! isgraph((int)*p)) + if (0 == *++p || ! isgraph((u_char)*p)) return(0); return(4); case ('['): @@ -91,7 +91,7 @@ mdoc_isescape(const char *p) } for (c = 3, p++; *p && ']' != *p; p++, c++) - if ( ! isgraph((int)*p)) + if ( ! isgraph((u_char)*p)) break; return(*p == ']' ? c : 0); |