diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-21 15:21:13 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2011-07-21 15:21:13 +0000 |
commit | 3ee412a268eff0c9e52bb141dc3289eda00a6d53 (patch) | |
tree | c7806e338a7f518f1e0d02ab42c28e4ce822a405 /chars.c | |
parent | 610da288ad1c36332f5bc333692f49e2326fa30d (diff) | |
download | mandoc-3ee412a268eff0c9e52bb141dc3289eda00a6d53.tar.gz mandoc-3ee412a268eff0c9e52bb141dc3289eda00a6d53.tar.zst mandoc-3ee412a268eff0c9e52bb141dc3289eda00a6d53.zip |
Support `size' constructs in eqn.7. Generalise mandoc_strontou to this
effect.
Diffstat (limited to 'chars.c')
-rw-r--r-- | chars.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $Id: chars.c,v 1.47 2011/07/07 06:41:50 kristaps Exp $ */ +/* $Id: chars.c,v 1.48 2011/07/21 15:21:13 kristaps Exp $ */ /* * Copyright (c) 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011 Ingo Schwarze <schwarze@openbsd.org> @@ -111,7 +111,7 @@ mchars_num2char(const char *p, size_t sz) { int i; - if ((i = mandoc_strntou(p, sz, 10)) < 0) + if ((i = mandoc_strntoi(p, sz, 10)) < 0) return('\0'); return(isprint(i) ? i : '\0'); } @@ -121,7 +121,7 @@ mchars_num2uc(const char *p, size_t sz) { int i; - if ((i = mandoc_strntou(p, sz, 16)) < 0) + if ((i = mandoc_strntoi(p, sz, 16)) < 0) return('\0'); /* FIXME: make sure we're not in a bogus range. */ return(i > 0x80 && i <= 0x10FFFF ? i : '\0'); |