From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (kristaps@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id o66BAsp8006814 for ; Tue, 6 Jul 2010 07:10:54 -0400 (EDT) Received: (from kristaps@localhost) by krisdoz.my.domain (8.14.3/8.14.3/Submit) id o66BAsQA015268; Tue, 6 Jul 2010 07:10:54 -0400 (EDT) Date: Tue, 6 Jul 2010 07:10:54 -0400 (EDT) Message-Id: <201007061110.o66BAsQA015268@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: kristaps@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Brought function arguments and style in ine with term_word() in X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Brought function arguments and style in ine with term_word() in term.c to make sharing of TERMP_KEEP easier. Modified Files: -------------- mdocml: html.c Revision Data ------------- Index: html.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/html.c,v retrieving revision 1.103 retrieving revision 1.104 diff -Lhtml.c -Lhtml.c -u -p -r1.103 -r1.104 --- html.c +++ 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('['): -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv