9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] tbl fixes
@ 2012-10-16  7:11 steve
  2012-10-16 13:29 ` erik quanstrom
  0 siblings, 1 reply; 2+ messages in thread
From: steve @ 2012-10-16  7:11 UTC (permalink / raw)
  To: 9fans

i seem to remember that someone (erik?) fixed a bug in tbl
which is causing it to misalign the edges of the boxes it draws around tables.

i looked in the archives but cannot see it,

anyone any ideas?

steve




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [9fans] tbl fixes
  2012-10-16  7:11 [9fans] tbl fixes steve
@ 2012-10-16 13:29 ` erik quanstrom
  0 siblings, 0 replies; 2+ messages in thread
From: erik quanstrom @ 2012-10-16 13:29 UTC (permalink / raw)
  To: steve, 9fans

On Tue Oct 16 03:12:41 EDT 2012, steve@quintile.net wrote:
> i seem to remember that someone (erik?) fixed a bug in tbl
> which is causing it to misalign the edges of the boxes it draws around tables.
>
> i looked in the archives but cannot see it,
>
> anyone any ideas?

tbl often misaligns if it is thinking one font and you're thinking
another.  :-)

i did find some tbl changes that were cosmetic.
the only one of any substance looks to the following.
but the negative case should just use a huge number.
i would just use (int)(uintptr) to follow the rest of the code.

  int
  point(char *ss)
  {
- 	vlong s = (uintptr)ss;
 + 	int s = (int)(uintptr)ss;

  	return(s >= 128 || s < 0);
  }

- erik



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-10-16 13:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-16  7:11 [9fans] tbl fixes steve
2012-10-16 13:29 ` erik quanstrom

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).