groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 01/18: grn(1): Note an oddity of the Gremlin file format.


From: G. Branden Robinson
Subject: [groff] 01/18: grn(1): Note an oddity of the Gremlin file format.
Date: Fri, 20 Aug 2021 06:25:18 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit a6db598caef6824a117e989ba130a37d80643175
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Tue Aug 17 00:05:41 2021 +1000

    grn(1): Note an oddity of the Gremlin file format.
    
    Observed while root-causing Savannah #61043.
---
 src/preproc/grn/grn.1.man | 7 ++++---
 src/preproc/grn/hdb.cpp   | 3 +--
 src/preproc/grn/main.cpp  | 2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/preproc/grn/grn.1.man b/src/preproc/grn/grn.1.man
index c7b9e0e..8de1b73 100644
--- a/src/preproc/grn/grn.1.man
+++ b/src/preproc/grn/grn.1.man
@@ -760,7 +760,7 @@ separated by a single space.
 .
 The number is a count of the number of characters in the string.
 .
-This information is only used for text elements,
+This information is used only for text elements,
 and contains the text string.
 .
 There can be spaces inside the text.
@@ -768,8 +768,9 @@ There can be spaces inside the text.
 For arcs,
 curves,
 and vectors,
-this line of the element contains the string
-.RB \[lq] 0 \[rq].
+the character count is zero
+.RB ( 0 ),
+followed by exactly one space before the newline.
 .
 .
 .\" ====================================================================
diff --git a/src/preproc/grn/hdb.cpp b/src/preproc/grn/hdb.cpp
index c867fea..44a822a 100644
--- a/src/preproc/grn/hdb.cpp
+++ b/src/preproc/grn/hdb.cpp
@@ -23,7 +23,6 @@
 
 /* imports from main.cpp */
 
-extern int linenum;            /* current line number in input file */
 extern char gremlinfile[];     /* name of file currently reading */
 extern int SUNFILE;            /* TRUE if SUN gremlin file */
 extern int compatibility_flag; /* TRUE if in compatibility mode */
@@ -38,7 +37,7 @@ extern POINT *PTMakePoint(double x, double y, POINT ** 
pplist);
 
 int DBGetType(char *s);
 
-long lineno = 0;
+static long lineno = 0;                /* line number of gremlin file */
 
 /*
  * This routine returns a pointer to an initialized database element
diff --git a/src/preproc/grn/main.cpp b/src/preproc/grn/main.cpp
index 1a940bb..3a2e332 100644
--- a/src/preproc/grn/main.cpp
+++ b/src/preproc/grn/main.cpp
@@ -224,7 +224,7 @@ int ybottom;                /* so not to convert each time 
they're used */
 int xleft;
 int xright;
 
-int linenum = 0;               /* line number of input file */
+static int linenum = 0;                /* line number of troff input file */
 char inputline[MAXINLINE];     /* spot to filter through the file */
 char *c1 = inputline;          /* c1, c2, and c3 will be used to */
 char *c2 = inputline + 1;      /* hunt for lines that begin with */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]