source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Double-up DECO_RESERVED switch branch for colours.
@ 2010-07-19  7:53 kristaps
  0 siblings, 0 replies; only message in thread
From: kristaps @ 2010-07-19  7:53 UTC (permalink / raw)
  To: source

Log Message:
-----------
Double-up DECO_RESERVED switch branch for colours.

Modified Files:
--------------
    mdocml:
        out.c

Revision Data
-------------
Index: out.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/out.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -Lout.c -Lout.c -u -p -r1.19 -r1.20
--- out.c
+++ out.c
@@ -218,24 +218,14 @@ a2roffdeco(enum roffdeco *d, const char 
 			break;
 		}
 		break;
-	case ('*'):
-		*d = DECO_RESERVED;
-		switch (wp[i++]) {
-		case ('('):
-			lim = 2;
-			break;
-		case ('['):
-			term = ']';
-			break;
-		default:
-			i--;
-			lim = 1;
-			break;
-		}
-		break;
 	case ('M'):
 		/* FALLTHROUGH */
 	case ('m'):
+		/* FALLTHROUGH */
+	case ('*'):
+		if ('*' == c)
+			*d = DECO_RESERVED;
+
 		switch (wp[i++]) {
 		case ('('):
 			lim = 2;
--
 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-19  7:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-19  7:53 mdocml: Double-up DECO_RESERVED switch branch for colours 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).