X-Git-Url: https://git.cameronkatri.com/mandoc.git/blobdiff_plain/7124f05f10769bae30b3b76cc9d89f104c9e2f0c..c6cc6d2cdc21391e0fed1b0e6fd715071bee1879:/term_ascii.c diff --git a/term_ascii.c b/term_ascii.c index 7c263cda..55877f42 100644 --- a/term_ascii.c +++ b/term_ascii.c @@ -1,6 +1,6 @@ -/* $Id: term_ascii.c,v 1.7 2010/06/30 12:27:55 kristaps Exp $ */ +/* $Id: term_ascii.c,v 1.10 2010/09/04 20:18:53 kristaps Exp $ */ /* - * Copyright (c) 2008, 2009 Kristaps Dzonsons + * Copyright (c) 2010 Kristaps Dzonsons * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -30,7 +30,7 @@ #include "term.h" #include "main.h" -static size_t ascii_hspan(const struct termp *, +static double ascii_hspan(const struct termp *, const struct roffsu *); static size_t ascii_width(const struct termp *, char); static void ascii_advance(struct termp *, size_t); @@ -104,6 +104,7 @@ static void ascii_letter(struct termp *p, char c) { + /* LINTED */ putchar(c); } @@ -146,7 +147,7 @@ ascii_advance(struct termp *p, size_t len) /* ARGSUSED */ -static size_t +static double ascii_hspan(const struct termp *p, const struct roffsu *su) { double r; @@ -180,12 +181,6 @@ ascii_hspan(const struct termp *p, const struct roffsu *su) break; } - /* Explicitly disallow negative values. */ - - if (r < 0.0) - r = 0.0; - - return((size_t)/* LINTED */ - r); + return(r); }