source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Brought function arguments and style in ine with term_word() in
@ 2010-07-06 11:10 kristaps
  0 siblings, 0 replies; only message in thread
From: kristaps @ 2010-07-06 11:10 UTC (permalink / raw)
  To: source

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-07-06 11:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-06 11:10 mdocml: Brought function arguments and style in ine with term_word() in kristaps

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).