From 25b9ffe82ac5592b33241ae447d947f4dca24f7f Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Tue, 6 Jul 2010 11:10:53 +0000 Subject: Brought function arguments and style in ine with term_word() in term.c to make sharing of TERMP_KEEP easier. --- html.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'html.c') diff --git a/html.c b/html.c index bdf99e0c..f92c37a2 100644 --- a/html.c +++ b/html.c @@ -484,11 +484,11 @@ print_doctype(struct html *h) void -print_text(struct html *h, const char *p) +print_text(struct html *h, const char *word) { - if (*p && 0 == *(p + 1)) - switch (*p) { + if (word[0] && '\0' == word[1]) + switch (word[0]) { case('.'): /* FALLTHROUGH */ case(','): @@ -514,16 +514,16 @@ print_text(struct html *h, const char *p) if ( ! (h->flags & HTML_NOSPACE)) putchar(' '); - assert(p); - if ( ! print_encode(h, p, 0)) + assert(word); + if ( ! print_encode(h, word, 0)) h->flags &= ~HTML_NOSPACE; /* * Note that we don't process the pipe: the parser sees it as * punctuation, but we don't in terms of typography. */ - if (*p && 0 == *(p + 1)) - switch (*p) { + if (word[0] && '\0' == word[1]) + switch (word[0]) { case('('): /* FALLTHROUGH */ case('['): -- cgit