* src/preproc/eqn/main.cpp: Define EQ and EN if they are not already
defined, to appease "groff -wmac".
* src/preproc/pic/main.cpp: Likewise for PS and PE.

Fixes: http://bugs.debian.org/495713
---
 ChangeLog                | 8 ++++++++
 src/preproc/eqn/main.cpp | 2 ++
 src/preproc/pic/main.cpp | 4 ++++
 3 files changed, 14 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index abf7534..2953608 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2014-01-02  Colin Watson  <cjwat...@debian.org>
+
+       * src/preproc/eqn/main.cpp: Define EQ and EN if they are not already
+       defined, to appease "groff -wmac".
+       * src/preproc/pic/main.cpp: Likewise for PS and PE.
+
+       Fixes: http://bugs.debian.org/495713
+
 2013-12-23  Bernd Warken  <groff-bernd.warken...@web.de>
 
        groff/src/roff/groff/groff.cpp: add groff option `-G' to the
diff --git a/src/preproc/eqn/main.cpp b/src/preproc/eqn/main.cpp
index 167fb4e..79b8565 100644
--- a/src/preproc/eqn/main.cpp
+++ b/src/preproc/eqn/main.cpp
@@ -374,6 +374,8 @@ int main(int argc, char **argv)
     }
   init_table(device);
   init_char_table();
+  printf(".if !dEQ .ds EQ\n"
+        ".if !dEN .ds EN\n");
   if (output_format == troff) {
     printf(".if !'\\*(.T'%s' "
           ".if !'\\*(.T'html' "        // the html device uses `-Tps' to render
diff --git a/src/preproc/pic/main.cpp b/src/preproc/pic/main.cpp
index f242da0..f4d0fbe 100644
--- a/src/preproc/pic/main.cpp
+++ b/src/preproc/pic/main.cpp
@@ -616,7 +616,11 @@ int main(int argc, char **argv)
     out = make_fig_output();
   else
 #endif
+  {
     out = make_troff_output();
+    printf(".if !dPS .ds PS\n"
+          ".if !dPE .ds PE\n");
+  }
 #ifdef FIG_SUPPORT
   if (whole_file_flag) {
     if (optind >= argc)
-- 
1.8.5.2

Reply via email to