[cfe-commits] r70611 - /cfe/trunk/tools/clang-cc/clang-cc.cpp

Daniel Dunbar daniel at zuster.org
Sat May 2 11:41:29 PDT 2009


It would be useful to check for COLUMNS, many unix utilities respect this to
override the default width. Some pseudo shells also set this
automatically...

 - Daniel

On Fri, May 1, 2009 at 6:15 PM, Douglas Gregor <dgregor at apple.com> wrote:

>
> On May 1, 2009, at 5:31 PM, Mike Stump wrote:
>
> > On May 1, 2009, at 5:03 PM, Douglas Gregor wrote:
> >> +  if (ioctl(2, TIOCGWINSZ, &ws) == 0)
> >> +    Columns = ws.ws_col;
> >
> > Danger...  Someone is gonna discover this isn't as portable as
> > people would like...  Though, I guess if the Windows people like it,
> > maybe we can ignore the really old systems out there.
>
>
> Yes, I know; it's hidden behind an #ifdef so it shouldn't trip too
> many people up. We'll see!
>
>        - Doug
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20090502/8d6b3491/attachment.html>


More information about the cfe-commits mailing list