Follow-up Comment #12, bug #63587 (group groff): [comment #11 comment #11:] > [comment #2 comment #2:] > > there _is_ a way to determine INT_MAX from within the roff language. > [...] > > "Within a diversion, in the absence of a diversion trap, [the .t > > register] is the largest representable integer in basic units." > > By my reading of the code change in [http://git.savannah.gnu.org/cgit/groff.git/commit/?id=5505e9864 commit 5505e9864] (I've yet to compile said change to verify), neither my statement nor the quoted line of the manual is true any longer.
No, it's still true, _for devices with a vertical resolution of 1_.
$ ./build/test-groff -T ps
.di foo
.tm .t=\n(.t
.t=2147483647
.nr t \n(.t
.nr t +1
troff:<standard input>:4: error: integer addition wrapped
.di
.ex
The trouble is, it wasn't true even before, for devices with non-unit vertical
resolutions.
$ ~/groff-stable/bin/groff -T utf8 # a.k.a. 1.23.0
.di foo
.tm .t=\n(.t
.t=2147483600
.nr t \n(.t
.nr t +1
.tm t=\nt
t=2147483601
.di
.ex
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?63587>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
