From 200e43749bd89f28c28647ce1c2736de721d6de8 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Tue, 17 May 2011 11:19:45 +0000 Subject: Clean-ups in -T[x]html: inline print_num(), as it was just a single conditional; same for print_xmltype() and print_doctype(), same reason; make bufncat() be static, as it was only being called from html.c; have bufcat() simply call through to strlcat(). Finally, assert() whenever we truncate. Also rename buffmt() -> bufcat_fmt() to differentiate from buffmt_man et al., which do not concatenate. --- html.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'html.h') diff --git a/html.h b/html.h index 35fb6c67..2fc63316 100644 --- a/html.h +++ b/html.h @@ -1,4 +1,4 @@ -/* $Id: html.h,v 1.42 2011/05/14 16:28:23 kristaps Exp $ */ +/* $Id: html.h,v 1.43 2011/05/17 11:19:45 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * @@ -147,11 +147,10 @@ void bufcat_su(struct html *, const char *, void buffmt_man(struct html *, const char *, const char *); void buffmt_includes(struct html *, const char *); -void buffmt(struct html *, const char *, ...); +void bufcat_fmt(struct html *, const char *, ...); void bufcat(struct html *, const char *); void bufcat_style(struct html *, const char *, const char *); -void bufncat(struct html *, const char *, size_t); void bufinit(struct html *); void html_idcat(char *, const char *, int); -- cgit v1.2.3