gbranden pushed a commit to branch master
in repository groff.

commit af7b0f4a468cee55ba2500b6373af2ee63d3bf45
Author: G. Branden Robinson <g.branden.robin...@gmail.com>
AuthorDate: Thu Mar 20 00:07:53 2025 -0500

    src/roff/troff/input.h: Add macro dump lookup aid.
    
    Add comments corresponding to JSON-encoded representations of C0 and C1
    control code points that GNU troff uses its document/formatter debugging
    features, and which are needed for forthcoming `pm` macro/string/
    iversion dumping support.  (And existing device extension command
    dumping support, when something naughty gets into one.)
    
    This isn't as good as decoding them in the dump output, but their
    embedding in JSON string objects makes a good means of doing so
    non-obvious to me.
---
 src/roff/troff/input.h | 76 ++++++++++++++++++++++++++------------------------
 1 file changed, 39 insertions(+), 37 deletions(-)

diff --git a/src/roff/troff/input.h b/src/roff/troff/input.h
index ca0855991..b351ffaa4 100644
--- a/src/roff/troff/input.h
+++ b/src/roff/troff/input.h
@@ -21,47 +21,49 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>. */
 //
 // Except for the ones named `INPUT_`, they are not valid as input.
 
-const int ESCAPE_QUESTION = 015;
-const int BEGIN_TRAP = 016;
-const int END_TRAP = 017;
-const int PAGE_EJECTOR = 020;
-const int ESCAPE_NEWLINE = 021;
-const int ESCAPE_AMPERSAND = 022;
-const int ESCAPE_UNDERSCORE = 023;
-const int ESCAPE_BAR = 024;
-const int ESCAPE_CIRCUMFLEX = 025;
-const int ESCAPE_LEFT_BRACE = 026;
-const int ESCAPE_RIGHT_BRACE = 027;
-const int ESCAPE_LEFT_QUOTE = 030;
-const int ESCAPE_RIGHT_QUOTE = 031;
-const int ESCAPE_HYPHEN = 032;
-const int ESCAPE_BANG = 033;
-const int ESCAPE_c = 034;
-const int ESCAPE_e = 035;
-const int ESCAPE_PERCENT = 036;
-const int ESCAPE_SPACE = 037;
+const int ESCAPE_QUESTION = 015;       // \u000d
+const int BEGIN_TRAP = 016;            // \u000e
+const int END_TRAP = 017;              // \u000f
+const int PAGE_EJECTOR = 020;          // \u0010
+const int ESCAPE_NEWLINE = 021;                // \u0011
+const int ESCAPE_AMPERSAND = 022;      // \u0012
+const int ESCAPE_UNDERSCORE = 023;     // \u0013
+const int ESCAPE_BAR = 024;            // \u0014
+const int ESCAPE_CIRCUMFLEX = 025;     // \u0015
+const int ESCAPE_LEFT_BRACE = 026;     // \u0016
+const int ESCAPE_RIGHT_BRACE = 027;    // \u0017
+const int ESCAPE_LEFT_QUOTE = 030;     // \u0018
+const int ESCAPE_RIGHT_QUOTE = 031;    // \u0019
+const int ESCAPE_HYPHEN = 032;         // \u001a
+const int ESCAPE_BANG = 033;           // \u001b
+const int ESCAPE_c = 034;              // \u001c
+const int ESCAPE_e = 035;              // \u001d
+const int ESCAPE_PERCENT = 036;                // \u001e
+const int ESCAPE_SPACE = 037;          // \u001f
 
-const int INPUT_DELETE = 0177;
+const int INPUT_DELETE = 0177;         // \u007f
 
-const int TITLE_REQUEST = 0200;
-const int COPY_FILE_REQUEST = 0201;
-const int TRANSPARENT_FILE_REQUEST = 0202;
+const int TITLE_REQUEST = 0200;                        // \u0080
+const int COPY_FILE_REQUEST = 0201;            // \u0081
+const int TRANSPARENT_FILE_REQUEST = 0202;     // \u0082
 #ifdef COLUMN
-const int VJUSTIFY_REQUEST = 0203;
+const int VJUSTIFY_REQUEST = 0203;             // \u0083
 #endif /* COLUMN */
-const int ESCAPE_E = 0204;
-const int LAST_PAGE_EJECTOR = 0205;
-const int ESCAPE_RIGHT_PARENTHESIS = 0206;
-const int ESCAPE_TILDE = 0207;
-const int ESCAPE_COLON = 0210;
-const int PUSH_GROFF_MODE = 0211;
-const int PUSH_COMP_MODE = 0212;
-const int POP_GROFFCOMP_MODE = 0213;
-const int BEGIN_QUOTE = 0214;
-const int END_QUOTE = 0215;
-const int DOUBLE_QUOTE = 0216;
-const int INPUT_NO_BREAK_SPACE = 0240;
-const int INPUT_SOFT_HYPHEN= 0255;
+const int ESCAPE_E = 0204;                     // \u0084
+const int LAST_PAGE_EJECTOR = 0205;            // \u0085
+const int ESCAPE_RIGHT_PARENTHESIS = 0206;     // \u0086
+const int ESCAPE_TILDE = 0207;                 // \u0087
+const int ESCAPE_COLON = 0210;                 // \u0088
+const int PUSH_GROFF_MODE = 0211;              // \u0089
+const int PUSH_COMP_MODE = 0212;               // \u008a
+const int POP_GROFFCOMP_MODE = 0213;           // \u008b
+const int BEGIN_QUOTE = 0214;                  // \u008c
+const int END_QUOTE = 0215;                    // \u008d
+const int DOUBLE_QUOTE = 0216;                 // \u008e
+
+const int INPUT_NO_BREAK_SPACE = 0240;         // \u00a3
+
+const int INPUT_SOFT_HYPHEN = 0255;            // \u00ad
 
 extern void do_stroke_color(symbol);
 extern void do_fill_color(symbol);

_______________________________________________
groff-commit mailing list
groff-commit@gnu.org
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to