groff-commit
[Top][All Lists]
Advanced

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

[groff] 13/14: [troff]: Drop redundant `do_divert()` declaration.


From: G. Branden Robinson
Subject: [groff] 13/14: [troff]: Drop redundant `do_divert()` declaration.
Date: Wed, 1 Dec 2021 13:06:18 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit 74b60f260c597732bd0b58f72a6639157a96132e
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Nov 27 23:20:35 2021 +1100

    [troff]: Drop redundant `do_divert()` declaration.
    
    * src/roff/troff/env.h: Do it.
    
    Fixes <https://savannah.gnu.org/bugs/?61433>.  Thanks to Bjarni Ingi
    Gislason for the report.
    
    Also update editor aid comments; drop old style Emacs file-local
    variable setting.
---
 ChangeLog            | 9 +++++++++
 src/roff/troff/div.h | 7 ++++++-
 src/roff/troff/env.h | 9 ++++++---
 3 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index eaf570b..4e8dfe8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2021-11-27  G. Branden Robinson <g.branden.robinson@gmail.com>
 
+       [troff]: Drop redundant `do_divert()` declaration.
+
+       * src/roff/troff/env.h: Do it.
+
+       Fixes <https://savannah.gnu.org/bugs/?61433>.  Thanks to Bjarni
+       Ingi Gislason for the report.
+
+2021-11-27  G. Branden Robinson <g.branden.robinson@gmail.com>
+
        [troff]: Remove `DEBUGGING` preprocessor cruft.
 
        * src/roff/troff/input.cpp:
diff --git a/src/roff/troff/div.h b/src/roff/troff/div.h
index f39601e..4e03571 100644
--- a/src/roff/troff/div.h
+++ b/src/roff/troff/div.h
@@ -1,4 +1,3 @@
-// -*- C++ -*-
 /* Copyright (C) 1989-2020 Free Software Foundation, Inc.
      Written by James Clark (jjc@jclark.com)
 
@@ -168,3 +167,9 @@ void blank_line();
 void begin_page();
 
 extern void cleanup_and_exit(int);
+
+// Local Variables:
+// fill-column: 72
+// mode: C++
+// End:
+// vim: set cindent noexpandtab shiftwidth=2 textwidth=72:
diff --git a/src/roff/troff/env.h b/src/roff/troff/env.h
index 0c8b8b8..dddf1a1 100644
--- a/src/roff/troff/env.h
+++ b/src/roff/troff/env.h
@@ -1,4 +1,3 @@
-// -*- C++ -*-
 /* Copyright (C) 1989-2020 Free Software Foundation, Inc.
      Written by James Clark (jjc@jclark.com)
 
@@ -140,8 +139,6 @@ void title();
 void widow_control_request();
 #endif /* WIDOW_CONTROL */
 
-void do_divert(int append, int boxing);
-
 class environment {
   int dummy;                   // dummy environment used for \w
   hunits prev_line_length;
@@ -415,3 +412,9 @@ extern symbol default_family;
 extern int translate_space_to_dummy;
 
 extern unsigned char hpf_code_table[];
+
+// Local Variables:
+// fill-column: 72
+// mode: C++
+// End:
+// vim: set cindent noexpandtab shiftwidth=2 textwidth=72:



reply via email to

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