shithub: neatroff

Download patch

ref: f476d3ec69509fc637ec5c2f5f57980a4771b4fa
parent: dc62cd071e7829e8837497aaa64316430a827c64
author: Ali Gholami Rudi <ali@rudi.ir>
date: Tue Jul 23 18:46:31 EDT 2013

roff: improve some of the comments

--- a/ren.c
+++ b/ren.c
@@ -14,8 +14,8 @@
 	int tpos;		/* diversion trap position */
 	int treg;		/* diversion trap register */
 	int dl;			/* diversion width */
-	int prev_d;		/* previous \(.d value */
-	int prev_h;		/* previous \(.h value */
+	int prev_d;		/* previous \n(.d value */
+	int prev_h;		/* previous \n(.h value */
 	int prev_mk;		/* previous .mk internal register */
 	int prev_ns;		/* previous .ns value */
 };
--- a/roff.h
+++ b/roff.h
@@ -28,8 +28,8 @@
 #define MAXFRAC		100000	/* maximum value of the fractional part */
 
 /* escape sequences */
-#define ESC_Q	"bCDhHlLNoSvwxX"	/* quoted escape sequences */
-#define ESC_P	"*fgkmns"		/* 1 or 2-char escape sequences */
+#define ESC_Q	"bCDhHlLNoSvwxX"	/* \X'ccc' quoted escape sequences */
+#define ESC_P	"*fgkmns"		/* \Xc \X(cc \X[ccc] escape sequences */
 
 #define MIN(a, b)	((a) < (b) ? (a) : (b))
 #define MAX(a, b)	((a) < (b) ? (b) : (a))