aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/chars.c
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-05-14 17:54:42 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-05-14 17:54:42 +0000
commit46b6fb73529e79de5452e9d25e26a7c8b83bd79f (patch)
tree9fdb49fd81c23696e74be71a6af9c0ad9db52d88 /chars.c
parente3ef897e17cf74a686ec213e362a869d4a9b77f0 (diff)
downloadmandoc-46b6fb73529e79de5452e9d25e26a7c8b83bd79f.tar.gz
mandoc-46b6fb73529e79de5452e9d25e26a7c8b83bd79f.tar.zst
mandoc-46b6fb73529e79de5452e9d25e26a7c8b83bd79f.zip
Make character engine (-Tascii, -Tpdf, -Tps) ready for Unicode: make buffer
consist of type "int". This will take more work (especially in encode and friends), but this is a strong start. This commit also consists of some harmless lint fixes.
Diffstat (limited to 'chars.c')
-rw-r--r--chars.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/chars.c b/chars.c
index c33dedcf..6d9cf9d3 100644
--- a/chars.c
+++ b/chars.c
@@ -1,4 +1,4 @@
-/* $Id: chars.c,v 1.40 2011/05/01 08:38:56 kristaps Exp $ */
+/* $Id: chars.c,v 1.41 2011/05/14 17:54:42 kristaps Exp $ */
/*
* Copyright (c) 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org>
@@ -151,7 +151,8 @@ mchars_num2char(const char *p, size_t sz)
return('\0');
i = atoi(p);
- return(isprint(i) ? (char)i : '\0');
+ /* LINTED */
+ return(isprint(i) ? i : '\0');
}
/*