[Omake] SVN Commit: Mojave standard library (Rev. 12386)
Jason Hickey
jyh at cs.caltech.edu
Sat Oct 13 10:03:01 PDT 2007
On Oct 12, 2007, at 10:05 PM, Aleksey Nogin wrote:
> Some quick Googling suggests that there is no completely full-proof
> portable way of getting ahold of TIOCGWINSZ. Would it be safer not to
> assume that TIOCGWINSZ would necessarily be available? Once option
> would
> be to have some configure tests that try to look for it in various
> headers and have a fallback version (which would then also be used in
> the boostrapping build) that just raises (Failure "unsupported")?
Probably so. At least, we should surround the function body with
#ifdef TIOCGWINSZ (and some suitable default).
The problem comes up during bootstrapping, so we don't have a chance
for configuration yet. OTOH, the terminal property is not at all
critical. It would be fine to say the terminal width defaults to 80.
Jason
--
Jason Hickey http://www.cs.caltech.edu/~jyh
Caltech Computer Science Tel: 626-395-6568 FAX: 626-792-4257
More information about the OMake-Devel
mailing list