gbranden pushed a commit to branch master
in repository groff.

commit e6ed8857b0d6bc85f48985a58df45027632d6ecd
Author: G. Branden Robinson <[email protected]>
AuthorDate: Mon Nov 23 11:11:40 2026 -0600

    src/roff/troff/env.cpp: Annotate.
---
 src/roff/troff/env.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
index 220a3273b..1a2c105eb 100644
--- a/src/roff/troff/env.cpp
+++ b/src/roff/troff/env.cpp
@@ -3953,6 +3953,7 @@ static void environment_switch_request() // .ev
     return;
   }
   if (has_arg()) {
+    // Push environment named in argument onto the stack.
     symbol nm = read_long_identifier();
     if (nm.is_null()) {
       skip_line();
@@ -3968,11 +3969,14 @@ static void environment_switch_request() // .ev
     curenv = e;
   }
   else {
+    // Pop environment stack.
     if (env_stack == 0 /* nullptr */) {
       error("cannot pop the only environment in the stack");
       skip_line();
       return;
     }
+    // XXX: Why are these 3 properties stashed in the environment if we
+    // always override them when popping?
     bool seen_space = curenv->seen_space;
     bool seen_eol   = curenv->seen_eol;
     bool suppress_next_eol = curenv->suppress_next_eol;

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to