groff-commit
[Top][All Lists]
Advanced

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

[groff] 01/01: hdtbl/examples/common.roff: remove more dead code, time i


From: Ingo Schwarze
Subject: [groff] 01/01: hdtbl/examples/common.roff: remove more dead code, time is no longer used
Date: Thu, 9 Aug 2018 17:35:21 -0400 (EDT)

schwarze pushed a commit to branch master
in repository groff.

commit a519a612a98f0ef9a570242bfd85984d22b5864f
Author: Ingo Schwarze <address@hidden>
Date:   Thu Aug 9 23:34:10 2018 +0200

    hdtbl/examples/common.roff: remove more dead code, time is no longer used
    
    Since commit c675115c on Aug 4, 2018, date and time are no longer used
    in the build.  This allows deleting more code from the hdtbl examples.
    Reported by Bjarni Ingi Gislason in http://savannah.gnu.org/bugs/?54461.
---
 contrib/hdtbl/ChangeLog            |  7 +++++++
 contrib/hdtbl/examples/common.roff | 25 +++++--------------------
 2 files changed, 12 insertions(+), 20 deletions(-)

diff --git a/contrib/hdtbl/ChangeLog b/contrib/hdtbl/ChangeLog
index ece3f0a..cb53323 100644
--- a/contrib/hdtbl/ChangeLog
+++ b/contrib/hdtbl/ChangeLog
@@ -1,5 +1,12 @@
 2018-08-09  Ingo Schwarze  <address@hidden>
 
+       * examples/common.roff: Remove more dead code
+         since the date and time are no longer used.
+
+       Reported by Bjarni Ingi Gislason in Savannah bug #54461.
+
+2018-08-09  Ingo Schwarze  <address@hidden>
+
        * examples/common.roff, examples/col_rowspan_colors.roff,
          examples/short_reference.roff: do forgotten renamings .pv -> .t*pv
 
diff --git a/contrib/hdtbl/examples/common.roff 
b/contrib/hdtbl/examples/common.roff
index 3d5f941..f7d1f6e 100644
--- a/contrib/hdtbl/examples/common.roff
+++ b/contrib/hdtbl/examples/common.roff
@@ -177,32 +177,16 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>.
 .\"            1..2147483398 for 'seed1' and 'seed2', respectively
 .\"            (the macro applies a modulo operation to assure this
 .\"            range).  If 'random-seed' isn't called the registers
-.\"            'seconds', 'minutes', 'hours', 'dy', 'mo', 'year', and
-.\"            '$$' are used to compute it.
+.\"            start at some constant, arbitrary values.
 .\"
 .\"            The used generator is presented in L'Ecuyer's 1988 paper
 .\"            'Efficient and Portable Combined Random Number
 .\"            Generators', which combines two Multiplicative Linear
 .\"            Congruential Generators (MLCGs) to achieve a period of
 .\"            2.3*10^18.
-.af hours 00
-.af minutes 00
-.af seconds 00
-.af year 0000
-.af mo 00
-.af dy 00
-.
-.\" Since this just generates example output, we don't need good randomness;
-.\" basing this purely on the time and not on the process ID allows better
-.\" integration with reproducible builds.
-.\" .ds random-s1 \n[minutes]\n[seconds]\n[$$]\n[hours]\"
-.ds random-s1 \n[minutes]\n[seconds]\n[hours]\"
-.\" prevent overflow
-.substring random-s1 0 8
-.
-.nr random-s1 (\*[random-s1] % 2147483562)
-.nr random-s2 \n[dy]\n[year]\n[mo]
-.
+.\"
+.\"            Since this just generates example output,
+.\"            we don't need good randomness.
 .
 .de random-seed
 .  if !(\\n[.$] == 2) \{\
@@ -214,6 +198,7 @@ along with this program.  If not, see 
<http://www.gnu.org/licenses/>.
 .  nr random-s1 (\\$1 % 2147483562)
 .  nr random-s2 (\\$2 % 2147483398)
 ..
+.random-seed 131545532 19201711
 .
 .
 .de random#



reply via email to

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