search for: get_console_width

Displaying 6 results from an estimated 6 matches for "get_console_width".

2014 Jul 07
1
[PATCH] for console width detection
A bug was reported here: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=739613 get_console_width() may return 0, and there will be division by 0 in stats_print_name(): console_width = get_console_width(); len = strlen_console(name)+2; console_chars_left = console_width - (len % console_width); A simple patch is attached. -------------- next part -------------- A non-text attachment was s...
2013 May 15
2
FLAC currently won't compile for Android [bisected]
Hi, I couldn't figure out how to file a bug in the bugtracker at sourceforge. So I send a report this way. Building FLAC from git for Android fails with the following message: utils.c: In function 'get_console_width': utils.c:181:17: error: storage size of 'w' isn't known utils.c:181:17: warning: unused variable 'w' [-Wunused-variable] make[3]: *** [utils.o] Error I have bisected the bug. 03a9e6064d406e3656afacdbe50e8e47ebfa0de3 is the first bad commit commit 03a9e6064d406e3656afacd...
2013 May 15
2
FLAC currently won't compile for Android [bisected]
Felix Homann wrote: > Here are the warnings I get with 03a9e6064d406e3656afacdbe50e8e47ebfa0de3: It seems Android sys/param.h doesn't define MIN/MAX. Could you try to revert this commit on current master (or simply change line 35 of src/libFLAC/include/private/macros.h back to #if defined(__GNUC__) ) and recompile? Or possibly bisect 03a9e60..master to find out when the
2013 Apr 28
7
Pre-release 1.3.0pre4 (hopefully the last)
Hi all, I have tagged 1.3.0pre4 in git and provided a tarball here: http://downloads.xiph.org/releases/flac/beta/flac-1.3.0pre4.tar.xz I have built and tested the git tree on: linux-x86_64 openbsd5-i386 freebsd5-i386 as well as successfully cross compiling from Linux to 32 and 64 bit MinGW. As far as I am concerned, the only thing left to do for this release is to update the
2013 Apr 29
0
Pre-release 1.3.0pre4 (hopefully the last)
..._utf8_io.c:13:75: error: windows.h: No such file or directory ... with lots of more errors. The problem is in configure.ac. I don't have new enough autotools to test properly but applying this directly to configure fixes it. The build also dies here, CC utils.o utils.c: In function 'get_console_width': utils.c:177: error: storage size of 'w' isn't known utils.c:178: error: 'TIOCGWINSZ' undeclared (first use in this function) utils.c:178: error: (Each undeclared identifier is reported only once utils.c:178: error: for each function it appears in.) utils.c:177: warning: un...
2013 May 23
2
FLAC currently won't compile for Android [bisected]
...one: > > Here's my patch suggestion but I'm no Android guy. -------------- next part -------------- diff --git a/src/flac/utils.c b/src/flac/utils.c index e908706..6f6382e 100644 --- a/src/flac/utils.c +++ b/src/flac/utils.c @@ -171,13 +171,13 @@ static int console_chars_left; int get_console_width(void) { int width = 80; -#ifdef _WIN32 +#if defined _WIN32 width = win_get_console_width(); #elif defined __EMX__ - int s[2]; - _scrsize (s); - width = s[0]; -#else + int s[2]; + _scrsize (s); + width = s[0]; +#elif !defined __ANDROID__ struct winsize w; if (ioctl(STD...